:root {
  color-scheme: dark;
  --bg: #080a0f;
  --panel: rgba(20, 24, 34, 0.86);
  --panel-strong: #171c28;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7f8fb;
  --muted: #9aa3b2;
  --accent: #ff4f87;
  --accent-2: #55d6be;
  --warning: #ffd166;
  --danger: #ff6b6b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 79, 135, 0.2), transparent 32rem),
    radial-gradient(circle at 85% 12%, rgba(85, 214, 190, 0.14), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.topbar h1,
.section-heading h2 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: 2rem;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted {
  margin: 0 0 8px;
  color: var(--muted);
}

.hero-panel,
.panel,
.stat-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  display: grid;
  gap: 22px;
  margin-bottom: 14px;
  padding: 22px;
  border-radius: var(--radius);
}

.balance {
  display: block;
  font-size: clamp(2.2rem, 12vw, 4.8rem);
  line-height: 0.95;
}

.income-form label,
.stacked-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 700;
}

.inline-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 12px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

select option {
  background: #151923;
}

input:focus,
select:focus {
  border-color: rgba(85, 214, 190, 0.75);
  background: rgba(255, 255, 255, 0.09);
}

button {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 800;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

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

.primary-button,
.inline-field button {
  background: linear-gradient(135deg, var(--accent), #8d6bff);
}

.icon-button {
  padding: 0 14px;
}

.stats-grid,
.content-grid,
.two-column,
.category-grid {
  display: grid;
  gap: 12px;
}

.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.stat-card,
.panel {
  border-radius: var(--radius);
}

.stat-card {
  padding: 16px;
}

.stat-card span,
.section-heading span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.25rem;
}

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

.panel {
  padding: 18px;
  overflow: hidden;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.stacked-form {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  animation: liftIn 220ms ease both;
}

.item-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.item-title {
  margin: 0;
  font-weight: 800;
}

.item-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.item-actions {
  display: flex;
  gap: 8px;
}

.item-actions button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.danger-button {
  color: #fff;
  background: rgba(255, 107, 107, 0.2);
}

.category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.category-pill {
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(85, 214, 190, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
}

.category-pill strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 240ms ease;
}

.upcoming {
  border-color: rgba(255, 209, 102, 0.72);
  background: rgba(255, 209, 102, 0.1);
}

.empty-state {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.hidden {
  display: none;
}

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

@media (min-width: 720px) {
  .app-shell {
    padding: 32px;
  }

  .hero-panel {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
  }

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

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

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

.login-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-box {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border-radius: 20px;
  background: rgba(20, 24, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.auth-box h2 {
  margin-top: 0;
  margin-bottom: 24px;
  text-align: center;
}

.auth-box input {
  margin-bottom: 12px;
}

.auth-box button {
  width: 100%;
  margin-top: 8px;
}

#signupBtn {
  background: rgba(255,255,255,0.08);
}

#loginBtn {
  background: linear-gradient(135deg, var(--accent), #8d6bff);
}:root {
  color-scheme: dark;
  --bg: #080a0f;
  --panel: rgba(20, 24, 34, 0.86);
  --panel-strong: #171c28;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7f8fb;
  --muted: #9aa3b2;
  --accent: #ff4f87;
  --accent-2: #55d6be;
  --warning: #ffd166;
  --danger: #ff6b6b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 79, 135, 0.2), transparent 32rem),
    radial-gradient(circle at 85% 12%, rgba(85, 214, 190, 0.14), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.topbar h1,
.section-heading h2 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: 2rem;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted {
  margin: 0 0 8px;
  color: var(--muted);
}

.hero-panel,
.panel,
.stat-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  display: grid;
  gap: 22px;
  margin-bottom: 14px;
  padding: 22px;
  border-radius: var(--radius);
}

.balance {
  display: block;
  font-size: clamp(2.2rem, 12vw, 4.8rem);
  line-height: 0.95;
}

.income-form label,
.stacked-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 700;
}

.inline-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 12px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

select option {
  background: #151923;
}

input:focus,
select:focus {
  border-color: rgba(85, 214, 190, 0.75);
  background: rgba(255, 255, 255, 0.09);
}

button {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 800;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

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

.primary-button,
.inline-field button {
  background: linear-gradient(135deg, var(--accent), #8d6bff);
}

.icon-button {
  padding: 0 14px;
}

.stats-grid,
.content-grid,
.two-column,
.category-grid {
  display: grid;
  gap: 12px;
}

.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.stat-card,
.panel {
  border-radius: var(--radius);
}

.stat-card {
  padding: 16px;
}

.stat-card span,
.section-heading span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.25rem;
}

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

.panel {
  padding: 18px;
  overflow: hidden;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.stacked-form {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  animation: liftIn 220ms ease both;
}

.item-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.item-title {
  margin: 0;
  font-weight: 800;
}

.item-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.item-actions {
  display: flex;
  gap: 8px;
}

.item-actions button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.danger-button {
  color: #fff;
  background: rgba(255, 107, 107, 0.2);
}

.category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.category-pill {
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(85, 214, 190, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
}

.category-pill strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 240ms ease;
}

.upcoming {
  border-color: rgba(255, 209, 102, 0.72);
  background: rgba(255, 209, 102, 0.1);
}

.empty-state {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.hidden {
  display: none;
}

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

@media (min-width: 720px) {
  .app-shell {
    padding: 32px;
  }

  .hero-panel {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
  }

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

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

  .two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  .login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-box {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border-radius: 20px;
  background: rgba(20, 24, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.auth-box h2 {
  margin-top: 0;
  margin-bottom: 24px;
  text-align: center;
}

.auth-box input {
  margin-bottom: 12px;
}

.auth-box button {
  width: 100%;
  margin-top: 8px;
}

#signupBtn {
  background: rgba(255,255,255,0.08);
}

#loginBtn {
  background: linear-gradient(
    135deg,
    var(--accent),
    #8d6bff
  );
}
}
}
:root {
  color-scheme: dark;
  --bg: #080a0f;
  --panel: rgba(20, 24, 34, 0.86);
  --panel-strong: #171c28;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7f8fb;
  --muted: #9aa3b2;
  --accent: #ff4f87;
  --accent-2: #55d6be;
  --warning: #ffd166;
  --danger: #ff6b6b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 79, 135, 0.2), transparent 32rem),
    radial-gradient(circle at 85% 12%, rgba(85, 214, 190, 0.14), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.topbar h1,
.section-heading h2 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: 2rem;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted {
  margin: 0 0 8px;
  color: var(--muted);
}

.hero-panel,
.panel,
.stat-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel {
  display: grid;
  gap: 22px;
  margin-bottom: 14px;
  padding: 22px;
  border-radius: var(--radius);
}

.balance {
  display: block;
  font-size: clamp(2.2rem, 12vw, 4.8rem);
  line-height: 0.95;
}

.income-form label,
.stacked-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 700;
}

.inline-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 12px;
  outline: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

select option {
  background: #151923;
}

input:focus,
select:focus {
  border-color: rgba(85, 214, 190, 0.75);
  background: rgba(255, 255, 255, 0.09);
}

button {
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 800;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

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

.primary-button,
.inline-field button {
  background: linear-gradient(135deg, var(--accent), #8d6bff);
}

.icon-button {
  padding: 0 14px;
}

.stats-grid,
.content-grid,
.two-column,
.category-grid {
  display: grid;
  gap: 12px;
}

.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.stat-card,
.panel {
  border-radius: var(--radius);
}

.stat-card {
  padding: 16px;
}

.stat-card span,
.section-heading span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.25rem;
}

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

.panel {
  padding: 18px;
  overflow: hidden;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.stacked-form {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  animation: liftIn 220ms ease both;
}

.item-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.item-title {
  margin: 0;
  font-weight: 800;
}

.item-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.item-actions {
  display: flex;
  gap: 8px;
}

.item-actions button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.danger-button {
  color: #fff;
  background: rgba(255, 107, 107, 0.2);
}

.category-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.category-pill {
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(85, 214, 190, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
}

.category-pill strong {
  display: block;
  margin-top: 3px;
  color: var(--text);
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transition: width 240ms ease;
}

.upcoming {
  border-color: rgba(255, 209, 102, 0.72);
  background: rgba(255, 209, 102, 0.1);
}

.empty-state {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

.hidden {
  display: none;
}

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

@media (min-width: 720px) {
  .app-shell {
    padding: 32px;
  }

  .hero-panel {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
  }

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

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

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

.login-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-box {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border-radius: 20px;
  background: rgba(20, 24, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.auth-box h2 {
  margin-top: 0;
  margin-bottom: 24px;
  text-align: center;
}

.auth-box input {
  margin-bottom: 12px;
}

.auth-box button {
  width: 100%;
  margin-top: 8px;
}

#signupBtn {
  background: rgba(255,255,255,0.08);
}

#loginBtn {
  background: linear-gradient(135deg, var(--accent), #8d6bff);
}
.login-logo {
  width: 140px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
}

.auth-box {

  text-align: center;
}
.app-logo img {
  width: 120px;
  height: auto;
}