@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-obsidian: #050507;
  --bg-surface: rgba(12, 13, 17, 0.86);
  --bg-elevated: rgba(24, 26, 32, 0.92);
  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-specular: rgba(255, 255, 255, 0.19);
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --ivory-white: #ffffff;
  --platinum-silver: #e4e4e7;
  --gold-phi: #f59e0b;
  --gold-soft: rgba(245, 158, 11, 0.11);
  --emerald-live: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.11);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -6%, rgba(255, 255, 255, 0.09), transparent 72%),
    radial-gradient(circle at 50% 45%, transparent 35%, rgba(5, 5, 7, 0.78) 100%),
    repeating-conic-gradient(
      rgba(255, 255, 255, 0.02) 0% 25%,
      transparent 0% 50%
    );
  background-size: 100% 100%, 100% 100%, 64px 64px;
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-variant-numeric: tabular-nums;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 7, 0.84);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border-hairline);
}

.app-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(145deg, #ffffff 0%, #d4d4d8 100%);
  color: #050507;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 26px rgba(255, 255, 255, 0.16),
    inset 0 1px 0 #ffffff;
}

.brand-title {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: 0.69rem;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}

.nav-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 17, 22, 0.92);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-hairline);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 9px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-pill:hover {
  color: var(--ivory-white);
  background: rgba(255, 255, 255, 0.05);
}

.nav-pill.active {
  background: var(--ivory-white);
  color: #050507;
  font-weight: 700;
  box-shadow: 0 2px 14px rgba(255, 255, 255, 0.2);
}

.clock-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(16, 17, 22, 0.94);
  border: 1px solid var(--border-specular);
  padding: 7px 14px;
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--platinum-silver);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-live);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 22px 84px;
}

.section-card {
  position: relative;
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 26px;
  margin-bottom: 24px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.section-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ivory-white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-desc {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 14px;
}

.kpi-box {
  background: linear-gradient(180deg, rgba(22, 23, 29, 0.76) 0%, rgba(9, 9, 12, 0.92) 100%);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-box:hover {
  border-color: var(--border-specular);
  transform: translateY(-2px);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.kpi-tag {
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.kpi-number {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 7px;
  letter-spacing: -0.025em;
  color: var(--ivory-white);
}

.kpi-foot {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 5px;
}

.input-field, .select-field {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  background: rgba(6, 6, 9, 0.94);
  color: var(--ivory-white);
  font-family: inherit;
  font-size: 0.87rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-field:focus, .select-field:focus {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(180deg, #ffffff 0%, #e4e4e7 100%);
  color: #050507;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.15), inset 0 1px 0 #ffffff;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 26px rgba(255, 255, 255, 0.26);
}

.btn-emerald, .btn-ghost {
  background: linear-gradient(180deg, #1f2028 0%, #111217 100%);
  border-color: var(--border-specular);
  color: var(--ivory-white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.btn-emerald:hover:not(:disabled), .btn-ghost:hover:not(:disabled) {
  background: linear-gradient(180deg, #272933 0%, #16171d 100%);
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-1px);
}

.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  background: rgba(6, 6, 9, 0.68);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th {
  background: rgba(16, 17, 22, 0.96);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-hairline);
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-hairline);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.035); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-white {
  background: #ffffff;
  color: #050507;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.18);
}

.badge-black {
  background: #09090b;
  color: #f4f4f5;
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.badge-gold {
  background: var(--gold-soft);
  color: var(--gold-phi);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.badge-cyan {
  background: rgba(255, 255, 255, 0.06);
  color: var(--platinum-silver);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-emerald {
  background: var(--emerald-soft);
  color: var(--emerald-live);
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; }
.ico { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.8; fill: none; flex-shrink: 0; }
