@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ==========================================================================
   AMANI DESIGN SYSTEM TOKENS
   ========================================================================== */
:root {
  --amani-primary: #0D4B8A;       /* Primary Dark Blue */
  --amani-primary-hover: #093766;
  --amani-secondary: #26B9F3;     /* Secondary Light Blue */
  --amani-secondary-hover: #0da8e4;
  --amani-bg-app: #F4F9FD;        /* Soft Blue Background */
  --amani-text-dark: #1A2B49;     /* Body & Headings */
  --amani-text-muted: #8A9AA8;    /* Muted Labels & Footers */
  --amani-border-light: rgba(13, 75, 138, 0.08);
  --amani-card-bg: #FFFFFF;
  --amani-input-bg: #EDF4FA;
  --amani-success: #10B981;
  --amani-warning: #F59E0B;
  --amani-danger: #EF4444;

  --amani-radius-sm: 12px;
  --amani-radius-md: 14px;
  --amani-radius-lg: 16px;

  --amani-shadow-card: 0 4px 20px rgba(13, 75, 138, 0.06);
  --amani-shadow-btn: 0 4px 14px rgba(38, 185, 243, 0.35);
  --amani-shadow-hover: 0 8px 26px rgba(13, 75, 138, 0.12);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--amani-bg-app);
  color: var(--amani-text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.amani-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--amani-border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(13, 75, 138, 0.03);
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.amani-logo {
  height: 38px;
  object-fit: contain;
}

.divider-v {
  width: 1px;
  height: 32px;
  background-color: var(--amani-border-light);
}

.brand-title {
  display: flex;
  flex-direction: column;
}

.app-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--amani-primary);
  letter-spacing: -0.3px;
}

.app-sub {
  font-size: 12px;
  color: var(--amani-text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.badge-status-due {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FEF3C7;
  color: #B45309;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid #FDE68A;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #F59E0B;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

.pulse-dot-small {
  width: 7px;
  height: 7px;
  background-color: var(--amani-secondary);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.5s infinite;
}

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

.btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--amani-border-light);
  padding: 8px 16px;
  border-radius: var(--amani-radius-sm);
  color: var(--amani-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-refresh:hover {
  background: var(--amani-input-bg);
  border-color: var(--amani-secondary);
}

/* Nav Tabs Bar */
.nav-tabs-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--amani-border-light);
}

.nav-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--amani-text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  position: relative;
}

.tab-btn:hover {
  color: var(--amani-primary);
}

.tab-btn.active {
  color: var(--amani-primary);
  border-bottom-color: var(--amani-primary);
}

.tab-btn.highlight-blue {
  color: var(--amani-primary);
}

.tab-btn.highlight-blue.active {
  border-bottom-color: var(--amani-secondary);
}

.tab-btn.highlight-cgd {
  color: #047857;
}

.tab-btn.highlight-cgd.active {
  border-bottom-color: #10B981;
}

.tab-btn.highlight {
  color: #B45309;
}

.tab-btn.highlight.active {
  border-bottom-color: #F59E0B;
}

.tag-cgd {
  background: #D1FAE5;
  color: #065F46;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

.warning-tag {
  background: #FEE2E2;
  color: #DC2626;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

/* Main Content */
.main-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}

.tab-pane.active {
  display: block;
}

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

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.amani-stat-card {
  background: var(--amani-card-bg);
  border-radius: var(--amani-radius-lg);
  padding: 22px 24px;
  box-shadow: var(--amani-shadow-card);
  border: 1px solid var(--amani-border-light);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.amani-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--amani-shadow-hover);
}

.amani-stat-card.highlighted-card {
  background: linear-gradient(135deg, var(--amani-primary) 0%, #093766 100%);
  border: none;
}

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

.stat-title {
  color: var(--amani-text-muted);
  font-size: 13px;
  font-weight: 600;
}

.stat-title.text-light {
  color: rgba(255, 255, 255, 0.8);
}

.stat-badge-info {
  background: #E8F7FE;
  color: var(--amani-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.stat-badge-light {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.stat-badge-warning {
  background: #FEF3C7;
  color: #D97706;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.stat-value {
  color: var(--amani-primary);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.stat-value.text-white {
  color: #FFFFFF;
}

.stat-footer {
  color: var(--amani-text-muted);
  font-size: 13px;
}

.stat-footer.text-light {
  color: rgba(255, 255, 255, 0.75);
}

/* Two Column Layout */
.two-column-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

@media (max-width: 1080px) {
  .two-column-layout {
    grid-template-columns: 1fr;
  }
}

.content-card {
  background: var(--amani-card-bg);
  border-radius: var(--amani-radius-lg);
  padding: 24px;
  box-shadow: var(--amani-shadow-card);
  border: 1px solid var(--amani-border-light);
}

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

.card-header-flex h3 {
  color: var(--amani-primary);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-header-flex p {
  color: var(--amani-text-muted);
  font-size: 13px;
}

.select-timeline-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.select-timeline-wrapper label {
  font-size: 13px;
  font-weight: 600;
  color: var(--amani-text-dark);
  white-space: nowrap;
}

.amani-select {
  padding: 8px 14px;
  background: var(--amani-input-bg);
  border: 1px solid transparent;
  border-radius: var(--amani-radius-sm);
  color: var(--amani-text-dark);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
}

.amani-select:focus {
  background: #FFFFFF;
  border-color: var(--amani-secondary);
  box-shadow: 0 0 0 3px rgba(38, 185, 243, 0.15);
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.amani-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.amani-table th {
  background: #F8FAFC;
  color: var(--amani-primary);
  font-weight: 600;
  padding: 12px 16px;
  border-bottom: 2px solid var(--amani-border-light);
  white-space: nowrap;
}

.amani-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--amani-border-light);
  color: var(--amani-text-dark);
  vertical-align: middle;
}

.amani-table tbody tr:hover {
  background: #F9FBFE;
}

.amani-table tfoot td {
  background: #F1F6FB;
  font-weight: 700;
  color: var(--amani-primary);
  padding: 14px 16px;
  border-top: 2px solid var(--amani-border-light);
}

.text-right { text-align: right; }
.text-center { text-align: center; }
.text-primary { color: var(--amani-primary); font-weight: 600; }
.text-success { color: var(--amani-success); }
.text-danger { color: var(--amani-danger); }
.text-cgd-bold { color: #047857; font-weight: 700; font-size: 16px; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.badge-pct {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 12px;
  background: #E8F7FE;
  color: var(--amani-primary);
}

.legal-badge-bar {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--amani-border-light);
}

.badge-legal {
  font-size: 12.5px;
  color: var(--amani-text-muted);
}

.badge-legal strong {
  color: var(--amani-text-dark);
}

/* Charts */
.chart-container {
  height: 280px;
  position: relative;
}

.chart-legend-box {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--amani-bg-app);
}

.legend-color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

/* Notice Banners */
.notice-banner {
  display: flex;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--amani-radius-md);
  margin-bottom: 24px;
}

.notice-banner.info-banner {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
}

.notice-banner.warning-banner {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
}

.notice-banner.banner-cgd {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
}

.notice-icon {
  font-size: 24px;
  line-height: 1;
}

.notice-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--amani-primary);
  margin-bottom: 4px;
}

.notice-text p {
  font-size: 13.5px;
  color: var(--amani-text-dark);
  line-height: 1.6;
}

/* Chronology Timeline Styles */
.chronology-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-event-card {
  background: #FFFFFF;
  border-radius: var(--amani-radius-lg);
  border: 1px solid var(--amani-border-light);
  box-shadow: var(--amani-shadow-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.timeline-event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--amani-shadow-hover);
}

.event-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.event-step {
  font-size: 12px;
  font-weight: 700;
  color: var(--amani-primary);
  background: #E8F7FE;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.event-badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.badge-blue { background: #E0F2FE; color: #0369A1; }
.badge-green { background: #DCFCE7; color: #166534; }
.badge-purple { background: #F3E8FF; color: #6B21A8; }
.badge-amber { background: #FEF3C7; color: #B45309; }
.badge-cgd { background: #D1FAE5; color: #065F46; }

.timeline-event-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--amani-primary);
  margin: 0;
}

.event-desc {
  font-size: 14px;
  color: var(--amani-text-dark);
  line-height: 1.6;
}

.event-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 6px;
}

.event-metric-box {
  background: var(--amani-bg-app);
  border: 1px solid var(--amani-border-light);
  border-radius: var(--amani-radius-sm);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-lbl {
  font-size: 12px;
  color: var(--amani-text-muted);
  font-weight: 600;
}

.metric-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--amani-text-dark);
}

.event-callout {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--amani-radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: #166534;
  line-height: 1.5;
}

.event-callout.callout-warning {
  background: #FFFBEB;
  border-color: #FDE68A;
  color: #92400E;
}

.event-callout.callout-cgd {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #065F46;
}

/* CGD Tab Grids */
.cgd-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.cgd-card {
  background: #FFFFFF;
  border-radius: var(--amani-radius-lg);
  border: 1px solid var(--amani-border-light);
  box-shadow: var(--amani-shadow-card);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
}

.cgd-card.featured-cgd-card {
  background: linear-gradient(135deg, #047857 0%, #065F46 100%);
  border: none;
}

.cgd-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--amani-text-muted);
}

.badge-cgd-pill {
  background: #D1FAE5;
  color: #065F46;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.badge-cgd-white {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}

.cgd-card-val {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cgd-card-desc {
  font-size: 12.5px;
  color: var(--amani-text-muted);
}

.text-white-muted {
  color: rgba(255, 255, 255, 0.8) !important;
}

.row-highlight-active {
  background: #F0FDF4 !important;
}

/* Buyback Grid */
.buyback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.buyback-card {
  background: #FFFFFF;
  border-radius: var(--amani-radius-lg);
  border: 1px solid var(--amani-border-light);
  box-shadow: var(--amani-shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.buyback-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--amani-shadow-hover);
}

.bb-header {
  padding: 18px 20px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--amani-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bb-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--amani-primary);
}

.bb-tag {
  background: #E0F2FE;
  color: #0369A1;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
}

.bb-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bb-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.bb-stat-sub {
  font-size: 12px;
  color: var(--amani-text-muted);
  margin-top: -8px;
}

.bb-highlight-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--amani-radius-sm);
  padding: 14px;
}

.bb-target-title {
  font-size: 12px;
  font-weight: 700;
  color: #166534;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.bb-key-metric {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.metric-col span {
  font-size: 11px;
  color: #166534;
}

.metric-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #15803D;
}

.bb-total-cost {
  padding-top: 10px;
  border-top: 1px dashed #86EFAC;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #166534;
}

.cost-amount {
  font-size: 16px;
  font-weight: 700;
  color: #15803D;
}

.bb-result-box {
  background: var(--amani-bg-app);
  padding: 12px 14px;
  border-radius: var(--amani-radius-sm);
}

.result-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--amani-text-muted);
  margin-bottom: 4px;
}

.bb-result-box p {
  font-size: 12.5px;
  color: var(--amani-text-dark);
  line-height: 1.5;
}

/* Liquidity Summary Card */
.liquidity-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 14px;
}

.liq-item {
  background: var(--amani-bg-app);
  padding: 18px 20px;
  border-radius: var(--amani-radius-md);
  border: 1px solid var(--amani-border-light);
}

.liq-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--amani-text-muted);
}

.liq-val {
  font-size: 22px;
  font-weight: 700;
  margin: 6px 0;
}

.liq-desc {
  font-size: 12px;
  color: var(--amani-text-muted);
}

/* Amanah Pillars Grid */
.amanah-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.pillar-card {
  background: #FFFFFF;
  border-radius: var(--amani-radius-lg);
  border: 1px solid var(--amani-border-light);
  box-shadow: var(--amani-shadow-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.pillar-card.disputed-card {
  border-color: #FECACA;
  background: #FFFBFB;
}

.pillar-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 14px;
}

.badge-green { background: #DCFCE7; color: #166534; }
.badge-blue { background: #E0F2FE; color: #0369A1; }
.badge-red { background: #FEE2E2; color: #991B1B; }

.pillar-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--amani-primary);
  margin-bottom: 12px;
}

.pillar-figure {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--amani-border-light);
}

.big-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--amani-primary);
  letter-spacing: -0.5px;
}

.big-sub {
  font-size: 13px;
  color: var(--amani-text-muted);
  margin-top: 2px;
}

.pillar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.pillar-list li {
  position: relative;
  padding-left: 18px;
}

.pillar-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--amani-secondary);
  font-size: 16px;
}

.disputed-card .pillar-list li::before {
  color: var(--amani-danger);
}

.pillar-status {
  padding: 10px 14px;
  border-radius: var(--amani-radius-sm);
  font-size: 12.5px;
}

.status-valid {
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #BBF7D0;
}

.status-disputed {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.badge-pill {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: #E0F2FE;
  color: #0369A1;
}

.pill-danger {
  background: #FEE2E2;
  color: #DC2626;
}

.row-highlight-danger {
  background: #FFF5F5 !important;
}

.total-row td {
  background: #F1F6FB !important;
  font-size: 14px;
  border-top: 2px solid var(--amani-border-light);
}

/* Simulator */
.simulator-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  background: var(--amani-bg-app);
  padding: 20px;
  border-radius: var(--amani-radius-md);
  margin-top: 14px;
}

.sim-control-box h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--amani-primary);
  margin-bottom: 14px;
}

.toggle-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.switch-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.switch-container input {
  display: none;
}

.switch-slider {
  width: 40px;
  height: 22px;
  background: #CBD5E1;
  border-radius: 20px;
  position: relative;
  transition: all 0.2s;
  flex-shrink: 0;
}

.switch-slider::after {
  content: "";
  width: 16px;
  height: 16px;
  background: #FFFFFF;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: all 0.2s;
}

.switch-container input:checked + .switch-slider {
  background: var(--amani-secondary);
}

.switch-container input:checked + .switch-slider::after {
  transform: translateX(18px);
}

.switch-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--amani-text-dark);
}

.select-box-custom label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--amani-text-muted);
  margin-bottom: 6px;
}

.select-box-custom select {
  width: 100%;
}

.sim-mini-note {
  margin-top: 10px;
  font-size: 12px;
  color: var(--amani-text-muted);
}

.sim-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.kpi-card {
  background: #FFFFFF;
  border-radius: var(--amani-radius-md);
  border: 1px solid var(--amani-border-light);
  padding: 18px 20px;
  box-shadow: var(--amani-shadow-card);
}

.kpi-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--amani-text-muted);
}

.kpi-value {
  font-size: 22px;
  font-weight: 700;
  margin: 6px 0;
}

.kpi-desc {
  font-size: 12px;
  color: var(--amani-text-muted);
}

/* Subsidiary Tabs */
.subsidiary-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sub-tab-btn {
  padding: 10px 18px;
  background: #FFFFFF;
  border: 1px solid var(--amani-border-light);
  border-radius: var(--amani-radius-sm);
  color: var(--amani-text-dark);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.sub-tab-btn:hover {
  background: var(--amani-input-bg);
  border-color: var(--amani-secondary);
}

.sub-tab-btn.active {
  background: var(--amani-primary);
  color: #FFFFFF;
  border-color: var(--amani-primary);
}

/* Buttons */
.amani-btn-primary {
  padding: 10px 20px;
  background: var(--amani-secondary);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: var(--amani-radius-sm);
  cursor: pointer;
  box-shadow: var(--amani-shadow-btn);
  transition: all 0.2s ease;
}

.amani-btn-primary:hover {
  background: var(--amani-secondary-hover);
  transform: translateY(-1px);
}

.amani-btn-secondary {
  padding: 10px 20px;
  background: #FFFFFF;
  color: var(--amani-primary);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--amani-border-light);
  border-radius: var(--amani-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.amani-btn-secondary:hover {
  background: var(--amani-input-bg);
  border-color: var(--amani-secondary);
}

/* Modal */
.amani-modal {
  border: none;
  border-radius: var(--amani-radius-lg);
  padding: 0;
  max-width: 600px;
  width: 90%;
  margin: auto;
  box-shadow: 0 10px 40px rgba(13, 75, 138, 0.2);
}

.amani-modal::backdrop {
  background: rgba(13, 75, 138, 0.35);
  backdrop-filter: blur(4px);
}

.modal-box {
  background: #FFFFFF;
  padding: 24px;
  border-radius: var(--amani-radius-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--amani-border-light);
}

.modal-header h3 {
  font-size: 18px;
  color: var(--amani-primary);
  font-weight: 700;
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--amani-text-muted);
  cursor: pointer;
}

.modal-body {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
  color: var(--amani-text-dark);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Footer */
.amani-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--amani-border-light);
  margin-top: 48px;
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: var(--amani-text-muted);
}

.footer-left strong {
  color: var(--amani-primary);
}

.footer-right {
  font-size: 12px;
  color: var(--amani-text-muted);
}

/* Utilities */
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-24 { margin-top: 24px; }

/* Scenario Switcher Styles */
.highlight-green {
  border-bottom-color: #10B981 !important;
}
.highlight-green.active {
  color: #065F46 !important;
  border-bottom: 3px solid #10B981 !important;
  background: #F0FDF4;
}

.tag-buyback-sim {
  font-size: 9.5px;
  font-weight: 700;
  background: #10B981;
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.scenario-toggle-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.btn-scenario {
  background: #FFFFFF;
  border: 2px solid var(--amani-border-light);
  border-radius: var(--amani-radius-md);
  padding: 16px 20px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-scenario:hover {
  border-color: var(--amani-secondary);
  background: #F8FAFC;
}

.btn-scenario.active {
  border-color: var(--amani-primary);
  background: #EFF6FF;
  box-shadow: 0 4px 12px rgba(13, 75, 138, 0.12);
}

.sc-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--amani-primary);
  background: #DBEAFE;
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
  text-transform: uppercase;
}

.sc-badge.sc-badge-agi {
  color: #0284C7;
  background: #E0F2FE;
}

.btn-scenario strong {
  font-size: 15px;
  color: var(--amani-text-dark);
}

.btn-scenario small {
  font-size: 12px;
  color: var(--amani-text-muted);
}

.scenario-content-block {
  display: none;
}

.scenario-content-block.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.scenario-notes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.sc-note-card {
  background: var(--amani-bg-app);
  border: 1px solid var(--amani-border-light);
  border-radius: var(--amani-radius-sm);
  padding: 16px 20px;
}

.sc-note-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--amani-primary);
  margin-bottom: 8px;
}

.sc-note-card ul {
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--amani-text-dark);
}

.sc-note-card li {
  margin-bottom: 6px;
}

/* Step-by-Step Navigator & Card Styles */
.step-nav-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.btn-step-pill {
  flex: 1;
  min-width: 140px;
  background: #FFFFFF;
  border: 1.5px solid var(--amani-border-light);
  border-radius: var(--amani-radius-md);
  padding: 12px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  transition: all 0.2s ease;
}

.btn-step-pill:hover {
  border-color: var(--amani-secondary);
  background: #F8FAFC;
}

.btn-step-pill.active {
  border-color: var(--amani-primary);
  background: #EFF6FF;
  box-shadow: 0 4px 10px rgba(13, 75, 138, 0.12);
}

.btn-step-pill.highlight-pill {
  border-color: #10B981;
}
.btn-step-pill.highlight-pill.active {
  background: #ECFDF5;
  border-color: #059669;
}

.step-num {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--amani-primary);
}

.highlight-pill .step-num {
  color: #059669;
}

.step-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--amani-text-dark);
}

.step-detail-card {
  display: none;
}

.step-detail-card.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.badge-step-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--amani-primary);
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.step-summary-callout {
  margin-top: 16px;
  padding: 14px 18px;
  background: #F8FAFC;
  border-left: 4px solid var(--amani-secondary);
  border-radius: 4px;
  font-size: 13.5px;
  color: var(--amani-text-dark);
}

.final-path-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 992px) {
  .final-path-comparison {
    grid-template-columns: 1fr;
  }
}

.path-card {
  background: #FFFFFF;
  border: 2px solid var(--amani-border-light);
  border-radius: var(--amani-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.path-card.path-recommended {
  border-color: var(--amani-primary);
  background: #FAFCFF;
}

.path-badge {
  font-size: 11px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--amani-primary);
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
}

.path-badge-agi {
  background: #0284C7;
}

.path-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--amani-text-dark);
}

/* ============================================================ */
/* 2-COLUMN SPLIT LAYOUT: STEP-BY-STEP (LEFT) & CAP TABLE (RIGHT) */
/* ============================================================ */
.step-split-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
  align-items: flex-start;
  margin-top: 16px;
}

@media (max-width: 1200px) {
  .step-split-layout {
    grid-template-columns: 360px 1fr;
    gap: 18px;
  }
}

@media (max-width: 960px) {
  .step-split-layout {
    grid-template-columns: 1fr;
  }
}

/* Left Column: Step Cards & Navigator */
.step-left-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-item-card {
  background: #FFFFFF;
  border: 2px solid var(--amani-border-light);
  border-radius: var(--amani-radius-md);
  padding: 16px 18px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--amani-shadow-sm);
  position: relative;
  overflow: hidden;
}

.step-item-card:hover {
  border-color: var(--amani-secondary);
  background: #F8FAFC;
  transform: translateY(-2px);
  box-shadow: var(--amani-shadow-md);
}

.step-item-card.active {
  border-color: var(--amani-primary);
  background: #F0F7FF;
  box-shadow: 0 6px 16px rgba(13, 75, 138, 0.12);
}

.step-item-card.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--amani-primary);
}

.step-item-card.step-highlight-green.active {
  border-color: #059669;
  background: #ECFDF5;
}
.step-item-card.step-highlight-green.active::before {
  background: #059669;
}

.step-item-card.step-highlight-red.active {
  border-color: #DC2626;
  background: #FEF2F2;
}
.step-item-card.step-highlight-red.active::before {
  background: #DC2626;
}

.step-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.step-pill-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: #E2E8F0;
  color: #334155;
  letter-spacing: 0.5px;
}

.step-item-card.active .step-pill-badge {
  background: var(--amani-primary);
  color: #FFFFFF;
}

.step-item-card.step-highlight-green.active .step-pill-badge {
  background: #059669;
  color: #FFFFFF;
}

.step-item-card.step-highlight-red.active .step-pill-badge {
  background: #DC2626;
  color: #FFFFFF;
}

.step-card-shares {
  font-size: 12px;
  font-weight: 700;
  color: var(--amani-text-muted);
}

.step-item-card.active .step-card-shares {
  color: var(--amani-primary);
}

.step-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--amani-text-dark);
  line-height: 1.35;
  margin-bottom: 6px;
}

.step-card-summary {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

.step-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.step-micro-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: #F1F5F9;
  color: #475569;
}

.step-item-card.active .step-micro-tag {
  background: #DBEAFE;
  color: #1E40AF;
}

/* Right Column: Dynamic Cap Table & Context */
.step-right-column {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (max-width: 960px) {
  .step-right-column {
    position: static;
  }
}

.step-table-panel {
  background: #FFFFFF;
  border: 1px solid var(--amani-border-light);
  border-radius: var(--amani-radius-md);
  padding: 22px 24px;
  box-shadow: var(--amani-shadow-sm);
  display: none;
}

.step-table-panel.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

.step-table-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--amani-border-light);
  gap: 16px;
}

.step-table-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--amani-primary);
  margin: 0 0 4px 0;
}

.step-table-header p {
  font-size: 13px;
  color: var(--amani-text-muted);
  margin: 0;
  line-height: 1.45;
}

.step-badge-counter {
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--amani-primary);
  color: #FFFFFF;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.step-table-info-box {
  margin-top: 14px;
  padding: 12px 16px;
  background: #F8FAFC;
  border-left: 4px solid var(--amani-secondary);
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--amani-text-dark);
}

.step-table-info-box.alert-green {
  background: #ECFDF5;
  border-left-color: #059669;
  color: #065F46;
}

.step-table-info-box.alert-blue {
  background: #EFF6FF;
  border-left-color: #0284C7;
  color: #1E40AF;
}

.step-table-info-box.alert-red {
  background: #FEF2F2;
  border-left-color: #DC2626;
  color: #991B1B;
}

/* ==========================================================================
   TRANSAKSI HAJJ & FINANCIAL STATEMENTS STYLES
   ========================================================================== */
.tab-btn.highlight-gold.active {
  border-bottom-color: #D97706;
  color: #B45309;
}
.tab-btn.highlight-gold:hover {
  color: #B45309;
}

.tab-btn.highlight-green.active {
  border-bottom-color: #059669;
  color: #047857;
}
.tab-btn.highlight-green:hover {
  color: #047857;
}

.simulation-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sim-toggle-btn {
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #475569;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-toggle-btn:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  color: #0F172A;
}

.sim-toggle-btn.active {
  background: #0D4B8A;
  color: #FFFFFF;
  border-color: #0D4B8A;
  box-shadow: 0 2px 8px rgba(13, 75, 138, 0.25);
}

.mgmt-task-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 75, 138, 0.08) !important;
  border-color: #CBD5E1 !important;
}

@media (max-width: 900px) {
  .simulation-btn-group {
    width: 100%;
    margin-top: 10px;
  }
}




