/* ===========================
   ROOT & RESET
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #00a86b;
  --green-light: #00c97e;
  --green-dim: #003d28;
  --green-glow: rgba(0, 168, 107, 0.15);
  --ink: #0a0f0d;
  --ink-soft: #1c2420;
  --ink-muted: #2e3d36;
  --paper: #f5f7f5;
  --paper-dim: #eaf0eb;
  --white: #ffffff;
  --amber: #f4a100;
  --red: #e04040;
  --blue: #1a6fd4;
  --border: rgba(0, 168, 107, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --mono: "DM Mono", monospace;
  --sans: "Inter", sans-serif;
  --display: "Inter", sans-serif;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

/* ===========================
   HEADER
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  color: white;
  letter-spacing: -0.3px;
}

.logo-text em {
  font-style: normal;
  color: var(--green-light);
  font-size: 13px;
  font-weight: 400;
  margin-left: 6px;
  font-family: var(--mono);
}

.header-badge {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green-light);
  border: 1px solid rgba(0, 201, 126, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* ===========================
   HERO
   =========================== */
.hero {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 72px 32px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 80% at 80% 50%,
      rgba(0, 168, 107, 0.12) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 40% 60% at 10% 80%,
      rgba(0, 168, 107, 0.06) 0%,
      transparent 60%
    );
  pointer-events: none;
}

/* Grid lines */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 168, 107, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 168, 107, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--green);
}

.hero-title {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  color: white;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.hero-title .accent {
  color: var(--green-light);
  display: block;
}

.hero-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 480px;
  line-height: 1.7;
}

/* ===========================
   CALCULATOR LAYOUT
   =========================== */
.calculator-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.calc-container {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 32px;
  align-items: start;
}

/* ===========================
   INPUTS PANEL
   =========================== */
.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.input-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.4s ease both;
}

.input-section:nth-child(2) {
  animation-delay: 0.05s;
}
.input-section:nth-child(3) {
  animation-delay: 0.1s;
}
.input-section:nth-child(4) {
  animation-delay: 0.15s;
}

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

.section-title {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.period-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  font-weight: 400;
}

.tag-new {
  font-family: var(--mono);
  font-size: 10px;
  background: var(--green);
  color: white;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.tag-new.small {
  font-size: 9px;
  padding: 1px 5px;
}

.tag-compare {
  font-family: var(--mono);
  font-size: 10px;
  background: var(--ink-soft);
  color: rgba(255, 255, 255, 0.6);
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 400;
}

.info-note {
  font-size: 12px;
  color: #666;
  background: var(--paper-dim);
  border-left: 3px solid var(--green);
  padding: 10px 12px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Toggle Group */
.toggle-group {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.4s ease both;
}

.group-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #666;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-family: var(--mono);
}

.toggle-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper-dim);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}

.toggle-btn {
  padding: 9px;
  border: none;
  border-radius: 7px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  color: #888;
}

.toggle-btn.active {
  background: var(--ink);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Input Groups */
.input-group {
  margin-bottom: 14px;
}

.input-group:last-child {
  margin-bottom: 0;
}

.input-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #555;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #e2e8e4;
  border-radius: 9px;
  overflow: hidden;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  background: white;
}

.input-wrap:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
}

.currency-sym {
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--green);
  font-weight: 500;
  background: var(--paper-dim);
  border-right: 1.5px solid #e2e8e4;
  height: 42px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.input-wrap input {
  border: none;
  outline: none;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  width: 100%;
  background: transparent;
}

.input-wrap input::placeholder {
  color: #bbbfbb;
}
.input-wrap input::-webkit-outer-spin-button,
.input-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
.input-wrap input[type="number"] {
  -moz-appearance: textfield;
}

/* Regime Toggle */
.regime-toggle {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.regime-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 14px;
  border: 1.5px solid #e2e8e4;
  border-radius: 9px;
  transition: all 0.2s;
}

.regime-option:hover {
  border-color: var(--green);
  background: var(--green-glow);
}

.regime-option input[type="radio"] {
  accent-color: var(--green);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.regime-option span {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

/* ===========================
   RESULTS PANEL
   =========================== */
.calc-results {
  position: sticky;
  top: 80px;
}

/* Empty State */
.empty-state {
  background: white;
  border: 2px dashed #d8e2db;
  border-radius: var(--radius-lg);
  padding: 80px 32px;
  text-align: center;
  color: #aab5ae;
  animation: fadeUp 0.4s ease both;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
  font-family: var(--display);
  font-weight: 800;
}

.empty-state p {
  font-size: 15px;
  line-height: 1.7;
}

.hidden {
  display: none !important;
}

/* Results Content */
.results-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeUp 0.3s ease both;
}

/* Exemption Banner */
.exemption-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #003d28, #005236);
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 20px;
  color: white;
  box-shadow: 0 4px 20px rgba(0, 168, 107, 0.25);
}

.exemption-icon {
  width: 32px;
  height: 32px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.exemption-banner strong {
  font-family: var(--display);
  font-size: 15px;
  display: block;
  margin-bottom: 4px;
}

.exemption-banner p {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 10px;
}

.exemption-banner p strong {
  color: var(--green-light);
  font-weight: 700;
}

.exemption-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.exemption-list li {
  font-size: 12.5px;
  opacity: 0.85;
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.exemption-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-light);
  font-weight: 700;
}

.exemption-list li strong {
  color: white;
  font-weight: 700;
}

/* Summary */
.result-summary {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 16px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-item.highlight {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 16px;
}

.summary-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--mono);
}

.summary-value {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  color: white;
  letter-spacing: -0.5px;
}

.summary-value.accent {
  color: var(--green-light);
}

/* Breakdown */
.breakdown-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.breakdown-title {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.breakdown-table {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--paper-dim);
  font-size: 13px;
  color: #555;
  gap: 12px;
}

.breakdown-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.breakdown-row:first-child {
  padding-top: 0;
}

.breakdown-row span:last-child {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.breakdown-row.total-row {
  font-weight: 600;
  color: var(--ink);
  border-top: 2px solid var(--ink);
  border-bottom: none;
  margin-top: 4px;
  padding-top: 12px;
}

.breakdown-row.total-row span:last-child {
  color: var(--red);
}

.breakdown-row.rent-row span:first-child {
  color: var(--green);
  font-weight: 500;
}
.breakdown-row.rent-row span:last-child {
  color: var(--green);
}

/* Regime Results */
.regime-result {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.regime-header {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.regime-header.nta {
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
}
.regime-header.pita {
  background: linear-gradient(135deg, #2a2a3a, #3a3a4a);
}

.regime-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.regime-header.nta .regime-badge {
  background: var(--green);
  color: white;
}
.regime-header.pita .regime-badge {
  background: var(--amber);
  color: var(--ink);
}

.regime-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--sans);
}

.regime-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.regime-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--paper-dim);
  font-size: 13px;
  color: #555;
}

.regime-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.regime-row:first-child {
  padding-top: 0;
}

.regime-row span:last-child {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--ink);
}

.paye-amount {
  color: var(--red) !important;
  font-weight: 600 !important;
}

.regime-row.net-row span:first-child {
  font-weight: 600;
  color: var(--ink);
}
.regime-row.net-row.annual span:first-child {
  color: #888;
  font-size: 12px;
  font-weight: 400;
}

.net-amount {
  font-family: var(--mono) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--green) !important;
}

.regime-row.net-row.annual .net-amount {
  font-size: 13px !important;
  color: #888 !important;
}

/* Tax Band Workings */
.regime-bands {
  padding: 0 20px 16px;
  border-top: 1px solid var(--paper-dim);
}

.bands-table {
  width: 100%;
  font-size: 12px;
  font-family: var(--mono);
  border-collapse: collapse;
}

.bands-table th {
  text-align: left;
  padding: 6px 8px;
  color: #888;
  font-weight: 500;
  border-bottom: 1px solid var(--paper-dim);
  font-size: 11px;
}

.bands-table td {
  padding: 7px 8px;
  color: var(--ink);
  border-bottom: 1px solid var(--paper-dim);
}

.bands-table tr:last-child td {
  border-bottom: none;
}
.bands-table td:not(:first-child) {
  text-align: right;
}
.bands-table th:not(:first-child) {
  text-align: right;
}

.band-rate {
  color: var(--green);
  font-weight: 500;
}
.band-tax {
  color: var(--red);
}

/* Comparison Highlight */
.comparison-highlight {
  background: linear-gradient(160deg, #0a1f16, #0d2a1c);
  border: 1px solid rgba(0, 168, 107, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px 20px 16px;
  box-shadow: 0 4px 24px rgba(0, 168, 107, 0.12);
  overflow: hidden;
}

.comp-header {
  margin-bottom: 14px;
}
.comp-title {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.comp-sub {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 3px;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 11px;
  margin-bottom: 14px;
}
.comp-th-label {
  width: 36%;
}
.comp-th {
  padding: 6px 8px;
  text-align: right;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.comp-th.pita-col {
  color: #f4a100;
}
.comp-th.nta-col {
  color: var(--green-light);
}
.comp-th.diff-col {
  color: rgba(255, 255, 255, 0.3);
}

.comp-regime-tag {
  display: inline-block;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 10px;
  margin-left: 4px;
  font-weight: 700;
  vertical-align: middle;
}
.comp-regime-tag.pita {
  background: rgba(244, 161, 0, 0.15);
  color: #f4a100;
}
.comp-regime-tag.nta {
  background: rgba(0, 168, 107, 0.15);
  color: var(--green-light);
}

.comp-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.comp-row:last-child {
  border-bottom: none;
}
.comp-row-label {
  padding: 7px 4px 7px 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
}
.comp-val {
  padding: 7px 8px;
  text-align: right;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
}
.comp-val.muted {
  color: rgba(255, 255, 255, 0.25);
}
.comp-val.red {
  color: #ff7070;
}
.comp-val.green {
  color: var(--green-light);
}
.comp-val.amber {
  color: #f4c842;
}
.comp-val.bold {
  font-weight: 700;
}
.comp-val.positive {
  color: var(--green-light);
  font-weight: 600;
}
.comp-val.negative {
  color: #ff7070;
  font-weight: 600;
}
.comp-val.pita-relief {
  color: #f4a100;
}
.comp-val.nta-relief {
  color: var(--green-light);
}

.comp-net-row {
  background: rgba(0, 168, 107, 0.05);
}
.comp-net-row .comp-row-label {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.comp-verdict {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  text-align: center;
}
.comp-verdict-value {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.comp-verdict-value.positive {
  color: var(--green-light);
}
.comp-verdict-value.negative {
  color: #ff7070;
}
.comp-verdict-label {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.4;
}

/* Toggle Bands Button */
.toggle-bands-btn {
  width: 100%;
  padding: 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

.toggle-bands-btn:hover {
  background: var(--green-glow);
  border-color: var(--green);
}

/* ===========================
   FOOTER
   =========================== */
/* site-footer styles are in the landing section below */

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .calc-container {
    grid-template-columns: 1fr;
  }
  .calc-results {
    position: static;
  }
  .hero {
    padding: 48px 24px 56px;
  }
  .calculator-wrap {
    padding: 32px 20px 60px;
  }
  .result-summary {
    grid-template-columns: 1fr 1fr;
  }
  .summary-item.highlight {
    border-left: none;
    padding-left: 0;
  }
}

@media (max-width: 700px) {
  .result-summary {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .header-inner {
    padding: 0 20px;
  }
  .header-badge {
    display: none;
  }
  .result-summary {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===========================
   STAGE 2 — SAVE & PDF
   =========================== */
.save-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.save-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-save {
  padding: 12px;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.2px;
}

.btn-save:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
}
.btn-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-pdf {
  padding: 12px;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.2px;
}

.btn-pdf:hover {
  background: var(--green-light);
  transform: translateY(-1px);
}

.save-status {
  font-size: 12px;
  font-family: var(--mono);
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  text-align: center;
}

.save-status.success {
  background: #e8f8f0;
  color: var(--green);
  border: 1px solid rgba(0, 168, 107, 0.2);
}
.save-status.error {
  background: #fff0f0;
  color: var(--red);
  border: 1px solid rgba(224, 64, 64, 0.2);
}

/* ===========================
   STAGE 2 — HISTORY SECTION
   =========================== */
.history-section {
  background: var(--ink);
  padding: 64px 32px 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.history-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.history-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 32px;
}

.history-title {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  color: white;
  letter-spacing: -1px;
  margin-bottom: 6px;
}

.history-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--mono);
}

.btn-refresh {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-refresh:hover {
  border-color: var(--green);
  color: var(--green-light);
}

.history-empty {
  text-align: center;
  padding: 60px 32px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  line-height: 1.7;
}

.history-empty strong {
  color: rgba(255, 255, 255, 0.5);
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.history-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.3s ease both;
}

.history-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
  opacity: 0;
  transition: opacity 0.2s;
}

.history-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 168, 107, 0.3);
  transform: translateY(-2px);
}

.history-card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.card-name {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: white;
}

.card-date {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.card-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-stat-label {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-stat-value {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: white;
}

.card-stat-value.green {
  color: var(--green-light);
}
.card-stat-value.red {
  color: #ff7070;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card-rate {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.card-delete {
  background: transparent;
  border: 1px solid rgba(224, 64, 64, 0.3);
  color: #ff7070;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--mono);
  cursor: pointer;
  transition: all 0.2s;
}

.card-delete:hover {
  background: rgba(224, 64, 64, 0.15);
  border-color: var(--red);
}

/* ===========================
   PDF PRINT STYLES
   =========================== */
.pdf-preview {
  display: none;
}

@media print {
  body > *:not(#pdfPreview) {
    display: none !important;
  }

  #pdfPreview {
    display: block !important;
    position: fixed;
    inset: 0;
    background: white;
    z-index: 9999;
    padding: 0;
  }

  .pdf-sheet {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 48px;
    font-family: "Inter", sans-serif;
    color: #0a0f0d;
    font-size: 13px;
    line-height: 1.6;
  }

  @page {
    margin: 16mm;
    size: A4;
  }
}

.pdf-sheet {
  display: none;
}

/* ===========================
   AUTH OVERLAY
   =========================== */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 24px 60px;
  overflow-y: auto;
  overflow-x: hidden;
  animation: fadeIn 0.3s ease;
}

/* Push card down slightly so short panels still feel centred */
.auth-card {
  margin-top: auto;
  margin-bottom: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.auth-card {
  background: var(--ink-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.3s ease;
}

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

.auth-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.auth-logo .logo-mark {
  width: 40px;
  height: 40px;
  font-size: 20px;
}

.auth-logo-text {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  color: white;
  display: block;
  line-height: 1;
}

.auth-logo-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green-light);
  display: block;
  margin-top: 2px;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.auth-panel.hidden {
  display: none;
}

.auth-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.auth-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 24px;
  line-height: 1.5;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.auth-field label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.2px;
}

.auth-field input {
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14px;
  color: white;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.auth-field input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.auth-field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.15);
}

.auth-error {
  font-size: 12px;
  color: #ff7070;
  background: rgba(224, 64, 64, 0.1);
  border: 1px solid rgba(224, 64, 64, 0.2);
  padding: 9px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.auth-success {
  font-size: 12px;
  color: var(--green-light);
  background: rgba(0, 168, 107, 0.1);
  border: 1px solid rgba(0, 168, 107, 0.2);
  padding: 9px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.auth-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}

.auth-btn.primary {
  background: var(--green);
  color: white;
}

.auth-btn.primary:hover {
  background: var(--green-light);
  transform: translateY(-1px);
}
.auth-btn.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  gap: 8px;
}

.auth-link {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-family: var(--sans);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.auth-link:hover {
  color: var(--green-light);
}

.auth-success-icon {
  width: 56px;
  height: 56px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  font-weight: 700;
  margin: 0 auto 20px;
}

/* ===========================
   HEADER USER INFO
   =========================== */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar {
  width: 28px;
  height: 28px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  color: white;
  flex-shrink: 0;
}

.user-email {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logout-btn {
  padding: 6px 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.logout-btn:hover {
  border-color: #ff7070;
  color: #ff7070;
}

/* ===========================
   HEADER NAV (LANDING)
   =========================== */
.logo {
  text-decoration: none;
  cursor: pointer;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 7px;
  transition:
    color 0.18s,
    background 0.18s;
  border: none;
  background: none;
  text-decoration: none;
  letter-spacing: -0.1px;
}
.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.07);
}

/* User app nav — slightly brighter base */
.nav-link.light {
  color: rgba(255, 255, 255, 0.72);
}
.nav-link.light:hover {
  color: white;
  background: rgba(255, 255, 255, 0.07);
}

/* Active tab — green underline + tint */
.user-nav-link.active {
  color: var(--green-light) !important;
  background: rgba(0, 168, 107, 0.08) !important;
}

/* Landing guest nav — same active style */
#guestNav .nav-link.active {
  color: var(--green-light) !important;
  background: rgba(0, 168, 107, 0.08) !important;
}

/* ===========================
   BUSINESS DROPDOWN NAV
   =========================== */
.biz-dropdown {
  position: relative;
}

.biz-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}
.biz-chevron {
  font-size: 10px;
  transition: transform 0.2s;
  display: inline-block;
}
.biz-dropdown-trigger.dropdown-open .biz-chevron {
  transform: rotate(180deg);
}
.biz-dropdown-trigger.active {
  color: var(--green-light) !important;
}

.biz-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: #141a17;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  z-index: 500;
  animation: dropdownIn 0.15s ease;
}
.biz-dropdown-menu.open {
  display: block;
}

@keyframes dropdownIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.biz-dropdown-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-family: var(--sans);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.15s,
    color 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.biz-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}
.biz-dropdown-item.active {
  color: var(--green-light) !important;
  background: rgba(0, 168, 107, 0.1);
}
.biz-item-sub {
  font-size: 10px;
  font-family: var(--mono);
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
}
.biz-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 4px 6px;
}

.nav-btn {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.2px;
}
.nav-btn.outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.85);
}
.nav-btn.outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
  background: rgba(255, 255, 255, 0.06);
}
.nav-btn.filled {
  background: var(--green);
  border: 1px solid var(--green);
  color: white;
  font-weight: 700;
}
.nav-btn.filled:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 168, 107, 0.3);
}

/* ===========================
   LANDING HERO
   =========================== */
.landing-hero {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 100px 32px 120px;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.landing-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 80% at 75% 50%,
      rgba(0, 168, 107, 0.12) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 40% 40% at 10% 80%,
      rgba(0, 168, 107, 0.06) 0%,
      transparent 60%
    );
  pointer-events: none;
}

.landing-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 168, 107, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 168, 107, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
}

.landing-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.landing-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green-light);
  border: 1px solid rgba(0, 201, 126, 0.25);
  background: rgba(0, 168, 107, 0.08);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}

.tag-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.landing-title {
  font-family: var(--display);
  font-size: clamp(38px, 4.8vw, 66px);
  font-weight: 800;
  color: white;
  line-height: 1.07;
  letter-spacing: -2px;
  margin-bottom: 28px;
}

.landing-accent {
  color: var(--green-light);
}

.landing-sub {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 40px;
  font-weight: 400;
}

.landing-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: white;
  border: none;
  padding: 15px 28px;
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: -0.2px;
}
.cta-primary:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 168, 107, 0.3);
}
.cta-primary.large {
  padding: 16px 36px;
  font-size: 16px;
}

.cta-arrow {
  transition: transform 0.2s;
}
.cta-primary:hover .cta-arrow {
  transform: translateX(4px);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  padding: 15px 28px;
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
}
.cta-secondary:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: white;
}

.landing-note {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.2px;
}

/* Preview card */
.landing-hero-preview {
  position: relative;
  display: flex;
  justify-content: center;
}

.preview-card {
  background: var(--ink-soft);
  border: 1px solid rgba(0, 168, 107, 0.2);
  border-radius: 20px;
  padding: 28px;
  width: 100%;
  max-width: 360px;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 168, 107, 0.1);
  animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.preview-badge.nta {
  background: var(--green);
  color: white;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  display: inline-block;
  line-height: 1.4;
}

.preview-label {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preview-amount {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
  color: var(--green-light);
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.preview-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.preview-deduct {
  color: #ff7070;
}

.preview-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-rate {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}
.preview-save {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green-light);
  cursor: pointer;
}

.preview-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 80px;
  background: radial-gradient(ellipse, rgba(0, 168, 107, 0.3), transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(6px);
    opacity: 0.4;
  }
}

/* ===========================
   SHARED SECTION STYLES
   =========================== */
.lp-section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 88px 32px;
  text-align: center;
}

.lp-section-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.lp-section-label.light {
  color: var(--green-light);
}

.lp-section-title {
  font-family: var(--display);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -1.2px;
  margin-bottom: 16px;
  line-height: 1.08;
}
.lp-section-title.light {
  color: white;
}

.lp-section-sub {
  font-size: 16px;
  color: #777;
  max-width: 520px;
  margin: 0 auto 56px;
  line-height: 1.75;
  font-weight: 400;
}
.lp-section-sub.light {
  color: rgba(255, 255, 255, 0.45);
}

/* ===========================
   HOW IT WORKS
   =========================== */
.how-section {
  background: var(--paper, #f7f8f6);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
  position: relative;
}

/* Remove the awkward floating connector line */
.steps-grid::before {
  display: none;
}

.step-card {
  background: white;
  border: 1.5px solid var(--paper-dim, #e8ebe8);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.step-card:last-child {
  padding-right: 28px;
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 168, 107, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  font-size: 0;
  color: transparent;
}

.step-num::before {
  content: attr(data-n);
  color: var(--green);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.step-icon {
  font-size: 22px;
  margin-bottom: 12px;
  opacity: 0.75;
}

.step-card h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.step-card p {
  font-size: 14px;
  color: #777;
  line-height: 1.75;
}

/* ===========================
   FEATURES
   =========================== */
.features-section {
  background: var(--ink);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  text-align: left;
}

.feature-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 26px 24px;
  transition: all 0.2s;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(0, 168, 107, 0.2);
  transform: translateY(-2px);
}

/* Hero feature spans 2 columns, 2 rows */
.feature-card.feature-hero {
  grid-column: span 2;
  background: rgba(0, 168, 107, 0.07);
  border-color: rgba(0, 168, 107, 0.18);
  padding: 36px 32px;
}
.feature-card.feature-hero:hover {
  background: rgba(0, 168, 107, 0.1);
  border-color: rgba(0, 168, 107, 0.3);
}
.feature-card.feature-hero h3 {
  font-size: 20px;
}
.feature-card.feature-hero p {
  font-size: 14px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
}

.feature-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.feature-hero-tags span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green-light);
  background: rgba(0, 168, 107, 0.12);
  border: 1px solid rgba(0, 168, 107, 0.2);
  padding: 3px 12px;
  border-radius: 20px;
}

.feature-icon {
  font-size: 22px;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.feature-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.75;
}

/* ===========================
   WHO IT'S FOR
   =========================== */
.who-section {
  background: var(--paper, #f7f8f6);
}

.who-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: left;
}

.who-card {
  background: white;
  border: 1.5px solid var(--paper-dim, #e8ebe8);
  border-radius: 20px;
  padding: 28px 24px;
  transition: all 0.25s;
  position: relative;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.who-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 168, 107, 0.2);
}

.who-card.featured {
  border-color: var(--green);
  background: var(--ink);
  box-shadow: 0 8px 32px rgba(0, 168, 107, 0.15);
}
.who-card.featured:hover {
  box-shadow: 0 16px 48px rgba(0, 168, 107, 0.25);
  border-color: var(--green-light);
}

.who-tag {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--green);
  color: white;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.who-emoji {
  font-size: 28px;
  margin-bottom: 12px;
  display: block;
}

.who-card h3 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.who-card.featured h3 {
  color: white;
}

.who-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 16px;
}
.who-card.featured p {
  color: rgba(255, 255, 255, 0.5);
}

.who-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.who-list li {
  font-size: 12px;
  color: #555;
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.who-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
  font-size: 11px;
}
.who-card.featured .who-list li {
  color: rgba(255, 255, 255, 0.5);
}
.who-card.featured .who-list li::before {
  color: var(--green-light);
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 100px 32px;
  text-align: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 80% at 50% 50%,
    rgba(0, 168, 107, 0.12),
    transparent 70%
  );
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green-light);
  border: 1px solid rgba(0, 201, 126, 0.25);
  background: rgba(0, 168, 107, 0.08);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cta-title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: white;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 36px;
  line-height: 1.7;
}

.cta-note {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

.inline-link {
  background: none;
  border: none;
  color: var(--green-light);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-family: var(--sans);
}

/* ===========================
   SECTION DIVIDER
   =========================== */
.section-divider {
  background: var(--paper);
  padding: 48px 32px 0;
}

.divider-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(0, 168, 107, 0.2),
    transparent
  );
}

.divider-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  border: 1.5px solid rgba(0, 168, 107, 0.2);
  padding: 6px 18px;
  border-radius: 20px;
  white-space: nowrap;
  background: white;
}
/* ===========================
   HISTORY CARD — DETAILED v2
   =========================== */
.card-summary-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0;
}

.card-summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-summary-item + .card-summary-item {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  padding-left: 14px;
}

.hcard-deductions {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.hcard-section-label {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.hcard-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.hcard-row:last-child {
  border-bottom: none;
}
.hcard-row.total {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
}
.hcard-row.bold {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}
.hcard-row.muted {
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
}
.hcard-row.green span {
  color: var(--green-light);
}
.hcard-row .red {
  color: #ff7070;
  font-family: var(--mono);
  font-size: 12px;
}
.hcard-row .green {
  color: var(--green-light);
  font-family: var(--mono);
}
.hcard-row .large-val {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
}
.hcard-row .muted-val {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.3);
}

.hcard-regime {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.hcard-regime-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
}

.nta-regime .hcard-regime-header {
  background: rgba(0, 168, 107, 0.12);
  border-bottom: 1px solid rgba(0, 168, 107, 0.15);
}
.pita-regime .hcard-regime-header {
  background: rgba(244, 161, 0, 0.08);
  border-bottom: 1px solid rgba(244, 161, 0, 0.12);
}

.nta-regime .hcard-row,
.pita-regime .hcard-row {
  padding: 7px 14px;
}

.hcard-regime-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--mono);
}

.hcard-diff {
  font-family: var(--mono);
  font-size: 11px;
  padding: 9px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  letter-spacing: 0.2px;
}
.hcard-diff.positive {
  background: rgba(0, 168, 107, 0.1);
  border: 1px solid rgba(0, 168, 107, 0.2);
  color: var(--green-light);
}
.hcard-diff.negative {
  background: rgba(224, 64, 64, 0.08);
  border: 1px solid rgba(224, 64, 64, 0.15);
  color: #ff7070;
}

.card-recalc {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--mono);
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.card-recalc:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.25);
}

.card-pdf {
  background: rgba(0, 168, 107, 0.1);
  border: 1px solid rgba(0, 168, 107, 0.2);
  color: var(--green-light);
  font-family: var(--mono);
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.card-pdf:hover {
  background: rgba(0, 168, 107, 0.2);
  border-color: var(--green);
}

/* Active state handled in nav-link block above */
/* ===========================
   AUTH CLOSE BUTTON
   =========================== */
.auth-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.auth-card-header .auth-logo {
  margin-bottom: 0;
}

.auth-close {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-top: 4px;
}
.auth-close:hover {
  background: rgba(224, 64, 64, 0.15);
  border-color: rgba(224, 64, 64, 0.3);
  color: #ff7070;
}

/* ===========================
   HISTORY — wider grid, card actions wrap
   =========================== */
.history-section .results-grid {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}

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

/* Collapsed state: hide all regime blocks by default, show on expand */
/* Collapsed: hide details, show summary bar always */
.hcard-deductions,
.hcard-regime,
.hcard-diff {
  display: none;
}

/* Summary bar always visible — shows gross/chargeable/rate */
.card-summary-bar {
  display: grid;
}

/* Expanded: show everything */
.history-card.expanded .hcard-deductions {
  display: block;
}
.history-card.expanded .hcard-regime {
  display: block;
}
.history-card.expanded .hcard-diff {
  display: block;
}

/* ===========================
   CARD TOGGLE BUTTON
   =========================== */
.card-toggle {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--mono);
  font-size: 10px;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.card-toggle:hover {
  border-color: var(--green);
  color: var(--green-light);
}

/* =====================================================
   STAGE 3 — PAYROLL MANAGER STYLES
   ===================================================== */

.payroll-section {
  background: var(--ink);
  min-height: 100vh;
  padding: 60px 32px 80px;
}

.payroll-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Header */
.payroll-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.payroll-title {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}

.payroll-sub {
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
}

.payroll-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-payroll-save {
  background: var(--green);
  border: none;
  color: white;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-payroll-save:hover {
  background: #009960;
}
.btn-payroll-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-payroll-xlsx {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--mono);
  font-size: 12px;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-payroll-xlsx:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Meta row */
.payroll-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.payroll-meta-field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.payroll-meta-field input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
}
.payroll-meta-field input:focus {
  border-color: var(--green);
}
.payroll-meta-field input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

/* Add Employee form */
.payroll-add-employee {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 28px;
}

.payroll-section-title {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 16px;
}

.payroll-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.payroll-field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.payroll-field input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-family: var(--sans);
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 7px;
  outline: none;
  transition: border-color 0.2s;
}
.payroll-field input:focus {
  border-color: var(--green);
}
.payroll-field input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.btn-add-employee {
  background: var(--green);
  border: none;
  color: white;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-add-employee:hover {
  background: #009960;
  transform: translateY(-1px);
}

.payroll-add-error {
  font-family: var(--mono);
  font-size: 12px;
  color: #ff7070;
  margin-top: 10px;
}

/* Table */
.payroll-table-wrap {
  margin-bottom: 20px;
  overflow-x: auto;
}

.payroll-empty {
  text-align: center;
  padding: 40px;
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.payroll-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-family: var(--mono);
  min-width: 880px;
}

.payroll-table thead tr {
  background: rgba(255, 255, 255, 0.06);
}

.payroll-table th {
  padding: 10px 12px;
  text-align: right;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}
.payroll-table th:first-child {
  text-align: left;
}

.payroll-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s;
}
.payroll-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.payroll-table td {
  padding: 10px 12px;
  text-align: right;
  color: rgba(255, 255, 255, 0.7);
}

.emp-name-cell {
  text-align: left !important;
  color: white !important;
  font-weight: 600;
  font-size: 13px;
}

.paye-cell {
  color: #ff7070 !important;
  font-weight: 600;
}
.net-cell {
  color: var(--green-light) !important;
  font-weight: 600;
}
.amber-cell {
  color: #f4a100 !important;
  font-weight: 500;
}
.cost-cell {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 600;
}

.emp-remove-btn {
  background: transparent;
  border: 1px solid rgba(224, 64, 64, 0.3);
  color: rgba(255, 100, 100, 0.6);
  width: 26px;
  height: 26px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
.emp-remove-btn:hover {
  background: rgba(224, 64, 64, 0.15);
  color: #ff7070;
}

/* Summary bar */
.payroll-summary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px;
}

.payroll-summary-item {
  padding: 18px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.payroll-summary-item:last-child {
  border-right: none;
}
.payroll-summary-item.highlight {
  background: rgba(0, 168, 107, 0.05);
}

.payroll-summary-label {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.payroll-summary-sub {
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.3px;
  margin-top: 2px;
  line-height: 1.3;
}

.payroll-summary-value {
  font-family: var(--mono);
  font-size: clamp(11px, 1.4vw, 16px);
  font-weight: 700;
  color: white;
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.3;
}
.payroll-summary-value.red {
  color: #ff7070;
}
.payroll-summary-value.green {
  color: var(--green-light);
}
.payroll-summary-value.amber {
  color: #f4a100;
}

/* Saved runs */
.payroll-saved-section {
  margin-top: 20px;
}

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

.payroll-runs-empty {
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.25);
  padding: 20px 0;
}

.payroll-runs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.payroll-run-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 20px;
  transition: all 0.2s;
}
.payroll-run-card:hover {
  border-color: rgba(0, 168, 107, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.prun-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 8px;
}

.prun-name {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: white;
  display: block;
  margin-bottom: 3px;
}

.prun-period {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green-light);
  background: rgba(0, 168, 107, 0.1);
  border: 1px solid rgba(0, 168, 107, 0.2);
  padding: 2px 8px;
  border-radius: 20px;
}

.prun-date {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

.prun-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.prun-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prun-stat-label {
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prun-stat-value {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.3;
}
.prun-stat-value.red {
  color: #ff7070;
}
.prun-stat-value.green {
  color: var(--green-light);
}

.prun-footer {
  display: flex;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
  flex-wrap: wrap;
}

.prun-btn {
  font-family: var(--mono);
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid;
}
.prun-btn.load {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
}
.prun-btn.load:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}
.prun-btn.pdf {
  background: rgba(0, 168, 107, 0.08);
  border-color: rgba(0, 168, 107, 0.2);
  color: var(--green-light);
}
.prun-btn.pdf:hover {
  background: rgba(0, 168, 107, 0.15);
}
.prun-btn.xlsx {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}
.prun-btn.xlsx:hover {
  background: rgba(34, 197, 94, 0.15);
}
.prun-btn.del {
  background: transparent;
  border-color: rgba(224, 64, 64, 0.25);
  color: rgba(255, 100, 100, 0.6);
  margin-left: auto;
}
.prun-btn.del:hover {
  background: rgba(224, 64, 64, 0.1);
  color: #ff7070;
}

/* Responsive */
@media (max-width: 768px) {
  .payroll-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .payroll-meta {
    grid-template-columns: 1fr;
  }
  .payroll-summary {
    grid-template-columns: 1fr 1fr;
  }
  .payroll-summary-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  #userNav.hidden,
#guestNav.hidden {
  display: none !important;
}
}

@media (max-width: 480px) {
  .payroll-section {
    padding: 40px 16px 60px;
  }
  .payroll-form-grid {
    grid-template-columns: 1fr;
  }
  .payroll-summary {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   PAYROLL EXPLAINER
   =========================== */
.payroll-explainer {
  margin-top: 10px;
}

.payroll-what-is {
  display: inline-block;
}

.payroll-what-is summary {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green-light);
  cursor: pointer;
  list-style: none;
  user-select: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.payroll-what-is summary:hover {
  opacity: 1;
}
.payroll-what-is[open] summary {
  opacity: 1;
}

.payroll-explainer-body {
  margin-top: 14px;
  background: rgba(0, 168, 107, 0.05);
  border: 1px solid rgba(0, 168, 107, 0.15);
  border-radius: 10px;
  padding: 18px 20px;
  max-width: 640px;
}

.payroll-explainer-body p {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 10px;
}

.payroll-explainer-body ol {
  padding-left: 18px;
  margin-bottom: 10px;
}

.payroll-explainer-body li {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 6px;
}

.payroll-explainer-body strong {
  color: rgba(255, 255, 255, 0.9);
}

.explainer-note {
  font-family: var(--mono) !important;
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.35) !important;
  margin-bottom: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 10px;
  margin-top: 4px;
}

/* =====================================================
   ROLE SELECTION CARDS
   ===================================================== */
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.role-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  width: 100%;
}
.role-card:hover {
  border-color: rgba(0, 168, 107, 0.4);
  background: rgba(0, 168, 107, 0.06);
}
.role-card.selected {
  border-color: var(--green);
  background: rgba(0, 168, 107, 0.1);
  box-shadow: 0 0 0 1px var(--green);
}

.role-icon {
  font-size: 16px;
  margin-bottom: 2px;
}

.role-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: white;
  line-height: 1.3;
}

.role-desc {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.3;
}

.role-card.selected .role-desc {
  color: rgba(255, 255, 255, 0.55);
}

/* =====================================================
   MOBILE NAV — HAMBURGER
   ===================================================== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 200;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  transition: all 0.25s;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =====================================================
   MOBILE RESPONSIVE — GLOBAL
   ===================================================== */
@media (max-width: 768px) {
  /* --- HEADER NAV --- */
  .hamburger {
    display: flex;
  }

  .header-nav,
  #userNav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #0d1210;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: column;
    padding: 16px 20px 20px;
    gap: 4px;
    z-index: 150;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  }
  .header-nav.mobile-open,
  #userNav.mobile-open {
    display: flex !important;
  }
  /* Always show the nav containers (visibility controlled by mobile-open) */
  .header-nav:not(.mobile-open),
  #userNav:not(.mobile-open) {
    display: none !important;
  }
  /* When logged in, userNav hidden class still hides it */
  #userNav.hidden {
    display: none !important;
  }

  .header-nav .nav-link,
  #userNav .nav-link,
  #userNav .biz-dropdown-trigger {
    padding: 12px 8px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: block;
    width: 100%;
    background: none;
  }

  /* Flatten business dropdown on mobile */
  .biz-dropdown {
    position: static;
    width: 100%;
  }
  .biz-dropdown-trigger {
    display: none !important;
  } /* hide trigger, show items directly */
  .biz-chevron {
    display: none;
  }
  .biz-dropdown-menu {
    display: block !important;
    position: static;
    transform: none;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    min-width: unset;
    animation: none;
  }
  .biz-dropdown-item {
    padding: 12px 4px 12px 16px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .biz-item-sub {
    display: none;
  }
  .biz-dropdown-divider {
    display: none !important;
  }

  .header-nav .nav-btn {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    text-align: center;
  }

  .user-info {
    padding: 12px 4px 4px;
  }
  .user-email {
    font-size: 12px;
  }

  .logout-btn {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    text-align: center;
  }

  /* --- CALCULATOR LAYOUT --- */
  .calc-container {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }

  .calc-inputs {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 24px;
  }

  .calc-results {
    padding-top: 24px;
  }

  .calculator-wrap {
    padding: 24px 16px 48px !important;
  }

  .hero {
    padding: 40px 20px 48px !important;
  }
  .hero-title {
    font-size: clamp(32px, 8vw, 56px) !important;
  }

  /* --- RESULT SUMMARY --- */
  .result-summary {
    grid-template-columns: 1fr 1fr !important;
  }

  /* --- HISTORY CARDS --- */
  .history-section {
    padding: 40px 16px 60px !important;
  }
  .history-section .results-grid {
    max-width: 100% !important;
  }

  /* --- PAYROLL --- */
  .payroll-section {
    padding: 40px 16px 60px;
  }
  .payroll-header {
    flex-direction: column;
    gap: 12px;
  }
  .payroll-header-actions {
    width: 100%;
  }
  .payroll-header-actions button {
    flex: 1;
  }
  .payroll-meta {
    grid-template-columns: 1fr;
  }
  .payroll-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .payroll-summary {
    grid-template-columns: 1fr 1fr;
    border-radius: 10px;
  }
  .payroll-summary-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .payroll-summary-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
  }
  .payroll-runs-grid {
    grid-template-columns: 1fr;
  }

  /* Payroll table → card layout on mobile */
  .payroll-table thead {
    display: none;
  }
  .payroll-table,
  .payroll-table tbody,
  .payroll-table tr,
  .payroll-table td {
    display: block;
    width: 100%;
  }

  .payroll-table tr {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 12px 14px;
    position: relative;
  }

  .payroll-table td {
    text-align: left !important;
    padding: 4px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: space-between;
    border: none;
  }

  .payroll-table td::before {
    content: attr(data-label);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--mono);
  }

  .emp-name-cell {
    font-size: 14px !important;
    font-weight: 700;
    padding-bottom: 8px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    margin-bottom: 4px;
    display: block !important;
  }
  .emp-name-cell::before {
    display: none;
  }

  td:last-child {
    justify-content: flex-end;
    padding-top: 8px;
  }

  /* Role cards */
  .role-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Auth card wider on tablet */
  .auth-card {
    max-width: 95vw;
  }
}

@media (max-width: 480px) {
  .payroll-form-grid {
    grid-template-columns: 1fr;
  }
  .role-grid {
    grid-template-columns: 1fr;
  }
  .result-summary {
    grid-template-columns: 1fr !important;
  }
  .payroll-summary {
    grid-template-columns: 1fr;
  }
  .payroll-summary-item {
    border-right: none !important;
  }
  .prun-stats {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: clamp(28px, 9vw, 44px) !important;
  }
  .landing-title {
    font-size: clamp(32px, 9vw, 52px) !important;
    letter-spacing: -1.2px !important;
  }
  .landing-hero-inner {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
  }
  .landing-sub {
    font-size: 15px !important;
    max-width: 100% !important;
  }
  .landing-hero-preview {
    display: none;
  }

  .who-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .feature-card.feature-hero {
    grid-column: span 2 !important;
  }
  .steps-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* ===========================
   USER NAV — DELETE ACCOUNT
   =========================== */
.user-menu-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.delete-account-btn {
  background: transparent;
  border: 1px solid rgba(224, 64, 64, 0.2);
  color: rgba(255, 100, 100, 0.4);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.delete-account-btn:hover {
  background: rgba(224, 64, 64, 0.1);
  border-color: rgba(224, 64, 64, 0.4);
  color: #ff7070;
}

@media (max-width: 768px) {
  .user-menu-wrap {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .delete-account-btn {
    width: 100%;
    height: 40px;
  }
}
/* =====================================================
   LANDING DEMO CALCULATOR
   ===================================================== */
.demo-section {
  background: var(--ink);
  padding: 80px 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.demo-inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

/* demo input styles consolidated below */

/* Results panel */
/* demo-results defined below in demo card section */

.demo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  gap: 10px;
  color: rgba(255, 255, 255, 0.2);
}

.demo-empty-icon {
  font-size: 32px;
  opacity: 0.3;
}

.demo-empty p {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
}

.demo-output {
  width: 100%;
}

.demo-net-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-net-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.35);
}

.demo-net-value {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  color: var(--green-light);
  line-height: 1.1;
}

.demo-rate {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.demo-breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.demo-brow {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  padding: 3px 0;
}

.demo-brow.deduct span:last-child {
  color: rgba(255, 100, 100, 0.7);
}
.demo-brow.highlight-red span:last-child {
  color: #ff7070;
  font-weight: 600;
}
.demo-brow.net {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 8px;
  margin-top: 4px;
  color: white;
  font-weight: 600;
}
.demo-brow.net span:last-child {
  color: var(--green-light);
}

.demo-cta-nudge {
  background: rgba(0, 168, 107, 0.07);
  border: 1px solid rgba(0, 168, 107, 0.15);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-cta-nudge p {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
}

.demo-register-btn {
  background: var(--green);
  border: none;
  color: white;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.demo-register-btn:hover {
  background: #009960;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .demo-section {
    padding: 48px 20px;
  }
  .demo-calculator {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }
  .demo-results {
    min-height: 200px;
  }
}

/* =====================================================
   LANDING PAGE — INTERACTIVE DEMO CARD
   ===================================================== */
.demo-card {
  background: rgba(10, 15, 13, 0.85);
  border: 1px solid rgba(0, 168, 107, 0.25);
  box-shadow:
    0 0 0 1px rgba(0, 168, 107, 0.1),
    0 24px 64px rgba(0, 0, 0, 0.5);
}

.demo-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.demo-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.demo-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

.demo-live-label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--green-light);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.demo-hint {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
  white-space: nowrap;
}

.demo-input-row {
  margin-bottom: 10px;
}

.demo-input-row label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.demo-input-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
  height: 44px;
}
.demo-input-wrap:focus-within {
  border-color: var(--green);
  background: rgba(255, 255, 255, 0.08);
}

.demo-currency {
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--green-light);
  background: rgba(0, 168, 107, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.demo-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-family: var(--mono);
  font-size: 14px;
  padding: 0 14px;
  height: 100%;
  min-width: 0;
}
.demo-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
  font-size: 13px;
}
.demo-input::-webkit-outer-spin-button,
.demo-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.demo-input[type="number"] {
  -moz-appearance: textfield;
}

.demo-results {
  margin: 14px 0 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.demo-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.demo-result-row:last-child {
  border-bottom: none;
}

.demo-paye-row {
  color: rgba(255, 255, 255, 0.45);
}

.demo-net-row {
  background: rgba(0, 168, 107, 0.08);
  border-radius: 6px;
  padding: 8px 10px;
  margin: 4px -4px;
  color: rgba(255, 255, 255, 0.85) !important;
  border-bottom: none !important;
  border: 1px solid rgba(0, 168, 107, 0.15);
}

.demo-val {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  flex-shrink: 0;
  text-align: right;
  margin-left: 12px;
  font-variant-numeric: tabular-nums;
}
.demo-val.demo-red {
  color: #ff7070;
}
.demo-val.demo-green {
  color: var(--green-light);
  font-size: 13px;
}

.demo-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.demo-cta-text {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.5;
  max-width: 160px;
}

.demo-cta-btn {
  background: var(--green);
  border: none;
  color: white;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}
.demo-cta-btn:hover {
  background: #009960;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .demo-card {
    display: none;
  }
}

/* ===========================
   GLOBAL NUMBER OVERFLOW FIX
   Applied to all monetary value displays
   =========================== */
.card-summary-bar .csb-val,
.hcard-regime .hcr-val,
.hcard-deductions .hcd-val,
.hcard-diff,
.summary-value,
.net-amount,
.paye-amount {
  word-break: break-all;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* Role badge in nav */
.user-info-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.user-role-badge {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  width: fit-content;
}

.user-role-badge[data-role="employee"] {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.4);
}
.user-role-badge[data-role="hr_manager"] {
  background: rgba(0, 168, 107, 0.15);
  color: var(--green-light);
}
.user-role-badge[data-role="business_owner"] {
  background: rgba(244, 161, 0, 0.15);
  color: #f4c842;
}
.user-role-badge[data-role="tax_consultant"] {
  background: rgba(100, 149, 237, 0.15);
  color: #8bb4f5;
}

@media (max-width: 768px) {
  .user-info-text {
    display: none;
  }
}

/* ===========================
   PAYROLL — PERSONAL TAX NUDGE
   =========================== */
.payroll-personal-nudge {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 6px;
}

.nudge-link {
  background: none;
  border: none;
  color: var(--green-light);
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}
.nudge-link:hover {
  opacity: 0.7;
}
/* ===========================
   PAYROLL ROW EDIT BUTTON
   =========================== */
.emp-actions-cell {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  align-items: center;
}

.emp-edit-btn {
  background: transparent;
  border: 1px solid rgba(0, 168, 107, 0.25);
  color: rgba(0, 200, 130, 0.6);
  width: 26px;
  height: 26px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.emp-edit-btn:hover {
  background: rgba(0, 168, 107, 0.15);
  color: var(--green-light);
  border-color: rgba(0, 168, 107, 0.5);
}

/* Flash highlight when form is in edit mode */
.payroll-add-employee.editing-highlight {
  border-color: rgba(0, 168, 107, 0.5) !important;
  background: rgba(0, 168, 107, 0.06) !important;
  transition: all 0.3s;
}
/* ==============================================
   LIGHT MODE — full theme override
   ============================================== */

/* Smooth transition — only on body and major containers */

/* Logo and badge */

/* Guest nav links (How it works / Features / Who it's for) */

/* Guest nav buttons (Sign In / Get Started Free) */
/* filled (Get Started Free) stays green — already visible */

/* Logged-in nav links */

/* User info area */

/* Sign Out button */

/* Delete account icon */

/* Hamburger menu bars */

/* ---- Results ---- */ /* keep dark — it's a dark stat bar */

/* ---- Payroll ---- */ /* keep dark */

/* ---- Landing page — light mode overrides ---- */

/* HOW IT WORKS — already light bg, just ensure cards pop */

/* WHO IT'S FOR — already light bg */
/* The featured (dark) who-card — keep it dark, it's a design accent */

/* HERO — intentionally stays dark, it's the brand section */
/* But fix the demo card and secondary CTA button contrast */

/* FEATURES SECTION — stays dark (intentional brand dark strip) */
/* Already readable — no changes needed */

/* CTA SECTION — stays dark (intentional brand dark strip) */
/* Already readable — no changes needed */

/* SECTION DIVIDER */

/* FOOTER */

/* ---- Payroll section — additional light mode fixes ---- */
/* The payroll form uses rgba(255,255,255,...) colors that go invisible on white */

/* Meta fields (Payroll Run Name / Pay Period) */

/* Add employee form */

/* Export / xlsx button */

/* Payroll empty state */

/* Table */

/* Payroll explainer */

/* Saved runs empty */

/* ---- Exemption banner — light mode ---- */

/* ---- Payroll amber cells — light mode ---- */

/* ==============================================
   TOOLTIP SYSTEM — icon only, bubble via JS
   ============================================== */
.tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 168, 107, 0.25);
  border: 1px solid rgba(0, 168, 107, 0.5);
  color: var(--green-light);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  flex-shrink: 0;
  position: relative;
  vertical-align: middle;
  margin-left: 5px;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
  line-height: 1;
}
.tip:hover {
  background: var(--green);
  color: white;
}

/* Light mode */

/* JS-created floating bubble — appended to <body>, never clipped */
#tipBubble {
  position: fixed;
  z-index: 99999;
  background: #0a0f0d;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  width: 230px;
  padding: 10px 13px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: normal;
  text-transform: none;
  letter-spacing: 0;
}
#tipBubble.visible {
  opacity: 1;
}

/* Caret */
#tipBubble::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  pointer-events: none;
}
#tipBubble.above::after {
  top: 100%;
  border-top-color: #0a0f0d;
}
#tipBubble.below::after {
  bottom: 100%;
  border-bottom-color: #0a0f0d;
}

/* =====================================================
   STAGE 5 — PAYE BAND FORMULA (step-by-step header)
   ===================================================== */
.band-formula {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  background: rgba(0, 168, 107, 0.06);
  border: 1px solid rgba(0, 168, 107, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
.band-formula-step {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--green-light);
  background: rgba(0, 168, 107, 0.12);
  padding: 3px 9px;
  border-radius: 20px;
}
.band-formula-arrow {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
}
.band-active td {
  color: rgba(255, 255, 255, 0.85);
}
.band-zero td {
  color: rgba(255, 255, 255, 0.25);
}
.band-total-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-align: right;
  padding-right: 12px;
}
.bands-table tfoot td.band-tax {
  font-size: 14px;
  font-weight: 800;
  color: #ff7070;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
@media (max-width: 500px) {
  .band-formula {
    flex-direction: column;
    align-items: flex-start;
  }
  .band-formula-arrow {
    display: none;
  }
}

/* =====================================================
   CIT / BUSINESS TAX SECTION
   ===================================================== */
.cit-section {
  min-height: 100vh;
  background: var(--paper);
  padding: 48px 0 80px;
}
.cit-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.cit-page-header {
  margin-bottom: 32px;
}
.cit-title {
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cit-nta-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--green);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}
.cit-sub {
  color: rgba(10, 15, 13, 0.45);
  font-size: 15px;
  margin-top: 6px;
}
.cit-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 48px;
}
.cit-input-card {
  background: #fff;
  border: 1px solid rgba(0, 168, 107, 0.14);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.cit-card-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(10, 15, 13, 0.35);
  margin-bottom: 22px;
}
.cit-field {
  margin-bottom: 18px;
}
.cit-field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: rgba(10, 15, 13, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 7px;
}
.cit-num-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--paper-dim);
  border-radius: 10px;
  overflow: hidden;
  height: 44px;
  transition: border-color 0.2s;
  background: var(--paper);
}
.cit-num-wrap:focus-within {
  border-color: var(--green);
  background: #fff;
}
.cit-prefix {
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  background: rgba(0, 168, 107, 0.06);
  border-right: 1.5px solid var(--paper-dim);
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.cit-num-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  padding: 0 14px;
  height: 100%;
  min-width: 0;
}
.cit-num-wrap input::placeholder {
  color: rgba(10, 15, 13, 0.2);
}
.cit-year-input {
  width: 100%;
  border: 1.5px solid var(--paper-dim);
  border-radius: 10px;
  padding: 0 14px;
  height: 44px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  outline: none;
  transition: border-color 0.2s;
}
.cit-year-input:focus {
  border-color: var(--green);
  background: #fff;
}
.cit-hint {
  display: block;
  font-size: 11px;
  color: rgba(10, 15, 13, 0.35);
  margin-top: 5px;
}
.cit-tier-guide {
  border-top: 1px solid var(--paper-dim);
  padding-top: 16px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.cit-tg-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: rgba(10, 15, 13, 0.55);
  line-height: 1.5;
}
.cit-tg-badge {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.cit-tg-row.small .cit-tg-badge {
  background: rgba(0, 168, 107, 0.1);
  color: var(--green);
}
.cit-tg-row.medium .cit-tg-badge {
  background: rgba(244, 161, 0, 0.12);
  color: #b87800;
}
.cit-tg-row.large .cit-tg-badge {
  background: rgba(224, 64, 64, 0.1);
  color: var(--red);
}
.cit-results-card {
  background: var(--ink-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-height: 280px;
  position: sticky;
  top: 76px;
}
.cit-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 240px;
  text-align: center;
}
.cit-empty-icon {
  font-size: 38px;
  opacity: 0.35;
}
.cit-empty-state p {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.28);
  line-height: 1.7;
  max-width: 220px;
}
.cit-tier-result {
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
}
.cit-tier-result.small {
  background: rgba(0, 168, 107, 0.12);
  border: 1px solid rgba(0, 168, 107, 0.2);
}
.cit-tier-result.medium {
  background: rgba(244, 161, 0, 0.1);
  border: 1px solid rgba(244, 161, 0, 0.2);
}
.cit-tier-result.large {
  background: rgba(224, 64, 64, 0.1);
  border: 1px solid rgba(224, 64, 64, 0.2);
}
.cit-tier-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  display: block;
  margin-bottom: 4px;
}
.cit-tier-result.small .cit-tier-label {
  color: var(--green-light);
}
.cit-tier-result.medium .cit-tier-label {
  color: #f4c040;
}
.cit-tier-result.large .cit-tier-label {
  color: #ff7070;
}
.cit-tier-result p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
  margin: 0;
}
.cit-result-group {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
}
.cit-result-group.primary {
  border-color: rgba(0, 168, 107, 0.18);
  background: rgba(0, 168, 107, 0.04);
}
.cit-rrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.cit-rrow:last-child {
  border-bottom: none;
}
.cit-rrow.total {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  margin-top: 4px;
  border-bottom: none;
  font-family: var(--mono);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.crv {
  font-family: var(--mono);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}
.crv.red {
  color: #ff7070;
}
.crv.green {
  color: var(--green-light);
}
.crv.amber {
  color: #f4c040;
}
.crv.bold {
  font-size: 15px;
}
.cit-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.cit-action-btn {
  flex: 1;
  height: 40px;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.cit-action-btn.save {
  background: var(--green);
  color: #fff;
}
.cit-action-btn.save:hover {
  background: var(--green-light);
}
.cit-action-btn.pdf {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cit-action-btn.pdf:hover {
  background: rgba(255, 255, 255, 0.12);
}
.cit-action-btn.excel {
  background: #1a6b3a;
  color: #fff;
  border: 1px solid rgba(0, 168, 107, 0.4);
}
.cit-action-btn.excel:hover {
  background: #228a4a;
}
.cit-hist-section {
  border-top: 1px solid var(--paper-dim);
  padding-top: 32px;
}
.cit-hist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.cit-hist-title {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(10, 15, 13, 0.35);
}
.cit-hist-empty {
  text-align: center;
  padding: 32px;
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(10, 15, 13, 0.3);
}
.cit-hist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}
.cit-hcard {
  background: #fff;
  border: 1px solid var(--paper-dim);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.cit-hcard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.cit-hcard-co {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.cit-hcard-date {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(10, 15, 13, 0.3);
}
.cit-tier-pill {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 12px;
}
.cit-tier-pill.small {
  background: rgba(0, 168, 107, 0.1);
  color: var(--green);
}
.cit-tier-pill.medium {
  background: rgba(244, 161, 0, 0.12);
  color: #b87800;
}
.cit-tier-pill.large {
  background: rgba(224, 64, 64, 0.1);
  color: var(--red);
}
.cit-hcard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.cit-hc-lbl {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  color: rgba(10, 15, 13, 0.35);
  display: block;
  margin-bottom: 2px;
}
.cit-hc-val {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.cit-hc-val.red {
  color: var(--red);
}
.cit-hc-val.green {
  color: var(--green);
}
.cit-hcard-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--paper-dim);
  padding-top: 10px;
}
.cit-card-toggle {
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: rgba(0, 0, 0, 0.45);
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.cit-card-toggle:hover {
  border-color: var(--green);
  color: var(--green);
}

/* =====================================================
   PAYROLL REMITTANCE GUIDE
   ===================================================== */
.remit-guide {
  margin-top: 40px;
  border: 1px solid rgba(0, 168, 107, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}
.remit-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  transition: background 0.2s;
}
.remit-toggle:hover {
  background: rgba(0, 168, 107, 0.03);
}
.remit-chevron {
  color: var(--green);
  font-size: 11px;
}
.remit-body {
  padding: 0 22px 24px;
}
.remit-body.hidden {
  display: none;
}
.remit-intro {
  font-size: 13px;
  color: rgba(10, 15, 13, 0.55);
  line-height: 1.6;
  margin-bottom: 20px;
  padding-top: 4px;
}
.remit-intro strong {
  color: var(--ink);
}
.remit-deadlines {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.remit-dl-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--paper-dim);
  border-radius: 10px;
  padding: 12px 14px;
}
.remit-dl-item > span:first-child {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}
.remit-dl-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.remit-dl-item strong {
  font-size: 12px;
  color: var(--ink);
  font-weight: 700;
}
.remit-dl-item span:last-child {
  font-size: 11px;
  color: rgba(10, 15, 13, 0.45);
}
.remit-search {
  width: 100%;
  max-width: 300px;
  border: 1.5px solid var(--paper-dim);
  border-radius: 10px;
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  background: var(--paper);
  margin-bottom: 14px;
  display: block;
}
.remit-search:focus {
  border-color: var(--green);
}
.remit-search::placeholder {
  color: rgba(10, 15, 13, 0.3);
}
.remit-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 10px;
}
.remit-state-card {
  background: var(--paper);
  border: 1px solid var(--paper-dim);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.2s;
}
.remit-state-card:hover {
  border-color: rgba(0, 168, 107, 0.3);
}
.remit-state-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.remit-state-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}
.remit-state-abbr {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  background: rgba(0, 168, 107, 0.1);
  color: var(--green);
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.4px;
}
.remit-state-irs {
  font-size: 11px;
  color: rgba(10, 15, 13, 0.4);
  margin-bottom: 7px;
  line-height: 1.4;
}
.remit-state-link {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
}
.remit-state-link:hover {
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 860px) {
  .cit-layout {
    grid-template-columns: 1fr;
  }
  .cit-results-card {
    position: static;
  }
}
@media (max-width: 600px) {
  .remit-deadlines,
  .remit-state-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cit-btn-row {
    flex-direction: column;
  }
}
@media (max-width: 400px) {
  .remit-state-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   YTD TRACKER SECTION
   ===================================================== */
.ytd-section {
  min-height: 100vh;
  background: var(--paper);
  padding: 48px 0 80px;
}
.ytd-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.ytd-page-header {
  margin-bottom: 32px;
}
.ytd-title {
  font-family: var(--display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ytd-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--green);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}
.ytd-sub {
  color: rgba(10, 15, 13, 0.45);
  font-size: 15px;
  margin-top: 6px;
}

.ytd-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}

/* --- Inputs card --- */
.ytd-card {
  background: #fff;
  border: 1px solid rgba(0, 168, 107, 0.14);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.ytd-card-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(10, 15, 13, 0.35);
  margin-bottom: 18px;
}
.ytd-field {
  margin-bottom: 16px;
}
.ytd-field label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: rgba(10, 15, 13, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 7px;
}
.ytd-hint-inline {
  font-weight: 400;
  font-family: var(--sans);
  text-transform: none;
  color: rgba(10, 15, 13, 0.35);
  font-size: 11px;
}
.ytd-num-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--paper-dim);
  border-radius: 10px;
  overflow: hidden;
  height: 44px;
  transition: border-color 0.2s;
  background: var(--paper);
}
.ytd-num-wrap:focus-within {
  border-color: var(--green);
  background: #fff;
}
.ytd-prefix {
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  background: rgba(0, 168, 107, 0.06);
  border-right: 1.5px solid var(--paper-dim);
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.ytd-num-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  padding: 0 14px;
  min-width: 0;
}
.ytd-num-wrap input::placeholder {
  color: rgba(10, 15, 13, 0.2);
}
.ytd-divider {
  border-top: 1px solid var(--paper-dim);
  margin: 20px 0;
}

.ytd-months-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.ytd-month-field {
  flex: 1;
  min-width: 120px;
}
.ytd-month-picker {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--paper-dim);
  border-radius: 10px;
  overflow: hidden;
  height: 44px;
  background: var(--paper);
}
.ytd-month-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(0, 168, 107, 0.06);
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.ytd-month-btn:hover {
  background: rgba(0, 168, 107, 0.12);
}
.ytd-month-val {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}
.ytd-hint-block {
  display: block;
  font-size: 11px;
  color: rgba(10, 15, 13, 0.35);
  margin-top: 5px;
  font-family: var(--mono);
}
.ytd-month-auto {
  display: flex;
  align-items: flex-end;
  padding-bottom: 2px;
}
.ytd-auto-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1.5px solid rgba(0, 168, 107, 0.25);
  background: transparent;
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.ytd-auto-btn:hover {
  background: rgba(0, 168, 107, 0.06);
}

/* --- Results column --- */
.ytd-empty-card {
  background: var(--ink-soft);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  min-height: 280px;
}
.ytd-empty-icon {
  font-size: 38px;
  opacity: 0.35;
}
.ytd-empty-card p {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.28);
  line-height: 1.7;
  max-width: 220px;
}

.ytd-output {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Progress bar */
.ytd-progress-card {
  background: var(--ink-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.ytd-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.ytd-progress-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.ytd-progress-pct {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--green-light);
}
.ytd-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}
.ytd-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  border-radius: 99px;
  transition: width 0.4s ease;
}
.ytd-progress-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 8px;
  font-family: var(--mono);
}

/* Data blocks */
.ytd-block {
  background: var(--ink-soft);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.ytd-block.accent {
  border: 1px solid rgba(0, 168, 107, 0.2);
  background: rgba(0, 168, 107, 0.05);
}
.ytd-block-title {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 12px;
}
.ytd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.ytd-row:last-child {
  border-bottom: none;
}
.ytd-row.total {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  margin-top: 4px;
  border-bottom: none;
}
.ytd-val {
  font-family: var(--mono);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}
.ytd-val.red {
  color: #ff7070;
}
.ytd-val.green {
  color: var(--green-light);
}
.ytd-val.amber {
  color: #f4c040;
}
.ytd-val.dim {
  color: rgba(255, 255, 255, 0.4);
}
.ytd-val.bold {
  font-size: 15px;
}

/* Exempt banner */
.ytd-exempt-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(0, 168, 107, 0.08);
  border: 1px solid rgba(0, 168, 107, 0.2);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.ytd-exempt-banner span:first-child {
  font-size: 18px;
  color: var(--green-light);
  flex-shrink: 0;
}
.ytd-exempt-banner strong {
  font-size: 13px;
  color: var(--green-light);
  display: block;
  margin-bottom: 4px;
}
.ytd-exempt-banner p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 800px) {
  .ytd-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .ytd-months-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =====================================================
   US-014 — CLIENT NAME FIELD
   ===================================================== */
.client-name-field {
  margin: 16px 0 0;
  padding: 14px 16px;
  background: rgba(0, 168, 107, 0.04);
  border: 1.5px solid rgba(0, 168, 107, 0.18);
  border-radius: 10px;
}
.client-name-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(10, 15, 13, 0.5);
  margin-bottom: 8px;
}
.client-name-hint {
  font-weight: 400;
  font-family: var(--sans);
  text-transform: none;
  font-size: 10px;
  color: rgba(10, 15, 13, 0.35);
  letter-spacing: 0;
}
.client-name-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--paper-dim);
  border-radius: 8px;
  padding: 9px 13px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.client-name-input:focus {
  border-color: var(--green);
  background: #ffffff;
}
.client-name-input::placeholder {
  color: rgba(10, 15, 13, 0.3);
}

/* light mode */

/* =====================================================
   US-014 — BAND DERIVATION (step-by-step workings)
   ===================================================== */
.band-derivation {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 12px;
}
.deriv-title {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 10px;
}
.deriv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  gap: 8px;
}
.deriv-row:last-child {
  border-bottom: none;
}
.deriv-row span:last-child {
  font-family: var(--mono);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
.deriv-row.gross span:last-child {
  color: rgba(255, 255, 255, 0.8);
}
.deriv-row.deduct span:last-child {
  color: rgba(255, 112, 112, 0.75);
}
.deriv-row.relief span:last-child {
  color: var(--green-light);
}
.deriv-row.chargeable {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 8px;
  margin-top: 4px;
  font-weight: 700;
}
.deriv-row.chargeable span:first-child {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}
.deriv-row.chargeable span:last-child {
  color: var(--green-light);
  font-size: 13px;
}
.deriv-row.monthly-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  border-top: none;
  padding-top: 2px;
}
.deriv-row.monthly-note span:last-child {
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
}
.deriv-tag {
  font-family: var(--mono);
  font-size: 9px;
  background: rgba(0, 168, 107, 0.15);
  color: var(--green-light);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-left: 4px;
}

.band-table-title {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 8px;
}

/* Band table upgrades — 5-column layout */
.bands-table th:nth-child(3),
.bands-table td:nth-child(3),
.bands-table th:nth-child(4),
.bands-table td:nth-child(4) {
  text-align: right;
}

.band-label-cell {
  width: 35%;
}
.band-nil {
  color: rgba(255, 255, 255, 0.18);
  font-size: 11px;
}
.band-mo-label {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  margin-left: 2px;
}
.band-total-amt {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-align: right;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.bands-table tfoot td.band-tax.bold {
  font-size: 14px;
  font-weight: 800;
}

/* light mode derivation */

/* =====================================================
   ROLE CONTEXT BANNER
   ===================================================== */
.role-context-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 32px;
  border-bottom: 1px solid rgba(0, 168, 107, 0.15);
  position: sticky;
  top: 60px;
  z-index: 9;
  /* Solid dark base — always readable regardless of page background */
  background: #0f1a14;
}

/* Left accent stripe per role */
.role-context-banner[data-role="employee"] {
  border-left: 3px solid rgba(255, 255, 255, 0.2);
}
.role-context-banner[data-role="hr_manager"] {
  border-left: 3px solid var(--green);
}
.role-context-banner[data-role="business_owner"] {
  border-left: 3px solid #f4a100;
}
.role-context-banner[data-role="tax_consultant"] {
  border-left: 3px solid #6495ed;
}

.rcb-icon {
  font-size: 15px;
  flex-shrink: 0;
  line-height: 1;
}

.rcb-text {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.rcb-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
/* Role-coloured title — always on dark bg so these are safe */
.role-context-banner[data-role="employee"] .rcb-title {
  color: rgba(255, 255, 255, 0.7);
}
.role-context-banner[data-role="hr_manager"] .rcb-title {
  color: var(--green-light);
}
.role-context-banner[data-role="business_owner"] .rcb-title {
  color: #f4c842;
}
.role-context-banner[data-role="tax_consultant"] .rcb-title {
  color: #8bb4f5;
}

.rcb-sub {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.38);
}

@media (max-width: 640px) {
  .role-context-banner {
    padding: 8px 16px;
    top: 56px;
  }
  .rcb-sub {
    display: none;
  }
}

/* =====================================================
   HISTORY CARD — prepared by line (accountant/HR)
   ===================================================== */
.card-prepared-by {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.28);
  padding: 0 0 8px 0;
  margin-top: -4px;
}
/* =====================================================
   US-017 — CLIENT PROFILES
   ===================================================== */
.client-form-wrap {
  margin-bottom: 28px;
}
.client-form-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}
.client-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
}
.client-form-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s;
}
.client-form-close:hover {
  color: #ffffff;
}

.client-form-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cf-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cf-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cf-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--mono);
}
.cf-required {
  color: #ff7070;
}
.cf-hint {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.3);
  text-transform: none;
  letter-spacing: 0;
}
.cf-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  color: #ffffff;
  font-size: 14px;
  font-family: var(--mono);
  outline: none;
  transition: border-color 0.15s;
  -webkit-text-fill-color: #ffffff;
}
.cf-input:focus {
  border-color: var(--green);
}
.cf-input::placeholder {
  color: rgba(255, 255, 255, 0.2);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.2);
}
.cf-input::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.2);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.2);
}
.cf-input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.2);
  opacity: 1;
}
.cf-input:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.cp-preview {
  background: rgba(0, 168, 107, 0.07);
  border: 1px solid rgba(0, 168, 107, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cp-preview-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-family: var(--mono);
  color: rgba(255, 255, 255, 0.5);
}
.cp-preview-val {
  font-weight: 700;
}
.cp-preview-val.green {
  color: var(--green-light);
}
.cp-preview-val.red {
  color: #ff7070;
}

.cf-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 4px;
}
.btn-primary {
  background: var(--green);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover {
  background: #008f5a;
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Profiles grid */
.client-profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.cp-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s;
}
.cp-card:hover {
  border-color: rgba(0, 168, 107, 0.3);
}

.cp-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 12px;
}
.cp-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cp-card-info {
  flex: 1;
  min-width: 0;
}
.cp-card-name {
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-card-notes {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--mono);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-card-date {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  font-family: var(--mono);
  margin-top: 4px;
}

.cp-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cp-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.cp-stat:nth-child(2n) {
  border-right: none;
}
.cp-stat-label {
  font-size: 9px;
  font-family: var(--mono);
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cp-stat-val {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--mono);
}
.cp-stat-val.green {
  color: var(--green-light);
}
.cp-stat-val.red {
  color: #ff7070;
}

.cp-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
}
.cp-btn-calc {
  flex: 1;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.cp-btn-calc:hover {
  background: #008f5a;
}
.cp-btn-edit {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.cp-btn-edit:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.cp-btn-delete {
  background: none;
  color: rgba(255, 80, 80, 0.5);
  border: 1px solid rgba(255, 80, 80, 0.15);
  border-radius: 7px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.cp-btn-delete:hover {
  background: rgba(255, 80, 80, 0.08);
  color: #ff7070;
  border-color: rgba(255, 80, 80, 0.3);
}

@media (max-width: 600px) {
  .cf-two {
    grid-template-columns: 1fr;
  }
  .client-profiles-grid {
    grid-template-columns: 1fr;
  }
}

.cf-input:-webkit-autofill,
.cf-input:-webkit-autofill:hover,
.cf-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0px 1000px rgba(30, 40, 35, 1) inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* =====================================================
   US-018 — HISTORY SEARCH & EXCEL EXPORT
   ===================================================== */
.history-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-excel {
  background: #1a6b3a;
  color: #ffffff;
  border: 1px solid rgba(0, 168, 107, 0.4);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--mono);
  transition: background 0.15s;
}
.btn-excel:hover {
  background: #145c2f;
}

.history-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.history-search-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 11px 16px;
  color: #ffffff;
  font-size: 14px;
  font-family: var(--mono);
  outline: none;
  transition: border-color 0.15s;
  -webkit-text-fill-color: #ffffff;
}
.history-search-input:focus {
  border-color: var(--green);
}
.history-search-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
  -webkit-text-fill-color: rgba(255, 255, 255, 0.25);
}
.history-search-count {
  font-size: 11px;
  font-family: var(--mono);
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

/* US-021 — Development Levy note */
.cit-levy-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--mono);
  background: rgba(244, 161, 0, 0.07);
  border-left: 2px solid rgba(244, 161, 0, 0.4);
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  margin: 4px 0 8px;
  line-height: 1.6;
}
.cit-levy-note strong {
  color: rgba(244, 161, 0, 0.9);
}

/* US-022/023 — CIT history expandable detail */
.cit-hcard-detail {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  margin-top: 8px;
  padding-top: 8px;
}
.cit-hcard-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-family: var(--mono);
  color: rgba(0, 0, 0, 0.5);
  padding: 4px 0;
}

/* =====================================================
   BUSINESS TAX SUMMARY — US-022 / US-023
   ===================================================== */

/* Live summary section wrapper */
.bts-live-section {
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 0;
}
.bts-live-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

/* Notice / prompt */
.bts-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}
.bts-notice strong {
  color: rgba(255, 255, 255, 0.85);
}
.bts-notice-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Banner row */
.bts-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.bts-banner-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bts-company {
  font-size: 16px;
  font-weight: 700;
  color: white;
}
.bts-period {
  font-size: 11px;
  font-family: var(--mono);
  color: rgba(255, 255, 255, 0.4);
}
.bts-banner-right {
  text-align: right;
}
.bts-total-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 4px;
}
.bts-total-amt {
  font-size: 24px;
  font-weight: 800;
  color: #ff7070;
  font-family: var(--mono);
}

/* Three component cards */
.bts-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.bts-card {
  border-radius: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bts-card.cit {
  border-left: 3px solid #e04040;
}
.bts-card.levy {
  border-left: 3px solid #f4a100;
}
.bts-card.vat {
  border-left: 3px solid #00a86b;
}
.bts-card-icon {
  font-size: 20px;
}
.bts-card-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--mono);
}
.bts-card-amt {
  font-size: 20px;
  font-weight: 800;
  color: white;
  font-family: var(--mono);
}
.bts-card-detail {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}
.bts-card-tag {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--mono);
}

/* Breakdown table */
.bts-breakdown {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.bts-breakdown-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 0;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--mono);
  align-items: center;
}
.bts-breakdown-row:last-child {
  border-bottom: none;
}
.bts-breakdown-row.header {
  background: rgba(255, 255, 255, 0.05);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.3);
  padding: 8px 14px;
}
.bts-breakdown-row.total {
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
}
.bts-breakdown-row span:nth-child(3),
.bts-breakdown-row span:nth-child(4) {
  text-align: right;
}

/* Export buttons */
.bts-export-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.bts-export-btn {
  flex: 1;
  min-width: 160px;
  height: 42px;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.bts-export-btn.pdf {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.bts-export-btn.pdf:hover {
  background: rgba(255, 255, 255, 0.12);
}
.bts-export-btn.excel {
  background: #1a6b3a;
  color: white;
  border: 1px solid rgba(0, 168, 107, 0.4);
}
.bts-export-btn.excel:hover {
  background: #228a4a;
}
.bts-export-btn.save {
  background: var(--green);
  color: white;
}
.bts-export-btn.save:hover {
  background: var(--green-light);
}

/* Mobile */
@media (max-width: 700px) {
  .bts-cards {
    grid-template-columns: 1fr;
  }
  .bts-breakdown-row {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .bts-breakdown-row span:nth-child(3) {
    display: none;
  }
  .bts-export-row {
    flex-direction: column;
  }
  .bts-export-btn {
    min-width: unset;
  }
  .bts-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .bts-banner-right {
    text-align: left;
  }
}
@media (max-width: 480px) {
  .bts-cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* =====================================================
   ABOUT US SECTION
   ===================================================== */
.about-section {
  background: var(--paper, #f7f8f6);
}

/* Mission strip */
.about-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: white;
  border: 1px solid var(--paper-dim, #e8ebe8);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}
.about-mission-title {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
  margin: 8px 0 16px;
}
.about-mission-text p {
  font-size: 14px;
  color: #555;
  line-height: 1.8;
}
.about-mission-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.about-stat {
  background: var(--paper, #f7f8f6);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--paper-dim, #e8ebe8);
}
.about-stat-num {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -1px;
  line-height: 1;
}
.about-stat-label {
  font-size: 12px;
  color: #888;
  font-family: var(--mono);
}

/* Guide grid */
.about-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: left;
  align-items: start;
}
.about-guide-card {
  background: white;
  border: 1px solid var(--paper-dim, #e8ebe8);
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.25s;
  overflow: hidden;
}
.about-guide-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.09);
  border-color: rgba(0, 168, 107, 0.2);
}
.about-guide-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0;
}
.about-guide-header > * {
  pointer-events: none;
}
.about-guide-header:hover {
  background: rgba(0, 168, 107, 0.02);
}
.about-guide-chevron {
  margin-left: auto;
  flex-shrink: 0;
  color: #bbb;
  transition: transform 0.25s ease;
  font-size: 16px;
  line-height: 1;
}
.about-guide-card.open .about-guide-chevron {
  transform: rotate(180deg);
  color: var(--green);
}
.about-guide-teaser {
  padding: 0 24px 18px;
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  font-family: var(--sans);
}
.about-guide-body {
  display: none;
  padding: 0 24px 24px;
  border-top: 1px solid var(--paper-dim, #e8ebe8);
  animation: guideBodyIn 0.2s ease;
}
.about-guide-card.open .about-guide-body {
  display: block;
}
@keyframes guideBodyIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.about-guide-body > p {
  font-size: 13px;
  color: #555;
  line-height: 1.75;
  margin-bottom: 20px;
  padding-top: 20px;
}
.about-guide-icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-guide-header h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.about-guide-tag {
  font-family: var(--mono);
  font-size: 10px;
  background: rgba(0, 168, 107, 0.1);
  color: var(--green);
  border: 1px solid rgba(0, 168, 107, 0.2);
  padding: 2px 10px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.about-guide-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.about-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #444;
  line-height: 1.5;
}
.about-step-n {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  margin-top: 1px;
}
.about-guide-note {
  background: rgba(0, 168, 107, 0.06);
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  font-size: 12px;
  color: #444;
  line-height: 1.6;
}

/* Tax bands table */
.about-bands {
  margin-top: 48px;
  background: var(--ink);
  border-radius: 20px;
  padding: 48px;
  border: 1px solid rgba(0, 168, 107, 0.15);
}
.about-bands .lp-section-label {
  color: var(--green-light);
}
.about-bands .lp-section-title {
  color: white;
}
.about-bands .lp-section-sub {
  color: rgba(255, 255, 255, 0.4);
}
.about-bands-table {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.about-band-row {
  display: grid;
  grid-template-columns: 44px 1fr 90px 140px;
  padding: 14px 24px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--mono);
  align-items: center;
  gap: 8px;
}
.about-band-row > span:last-child {
  text-align: right;
}
.about-band-row:last-child {
  border-bottom: none;
}
.about-band-row.header {
  background: rgba(255, 255, 255, 0.05);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.3);
  padding: 12px 24px;
}
.about-band-row.header > span:last-child {
  text-align: right;
}
.band-rate {
  font-weight: 700;
  text-align: center;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  width: fit-content;
  letter-spacing: 0.3px;
}
.band-rate.zero {
  background: rgba(0, 168, 107, 0.12);
  color: #00c97e;
}
.band-rate.low {
  background: rgba(244, 161, 0, 0.1);
  color: #f4a100;
}
.band-rate.mid {
  background: rgba(224, 100, 64, 0.1);
  color: #e87070;
}
.band-rate.high {
  background: rgba(224, 64, 64, 0.12);
  color: #e05050;
}
.band-rate.top {
  background: rgba(224, 40, 40, 0.15);
  color: #e04040;
}

/* =====================================================
   BLOG SECTION
   ===================================================== */
.blog-section {
  background: var(--ink);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: left;
  align-items: start;
}

/* Base card */
.blog-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

/* Featured — full width, two-column interior */
.blog-card.featured-blog {
  grid-column: span 2;
  background: rgba(0, 168, 107, 0.07);
  border-color: rgba(0, 168, 107, 0.2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 40px 40px;
  align-items: start;
}

.blog-featured-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.blog-featured-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 4px;
}
.blog-featured-right p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.8;
  margin: 0;
}
.blog-featured-sub {
  font-size: 15px !important;
  color: rgba(255, 255, 255, 0.6) !important;
  line-height: 1.6 !important;
}

.blog-card-tag {
  display: inline-block;
  background: var(--green);
  color: white;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  width: fit-content;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.blog-cat {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--green-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(0, 168, 107, 0.12);
  padding: 2px 10px;
  border-radius: 20px;
}
.blog-date {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
}

.blog-card h3 {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.3px;
  line-height: 1.4;
  margin: 0;
}
.blog-card.featured-blog h3 {
  font-size: 22px;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

/* Teaser — 2 lines, fades at bottom */
.blog-teaser {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Full text — hidden by default */
.blog-full {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.75;
  margin: 0;
  animation: fadeIn 0.25s ease;
}
.blog-full.hidden {
  display: none;
}

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

/* Expand toggle button */
.blog-expand-btn {
  background: none;
  border: none;
  color: var(--green-light);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  letter-spacing: 0;
  align-self: flex-start;
  transition:
    color 0.15s,
    text-decoration 0.15s;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 201, 126, 0.35);
}
.blog-expand-btn:hover {
  color: white;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.blog-read-btn {
  align-self: flex-start;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}
.blog-read-btn:hover {
  background: var(--green-light);
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact-section {
  background: var(--paper, #f7f8f6);
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  text-align: left;
}
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-info-card {
  background: white;
  border: 1px solid var(--paper-dim, #e8ebe8);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.contact-info-icon {
  font-size: 22px;
  margin-bottom: 10px;
}
.contact-info-card h3 {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.contact-info-card p {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 10px;
}
.contact-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}
.contact-link:hover {
  text-decoration: underline;
}

/* Form */
.contact-form-card {
  background: white;
  border: 1px solid var(--paper-dim, #e8ebe8);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}
.contact-form-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.contact-form-sub {
  font-size: 13px;
  color: #888;
  margin-bottom: 28px;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.contact-field label {
  font-size: 12px;
  font-weight: 600;
  color: #444;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-input {
  border: 1.5px solid var(--paper-dim, #e8ebe8);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper, #f7f8f6);
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}
.contact-input:focus {
  border-color: var(--green);
  background: white;
}
.contact-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--sans);
}
.contact-submit {
  width: 100%;
  height: 48px;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}
.contact-submit:hover {
  background: var(--green-light);
}
.contact-disclaimer {
  font-size: 12px;
  text-align: center;
  margin-top: 12px;
  min-height: 18px;
  color: #888;
}

/* =====================================================
   UPDATED FOOTER
   ===================================================== */
.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 32px 48px;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 64px;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-logo {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
}
.footer-logo .logo-mark {
  width: 32px;
  height: 32px;
  background: var(--green);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.footer-logo em {
  font-style: normal;
  color: var(--green);
  font-size: 11px;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-left: 2px;
}
.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.65;
  max-width: 220px;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.footer-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  font-size: 13px;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.footer-social-btn:hover {
  border-color: rgba(0, 168, 107, 0.5);
  color: var(--green-light);
  background: rgba(0, 168, 107, 0.08);
}
.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 4px;
}
.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col-title {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: rgba(255, 255, 255, 0.28);
  margin-bottom: 4px;
}
.footer-links-col a {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s;
  background: none;
  border: none;
  text-align: left;
  padding: 0;
  font-family: var(--sans);
  letter-spacing: -0.1px;
}
.footer-links-col a:hover {
  color: var(--green-light);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  padding: 22px 32px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.32);
  line-height: 1.7;
}
.footer-bottom strong {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

/* =====================================================
   RESPONSIVE — ABOUT / BLOG / CONTACT / FOOTER
   ===================================================== */
@media (max-width: 900px) {
  .about-mission {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px;
  }
  .about-guide-grid {
    grid-template-columns: 1fr;
  }
  .about-bands {
    padding: 32px 24px;
  }
  .about-band-row {
    grid-template-columns: 36px 1fr 70px 120px;
    font-size: 12px;
    padding: 10px 14px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-card.featured-blog {
    grid-column: span 1;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 24px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-form-card {
    padding: 28px 22px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 24px 28px;
  }
  .footer-links-group {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .about-mission-stats {
    grid-template-columns: 1fr 1fr;
  }
  .about-bands {
    padding: 24px 16px;
  }
  .about-band-row {
    grid-template-columns: 28px 1fr 60px;
  }
  .about-band-row span:nth-child(4) {
    display: none;
  }
  .footer-links-group {
    grid-template-columns: 1fr 1fr;
  }
}

/* =====================================================
   EXTRA MOBILE — WHO + FEATURES
   ===================================================== */
@media (max-width: 600px) {
  .who-grid {
    grid-template-columns: 1fr !important;
  }
  .features-grid {
    grid-template-columns: 1fr !important;
  }
  .feature-card.feature-hero {
    grid-column: span 1 !important;
  }
  .lp-section-inner {
    padding: 60px 20px;
  }
  .lp-section-title {
    letter-spacing: -0.8px;
  }
  .about-guide-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =====================================================
   LANDING PAGE ANIMATIONS — scroll reveals
   Only affects .reveal-pending / .reveal-visible classes.
   App sections are never touched.
   ===================================================== */

/* Initial hidden state */
.reveal-pending {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.52s ease,
    transform 0.52s ease;
}

/* Triggered by IntersectionObserver */
.reveal-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Section labels come in from left, not up */
.lp-section-label.reveal-pending {
  transform: translateX(-12px);
}
.lp-section-label.reveal-visible {
  transform: translateX(0) !important;
}

/* Cards get a slightly more pronounced lift */
.feature-card.reveal-pending,
.who-card.reveal-pending,
.step-card.reveal-pending,
.blog-card.reveal-pending,
.about-guide-card.reveal-pending {
  transform: translateY(28px);
}

/* Hero elements — handled inline via JS, ensure no flash */
.landing-tag,
.landing-title,
.landing-sub,
.landing-ctas,
.landing-note,
.landing-hero-preview {
  will-change: opacity, transform;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-pending {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .landing-tag,
  .landing-title,
  .landing-sub,
  .landing-ctas,
  .landing-note,
  .landing-hero-preview {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =====================================================
   CARD HOVER LIFT — universal restore
   Consistent system: -4px lift + shadow upgrade
   Light cards: subtle warm shadow
   Dark cards: green-tinted glow
   ===================================================== */

/* --- LANDING: Step cards (was set to none) --- */
.step-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease !important;
}
.step-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08) !important;
}

/* --- LANDING: Feature cards --- */
.feature-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.2s,
    border-color 0.2s !important;
}
.feature-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(0, 168, 107, 0.28) !important;
}
.feature-card.feature-hero:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 48px rgba(0, 168, 107, 0.18) !important;
  background: rgba(0, 168, 107, 0.11) !important;
  border-color: rgba(0, 168, 107, 0.35) !important;
}

/* --- LANDING: Who cards --- */
.who-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s !important;
}
.who-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1) !important;
  border-color: rgba(0, 168, 107, 0.25) !important;
}
.who-card.featured:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 20px 56px rgba(0, 168, 107, 0.28) !important;
  border-color: var(--green-light) !important;
}

/* --- LANDING: Blog cards --- */
.blog-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.2s,
    border-color 0.2s !important;
}
.blog-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(0, 168, 107, 0.25) !important;
}

/* --- LANDING: About stat cards --- */
.about-stat {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s !important;
  cursor: default;
}
.about-stat:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07) !important;
  border-color: rgba(0, 168, 107, 0.2) !important;
}

/* --- LANDING: About guide cards (already had hover, strengthen it) --- */
.about-guide-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s !important;
}
.about-guide-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.1) !important;
  border-color: rgba(0, 168, 107, 0.25) !important;
}

/* --- LANDING: Contact info cards --- */
.contact-info-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s !important;
  cursor: default;
}
.contact-info-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08) !important;
  border-color: rgba(0, 168, 107, 0.2) !important;
}

/* --- APP: History cards (bump from -2px to -4px) --- */
.history-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.2s,
    border-color 0.2s !important;
}
.history-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(0, 168, 107, 0.35) !important;
}

/* --- APP: Payroll run cards --- */
.payroll-run-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.2s,
    border-color 0.2s !important;
}
.payroll-run-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(0, 168, 107, 0.3) !important;
}

/* --- APP: YTD card --- */
.ytd-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s !important;
}
.ytd-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 28px rgba(0, 168, 107, 0.1) !important;
  border-color: rgba(0, 168, 107, 0.28) !important;
}

/* --- APP: Role select cards (auth screen) --- */
.role-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s,
    border-color 0.2s !important;
}
.role-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
  border-color: rgba(0, 168, 107, 0.4) !important;
  background: rgba(0, 168, 107, 0.06) !important;
}
.role-card.selected {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 168, 107, 0.15) !important;
}

/* --- APP: CIT / VAT / Biz history items --- */
.cit-hist-item,
.vat-hist-item,
.biz-hist-item {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.2s,
    border-color 0.2s !important;
}
.cit-hist-item:hover,
.vat-hist-item:hover,
.biz-hist-item:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16) !important;
  border-color: rgba(0, 168, 107, 0.3) !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

/* --- APP: Client cards --- */
.client-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s !important;
}
.client-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16) !important;
  border-color: rgba(0, 168, 107, 0.3) !important;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .step-card,
  .feature-card,
  .who-card,
  .blog-card,
  .about-stat,
  .about-guide-card,
  .contact-info-card,
  .history-card,
  .payroll-run-card,
  .ytd-card,
  .role-card,
  .cit-hist-item,
  .vat-hist-item,
  .biz-hist-item,
  .client-card {
    transition:
      background 0.2s,
      border-color 0.2s !important;
  }
  .step-card:hover,
  .feature-card:hover,
  .who-card:hover,
  .blog-card:hover,
  .about-stat:hover,
  .about-guide-card:hover,
  .contact-info-card:hover,
  .history-card:hover,
  .payroll-run-card:hover,
  .ytd-card:hover,
  .role-card:hover,
  .cit-hist-item:hover,
  .vat-hist-item:hover,
  .biz-hist-item:hover,
  .client-card:hover {
    transform: none !important;
  }
}

/* =====================================================
   HASHNODE BLOG — live post styles
   ===================================================== */
.blog-featured-placeholder {
  width: 100%;
  height: 200px;
  background: rgba(0, 168, 107, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(0, 168, 107, 0.15);
}

/* blog-expand-btn styled above */

a.blog-read-btn {
  text-decoration: none;
  display: inline-block;
}
a.blog-read-btn:hover {
  background: var(--green-light) !important;
}

/* =====================================================
   LUCIDE ICON SYSTEM — uniform across entire project
   Single color, consistent stroke, sized per context
   ===================================================== */

/* Base — all icons inherit green, thin stroke */
[data-lucide] {
  stroke: var(--green);
  stroke-width: 1.75;
  fill: none;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* Landing — step icons (large, inside card) */
.step-icon [data-lucide] {
  width: 22px;
  height: 22px;
  stroke: var(--green);
  opacity: 0.8;
}

/* Landing — feature icons (dark bg, slightly lighter) */
.feature-icon [data-lucide] {
  width: 22px;
  height: 22px;
  stroke: var(--green-light);
}

/* Landing — who-card icons (larger, prominent) */
.who-emoji [data-lucide] {
  width: 28px;
  height: 28px;
  stroke: var(--green);
}
.who-card.featured .who-emoji [data-lucide] {
  stroke: var(--green-light);
}

/* Contact info icons */
.contact-info-icon [data-lucide] {
  width: 24px;
  height: 24px;
  stroke: var(--green);
}

/* About guide icons */
.about-guide-icon [data-lucide] {
  width: 20px;
  height: 20px;
  stroke: var(--green);
}

/* About guide note lightbulb */
.about-guide-note [data-lucide] {
  width: 14px;
  height: 14px;
  stroke: var(--green);
  vertical-align: text-bottom;
}

/* Nav dropdown icons */
.biz-dropdown-item [data-lucide] {
  width: 15px;
  height: 15px;
  stroke: var(--green);
  margin-right: 2px;
}

/* Role card icons */
.role-icon [data-lucide] {
  width: 18px;
  height: 18px;
  stroke: var(--green);
}

/* Role context banner icon */
.rcb-icon [data-lucide] {
  width: 20px;
  height: 20px;
  stroke: var(--green);
}

/* App — button icons (Save, PDF, Excel) */
.btn-save [data-lucide],
.btn-pdf [data-lucide],
.btn-excel [data-lucide],
.cit-action-btn [data-lucide],
.btn-payroll-save [data-lucide],
.btn-payroll-xlsx [data-lucide],
.btn-add-employee [data-lucide],
.bts-export-btn [data-lucide],
.btn-excel [data-lucide] {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  vertical-align: text-bottom;
}

/* Generic — any button containing a lucide icon */
button [data-lucide] {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* Empty state icons (large, centered) */
.ytd-empty-icon [data-lucide],
.cit-empty-icon [data-lucide] {
  width: 40px;
  height: 40px;
  stroke: rgba(0, 168, 107, 0.3);
  stroke-width: 1.25;
}

/* BTS card icons */
.bts-card-icon [data-lucide] {
  width: 24px;
  height: 24px;
  stroke: var(--green);
}

/* BTS notice icon */
.bts-notice-icon [data-lucide] {
  width: 16px;
  height: 16px;
  stroke: var(--green);
  vertical-align: middle;
}

/* Delete / trash button */
.delete-account-btn [data-lucide] {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  vertical-align: middle;
}

/* PAYE remit section spans */
.paye-remit-label [data-lucide],
summary [data-lucide] {
  width: 15px;
  height: 15px;
  stroke: var(--green);
  vertical-align: middle;
  margin-right: 4px;
}

/* ================================================
   US-026 — Mobile Responsiveness Fixes (Final)
   Applied cleanly to original style.css
   ================================================ */

/* ── Fix 1: Steps — 1 card per row on mobile (≤ 768px) ────── */
@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* ── Fix 2 & 3: Features + Who cards — collapsible on mobile ─ */
/* Keep 1 column on small screens */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .feature-card.feature-hero {
    grid-column: span 1 !important;
  }
  .who-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
}

@media (max-width: 480px) {
  .who-grid {
    grid-template-columns: 1fr !important;
  }

  /* Feature card body — collapsed by default on mobile */
  .feature-card .feature-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .feature-card.expanded .feature-body {
    max-height: 400px;
  }
  /* Show toggle arrow on feature cards */
  .feature-card .feature-toggle {
    display: flex !important;
  }

  /* Who card body — collapsed by default on mobile */
  .who-card .who-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .who-card.expanded .who-body {
    max-height: 400px;
  }
  /* Show toggle arrow on who cards */
  .who-card .who-toggle {
    display: flex !important;
  }
}

/* Toggle arrow button — hidden on desktop, shown on mobile */
.feature-toggle,
.who-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 168, 107, 0.1);
  border: 1px solid rgba(0, 168, 107, 0.2);
  color: var(--green-light);
  font-size: 12px;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
  transition:
    background 0.2s,
    transform 0.3s;
}
.feature-toggle.open,
.who-toggle.open {
  transform: rotate(180deg);
  background: rgba(0, 168, 107, 0.2);
}

/* ── General mobile hero fixes (≤ 480px) ────────────────────── */
@media (max-width: 480px) {
  .landing-hero {
    padding: 72px 20px 60px !important;
    min-height: auto !important;
  }
  .landing-hero-inner {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .landing-tag {
    font-size: 11px !important;
    padding: 5px 12px !important;
  }
  .landing-title {
    font-size: clamp(26px, 7.5vw, 36px) !important;
    letter-spacing: -0.8px !important;
    line-height: 1.1 !important;
    margin-bottom: 14px !important;
  }
  .landing-sub {
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 24px !important;
  }
  .landing-ctas {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .landing-ctas .cta-primary,
  .landing-ctas .cta-secondary {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 14px 20px !important;
    font-size: 14px !important;
  }
  .landing-note {
    font-size: 12px !important;
  }
  /* Keep demo preview card visible */
  .landing-hero-preview {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .preview-card {
    max-width: 100% !important;
    padding: 20px !important;
    border-radius: 16px !important;
  }
  /* Section headings */
  .lp-section-title {
    font-size: clamp(22px, 6vw, 32px) !important;
    letter-spacing: -0.5px !important;
  }
  .lp-section-sub {
    font-size: 14px !important;
  }
  /* About stats */
  .about-stats {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  /* CTA */
  .cta-inner {
    padding: 32px 20px !important;
  }
  .cta-title {
    font-size: clamp(22px, 6vw, 32px) !important;
  }
  /* Blog */
  .blog-card {
    padding: 20px !important;
  }
  .featured-blog {
    flex-direction: column !important;
  }
  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* ── Tablet (481–768px) ──────────────────────────────────────── */
@media (min-width: 481px) and (max-width: 768px) {
  .landing-hero {
    padding: 80px 24px 80px !important;
  }
  .landing-hero-inner {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .landing-title {
    font-size: clamp(30px, 5.5vw, 44px) !important;
  }
  .landing-ctas {
    flex-wrap: wrap !important;
    gap: 12px !important;
  }
  .landing-hero-preview {
    display: flex !important;
    justify-content: center !important;
  }
  .preview-card {
    max-width: 420px !important;
  }
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Feature & Who card header layout ───────────────────────── */
.feature-card-header,
.who-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.feature-card-header h3,
.who-card-header h3 {
  flex: 1;
}

/* On desktop — body always visible, toggle hidden */
@media (min-width: 481px) {
  .feature-body,
  .who-body {
    max-height: none !important;
    overflow: visible !important;
  }
  .feature-toggle,
  .who-toggle {
    display: none !important;
  }
}

/* ================================================
   Mobile Fix — Who Cards accordion (FINAL)
   ================================================ */
@media (max-width: 768px) {
  .who-card {
    cursor: pointer !important;
  }

  /* Collapse ALL who-lists including featured — force override */
  .who-card .who-list,
  .who-card.featured .who-list {
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease !important;
    margin-top: 0 !important;
  }

  /* Only the tapped card expands */
  .who-card.mob-expanded .who-list,
  .who-card.featured.mob-expanded .who-list {
    max-height: 300px !important;
    overflow: visible !important;
    opacity: 1 !important;
    margin-top: 8px !important;
  }

  /* Arrow */
  .who-card::after {
    content: "See details \25BC";
    display: block !important;
    margin-top: 12px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #00a86b !important;
    cursor: pointer !important;
  }

  .who-card.featured::after {
    color: rgba(0, 255, 160, 0.8) !important;
  }

  .who-card.mob-expanded::after {
    content: "Hide details \25B2" !important;
  }
}

@media (max-width: 480px) {
  .who-grid {
    grid-template-columns: 1fr !important;
  }
}

.user-avatar.has-image,
.profile-avatar-large.has-image {
  color: transparent;
}

.guide-section,
.profile-section {
  background: var(--ink);
  padding: 48px 24px 72px;
}

.guide-inner,
.profile-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.guide-top-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.guide-page-card,
.profile-card,
.profile-card-side {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  color: #ffffff;
}

.guide-page-card h1,
.guide-page-card h2,
.guide-page-card h3,
.guide-page-card h4,
.guide-page-card h5,
.guide-page-card h6,
.profile-card h1,
.profile-card h2,
.profile-card h3,
.profile-card h4,
.profile-card h5,
.profile-card h6,
.profile-card-side h1,
.profile-card-side h2,
.profile-card-side h3,
.profile-card-side h4,
.profile-card-side h5,
.profile-card-side h6 {
  color: #ffffff;
  margin: 0 0 10px;
}

.guide-page-card p,
.guide-page-card li,
.guide-page-card span,
.profile-card p,
.profile-card li,
.profile-card span,
.profile-card-side p,
.profile-card-side li,
.profile-card-side span,
.profile-side-copy {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.guide-page-card ul,
.profile-card ul,
.profile-card-side ul {
  margin: 14px 0 18px 18px;
  color: rgba(255, 255, 255, 0.82);
}

.guide-page-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 168, 107, 0.12);
  border: 1px solid rgba(0, 168, 107, 0.3);
  color: var(--green-light);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.guide-page-card strong,
.profile-card strong,
.profile-card-side strong {
  color: #ffffff;
}

.guide-app-grid {
  margin-top: 12px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 20px;
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.profile-avatar-large {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(0, 168, 107, 0.95),
    rgba(0, 133, 84, 0.95)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.profile-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.profile-upload-btn,
.profile-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-upload-btn {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 11px 14px;
  color: #fff;
}

#profilePictureInput {
  display: none;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-field label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.76);
}

.profile-field input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
}

.profile-field input[readonly] {
  opacity: 0.76;
}

.profile-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.profile-save-status {
  font-size: 13px;
  min-height: 18px;
}

.profile-save-status.success {
  color: #4ade80;
}

.profile-save-status.error {
  color: #ff8a8a;
}

.profile-card-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: start;
}

.profile-delete-btn,
.profile-logout-btn {
  width: 100%;
  justify-content: center;
  height: 42px;
}

.profile-delete-btn {
  color: #ffb4b4;
}
@media (max-width: 900px) {
  .guide-top-grid,
  .profile-grid,
  .profile-form-grid {
    grid-template-columns: 1fr;
  }
}
