/* GoalCodex plan identity.
   FAN = cool blue.  PRO = muted gold.  Gold is reserved for Pro only — never use it for generic buttons or stats.
   Used by: header chips, site-wide plan strip, "last 12 months" notice bars, locked-feature cards, upgrade pop-up,
   account page and upgrade page. */

:root {
  --gp-fan-1: #4f8ff7;  --gp-fan-2: #2563eb;  --gp-fan-text: #7dd3fc;
  --gp-pro-1: #e3c565;  --gp-pro-2: #d4af37;  --gp-pro-3: #b8860b;  --gp-pro-text: #e3c565;
}

/* ── Badges: typographic "GOALCODEX / FAN|PRO" ─────────────────────────────── */
.gp-badge { display: inline-block; text-align: center; padding: 12px 22px 11px; border-radius: 14px; border: 1.5px solid; line-height: 1; vertical-align: middle; font-family: inherit; }
.gp-badge small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; padding-left: .24em; }
.gp-badge b { display: block; font-size: 36px; font-weight: 900; letter-spacing: .14em; margin-top: 5px; padding-left: .14em; color: #fff; }
.gp-badge--fan { border-color: rgba(76,195,250,.65); background: linear-gradient(135deg, rgba(37,99,235,.38), rgba(56,189,248,.10)); box-shadow: inset 0 0 22px rgba(56,189,248,.16); }
.gp-badge--fan small { color: var(--gp-fan-text); }
.gp-badge--pro { border-color: rgba(212,175,55,.7); background: linear-gradient(135deg, rgba(120,84,8,.46), rgba(212,175,55,.10)); box-shadow: inset 0 0 22px rgba(212,175,55,.14); }
.gp-badge--pro small { color: var(--gp-pro-text); }
.gp-badge--sm { padding: 8px 14px 7px; border-radius: 11px; }
.gp-badge--sm small { font-size: 10px; }
.gp-badge--sm b { font-size: 24px; margin-top: 3px; }

/* ── Chips (small plan tags) ───────────────────────────────────────────────── */
.gp-chip { display: inline-block; font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px; border: 1px solid; vertical-align: middle; line-height: 1.3; }
.gp-chip--free { background: rgba(255,255,255,.08); color: #94a3b8; border-color: rgba(255,255,255,.12); }
.gp-chip--fan  { background: rgba(56,189,248,.14); color: var(--gp-fan-text); border-color: rgba(56,189,248,.45); }
.gp-chip--pro  { background: rgba(212,175,55,.14); color: var(--gp-pro-text); border-color: rgba(212,175,55,.45); }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.gp-btn { display: inline-block; padding: 12px 24px; border-radius: 12px; font-size: .92rem; font-weight: 800; text-decoration: none; white-space: nowrap; cursor: pointer; border: 1px solid rgba(255,255,255,.28); transition: transform .12s, filter .12s; font-family: inherit; }
.gp-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.gp-btn--fan { background: linear-gradient(180deg, var(--gp-fan-1), var(--gp-fan-2)); color: #fff; box-shadow: 0 8px 22px rgba(37,99,235,.40); }
.gp-btn--pro { background: linear-gradient(180deg, var(--gp-pro-1), var(--gp-pro-2) 45%, var(--gp-pro-3)); color: #2a1c00; border-color: rgba(255,255,255,.35); box-shadow: 0 8px 22px rgba(184,134,11,.38); }
.gp-btn--sm { padding: 8px 16px; font-size: .8rem; border-radius: 9px; }
.gp-link { color: #94a3b8; font-size: .84rem; font-weight: 600; text-decoration: none; }
.gp-link:hover { color: #f1f5f9; }

/* ── "Last 12 months" notice bar ───────────────────────────────────────────── */
.gp-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; margin: 0 0 16px; border-radius: 10px; border: 1px solid rgba(56,189,248,.28); background: rgba(37,99,235,.10); font-size: .88rem; color: #cbd5e1; }
.gp-bar-text { flex: 1 1 260px; }
.gp-bar-text b { color: #f1f5f9; }
.gp-bar-actions { display: flex; align-items: center; gap: 12px; }

/* ── Locked-feature card ───────────────────────────────────────────────────── */
.gp-lock { max-width: 560px; margin: 0 auto; text-align: center; padding: 34px 24px; border-radius: 14px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.04); }
.gp-lock-chips { display: flex; gap: 8px; justify-content: center; margin-bottom: 14px; }
.gp-lock h3 { font-size: 1.08rem; font-weight: 800; color: #f1f5f9; margin: 0 0 6px; }
.gp-lock p { font-size: .86rem; color: #94a3b8; margin: 0 0 18px; line-height: 1.5; }
.gp-lock-actions { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ── Site-wide plan strip ──────────────────────────────────────────────────── */
.gp-strip { padding: 44px 24px; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); background: linear-gradient(135deg, #071223 0%, #0b1a36 50%, #071223 100%); position: relative; overflow: hidden; }
.gp-strip::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(37,99,235,.18) 0%, transparent 60%); pointer-events: none; }
.gp-strip-inner { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; }
.gp-strip-head { text-align: center; margin-bottom: 22px; }
.gp-strip-head h3 { font-size: 1.45rem; font-weight: 800; color: #fff; letter-spacing: -.2px; margin: 0; }
.gp-strip-head p { color: #94a3b8; font-size: .92rem; margin: 5px 0 0; }
.gp-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gp-plan { display: flex; gap: 18px; align-items: center; padding: 20px; border-radius: 14px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.04); }
.gp-plan--fan { border-color: rgba(56,189,248,.35); }
.gp-plan--pro { border-color: rgba(212,175,55,.35); }
.gp-plan h4 { font-size: 1rem; font-weight: 800; color: #f1f5f9; margin: 0 0 4px; }
.gp-plan ul { list-style: none; color: #94a3b8; font-size: .82rem; line-height: 1.55; margin: 0 0 12px; padding: 0; }
.gp-plan-price { font-size: .76rem; color: #64748b; margin-top: 8px; }

/* ── Upgrade pop-up ────────────────────────────────────────────────────────── */
.gp-modal { position: fixed; inset: 0; z-index: 10000; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0,7,17,.78); backdrop-filter: blur(4px); }
.gp-modal.is-open { display: flex; }
.gp-modal-box { position: relative; width: 100%; max-width: 440px; text-align: center; padding: 34px 28px 26px; border-radius: 16px; border: 1px solid rgba(56,189,248,.3); background: #071223; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.gp-modal-x { position: absolute; top: 10px; right: 12px; background: none; border: none; color: #64748b; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.gp-modal-x:hover { color: #f1f5f9; }
.gp-modal h3 { font-size: 1.2rem; font-weight: 800; color: #fff; margin: 0 0 8px; }
.gp-modal p { font-size: .9rem; color: #94a3b8; line-height: 1.55; margin: 0 0 20px; }
.gp-modal-actions { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ── Small screens ─────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .gp-plans { grid-template-columns: 1fr; }
  .gp-plan { flex-direction: row; }
  .gp-strip { padding: 34px 16px; }
}
@media (max-width: 480px) {
  .gp-plan { flex-direction: column; text-align: center; }
  .gp-bar { padding: 14px; }
  .gp-bar .gp-btn { width: 100%; text-align: center; }
}

/* ── Cookie consent banner (see assets/js/consent.js) ──────────────────────── */
.gcx-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9000; max-width: 900px; margin: 0 auto; display: flex; gap: 18px; align-items: center; padding: 16px 18px; border-radius: 14px; background: #071223; border: 1px solid rgba(56,189,248,.3); box-shadow: 0 16px 48px rgba(0,0,0,.55); color: #cbd5e1; font-size: .86rem; line-height: 1.55; font-family: inherit; }
.gcx-consent p { flex: 1; margin: 0; }
.gcx-consent strong { color: #f1f5f9; }
.gcx-consent a { color: #7dd3fc; text-decoration: underline; }
.gcx-consent-btns { display: flex; gap: 10px; flex-shrink: 0; }
.gcx-consent button { padding: 10px 20px; min-width: 104px; border-radius: 10px; font-size: .88rem; font-weight: 700; cursor: pointer; font-family: inherit; border: 1px solid rgba(255,255,255,.3); }
.gcx-consent-accept { background: linear-gradient(180deg, #4f8ff7, #2563eb); color: #fff; }
.gcx-consent-decline { background: transparent; color: #f1f5f9; }
.gcx-consent button:hover { filter: brightness(1.12); }
.gcx-consent .gcx-consent-close { position: absolute; top: 4px; right: 8px; min-width: 0; padding: 2px 8px; border: none; background: none; color: #64748b; font-size: 1.3rem; line-height: 1; }
@media (max-width: 640px) {
  .gcx-consent { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; gap: 12px; }
  .gcx-consent-btns { width: 100%; }
  .gcx-consent button { flex: 1; }
}
