/*
  Cyrus Credit Site – Brand Styles
  Centralize brand colors and components to keep all pages consistent.
  Palette aligned with app theme (dark):
    Primary (gold): #D4AF37
    Secondary (navy): #1E3A5F
    Surface: #0F1419, Card: #1A1F26, Text: #E2E8F0, Muted: #94A3B8
*/

:root {
  --bg: #0F1419;
  --panel: #1A1F26;
  --text: #E2E8F0;
  --muted: #94A3B8;
  --primary: #D4AF37;   /* Gold */
  --secondary: #1E3A5F; /* Navy */
  --ok: #10b981;
  --warn: #f59e0b;
  --outline: rgba(148,163,184,.15);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background:
    radial-gradient(1200px 800px at 20% -10%, rgba(212,175,55,.10), transparent 60%),
    radial-gradient(900px 600px at 120% 0%, rgba(30,58,95,.15), transparent 60%),
    var(--bg);
  color: var(--text);
}

/* Layout helpers */
.centered { display: grid; place-items: center; min-height: 100vh; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 28px 20px 64px; }

/* Header */
header.site { padding: 22px 20px; display: flex; justify-content: space-between; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .4px; color: var(--text); text-decoration: none; }
.brand .dot { width: 10px; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--secondary)); box-shadow: 0 0 18px rgba(212,175,55,.55); }
.nav a { color: var(--muted); text-decoration: none; margin-left: 14px; transition: color .2s ease; }
.nav a:hover { color: var(--text); }

/* Cards / panels */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}

/* Typography */
h1 { margin: 0 0 10px; font-size: 32px; }
h2 { margin: 18px 0 8px; font-size: 20px; }
h3 { margin: 0 0 6px; font-size: 18px; }
p, li { line-height: 1.6; }
.muted { color: var(--muted); }
a { color: var(--primary); }

/* Buttons */
.btn { text-decoration: none; padding: 12px 16px; border-radius: 12px; font-weight: 700; display: inline-block; }
.btn.primary { background: linear-gradient(90deg, var(--primary), var(--secondary)); color: #0F1419; }
.btn.ghost { border: 1px solid rgba(148,163,184,.25); color: var(--text); background: transparent; }
.btns { display: flex; gap: 10px; }

/* Grid (plans) */
.hero { text-align: center; padding: 10px 24px 24px; }
.hero h1 { font-size: 32px; margin: 2px 0 10px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: min(1080px, 92vw); margin: 12px auto 0; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }
.price { font-size: 28px; font-weight: 800; }
.credits { color: var(--primary); font-weight: 700; }
.cta { padding: 12px 16px; color: #0F1419; background: linear-gradient(90deg, var(--primary), var(--secondary)); text-decoration: none; border-radius: 12px; font-weight: 700; display: inline-block; margin-top: 12px; }

/* Badges & states */
.badge { display: inline-block; padding: 6px 10px; border-radius: 999px; background: rgba(212,175,55,.12); color: #f1d88a; font-weight: 700; }
.ok { color: var(--ok); font-weight: 800; font-size: 22px; }
.warn { color: var(--warn); font-weight: 800; font-size: 22px; }

/* Footer */
footer { text-align: center; margin-top: 36px; color: var(--muted); font-size: 12px; }

/* Containers for specific pages */
.card.narrow { width: min(640px, 92vw); }
.card.redirect { width: min(820px, 92vw); padding: 28px; }
