:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #dde5ef;
  --primary: #0c1d53;
  --green: #0b5d32;
  --soft-blue: #eef5ff;
  --soft-green: #ecfdf5;
  --soft-yellow: #fff9e8;
  --danger: #dc2626;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  text-decoration: none;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid #e8edf5;
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.hero {
  background: linear-gradient(135deg, #06133a 0%, #0c1d53 60%, #132969 100%);
  color: #fff;
  padding: 56px 0 64px;
}

.hero-text {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
}

.section-pad {
  padding: 56px 0;
}

.tax-grid-card,
.main-card,
.side-card,
.result-card,
.banner-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tax-grid-card {
  padding: 24px;
  height: 100%;
  transition: 0.2s ease;
}

.tax-grid-card:hover {
  transform: translateY(-4px);
}

.main-card {
  padding: 22px 22px 26px;
}

.side-card {
  padding: 18px;
}

.result-card {
  padding: 16px;
}

.icon-chip {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #eef2f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 11px;
  color: #475569;
}

.status {
  color: #16a34a;
  font-size: 14px;
  font-weight: 600;
}

.small-muted,
.muted {
  color: var(--muted);
  font-size: 13px;
}

.feature-list,
.progress-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: #475569;
  font-size: 14px;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.btn-darktax {
  background: #071330;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 600;
}

.btn-darktax:hover {
  background: #10225c;
  color: #fff;
}

.btn-greentax {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
}

.btn-greentax:hover {
  background: #0a4b29;
  color: #fff;
}

.breadcrumbs {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 18px;
}

.breadcrumbs span {
  color: #cbd5e1;
  margin: 0 6px;
}

.back-link {
  font-size: 13px;
  color: #3b82f6;
  font-weight: 500;
}

.stepper-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 42px;
  flex-wrap: wrap;
  margin: 18px 0 28px;
}

.step-item {
  text-align: center;
  min-width: 110px;
}

.step-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  border: 2px solid #d5dde8;
  background: #eef2f7;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.step-item.active .step-circle {
  border-color: #0c1d53;
  background: #fff;
  color: #0c1d53;
}

.step-item.done .step-circle {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.step-label {
  font-size: 11px;
  font-weight: 600;
  color: #334155;
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.subhead {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.section-block {
  margin-bottom: 22px;
}

.form-label {
  font-weight: 700;
  margin-bottom: 6px;
  color: #0f172a;
}

.form-help {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
}

.form-control,
.form-select {
  border-radius: 10px;
  border: 1px solid #cfd8e3;
  padding: 12px 14px;
  font-size: 14px;
}

.input-group-text {
  background: #fff;
  border: 1px solid #cfd8e3;
  border-right: none;
  font-weight: 700;
}

.input-group .form-control {
  border-left: none;
}

.notice-box {
  border-left: 3px solid #60a5fa;
  background: #eef5ff;
  padding: 12px 14px;
  font-size: 12px;
  color: #334155;
  border-radius: 8px;
}

.why-box {
  border-left: 3px solid #111827;
  background: #fff;
  padding: 12px 14px;
  border-radius: 8px;
}

.warn-box {
  background: var(--soft-yellow);
  border-left: 3px solid #f59e0b;
  padding: 14px;
  border-radius: 8px;
  color: #92400e;
  font-size: 12px;
}

.progress-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 12px;
  color: #0f172a;
}

.progress-bullet {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.8px solid #94a3b8;
  flex: 0 0 12px;
  margin-top: 2px;
}

.progress-bullet.done {
  background: #fff;
  border-color: #166534;
  position: relative;
}

.progress-bullet.done::after {
  content: "✓";
  position: absolute;
  inset: -4px 0 0 1px;
  font-size: 11px;
  color: #166534;
  font-weight: 800;
}

.progress-meta {
  display: block;
  color: #94a3b8;
  font-size: 10px;
  margin-top: 1px;
}

.summary-table .row-item,
.result-breakdown .row-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 8px;
  border-bottom: 1px solid #ebeff5;
  font-size: 13px;
}

.summary-table .row-item:last-child,
.result-breakdown .row-item:last-child {
  border-bottom: none;
}

.summary-table .row-item.strong,
.result-breakdown .row-item.strong {
  font-weight: 800;
  color: #111827;
  background: #f8fafc;
}

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

.qualify-box {
  background: var(--soft-green);
  border-left: 3px solid #22c55e;
  padding: 14px;
  border-radius: 8px;
  color: #166534;
  font-size: 12px;
}

.calc-box {
  background: var(--soft-blue);
  border-left: 3px solid #3b82f6;
  padding: 14px;
  border-radius: 8px;
  color: #1e3a8a;
  font-size: 12px;
}

.result-banner {
  background: linear-gradient(135deg, #1d2358 0%, #2f3171 100%);
  color: #fff;
  padding: 18px 20px;
}

.result-banner .mini {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
}

.stat-green {
  background: #005925;
  color: #fff;
  border-radius: 14px;
  padding: 16px 18px;
}

.stat-grid .stat-card {
  background: #fff;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  padding: 14px;
  min-height: 92px;
}

.chart-box,
.snapshot-box {
  min-height: 172px;
}

.tiny-bar-chart {
  height: 110px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  padding: 10px 6px 2px;
}

.bar {
  width: 32px;
  border-radius: 8px 8px 0 0;
  background: #dbe7ff;
}

.bar.orange {
  background: #ffd8a8;
}

.bar.green {
  background: #bbf7d0;
}

.bar-label {
  font-size: 10px;
  text-align: center;
  color: #64748b;
  margin-top: 8px;
}

.download-actions .btn {
  border-radius: 10px;
}

.no-print {
  display: block;
}

@media (max-width: 991px) {
  .side-card {
    margin-top: 18px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .no-print {
    display: none !important;
  }

  .main-card,
  .side-card,
  .result-card,
  .banner-card,
  .tax-grid-card {
    box-shadow: none;
  }
}