/* ==========================================================================
   भारत वैश्विक धन प्रवाह वेधशाला (Bharat Cash Flow Observatory) Design System
   Modern Sovereign Aesthetic: Deep Slate, Sovereign Gold, Emerald Inflows, Ruby Outflows
   ========================================================================== */

:root {
  --bg-deep: #060b13;
  --bg-surface: #0c1424;
  --bg-surface-elevated: #131f38;
  --bg-card: rgba(19, 31, 56, 0.7);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(245, 158, 11, 0.35);
  --border-blue: rgba(59, 130, 246, 0.25);
  
  --gold-primary: #f59e0b;
  --gold-light: #fbbf24;
  --gold-glow: rgba(245, 158, 11, 0.15);
  
  --blue-primary: #2563eb;
  --blue-light: #60a5fa;
  
  --emerald-inflow: #10b981;
  --emerald-bg: rgba(16, 185, 129, 0.12);
  
  --ruby-outflow: #f43f5e;
  --ruby-bg: rgba(244, 63, 94, 0.12);
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-hindi: 'Noto Sans Devanagari', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(37, 99, 235, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(245, 158, 11, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/* --- Top Ticker Bar --- */
.macro-ticker-bar {
  background: #04070d;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.5rem 0;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.ticker-inner {
  display: inline-flex;
  gap: 2.5rem;
  animation: tickerSlide 40s linear infinite;
}

.ticker-inner:hover {
  animation-play-state: paused;
}

@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.ticker-label {
  color: var(--text-muted);
}

.ticker-val.positive {
  color: var(--emerald-inflow);
  font-weight: 700;
}

.ticker-val.warning {
  color: #fb923c;
  font-weight: 700;
}

/* --- Portal Navigation --- */
.portal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 11, 19, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold-light);
  background: var(--gold-glow);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  font-family: var(--font-hindi);
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.currency-toggle {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px;
}

.curr-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.curr-btn.active {
  background: var(--blue-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.nav-cta-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.sub-nav-links {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.sub-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.sub-nav-links a:hover,
.sub-nav-links a.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

/* --- Hero Section --- */
.hero-section {
  max-width: 1320px;
  margin: 2.5rem auto 3rem auto;
  padding: 0 1.5rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--blue-light);
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid var(--border-blue);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  font-family: var(--font-hindi);
  background: linear-gradient(135deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 980px;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

/* --- Metric Pillars Grid --- */
.metric-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.pillar-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

.pillar-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.45);
}

.pillar-icon {
  font-size: 2.25rem;
  line-height: 1;
}

.pillar-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pillar-number {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
  margin-bottom: 0.35rem;
}

.pillar-sub {
  font-size: 0.78rem;
  line-height: 1.45;
}

.pillar-sub.positive {
  color: var(--emerald-inflow);
}

/* --- Section Containers --- */
.section-container {
  max-width: 1320px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.section-header {
  margin-bottom: 2rem;
}

.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  font-family: var(--font-hindi);
}

.section-desc {
  font-size: 0.96rem;
  color: var(--text-muted);
  max-width: 900px;
}

/* --- Cash Flow Statement Table --- */
.statement-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.4);
}

.statement-table-header {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.2fr 2fr;
  padding: 1.15rem 1.5rem;
  background: #090f1c;
  border-bottom: 2px solid var(--border-subtle);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.table-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(37, 99, 235, 0.1);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--blue-light);
}

.group-net {
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.statement-row {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.2fr 2fr;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  align-items: center;
  gap: 1rem;
  transition: background 0.15s ease;
}

.statement-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.col-particulars strong {
  font-size: 0.92rem;
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.col-particulars p {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.4;
}

.col-amount {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
}

.col-amount.positive {
  color: var(--emerald-inflow);
}

.col-amount.negative {
  color: var(--ruby-outflow);
}

.col-citizen {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}

.badge.in {
  background: var(--emerald-bg);
  color: var(--emerald-inflow);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge.out {
  background: var(--ruby-bg);
  color: var(--ruby-outflow);
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge.capital {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
}

.badge.buffer {
  background: rgba(96, 165, 250, 0.18);
  color: var(--blue-light);
  border: 1px solid var(--border-blue);
}

.table-total-row {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.2fr 2fr;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(37, 99, 235, 0.12) 100%);
  border-top: 2px solid var(--emerald-inflow);
  align-items: center;
  gap: 1rem;
}

.highlight-total {
  font-size: 1.2rem !important;
}

@media (max-width: 992px) {
  .statement-table-header { display: none; }
  .statement-row, .table-total-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 1.25rem;
  }
}

/* --- Fund Flow Grid --- */
.fundflow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

@media (max-width: 860px) {
  .fundflow-grid { grid-template-columns: 1fr; }
}

.fundflow-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.sources-card {
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, var(--bg-surface) 100%);
}

.uses-card {
  border: 1px solid rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, var(--bg-surface) 100%);
}

.ff-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.ff-icon {
  font-size: 2rem;
}

.ff-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.ff-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.ff-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.ff-item {
  background: rgba(0, 0, 0, 0.25);
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.ff-item-title {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.ff-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* --- Working Capital Box --- */
.working-capital-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.wc-header {
  margin-bottom: 1.5rem;
}

.wc-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.wc-header h4 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.wc-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.wc-metric {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.wc-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.wc-val {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.wc-val.positive { color: var(--emerald-inflow); }
.wc-val.neutral { color: var(--gold-light); }

.wc-desc {
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* --- Historical Chronology Timeline --- */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-era {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all 0.25s ease;
}

.timeline-era.active-era {
  border-color: var(--border-gold);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, var(--bg-surface) 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--gold-primary);
}

.era-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.era-badge.era-1 { background: rgba(244, 63, 94, 0.15); color: #fb7185; }
.era-badge.era-2 { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.era-badge.era-3 { background: rgba(16, 185, 129, 0.2); color: #34d399; }

.era-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  font-family: var(--font-hindi);
}

.era-summary {
  display: block;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.era-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.75rem;
}

@media (max-width: 860px) {
  .era-content { grid-template-columns: 1fr; }
}

.era-narrative p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  line-height: 1.65;
}

.era-stats-card {
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 0.6rem;
}

.stat-pill:last-child { border-bottom: none; }
.stat-pill span { color: var(--text-muted); }
.stat-pill strong { font-size: 0.95rem; font-family: var(--font-mono); }

/* --- Citizen Fund Allocation Matrix --- */
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.matrix-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

.matrix-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
}

.matrix-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.matrix-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.matrix-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--gold-light);
  background: var(--gold-glow);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.3rem;
}

.matrix-title {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.35;
}

.matrix-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.matrix-action-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.action-heading {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--blue-light);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.matrix-action-box ul {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.matrix-action-box li strong {
  color: var(--text-primary);
}

/* --- Simulator Section --- */
.simulator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
}

@media (max-width: 860px) {
  .simulator-wrapper { grid-template-columns: 1fr; }
}

.sim-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-family: var(--font-hindi);
}

.sim-field {
  margin-bottom: 1.25rem;
}

.sim-field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.input-addon {
  display: flex;
  align-items: center;
  background: #090e18;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0 0.85rem;
}

.input-addon span {
  color: var(--gold-light);
  font-weight: 800;
  font-size: 1.1rem;
  margin-right: 0.5rem;
}

.input-addon input {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.75rem 0;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--font-mono);
  outline: none;
}

.sim-calc-btn {
  width: 100%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  border: none;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  transition: all 0.2s;
  margin-top: 0.5rem;
}

.sim-calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.sim-result-card {
  background: #090f1d;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.surplus-display {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.surplus-display span {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.surplus-display strong {
  font-size: 1.35rem;
  color: var(--emerald-inflow);
  font-family: var(--font-mono);
}

.allocation-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.alloc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
}

.alloc-tag {
  font-size: 0.82rem;
  font-weight: 700;
  display: block;
}

.alloc-label p {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin: 0;
}

.alloc-val {
  font-size: 1.1rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--gold-light);
}

.health-indicator-box {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.health-indicator-box span {
  color: var(--emerald-inflow);
  font-weight: 700;
}

/* --- Footer --- */
.portal-footer {
  border-top: 1px solid var(--border-subtle);
  background: #04070d;
  margin-top: 5rem;
  padding: 3rem 1.5rem 2rem 1.5rem;
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto 2rem auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold-light);
  font-family: var(--font-hindi);
  margin-bottom: 0.4rem;
}

.footer-left p {
  font-size: 0.82rem;
  color: var(--text-dim);
  max-width: 480px;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}
