/* ============================================================
   Poke Forecast Accounts — page styling
   Matches site palette: navy #1B2A4A, yellow #FFCB05, red #CC0000
   ============================================================ */

.pfa-page-wrap {
    max-width: 480px;
    margin: 48px auto;
    padding: 0 16px;
    font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #1B2A4A;
}

.pfa-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pfa-card h1 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    color: #1B2A4A;
}

.pfa-sub {
    margin: 0 0 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

/* ── Form layout ─────────────────────────────────────────────────────────── */
.pfa-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}
.pfa-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1B2A4A;
}
.pfa-form input[type="text"],
.pfa-form input[type="email"],
.pfa-form input[type="password"] {
    padding: 10px 12px;
    border: 1px solid #d0d4dc;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.pfa-form input:focus {
    outline: none;
    border-color: #FFCB05;
    box-shadow: 0 0 0 3px rgba(255, 203, 5, 0.25);
}
.pfa-optional {
    color: #999;
    font-weight: 400;
    font-size: 12px;
}
.pfa-hint {
    font-size: 12px;
    color: #888;
    font-weight: 400;
}
.pfa-checkbox {
    flex-direction: row !important;
    align-items: center;
    gap: 8px !important;
    font-weight: 400;
    color: #555;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.pfa-btn {
    padding: 11px 20px;
    border: 0;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: opacity 0.15s, background 0.15s, transform 0.05s;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}
.pfa-btn-primary {
    background: #FFCB05;
    color: #1B2A4A;
    box-shadow: 0 2px 0 #1B2A4A;
}
.pfa-btn-primary:hover { background: #e6b704; }
.pfa-btn-primary:active { transform: translateY(1px); box-shadow: 0 1px 0 #1B2A4A; }
.pfa-btn-secondary {
    background: transparent;
    border: 1px solid #d0d4dc;
    color: #555;
}
.pfa-btn-secondary:hover { background: #f4f5f7; color: #1B2A4A; }

/* ── Auxiliary links below forms ─────────────────────────────────────────── */
.pfa-aux {
    margin: 16px 0 0;
    text-align: center;
    font-size: 13px;
    color: #666;
}
.pfa-aux a {
    color: #1B2A4A;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid #FFCB05;
}
.pfa-aux a:hover { color: #CC0000; }

/* ── Flash messages ──────────────────────────────────────────────────────── */
.pfa-flash {
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid;
}
.pfa-flash-success { background: #effaf3; border-color: #c8e6c9; color: #1b5e20; }
.pfa-flash-error   { background: #fdecea; border-color: #f5c2c7; color: #8a1c1c; }
.pfa-flash-warning { background: #fff8e1; border-color: #ffd54f; color: #8a6500; }
.pfa-flash-info    { background: #eef2ff; border-color: #c7d2fe; color: #1e3a8a; }

/* ── Account dashboard ───────────────────────────────────────────────────── */
.pfa-card-account { max-width: 640px; }
.pfa-account-grid {
    display: grid;
    gap: 18px;
    margin: 16px 0;
}
.pfa-account-section {
    padding: 14px 16px;
    background: #fafbfc;
    border: 1px solid #e8eaef;
    border-radius: 6px;
}
.pfa-account-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #888;
    font-weight: 700;
    margin-bottom: 4px;
}
.pfa-account-value {
    font-size: 16px;
    font-weight: 600;
    color: #1B2A4A;
}
.pfa-account-sub {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 400;
    color: #888;
}

.pfa-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    vertical-align: middle;
}
.pfa-tag-ok   { background: #effaf3; color: #1b5e20; }
.pfa-tag-warn { background: #fff8e1; color: #8a6500; }

.pfa-bar {
    margin-top: 8px;
    height: 6px;
    background: #e0e3e8;
    border-radius: 4px;
    overflow: hidden;
}
.pfa-bar-fill {
    height: 100%;
    background: #FFCB05;
    transition: width 0.3s;
}

.pfa-upsell {
    margin: 24px 0;
    padding: 18px;
    background: #1B2A4A;
    color: #fff;
    border-radius: 6px;
}
.pfa-upsell h3 { margin: 0 0 6px; color: #FFCB05; font-size: 16px; }
.pfa-upsell p  { margin: 0; color: rgba(255,255,255,0.85); font-size: 13px; }

/* ── Usage indicator (shortcode output) ─────────────────────────────────── */
.pfa-usage-indicator {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    background: #f4f5f7;
    color: #555;
    border: 1px solid #e0e0e0;
}
.pfa-usage-pro { background: #1B2A4A; color: #FFCB05; border-color: #1B2A4A; }
.pfa-usage-free { background: #FFCB05; color: #1B2A4A; border-color: #1B2A4A; }

/* ── v0.2.0: pricing cards on /account/ upgrade UI ─────────────────────── */
.pfa-plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}
@media (max-width: 540px) {
    .pfa-plan-grid { grid-template-columns: 1fr; }
}
.pfa-plan-card {
    position: relative;
    padding: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,203,5,0.25);
    border-radius: 8px;
    color: #fff;
}
.pfa-plan-card-featured {
    border-color: #FFCB05;
    background: rgba(255,203,5,0.08);
}
.pfa-plan-badge {
    position: absolute;
    top: -10px;
    right: 14px;
    background: #FFCB05;
    color: #1B2A4A;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.pfa-plan-name {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #FFCB05;
    margin-bottom: 4px;
}
.pfa-plan-price {
    margin-bottom: 4px;
    line-height: 1;
}
.pfa-plan-amount {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}
.pfa-plan-period {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-left: 4px;
}
.pfa-plan-savings {
    font-size: 12px;
    color: #FFCB05;
    margin-bottom: 12px;
}
.pfa-btn-block {
    display: block;
    width: 100%;
    margin-top: 10px;
}
