/* ── Header ──────────────────────────────────────────────────── */
header {
  background: rgba(8,15,29,.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(238,198,127,0.1);
  padding: 0 28px;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  text-decoration: none;
  color: inherit;
}
.brand-logo { width: 160px; height: auto; display: block; }
.brand-icon {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-icon svg { width: 18px; height: 18px; color: #050c18; }
.brand-name {
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: .02em;
}
.brand-tag {
  font-family: 'Poppins', sans-serif;
  font-size: 9px;
  font-weight: 300;
  color: #a8c8e8;
  letter-spacing: 0;
  text-transform: uppercase;
  line-height: 1;
  width: fit-content;
  align-self: flex-end;
  border-top: 1px solid rgba(168, 200, 232, 0.28);
  padding-top: 3px;
  margin-top: 3px;
  white-space: nowrap;
}
.health {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
}
.pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}
.pill.ok::before  { background: var(--ok); }
.pill.bad { border-color: var(--bad-border); background: var(--bad-bg); color: var(--bad); }
.pill.bad::before { background: var(--bad); }

/* ── Page layout ─────────────────────────────────────────────── */
main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  align-items: start;
}
.main-bottom { grid-column: 1 / -1; }

/* ── Card ────────────────────────────────────────────────────── */
/*
  Base card: dark panel background, subtle border, soft shadow.
  Use <div class="card"> as a container for any new box/section.
*/
.card {
  /* soft top sheen over the panel for a machined, lit-from-above feel */
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 130px),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}

/* one-time entrance: columns rise in with a slight stagger */
@keyframes card-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
main > .card      { animation: card-in .5s cubic-bezier(.22,1,.36,1) backwards; }
main > .right-col { animation: card-in .5s cubic-bezier(.22,1,.36,1) .12s backwards; }

/* Card with a header bar (panel-2 bg + border-bottom + inner content) */
.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-header h2,
.card-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .02em;
}
.card-body { padding: 20px; }

/* ── Section divider ─────────────────────────────────────────── */
.section-divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  margin: 4px 0;
}
.section-divider::before,
.section-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}

/* ── Footer ──────────────────────────────────────────────────── */
.app-footer {
  text-align:center; font-size:12px; color:var(--muted);
  background:var(--bg);
  padding:20px 24px 32px; border-top:1px solid var(--line); margin-top:40px;
}
.app-footer a { color:var(--gold); text-decoration:none; }
.app-footer a:hover { text-decoration:underline; }
.footer-social { display:flex; gap:10px; justify-content:center; align-items:center; margin:10px 0 8px; }
.footer-social-link {
  display:inline-flex; align-items:center; justify-content:center;
  width:30px; height:30px; border-radius:50%;
  color:var(--muted); transition:color .18s, background .18s; text-decoration:none;
}
.footer-social-link:hover { color:var(--gold); text-decoration:none; }

/* ── Cookie Consent Banner ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--panel); border-top: 1px solid var(--line);
  padding: 16px 40px; box-shadow: 0 -4px 20px rgba(0,0,0,.45);
}
.cookie-banner-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
}
.cookie-banner-text { flex: 1; font-size: 13px; color: var(--muted); margin: 0; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  padding: 8px 20px; font-size: 13px; font-family: inherit; font-weight: 500;
  cursor: pointer; border-radius: 6px;
  background: var(--gold); color: #0b1624; border: none; transition: background .15s;
}
.cookie-btn:hover { background: var(--gold-h); }
.cookie-btn.outline {
  background: none; border: 1px solid rgba(255,255,255,0.1); color: var(--muted);
}
.cookie-btn.outline:hover { background: rgba(255,255,255,.06); color: var(--ink); }
