/* Theme mirrors the X (Twitter) dark profile of @GANNTRADER2: black, white, X blue. */
:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #0f1113;
  --surface-2: #16181c;
  --ink: #e7e9ea;
  --ink-soft: #c4c8cc;
  --muted: #71767b;
  --line: #2f3336;
  --navy: #eff3f4;          /* primary button: white pill, like X's Follow */
  --navy-ink: #0f1419;
  --gold: #1d9bf0;          /* accent: X blue */
  --gold-soft: rgba(29, 155, 240, .14);
  --astro: #a78bff;
  --astro-bg: rgba(120, 86, 255, .16);
  --fund: #00ba7c;
  --fund-bg: rgba(0, 186, 124, .14);
  --tech: #ff9a3c;
  --tech-bg: rgba(255, 122, 0, .14);
  --danger: #f4212e;
  --ok: #00ba7c;
  --radius: 16px;
  --shadow: none;
  --serif: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--sans);
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.section { padding: 48px 0; }
.center { text-align: center; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--navy); color: var(--navy-ink); border: 1px solid transparent;
  padding: .75em 1.3em; border-radius: 999px; font: 700 .95rem var(--sans);
  text-decoration: none; cursor: pointer; transition: transform .1s, box-shadow .15s;
}
.btn:hover { filter: brightness(.9); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #536471; }
.btn-danger { background: transparent; color: var(--danger); border-color: currentColor; }
.btn-sm { padding: .45em 1em; font-size: .85rem; }
.btn-block { width: 100%; }
button.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; }

label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 .35em; }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%; padding: .7em .85em; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.field { margin-bottom: 1.1em; }
.check { display: flex; gap: .55em; align-items: center; font-weight: 500; }
.check input { width: 1.1em; height: 1.1em; accent-color: var(--gold); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.auth-card { max-width: 420px; margin: 48px auto; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(0, 0, 0, .65); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { font: 800 1.2rem var(--serif); letter-spacing: -.01em; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.brand-mark { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: .95rem; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--ink-soft); }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-toggle, .nav-burger { display: none; }

@media (max-width: 820px) {
  .nav-burger { display: block; width: 28px; height: 20px; position: relative; cursor: pointer; }
  .nav-burger span, .nav-burger::before, .nav-burger::after {
    content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); border-radius: 2px;
  }
  .nav-burger::before { top: 0; } .nav-burger span { top: 9px; } .nav-burger::after { bottom: 0; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 16px 20px; gap: 4px;
  }
  .nav-links a { padding: 10px 0; }
  .nav-links .btn { margin-top: 8px; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
}

/* ---------- flashes ---------- */
.flashes { margin-top: 16px; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.flash-success { border-color: var(--ok); color: var(--ok); }
.flash-error { border-color: var(--danger); color: var(--danger); }
.flash-info { border-color: var(--gold); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(29, 155, 240, .22), transparent 70%);
}
.hero > * { position: relative; }
.eyebrow { display: inline-block; font: 600 .78rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 620px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .pillars { grid-template-columns: 1fr; } }
.pillar { text-decoration: none; display: block; transition: transform .15s; }
.pillar:hover { transform: translateY(-2px); }
.pillar-icon { font-size: 1.6rem; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; }
.pillar p { color: var(--ink-soft); margin: 0; }
.pillar .count { font-size: .85rem; color: var(--muted); margin-top: 10px; }

/* ---------- category tags ---------- */
.tag { display: inline-block; font: 600 .72rem var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: .3em .7em; border-radius: 999px; text-decoration: none; }
.tag-astrology, .bg-astrology { background: var(--astro-bg); color: var(--astro); }
.tag-fundamental, .bg-fundamental { background: var(--fund-bg); color: var(--fund); }
.tag-technical, .bg-technical { background: var(--tech-bg); color: var(--tech); }
.tag-free { background: var(--gold-soft); color: var(--gold); }
.tag-lock { background: var(--surface-2); color: var(--muted); }

/* ---------- post cards ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; text-decoration: none; transition: transform .15s; min-width: 0; }
.post-card:hover { transform: translateY(-2px); }
.post-card h3 { margin: 12px 0 8px; }
.post-card p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.post-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.featured { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; text-decoration: none; margin-bottom: 28px; }
.featured h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); margin-top: 12px; }
.featured-art { border-radius: 12px; min-height: 200px; display: grid; place-items: center; font-size: 4rem; }
@media (max-width: 760px) { .featured { grid-template-columns: 1fr; } .featured-art { min-height: 120px; order: -1; } }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-bar a { text-decoration: none; padding: .45em 1em; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; color: var(--ink-soft); }
.filter-bar a.active { background: var(--navy); color: var(--navy-ink); border-color: var(--navy); }
.pager { display: flex; justify-content: space-between; margin-top: 32px; }

/* ---------- article ---------- */
.article-head { padding: 48px 0 20px; }
.article-head .post-meta { margin-top: 14px; }
.prose { font-size: 1.08rem; line-height: 1.75; overflow-wrap: break-word; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose img { border-radius: 10px; border: 1px solid var(--line); margin: .5em auto; display: block; max-height: 560px; width: auto; }
.prose blockquote { margin: 1.2em 0; padding: .4em 1.2em; border-left: 3px solid var(--gold); color: var(--ink-soft); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .6em .8em; text-align: left; white-space: nowrap; }
.prose th { background: var(--surface-2); font-weight: 600; }
.prose code { background: var(--surface-2); padding: .1em .35em; border-radius: 5px; font-size: .9em; }
.prose pre { background: var(--surface-2); padding: 16px; border-radius: 10px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.paywall { position: relative; margin-top: 8px; }
.paywall-fade { height: 70px; margin-top: -70px; position: relative; background: linear-gradient(to bottom, transparent, var(--bg)); }
.paywall-box { text-align: center; padding: 36px 24px; border: 1px solid var(--gold); background: var(--surface); }
.paywall-box .lock { font-size: 2rem; }
.paywall-box .hero-actions { margin-top: 18px; }

.post-disclaimer { margin-top: 40px; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }

/* ---------- pricing ---------- */
.price-card { max-width: 520px; margin: 0 auto; text-align: center; padding: 36px 28px; border: 2px solid var(--gold); }
.price { font: 800 3rem var(--serif); margin: 8px 0 0; }
.price small { font: 500 1rem var(--sans); color: var(--muted); }
.price-alt { color: var(--muted); margin-bottom: 24px; }
.feature-list { list-style: none; padding: 0; margin: 0 auto 28px; text-align: left; max-width: 360px; }
.feature-list li { padding: 7px 0 7px 30px; position: relative; }
.feature-list li::before { content: "✦"; position: absolute; left: 4px; color: var(--gold); }
.pay-options { display: grid; gap: 12px; }
.pay-option { display: flex; flex-direction: column; align-items: stretch; }
.pay-note { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.demo-note { margin-top: 18px; padding: 12px; border-radius: 10px; background: var(--gold-soft); font-size: .88rem; }

.faq { max-width: 720px; margin: 48px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }

/* ---------- account / admin ---------- */
.stack { display: grid; gap: 20px; }
.status-pill { display: inline-block; padding: .2em .7em; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--surface-2); }
.status-ok { background: var(--fund-bg); color: var(--fund); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat .num { font: 800 2rem var(--serif); }
.stat .lbl { color: var(--muted); font-size: .85rem; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.data th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.row-actions { display: flex; gap: 10px; align-items: center; white-space: nowrap; }

.editor-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .editor-grid { grid-template-columns: 1fr; } }
.editor-grid textarea.body { min-height: 460px; font: 14px/1.6 ui-monospace, "Cascadia Code", Consolas, monospace; resize: vertical; }
.editor-tabs { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; align-items: center; }
.editor-tabs button { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); padding: .4em .9em; border-radius: 8px; cursor: pointer; font: 500 .85rem var(--sans); }
.editor-tabs button.active { background: var(--navy); color: var(--navy-ink); }
#preview-pane { min-height: 460px; }
.sidebar-card { position: sticky; top: 84px; }
.sidebar-card .btn { width: 100%; margin-bottom: 8px; }
.hint { font-size: .82rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 32px 0 24px; background: var(--surface-2); }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: .9rem; }
.footer-links a { color: var(--ink-soft); text-decoration: none; }
.disclaimer-strip { margin-top: 20px; font-size: .78rem; color: var(--muted); line-height: 1.6; }

/* ---------- X-style extras ---------- */
.card { background: var(--bg); }
.card:hover { box-shadow: none; }
a.card:hover { background: var(--surface); }
.site-footer { background: var(--bg); }
.social-links { display: flex; gap: 14px; margin-top: 10px; font-size: .9rem; }
.social-links a { color: var(--gold); text-decoration: none; }
.social-links a:hover { text-decoration: underline; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); flex: none; }
.brand { gap: .55em; }

/* ---------- Google sign-in ---------- */
.google-btn { background: #fff; color: #1f1f1f; border-color: #dadce0; margin-bottom: 14px; }
.google-btn:hover { filter: brightness(.95); }
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 4px 0 16px; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- voice notes ---------- */
.audio-note { margin: 1.4em 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.audio-note figcaption { font: 600 .9rem var(--sans); color: var(--ink-soft); margin-bottom: 10px; }
.audio-note audio { width: 100%; display: block; }
