/* Styles for accounts/pricing.html */
.habit-value { max-width: 860px; margin: 1.5rem auto 3rem; }
.habit-value-title { font-size: 1.35rem; font-weight: 600; color: var(--text-dark); margin-bottom: 1.25rem; }
.habit-value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; text-align: left; }
.habit-value-item { display: flex; flex-direction: column; gap: 0.3rem; background: var(--card-bg, #fff);
    border: 0; background: var(--bg-gray); border-radius: var(--border-radius-lg); padding: 1.1rem 1.25rem; }
.habit-value-item strong { color: var(--text-dark, #1a2a44); }
.habit-value-item span { color: var(--text-muted, #555); font-size: 0.9rem; line-height: 1.45; }
.habit-value-note { color: var(--text-muted, #888); font-size: 0.85rem; margin: 1rem 0 0; }
@media (max-width: 700px) { .habit-value-grid { grid-template-columns: 1fr; } }
/* Phones: get to the Premium price fast. The three tiles shrink to one
   line each (the Premium card repeats the detail) and the Premium card
   moves ahead of Free. */
@media (max-width: 767px) {
    .habit-value-grid { gap: .4rem; }
    .habit-value-item { flex-direction: row; align-items: center; gap: .6rem; padding: .55rem .8rem; }
    .habit-value-item span { display: none; }
    .plan-col-premium { order: -1; }
}
[data-theme="dark"] .habit-value-item strong { color: #e8eef7; }
[data-theme="dark"] .habit-value-item span { color: #aab4c3; }
/* Two-tier width standard — grid/browse tier */
.container { max-width: 1200px; }

.pricing-ai-highlight {
    background: rgba(30, 77, 139, 0.1);
    border: 1px solid rgba(30, 77, 139, 0.3);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
}
[data-theme="dark"] .pricing-ai-highlight {
    background: rgba(30, 77, 139, 0.2);
    border-color: rgba(30, 77, 139, 0.4);
}
.badge-new {
    background: #764ba2;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    --heading-color: currentColor;
}
.spend-reframe {
    margin-top: 0.9rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.95rem;
}
.spend-reframe label { margin: 0; color: #fff; }
.spend-reframe-row { white-space: nowrap; }
.spend-reframe input {
    width: 3.5rem;
    padding: 0.15rem 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}
#spend-reframe-result { margin: 0.5rem 0 0; color: #fff !important; font-weight: 700; }
#spend-reframe-kept { margin: 0.2rem 0 0; color: rgba(255, 255, 255, 0.85) !important; font-size: 0.85rem; }
/* Prices keep the same width when the billing toggle swaps them */
h2.display-4 { font-variant-numeric: tabular-nums; }
.billing-toggle {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 4px;
    margin-bottom: 0.75rem;
}
.billing-toggle-btn {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.billing-toggle-btn.active {
    background: var(--card-bg, #fff);
    color: var(--brand-text, #1e4d8b);
}
.toggle-save {
    background: var(--cta-bg);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 4px;
    vertical-align: middle;
}
.ai-coach-desc {
    font-size: 0.85rem;
    color: var(--text-muted, #6c757d);
    margin-left: 24px;
    margin-top: -4px;
    margin-bottom: 8px;
}
[data-theme="dark"] .ai-coach-desc {
    color: #adb5bd;
}
/* Dark mode card overrides */
[data-theme="dark"] .card.shadow-sm .card-header.bg-light,
[data-theme="dark"] .card.shadow-sm .card-footer.bg-light {
    background-color: var(--bg-light) !important;
}
[data-theme="dark"] .card .card-body.bg-white {
    background-color: var(--card-bg) !important;
}
[data-theme="dark"] .card .card-body.text-dark {
    color: #e0e0e0 !important;
}
[data-theme="dark"] .card .card-header h3,
[data-theme="dark"] .card .card-header h2 {
    color: inherit !important;
}
[data-theme="dark"] .card .card-header.bg-light .text-muted {
    color: #adb5bd !important;
}
.other-plans-title { text-align: center; font-size: 1.35rem; margin: 0 0 1.5rem; }
.faq { max-width: 760px; margin: 3rem auto 0; }
.faq-row { border-top: 1px solid var(--border-color, #e5e7eb); }
.faq-row:last-child { border-bottom: 1px solid var(--border-color, #e5e7eb); }
.faq-row summary { min-height: 44px; padding: 0.85rem 0.25rem; font-weight: 600; color: var(--text-dark); cursor: pointer; }
.faq-row p { margin: 0; padding: 0 0.25rem 1rem; max-width: 65ch; color: var(--text-dark, #2c3e50); line-height: 1.6; }

/* ---- Plan cards ----
   Free and the other plans are quiet tiles. Premium is the one ink panel on
   the page, with the warm glow used for the gift band and the day counter. */
/* padding:0 so the header and footer run to the card's edge, not a box inside a box */
.pricing .card { padding: 0; border: 0; border-radius: var(--border-radius-xl); overflow: hidden; box-shadow: var(--shadow); }
.pricing .card.border-primary { box-shadow: var(--shadow), 0 30px 60px -30px rgba(14, 19, 34, 0.5); }
.pricing .card-header, .pricing .card-footer { border: 0; padding: 2rem; }
.pricing .card-body { padding: 2rem; }
.pricing .card-header h3 { margin: 0 0 0.25rem !important; font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
.pricing h2.display-4 { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.1; }
.pricing h2.display-4 small { font-size: 1rem; font-weight: 400; letter-spacing: 0; }

.pricing .plan-premium-head,
.pricing .plan-premium-foot { background: var(--footer-bg, #0e1322) !important; color: #fff; --heading-color: #fff; }
.pricing .plan-premium-head { position: relative; overflow: hidden; }
.pricing .plan-premium-head::after { content: ""; position: absolute; right: -25%; top: -60%; width: 90%; height: 200%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(255, 205, 130, 0.3), transparent); }
.pricing .plan-premium-head > * { position: relative; z-index: 1; }
.pricing .plan-premium-head .badge { border-radius: 999px; padding: 0.4em 0.85em; font-weight: 700; }
.pricing .plan-premium-head .badge-warning { background: #ffd9a0; color: #2a1703; }
.pricing .plan-trial-badge { background: rgba(255, 255, 255, 0.14) !important; color: #fff; }
/* The one light button on the ink panel. */
.pricing .plan-premium-foot .btn,
.pricing .plan-premium-foot .btn:hover { background: #fff; color: #0e1322 !important; }
.pricing .plan-premium-foot .btn:hover { background: #e9edf5; }
.pricing .plan-premium-foot .btn:disabled { background: rgba(255, 255, 255, 0.16); color: #fff !important; }
.pricing .card-footer .btn { width: 100%; }
