/* ── MyOtium — Ocean theme ───────────────────────────────────────────────── */

:root {
  --sky-deep:      #020f1a;
  --sky-dusk:      #061a2e;
  --sky-mid:       #0a2843;
  --horizon-glow:  #0e5c6b;
  --sun-orange:    #0d7a5c;
  --sun-amber:     #0a9e7a;
  --sun-gold:      #10d9b0;
  --coral:         #0891b2;
  --text-bright:   #f0f8ff;
  --text-muted:    #a0c4c8;
  --text-dim:      #5a8a8e;
  --card-bg:       rgba(3, 15, 26, 0.82);
  --card-border:   rgba(16, 217, 176, 0.18);
  --card-border-hover: rgba(16, 217, 176, 0.40);
  --input-bg:      rgba(2, 10, 18, 0.70);
  --input-border:  rgba(16, 217, 176, 0.22);
  --input-focus:   rgba(16, 217, 176, 0.55);
  --radius:        10px;
  --radius-lg:     16px;
  --shadow:        0 8px 32px rgba(0,0,0,0.5);
}

/* ── Reset & base ────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 14px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(170deg,
    var(--sky-deep)     0%,
    var(--sky-dusk)    30%,
    var(--sky-mid)     60%,
    var(--horizon-glow) 85%,
    var(--sun-orange)  100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-bright);
}

a { color: var(--sun-gold); text-decoration: none; }
a:hover { color: var(--coral); }

/* ── Navbar ──────────────────────────────────────────────────────────────── */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  background: rgba(2, 12, 22, 0.90);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--sun-gold);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.brand-tagline {
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  opacity: 0.75;
  white-space: nowrap;
}
@media (max-width: 640px) { .brand-tagline { display: none; } }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-email {
  font-size: 12px;
  color: var(--text-dim);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-link { color: var(--text-muted); font-size: 13px; font-weight: 500; }
.nav-link:hover { color: var(--sun-gold); }
.nav-logout { color: var(--coral); }
.nav-admin  { color: var(--sun-gold); font-weight: 600; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sun-orange), var(--sun-gold));
  color: var(--sky-deep);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--coral), var(--sun-amber));
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(16,217,176,0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--card-border);
}
.btn-ghost:hover {
  border-color: var(--sun-gold);
  color: var(--sun-gold);
}

.btn-outline {
  background: transparent;
  color: var(--sun-gold);
  border: 1px solid var(--sun-gold);
}
.btn-outline:hover {
  background: var(--sun-gold);
  color: var(--sky-deep);
}

.btn-sm  { padding: 6px 14px; font-size: 12px; }
.btn-lg  { padding: 14px 28px; font-size: 15px; }
.btn-full { width: 100%; }

/* ── Flash messages ──────────────────────────────────────────────────────── */

.flash-container { padding: 12px 24px; }
.flash {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: 13px;
  border-left: 4px solid;
}
.flash-success { background: rgba(16,185,129,.15); border-color: #10b981; color: #6ee7b7; }
.flash-error   { background: rgba(239,68,68,.15);  border-color: #ef4444; color: #fca5a5; }
.flash-warning { background: rgba(200,120,20,.15); border-color: var(--sun-amber); color: var(--sun-gold); }
.flash-info    { background: rgba(99,102,241,.15); border-color: #818cf8; color: #c7d2fe; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px 60px;
  gap: 40px;
}

.hero-badge {
  display: inline-block;
  background: rgba(16,217,176,0.12);
  border: 1px solid rgba(16,217,176,0.28);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sun-gold);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 18px;
  color: var(--text-bright);
}

.gradient-text {
  background: linear-gradient(90deg, var(--sun-gold), var(--coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art { position: relative; flex-shrink: 0; }

.sun-circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sun-gold) 0%, var(--sun-orange) 50%, transparent 75%);
  box-shadow: 0 0 80px 30px rgba(16,217,176,0.25);
  animation: pulse-sun 4s ease-in-out infinite;
}

@keyframes pulse-sun {
  0%, 100% { transform: scale(1);    opacity: 0.9; }
  50%       { transform: scale(1.06); opacity: 1;   }
}

.hero-icon-img {
  width: 220px;
  height: 220px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 0 60px 20px rgba(16,217,176,0.20);
  animation: pulse-icon 4s ease-in-out infinite;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1);    opacity: 0.95; }
  50%       { transform: scale(1.03); opacity: 1;    }
}

/* ── Features ────────────────────────────────────────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 80px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: var(--card-border-hover); }
.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.feature-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ── Auth pages ──────────────────────────────────────────────────────────── */

.auth-wrap {
  min-height: calc(100vh - 56px - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.auth-header { text-align: center; margin-bottom: 28px; }
.auth-icon { font-size: 36px; display: block; margin-bottom: 12px; }
.auth-header h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.auth-header p  { color: var(--text-muted); font-size: 13px; }
.auth-footer    { text-align: center; margin-top: 20px; color: var(--text-dim); font-size: 13px; }

.info-box {
  background: rgba(16,217,176,0.07);
  border: 1px solid rgba(16,217,176,0.20);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Forms ───────────────────────────────────────────────────────────────── */

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

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.req { color: var(--coral); }

select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"] {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--text-bright);
  font-size: 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
}
input:focus,
select:focus {
  outline: none;
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(16,217,176,0.12);
}
select option {
  background: #030d18;
  color: var(--text-bright);
}
input.invalid { border-color: #ef4444; }
input.valid   { border-color: #10b981; }

.field-hint  { font-size: 11px; color: var(--text-dim); margin-top: 4px; display: block; }
.field-error { font-size: 11px; color: #fca5a5; margin-top: 4px; display: block; }
.hidden      { display: none !important; }

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.form-check input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--sun-gold);
}
.form-check label {
  margin-bottom: 0;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: 13px;
}

/* Password strength bar */
.password-strength {
  height: 3px;
  border-radius: 2px;
  margin-top: 5px;
  background: var(--input-border);
  transition: background 0.3s, width 0.3s;
}
.password-strength.s1 { background: #ef4444; }
.password-strength.s2 { background: var(--sun-amber); }
.password-strength.s3 { background: var(--sun-gold); }
.password-strength.s4 { background: #10b981; }

/* ── Dashboard layout ────────────────────────────────────────────────────── */

.dashboard-wrap {
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: calc(100vh - 56px);
  align-items: start;
}

.sidebar {
  background: rgba(2, 12, 22, 0.90);
  border-right: 1px solid var(--card-border);
  padding: 24px 20px;
  min-height: calc(100vh - 56px);
  overflow-y: auto;
  position: sticky;
  top: 56px;
  max-height: calc(100vh - 56px);
}

.sidebar-header      { margin-bottom: 20px; }
.sidebar-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.sidebar-title-row h2 { font-size: 17px; font-weight: 700; margin-bottom: 2px; }
.sidebar-username     { font-size: 13px; font-weight: 600; color: var(--sun-gold); margin-bottom: 2px; letter-spacing: 0.02em; }
.sidebar-sub          { font-size: 11px; color: var(--text-dim); }
.sidebar-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-top: 2px;
}

.form-section {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 14px 14px 4px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sun-gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.collapsible { cursor: pointer; }
.collapsible summary { list-style: none; }
.collapsible summary::-webkit-details-marker { display: none; }
.collapsible[open] .section-title::after { content: " ▲"; }
.collapsible .section-title::after { content: " ▼"; font-size: 9px; color: var(--text-dim); }

/* ── Income stream toggles ───────────────────────────────────────────────── */

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.section-title-wrap .section-title { margin-bottom: 0; }
/* Push the collapse arrow to the far right regardless of how many items are before it */
.section-title-wrap .collapse-btn { margin-left: auto; }

.stream-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.stream-toggle-label .section-title { cursor: pointer; }

.stream-toggle {
  width: 15px;
  height: 15px;
  accent-color: var(--sun-gold);
  cursor: pointer;
  flex-shrink: 0;
}

.stream-body { }
.stream-body.stream-disabled { display: none; }
.stream-note {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: 6px;
  font-style: italic;
}

/* ── Section collapse button ──────────────────────────────────────────────── */

.collapse-btn {
  background: none;
  border: 1px solid rgba(16, 217, 176, 0.22);
  border-radius: 3px;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0;
  width: 18px;
  height: 18px;
  font-size: 16px;
  font-family: monospace;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s ease, border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.collapse-btn:hover {
  color: var(--text-bright);
  border-color: rgba(16, 217, 176, 0.55);
}

/* Hide the body of a collapsed section */
.form-section.is-collapsed .stream-body,
.form-section.is-collapsed .section-body { display: none; }

/* ── Phase labels (Before / After retirement) ───────────────────────────── */

.phase-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin: 10px 0 4px;
  padding-left: 2px;
}

/* ── Radio groups ────────────────────────────────────────────────────────── */

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
}

.radio-label input[type="radio"] {
  width: 14px;
  height: 14px;
  accent-color: var(--sun-gold);
  flex-shrink: 0;
}

/* ── Muted helper labels ─────────────────────────────────────────────────── */

label.muted {
  color: var(--text-dim);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
}

/* ── Taxation badges ─────────────────────────────────────────────────────── */

.tax-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  cursor: help;
  flex-shrink: 0;
}
.badge-eet     { background: rgba(167,139,250,0.20); color: #a78bfa; border: 1px solid rgba(167,139,250,0.35); }
.badge-tee     { background: rgba(16,185,129,0.20);  color: #10b981; border: 1px solid rgba(16,185,129,0.35); }
.badge-tte     { background: rgba(255,107,71,0.20);  color: #ff6b47; border: 1px solid rgba(255,107,71,0.35); }
.badge-income  { background: rgba(16,217,176,0.12);  color: var(--sun-gold); border: 1px solid rgba(16,217,176,0.28); }
.badge-state   { background: rgba(56,189,248,0.15);  color: #38bdf8; border: 1px solid rgba(56,189,248,0.30); }
.badge-partial { background: rgba(244,114,182,0.15); color: #f472b6; border: 1px solid rgba(244,114,182,0.30); }

.full-width { grid-column: 1 / -1; }

.tag {
  font-size: 9px;
  background: rgba(16,217,176,0.12);
  color: var(--sun-gold);
  border-radius: 4px;
  padding: 2px 6px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.form-actions { margin-top: 16px; padding-bottom: 16px; }

/* Warnings */
.warnings-area {
  background: rgba(200,120,20,.1);
  border: 1px solid rgba(200,120,20,.3);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 12px;
  font-size: 12px;
}
.warning-item  { padding: 3px 0; color: var(--sun-gold); }
.warning-error { color: #fca5a5; }

/* ── Results panel ───────────────────────────────────────────────────────── */

.results-panel {
  padding: 28px 28px 60px;
  overflow-x: hidden;
}

.results-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  color: var(--text-dim);
  gap: 12px;
}
.placeholder-icon { font-size: 52px; opacity: 0.5; }
.results-placeholder h3 { font-size: 18px; color: var(--text-muted); }
.results-placeholder p  { font-size: 13px; max-width: 320px; }

/* Summary cards */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.summary-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  backdrop-filter: blur(8px);
}
.summary-card .sc-label { font-size: 11px; font-weight: 600; text-transform: uppercase;
                           letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 6px; }
.summary-card .sc-value { font-size: 24px; font-weight: 700; color: var(--sun-gold); }
.summary-card .sc-sub   { font-size: 11px; color: var(--text-dim); margin-top: 3px; }
.summary-card.highlight { border-color: var(--sun-amber);
                           background: rgba(10,158,122,0.12); }

/* Charts */
.chart-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px 20px 16px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.chart-title { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 0; }
.chart-type-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chart-type-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-dim);
  cursor: pointer;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
}
.chart-type-label input[type="radio"] {
  width: 13px;
  height: 13px;
  accent-color: var(--sun-gold);
  flex-shrink: 0;
}
.chart-wrap  { height: 260px; }

/* Data table */
.table-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(8px);
}
.table-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.table-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.table-toggle-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-dim);
  cursor: pointer;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0;
}

.table-toggle-label input[type="checkbox"] {
  width: 13px;
  height: 13px;
  accent-color: var(--sun-gold);
  flex-shrink: 0;
}
.table-scroll { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}
.data-table th {
  background: rgba(16,217,176,0.08);
  color: var(--sun-gold);
  font-weight: 600;
  text-align: right;
  padding: 8px 10px;
  border-bottom: 1px solid var(--card-border);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.data-table th:first-child { text-align: left; }
.data-table td {
  padding: 7px 10px;
  text-align: right;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.data-table td:first-child { text-align: left; color: var(--text-bright); font-weight: 500; }
.data-table tr.working   { background: rgba(30,50,100,0.25); }
.data-table tr.retired   { background: rgba(100,50,30,0.20); }
.data-table tr.pensioner { background: rgba(30,100,50,0.20); }
.data-table tr:hover td { filter: brightness(1.25); }

/* ── Table: net income highlight columns ─────────────────────────────────── */

.data-table th.col-net {
  color: var(--sun-gold);
  background: rgba(16,217,176,0.14);
}
.data-table td.col-net-val {
  background: rgba(16,217,176,0.06);
  color: var(--text-bright);
}
.data-table tr.row-net td {
  background: rgba(16,217,176,0.06);
  color: var(--text-bright);
}
.data-table tr.row-net td:first-child {
  color: var(--sun-gold);
}

/* ── Income context bar ─────────────────────────────────────────────────── */

.income-context-card { /* inherits .chart-card */ }

.ibar-wrap {
  padding: 0 4px;
  user-select: none;
}

/* User income label (below bar, same level as threshold labels) */
.ibar-lbl-user .ibar-user-income {
  color: var(--sun-gold);
  font-weight: 700;
  font-size: 11px;
}
.ibar-lbl-user .ibar-user-pct {
  font-style: italic;
}

/* The gradient bar */
.ibar-track {
  position: relative;
  height: 28px;
  border-radius: 14px;
  background: linear-gradient(
    to right,
    #ef4444  0%,
    #f97316 22%,
    #eab308 42%,
    #84cc16 62%,
    #10b981 100%
  );
  overflow: visible;
}

/* Threshold divider lines inside the bar */
.ibar-div {
  position: absolute;
  top: 0;
  height: 100%;
  width: 2px;
  background: rgba(0,0,0,0.45);
  transform: translateX(-50%);
  border-radius: 1px;
}

/* "You" vertical marker line */
.ibar-user-line {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 3px;
  background: #ffffff;
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(255,255,255,0.85);
}

/* Label zone below the bar */
.ibar-label-zone {
  position: relative;
  height: 52px;
}

/* Top label zone — threshold labels above the bar, anchored downward */
.ibar-label-top {
  height: 44px;
}
.ibar-label-top .ibar-lbl {
  top: auto;
  bottom: 4px;
}

.ibar-lbl {
  position: absolute;
  top: 6px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
  pointer-events: none;
}

.ibar-lbl-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}

.ibar-lbl-val {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.3;
}
.ibar-lbl-right {
  text-align: right;
}

/* ── Toast notification ─────────────────────────────────────────────────── */

.calc-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: rgba(2, 12, 22, 0.94);
  border: 1px solid rgba(16, 217, 176, 0.35);
  color: var(--sun-gold);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.calc-toast-show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  text-align: center;
  padding: 16px;
  font-size: 11px;
  color: var(--text-dim);
  border-top: 1px solid var(--card-border);
  background: rgba(2, 12, 22, 0.65);
}

/* ── Info button & popup ─────────────────────────────────────────────────── */

.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(16,217,176,0.15);
  border: 1px solid rgba(16,217,176,0.35);
  color: var(--sun-gold);
  font-size: 10px;
  font-weight: 700;
  font-style: italic;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 5px;
  line-height: 1;
  padding: 0;
  transition: background 0.15s, border-color 0.15s;
  font-family: Georgia, serif;
}
.info-btn:hover {
  background: rgba(16,217,176,0.28);
  border-color: rgba(16,217,176,0.60);
}

.info-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.info-popup {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  max-width: 420px;
  width: 100%;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  position: relative;
}
.info-popup-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 12px;
}
.info-popup-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}
.info-popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
}
.info-popup-close:hover { color: var(--text-bright); }

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .dashboard-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; }
  .form-row { grid-template-columns: 1fr; }
  .hero { flex-direction: column; text-align: center; padding: 50px 20px 40px; }
  .hero-cta { justify-content: center; }
  .hero-art { display: none; }
}
