:root {
  --bg: #0f172a;
  --panel: rgba(15, 23, 42, 0.68);
  --panel-border: rgba(148, 163, 184, 0.16);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #f59e0b;
  --accent-2: #fb7185;
  --green: #34d399;
  --red: #f87171;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.2), transparent 30%),
    radial-gradient(circle at top right, rgba(251, 113, 133, 0.2), transparent 30%),
    linear-gradient(160deg, #020617 0%, #0f172a 45%, #111827 100%);
  color: var(--text);
  min-height: 100vh;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

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

.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  border-radius: 32px;
  padding: 32px;
  margin-bottom: 28px;
}

.eyebrow,
.panel-label {
  margin: 0 0 10px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fbbf24;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 0.95;
}

.hero-text {
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #fb7185);
  color: white;
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.9);
  color: white;
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.wide {
  width: 100%;
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.hero-stat,
.hero-tip {
  border-radius: 22px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(251, 191, 36, 0.16);
}

.hero-stat span,
.hero-tip .tip-label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.hero-stat strong {
  font-size: 2rem;
}

.hero-tip p {
  margin: 0;
  line-height: 1.6;
}

.dashboard {
  display: grid;
  gap: 24px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.about-panel {
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.about-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.about-text {
  display: grid;
  gap: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.about-text p {
  margin: 0;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.about-side {
  display: grid;
  gap: 14px;
}

.about-card,
.mini-stat {
  border-radius: 22px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(251, 191, 36, 0.12);
}

.about-card strong,
.mini-stat strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.about-card p,
.mini-stat span {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.about-icon {
  display: inline-flex;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.about-mini-stats {
  display: grid;
  gap: 12px;
}

.summary-card {
  padding: 20px;
  border-radius: 24px;
}

.summary-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

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

.workspace-grid,
.insights-grid {
  display: grid;
  gap: 24px;
}

.workspace-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

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

.panel {
  border-radius: 28px;
  padding: 24px;
}

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

.panel-heading h2 {
  margin: 0;
  font-size: 1.35rem;
}

.month-filter {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--muted);
}

.transaction-form,
.budget-grid {
  display: grid;
  gap: 14px;
}

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

.transaction-form label,
.budget-item {
  display: grid;
  gap: 8px;
}

.transaction-form span,
.budget-item span {
  color: var(--muted);
  font-size: 0.93rem;
}

input,
select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.85);
  color: white;
  padding: 14px 15px;
  font: inherit;
}

input:focus,
select:focus {
  outline: 2px solid rgba(251, 191, 36, 0.45);
  border-color: transparent;
}

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

.chart-stack,
.progress-stack {
  display: grid;
  gap: 14px;
}

.bar-card,
.progress-card {
  display: grid;
  gap: 8px;
}

.bar-header,
.progress-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.95rem;
}

.bar-track,
.progress-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.95);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f59e0b, #fb7185);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #34d399, #f59e0b);
}

.progress-fill.over {
  background: linear-gradient(90deg, #fb7185, #ef4444);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

th {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.type-income {
  background: rgba(52, 211, 153, 0.14);
  color: #6ee7b7;
}

.type-expense {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
}

.delete-btn {
  border: 0;
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(248, 113, 113, 0.14);
  color: #fecaca;
  cursor: pointer;
}

.empty-state {
  color: var(--muted);
  padding: 18px 0;
}

@media (max-width: 960px) {
  .hero,
  .about-grid,
  .workspace-grid,
  .insights-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .transaction-form,
  .budget-grid {
    grid-template-columns: 1fr;
  }
}
