:root {
  --bg-top: #d7eef8;
  --bg-bottom: #f7f0d4;
  --card: rgba(255, 251, 240, 0.78);
  --card-border: rgba(15, 76, 92, 0.12);
  --ink: #14313b;
  --muted: #4d6971;
  --accent: #0f4c5c;
  --accent-strong: #0a3642;
  --mint: #1f8f6b;
  --rose: #b94a48;
  --shadow: 0 24px 70px rgba(11, 43, 53, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: 'Space Grotesk', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), transparent 28%),
    radial-gradient(circle at right 20%, rgba(180, 123, 25, 0.18), transparent 22%),
    linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(15, 76, 92, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 76, 92, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 95%);
}

body.modal-open {
  overflow: hidden;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.hero,
.section-nav,
.card,
.footer {
  position: relative;
  z-index: 1;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.card,
.section-nav {
  backdrop-filter: blur(20px);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 38px;
}

.hero-panel,
.card {
  padding: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: 'Fraunces', serif;
  margin: 0;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.95;
  max-width: 8ch;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.hero-text,
.panel-note,
.footer p,
.table-wrap,
th,
td,
.summary-grid,
.hero-metrics,
.section-nav a {
  color: var(--muted);
}

.hero-text {
  margin: 18px 0 0;
  max-width: 58ch;
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-icon {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(180, 123, 25, 0.22);
  flex: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button-badge {
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 16px;
  overflow: hidden;
}

.button-primary.button-badge {
  background: transparent;
  box-shadow: none;
}

.button-badge img {
  display: block;
  width: 190px;
  height: auto;
}

.button:hover,
.playstore-footer:hover,
.chart-expand:hover,
.chart-modal-close:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #f8fcfd;
  box-shadow: 0 14px 30px rgba(15, 76, 92, 0.18);
}

.button-secondary {
  background: linear-gradient(135deg, rgba(180, 123, 25, 0.12), rgba(180, 123, 25, 0.2));
  color: var(--ink);
  border: 1px solid rgba(180, 123, 25, 0.25);
}

.button-donate {
  border: 1px solid rgba(31, 143, 107, 0.28);
  background: linear-gradient(135deg, #1f8f6b, #14664c);
  color: #f4fff8;
  box-shadow: 0 14px 30px rgba(31, 143, 107, 0.2);
}

.panel-chip,
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(15, 76, 92, 0.08);
}

.panel-value {
  margin-top: 16px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
}

.refresh-control-row {
  margin-top: 18px;
}

.toggle-control {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
}

.toggle-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-slider {
  position: relative;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: rgba(15, 76, 92, 0.14);
  transition: background-color 160ms ease;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fffef8;
  box-shadow: 0 8px 18px rgba(11, 43, 53, 0.18);
  transition: transform 160ms ease;
}

.toggle-control input:checked + .toggle-slider {
  background: rgba(31, 143, 107, 0.78);
}

.toggle-control input:checked + .toggle-slider::after {
  transform: translateX(22px);
}

.toggle-label {
  font-size: 0.94rem;
}

.hero-metrics {
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hero-metrics dt {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-metrics dd {
  margin: 8px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 22px 0;
  padding: 18px 22px;
}

.section-nav a {
  text-decoration: none;
  font-weight: 700;
}

.section-nav a:hover,
.footer a:hover {
  color: var(--accent);
}

.dashboard-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 22px;
  align-items: start;
}

main {
  display: grid;
  gap: 22px;
}

.news-rail {
  display: grid;
  gap: 18px;
  min-width: 0;
  align-self: start;
}

.news-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rail-heading {
  margin-bottom: 14px;
}

.rail-note {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.5;
}

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

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.metric,
.ai-copy,
.ai-sidecard,
.chart-panel {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(15, 76, 92, 0.08);
}

.metric-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-value {
  margin-top: 10px;
  font-size: 1.32rem;
  font-weight: 700;
  color: var(--ink);
}

.metric-value.positive {
  color: var(--mint);
}

.metric-value.negative {
  color: var(--rose);
}

.ai-summary-text {
  margin: 0 0 18px;
  line-height: 1.7;
  color: var(--ink);
}

.ai-summary-text > *:first-child {
  margin-top: 0;
}

.ai-summary-text h2,
.ai-summary-text h3,
.ai-summary-text h4 {
  margin: 18px 0 10px;
  color: var(--accent-strong);
}

.ai-summary-text p,
.ai-summary-text ul,
.ai-summary-text ol {
  margin: 0 0 14px;
}

.ai-summary-text ul,
.ai-summary-text ol {
  padding-left: 22px;
}

.ai-summary-text li + li {
  margin-top: 8px;
}

.ai-summary-text strong {
  color: var(--accent-strong);
}

.chip-list,
.headline-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-list li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 76, 92, 0.08);
  color: var(--ink);
}

.headline-list li {
  color: var(--ink);
  line-height: 1.5;
}

.headline-list li a {
  display: grid;
  gap: 6px;
  text-decoration: none;
}

.headline-list li + li {
  margin-top: 10px;
}

.market-tape {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(15, 76, 92, 0.08);
}

.ticker-marquee {
  overflow: hidden;
  padding: 12px 0;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.ticker-track {
  display: inline-flex;
  gap: 12px;
  min-width: max-content;
  animation: ticker-slide 42s linear infinite;
  padding-right: 12px;
}

.ticker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.ticker-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(15, 76, 92, 0.08);
  white-space: nowrap;
}

.ticker-label {
  font-weight: 700;
  color: var(--ink);
}

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

.ticker-change {
  font-weight: 700;
}

.news-feed-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  color: var(--ink);
  gap: 12px;
}

.news-feed-item {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(15, 76, 92, 0.08);
  color: var(--ink);
}

.news-feed-item a {
  display: grid;
  gap: 6px;
  text-decoration: none;
  min-width: 0;
}

.news-source {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.news-title {
  color: var(--ink);
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.news-time {
  font-size: 0.78rem;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 76, 92, 0.08);
  white-space: nowrap;
}

th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

tbody tr:hover {
  background: rgba(15, 76, 92, 0.04);
}

.chart-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.chart-panel {
  cursor: zoom-in;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.svg-chart {
  min-height: 360px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(15, 76, 92, 0.08);
}

.svg-chart svg {
  width: 100%;
  height: 100%;
}

.svg-chart-large {
  min-height: 560px;
}

.chart-expand,
.chart-modal-close,
.select-control {
  font: inherit;
}

.chart-expand,
.chart-modal-close {
  border: 0;
  border-radius: 999px;
  background: rgba(15, 76, 92, 0.1);
  color: var(--accent);
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}

.chart-expand {
  margin-top: 14px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.select-label {
  font-weight: 700;
  color: var(--ink);
}

.select-control {
  min-width: 220px;
  border-radius: 12px;
  border: 1px solid rgba(15, 76, 92, 0.18);
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.9);
}

.chart-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.chart-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 30, 0.58);
}

.chart-modal-card {
  position: relative;
  width: min(1380px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  margin: 14px auto;
  padding: 24px;
  border-radius: 28px;
  background: #fff9ef;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
}

.chart-modal-header {
  margin-bottom: 16px;
}

.donate-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 24, 30, 0.58);
}

.donate-modal {
  position: relative;
  width: min(440px, 100%);
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fffaf0, #f7ecd1);
  border: 1px solid rgba(15, 76, 92, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
}

.donate-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(15, 76, 92, 0.16);
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.donate-modal-title {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 10px;
}

.donate-modal-copy {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.donate-vpa {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(15, 76, 92, 0.08);
  border: 1px solid rgba(15, 76, 92, 0.12);
  font-weight: 700;
}

.donate-vpa a {
  color: var(--mint);
  text-decoration: none;
}

.holiday-calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.holiday-month {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(15, 76, 92, 0.08);
}

.holiday-month h3 {
  margin-bottom: 12px;
}

.holiday-weekdays,
.holiday-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.holiday-weekdays span {
  text-align: center;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.holiday-day {
  min-height: 42px;
  padding: 6px 4px;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  color: var(--ink);
  background: rgba(15, 76, 92, 0.04);
}

.holiday-day.empty {
  background: transparent;
}

.holiday-day.weekend {
  color: var(--rose);
  background: rgba(185, 74, 72, 0.08);
}

.holiday-day.holiday {
  color: #fff6f4;
  background: linear-gradient(135deg, #c75b54, #9f312e);
}

.holiday-day span {
  display: block;
  font-size: 0.98rem;
}

.holiday-day small {
  display: block;
  margin-top: 2px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.holiday-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.holiday-item {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(15, 76, 92, 0.08);
}

.holiday-item-date {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.holiday-item-text {
  color: var(--ink);
  line-height: 1.4;
}

.holiday-month-note {
  margin: 14px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 8px 0 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.footer a {
  color: var(--accent);
}

.footer-copy {
  display: grid;
  gap: 8px;
}

.footer-brandline {
  margin: 0;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
}

.footer-separator {
  color: rgba(20, 49, 59, 0.44);
}

.playstore-footer {
  display: inline-flex;
  width: min(240px, calc(100vw - 28px));
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(10, 38, 47, 0.14);
  transition: transform 160ms ease;
}

.playstore-footer img {
  display: block;
  width: 100%;
  height: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal-up 640ms ease forwards;
}

.delay-1 {
  animation-delay: 120ms;
}

.delay-2 {
  animation-delay: 220ms;
}

.delay-3 {
  animation-delay: 320ms;
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ticker-slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1120px) {
  .hero,
  .dashboard-shell,
  .news-rail,
  .chart-stack,
  .summary-grid,
  .holiday-calendar-grid,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 18px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer {
    display: grid;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 18px, 100%);
    padding-top: 14px;
  }

  .hero-copy,
  .hero-panel,
  .card,
  .footer,
  .chart-modal-card {
    padding: 22px;
  }

  .summary-grid,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .filter-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .section-nav {
    gap: 12px;
  }

  .playstore-footer,
  .select-control {
    width: 100%;
  }

  .toggle-control {
    align-items: flex-start;
  }

  .footer-links {
    gap: 8px;
  }

  .ticker-grid {
    grid-template-columns: 1fr 1fr;
  }

  h1 {
    max-width: none;
  }

  .hero-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-card,
  .news-feed-list {
    max-height: none;
  }
}

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

  .ticker-chip {
    display: inline-flex;
  }

  .ticker-change {
    justify-self: auto;
  }
}
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(15, 76, 92, 0.08);
  }

  .metric-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .metric-value {
    margin-top: 10px;
    font-size: 1.32rem;
    font-weight: 700;
    color: var(--ink);
  }

  .metric-value.positive {
    color: var(--mint);
  }

  .metric-value.negative {
    color: var(--rose);
  }

  .ai-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
  }

  .ai-summary-text {
    margin: 0 0 18px;
    line-height: 1.7;
    color: var(--ink);
  }

  .chip-list,
  .headline-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
  }

  .chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .chip-list li {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 76, 92, 0.08);
    color: var(--ink);
  }

  .headline-list li {
    color: var(--ink);
  }

  .headline-list li + li {
    margin-top: 10px;
  }

  .table-wrap {
    overflow-x: auto;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
  }

  th,
  td {
    padding: 13px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(15, 76, 92, 0.08);
    white-space: nowrap;
  }

  th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  tbody tr:hover {
    background: rgba(15, 76, 92, 0.04);
  }

  .chart-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .chart-panel {
    cursor: zoom-in;
  }

  .chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
  }

  .legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    font-size: 0.92rem;
  }

  .legend-swatch {
    width: 14px;
    height: 14px;
    border-radius: 4px;
  }

  .svg-chart {
    min-height: 360px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(15, 76, 92, 0.08);
  }

  .svg-chart svg {
    width: 100%;
    height: 100%;
  }

  .svg-chart-large {
    min-height: 560px;
  }

  .chart-expand,
  .chart-modal-close,
  .select-control {
    font: inherit;
  }

  .chart-expand,
  .chart-modal-close {
    border: 0;
    border-radius: 999px;
    background: rgba(15, 76, 92, 0.1);
    color: var(--accent);
    padding: 10px 14px;
    cursor: pointer;
  }

  .chart-expand {
    margin-top: 14px;
  }

  .filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }

  .select-label {
    font-weight: 700;
    color: var(--ink);
  }

  .select-control {
    min-width: 220px;
    border-radius: 12px;
    border: 1px solid rgba(15, 76, 92, 0.18);
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.9);
  }

  .chart-modal {
    position: fixed;
    inset: 0;
    z-index: 20;
  }

  .chart-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 24, 30, 0.58);
  }

  .chart-modal-card {
    position: relative;
    width: min(1380px, calc(100% - 28px));
    max-height: calc(100vh - 28px);
    overflow: auto;
    margin: 14px auto;
    padding: 24px;
    border-radius: 28px;
    background: #fff9ef;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
  }

  .chart-modal-header {
    margin-bottom: 16px;
  }

  .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
  }

  .footer a {
    color: var(--accent);
  }

  .playstore-footer {
    display: inline-flex;
    width: min(240px, calc(100vw - 28px));
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(10, 38, 47, 0.14);
  }

  .playstore-footer img {
    display: block;
    width: 100%;
    height: auto;
  }

  .reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: reveal-up 640ms ease forwards;
  }

  .delay-1 {
    animation-delay: 120ms;
  }

  .delay-2 {
    animation-delay: 220ms;
  }

  .delay-3 {
    animation-delay: 320ms;
  }

  @keyframes reveal-up {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @media (max-width: 980px) {
    .hero,
    .ai-layout,
    .chart-stack,
    .summary-grid,
    .footer {
      grid-template-columns: 1fr;
    }

    .hero {
      gap: 18px;
    }

    .summary-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer {
      display: grid;
    }
  }

  @media (max-width: 640px) {
    .page-shell {
      width: min(100% - 18px, 100%);
      padding-top: 14px;
    }

    .hero-copy,
    .hero-panel,
    .card,
    .footer,
    .chart-modal-card {
      padding: 22px;
    }

    .summary-grid,
    .hero-metrics {
      grid-template-columns: 1fr;
    }

    .section-heading,
    .filter-row {
      flex-direction: column;
      align-items: flex-start;
    }

    .section-nav {
      gap: 12px;
    }

    .playstore-footer,
    .select-control {
      width: 100%;
    }

    h1 {
      max-width: none;
    }
  }