/* Credit / pricing additions (kept separate from style.css so server-side
   tweaks to style.css are never overwritten). Uses the :root tokens there. */

/* ---- notices ---- */
.notice { padding: 12px 16px; border-radius: var(--radius); font-size: 13.5px; font-weight: 600; margin-bottom: 18px; }
.notice-ok { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.notice-warn { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* ---- unlock call-to-action (inside the dark upsell card and the blurred overlay) ---- */
.unlock-form { display: inline-block; margin: 0; }
.unlock-sub { margin-top: 12px; font-size: 13px; color: var(--ink-soft); }
.upsell-card .unlock-sub { color: #a7abce; }
.unlock-sub a { font-weight: 700; }
.upsell-card .unlock-sub a { color: #fff; text-decoration: underline; }

/* ---- sidebar credit balance ---- */
.credit-chip {
    display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 8px;
    background: var(--sidebar-bg-active); border: 1px solid var(--sidebar-border);
    border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; text-decoration: none;
}
.credit-chip:hover { border-color: #3a3d66; text-decoration: none; }
.credit-chip-label { color: var(--sidebar-text); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.credit-chip-value { color: #fff; font-size: 18px; font-weight: 800; text-align: right; }
.credit-chip-cta { grid-column: 1 / -1; color: #ff8a5c; font-size: 12px; font-weight: 700; }

/* ---- pricing page ---- */
.pricing-wrap { max-width: 1040px; margin: 0 auto; padding: 8px 0 32px; }
.pricing-head { text-align: center; margin-bottom: 28px; }
.pricing-head h1 { font-size: 28px; margin-bottom: 8px; }
.pricing-head p { color: var(--ink-soft); font-size: 15px; }
.pricing-notice { display: inline-block; margin-top: 16px; padding: 10px 16px; background: #fef3c7; color: #92400e; border-radius: var(--radius); font-size: 13.5px; font-weight: 600; }
.pricing-balance { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.pricing-balance strong { color: var(--ink); }
.pricing-currency { margin-top: 14px; font-size: 13px; color: var(--ink-soft); display: inline-flex; gap: 8px; align-items: center; }
.pricing-currency select { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 26px 22px; box-shadow: var(--shadow);
}
.plan-featured { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.plan-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #fff; font-size: 11px; font-weight: 800;
    padding: 4px 12px; border-radius: 999px; letter-spacing: 0.03em; white-space: nowrap;
}
.plan-name { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.plan-price { font-size: 38px; font-weight: 800; margin: 8px 0 2px; }
.plan-sub { font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; min-height: 18px; }
.plan-list { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; }
.plan-list li { padding: 7px 0; font-size: 13.5px; border-top: 1px solid var(--border); }
.plan-list li::before { content: "✓ "; color: var(--success); font-weight: 800; }
.pricing-foot { text-align: center; color: var(--ink-soft); font-size: 12.5px; max-width: 640px; margin: 26px auto 0; }

@media (max-width: 960px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } .pricing-head h1 { font-size: 23px; } }
