:root {
  color-scheme: light;
  --navy: #0f3f5d;
  --blue: #176f95;
  --cyan: #2aaed0;
  --mint: #35c0b3;
  --gold: #f4b942;
  --bg: #f3fbff;
  --surface: #ffffff;
  --text: #173645;
  --muted: #5f7490;
  --border: #dfeaf2;
  --shadow: 0 24px 60px rgba(15, 63, 93, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', 'Inter', Arial, sans-serif;
  background: radial-gradient(circle at top left, #ebf9ff 0%, #f7fbff 45%, #eef6fd 100%);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 32px;
  background: linear-gradient(135deg, var(--navy) 0%, #0a5a7f 50%, var(--blue) 100%);
  color: white;
  box-shadow: 0 12px 35px rgba(6, 42, 61, 0.22);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 1.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.brand h1 { margin: 0; font-size: 1.12rem; font-weight: 700; }
.brand p { margin: 2px 0 0; color: #dbf6ff; font-size: 0.9rem; }
.header-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.header-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #f6feff;
  font-size: 0.9rem;
  font-weight: 600;
}
nav { display: flex; gap: 8px; flex-wrap: wrap; }
nav a {
  color: white;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.2s ease;
}
nav a:hover, nav a.active { background: rgba(255,255,255,0.18); text-decoration: none; transform: translateY(-1px); }

.page-shell { max-width: 1180px; margin: 28px auto 48px; padding: 0 20px; }
.hero-card {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 24px;
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #f7fdff 100%);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.hero-card::after {
  content: '';
  position: absolute;
  inset: auto -40px -70px auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(42, 174, 208, 0.22), transparent 70%);
  pointer-events: none;
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.24em; color: var(--cyan); font-weight: 700; font-size: 0.8rem; margin-bottom: 10px; }
.hero-card h2 { font-size: 2rem; margin: 8px 0 12px; line-height: 1.2; }
.hero-card p { margin: 0 0 12px; }
.actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.primary-btn, .secondary-btn, button {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.primary-btn, button {
  background: linear-gradient(90deg, var(--cyan), var(--mint));
  color: white;
  box-shadow: 0 12px 24px rgba(42, 174, 208, 0.2);
}
.secondary-btn { background: #eaf7fd; color: var(--navy); }
.primary-btn:hover, .secondary-btn:hover, button:hover { transform: translateY(-2px); }
.hero-panel {
  background: linear-gradient(135deg, #eefbff 0%, #f9feff 100%);
  border-radius: 20px;
  padding: 18px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.stat-card h3 { margin-top: 0; font-size: 1.02rem; }
.hero-list { padding-left: 18px; margin: 10px 0 0; color: var(--muted); }
.hero-list li { margin-bottom: 8px; }
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }
.metric {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}
.metric strong { display: block; font-size: 1.1rem; color: var(--navy); }
.metric span { font-size: 0.84rem; color: var(--muted); }
.inline-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3fbff;
  color: var(--navy);
  border: 1px solid var(--border);
  font-size: 0.92rem;
}
.section-heading { margin: 26px 0 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.section-heading h3 { margin: 0; color: var(--navy); }
.section-heading p { margin: 0; color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.info-card, .card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 20px; box-shadow: 0 12px 30px rgba(19, 50, 74, 0.05); }
.info-card h3 { margin-top: 0; color: var(--navy); }
.info-card .meta { color: var(--cyan); font-size: 0.9rem; font-weight: 600; }
.page-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; }
form { display: flex; flex-direction: column; gap: 8px; }
label { font-weight: 600; color: var(--navy); }
input, textarea, select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fcfeff;
  font: inherit;
}
.alt-card { background: linear-gradient(135deg, #f8fdff, #eef8fb); }
.tips-list, .link-list { padding-left: 18px; line-height: 1.8; }
.panel-list { display: grid; gap: 12px; margin-top: 16px; }
.panel-list > div { background: #f8fbfd; border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.summary-block { background: #f8fbfd; border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.footer { text-align: center; padding: 18px 20px 32px; color: var(--muted); }
.footer p { display: flex; align-items: center; justify-content: center; gap: 10px; }
.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px;
}
.footer-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  opacity: 0.75;
}
.search-form { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 12px; margin: 16px 0 20px; align-items: end; }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group label { font-size: 0.95rem; }
.account-group { min-width: 0; }
.account-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.search-form button { width: fit-content; align-self: end; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.data-table th, .data-table td { border: 1px solid var(--border); padding: 10px; text-align: left; }
.data-table th { background: #f3f8fb; color: var(--navy); }
.error { background: #fff4f4; color: #a02929; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; border: 1px solid #f2c7c7; }
.success { background: #ecfdf3; color: #11724a; padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; border: 1px solid #b9e8ca; }
.muted { color: var(--muted); }
.query-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.query-form textarea { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--border); font-family: Consolas, monospace; min-height: 170px; }

@media (max-width: 900px) {
  .search-form { grid-template-columns: 1fr 1fr; }
  .hero-card, .page-grid, .grid-3, .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .header-actions { width: 100%; }
  .search-form { grid-template-columns: 1fr; }
  .account-fields { grid-template-columns: 1fr; }
  .hero-card { padding: 22px; }
  .section-heading { flex-direction: column; align-items: flex-start; }
}
