/* ── SACFD Membership ──────────────────────────────────────────────────────
   Matches the breakdance-zero prototype palette:
   ink #1a1a2e · red #cc0000 · yellow #f5c518 · link #1a3a6b · paper #f5f0e1
   Typography is inherited from the theme (Libre Franklin / Franklin Gothic).
   ------------------------------------------------------------------------ */

.sacfd-membership-page {
    padding-bottom: 48px;
}

/* ── Panels and forms ── */

.sacfd-auth,
.sacfd-account,
.sacfd-plans-wrap {
    max-width: 640px;
}

.sacfd-account,
.sacfd-plans-wrap {
    max-width: 900px;
}

.sacfd-auth__panel,
.sacfd-account__section {
    background: #fff;
    border: 1px solid #d5cdb8;
    border-radius: 4px;
    padding: 24px;
    margin-bottom: 24px;
}

.sacfd-account__section--logout {
    background: transparent;
    border: none;
    padding: 0;
}

.sacfd-form__heading,
.sacfd-account__heading {
    font-size: 22px;
    margin: 0 0 4px;
    padding-bottom: 8px;
    border-bottom: 3px solid #cc0000;
    display: inline-block;
}

.sacfd-form__intro {
    color: #555;
    font-size: 15px;
    margin: 12px 0 20px;
}

.sacfd-form__heading + .sacfd-field,
.sacfd-account__heading + .sacfd-form,
.sacfd-account__heading + .sacfd-account__tier {
    margin-top: 20px;
}

.sacfd-field {
    display: block;
    margin: 0 0 16px;
}

.sacfd-field label,
.sacfd-field__label {
    display: block;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}

.sacfd-field input[type="text"],
.sacfd-field input[type="email"],
.sacfd-field input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d5cdb8;
    border-radius: 4px;
    background: #fff;
    font-family: inherit;
    font-size: 16px;
    color: #000;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.sacfd-field input[type="text"]:focus,
.sacfd-field input[type="email"]:focus,
.sacfd-field input[type="password"]:focus {
    border-color: #1a3a6b;
    box-shadow: 0 0 0 2px rgba(26, 58, 107, 0.12);
}

.sacfd-field--check label {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sacfd-field--static .sacfd-field__value {
    font-size: 16px;
    color: #444;
}

.sacfd-field__hint {
    display: block;
    color: #777;
    font-size: 13px;
    margin-top: 4px;
}

.sacfd-field-row {
    display: flex;
    gap: 16px;
}

.sacfd-field-row .sacfd-field {
    flex: 1 1 0;
}

/* Honeypot: off-screen rather than display:none, so bots still fill it. */
.sacfd-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* ── Buttons ── */

.sacfd-btn {
    display: inline-block;
    background: #1a1a2e;
    color: #fff;
    border: 2px solid #1a1a2e;
    border-radius: 4px;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.sacfd-btn:hover,
.sacfd-btn:focus {
    background: #cc0000;
    border-color: #cc0000;
    color: #fff;
    text-decoration: none;
}

.sacfd-btn--secondary {
    background: transparent;
    color: #1a1a2e;
}

.sacfd-btn--secondary:hover,
.sacfd-btn--secondary:focus {
    background: #1a1a2e;
    border-color: #1a1a2e;
    color: #fff;
}

.sacfd-btn--disabled,
.sacfd-btn[disabled] {
    background: #e6e0cf;
    border-color: #d5cdb8;
    color: #8a8372;
    cursor: not-allowed;
}

.sacfd-btn--disabled:hover,
.sacfd-btn[disabled]:hover {
    background: #e6e0cf;
    border-color: #d5cdb8;
    color: #8a8372;
}

.sacfd-auth__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 20px 0 0;
}

.sacfd-auth__links {
    margin: 16px 0 0;
    font-size: 15px;
    color: #666;
}

.sacfd-auth__links a {
    color: #1a3a6b;
}

/* ── Notices ── */

.sacfd-notice--error,
.sacfd-notice--success,
.sacfd-notice--info {
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 15px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.sacfd-notice--error {
    background: #fdecec;
    border-left-color: #cc0000;
    color: #000;
}

.sacfd-notice--success {
    background: #eaf4ea;
    border-left-color: #2e7d32;
    color: #000;
}

.sacfd-notice--info {
    background: #fdf6df;
    border-left-color: #f5c518;
    color: #000;
}

.sacfd-notice--error ul {
    margin: 0;
    padding-left: 20px;
}

.sacfd-notice--error li + li {
    margin-top: 4px;
}

/* ── Membership badge ── */

.sacfd-tier-badge {
    display: inline-block;
    padding: 1px 10px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.sacfd-tier-badge--public {
    background: #e6e0cf;
    color: #5a5545;
}

.sacfd-tier-badge--free {
    background: #1a3a6b;
    color: #fff;
}

.sacfd-tier-badge--paid {
    background: #f5c518;
    color: #1a1a2e;
}

/* ── Plans ── */

.sacfd-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 8px 0 24px;
}

.sacfd-plan {
    background: #fff;
    border: 1px solid #d5cdb8;
    border-radius: 4px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.sacfd-plan--paid {
    border: 2px solid #1a1a2e;
    box-shadow: 0 6px 18px rgba(26, 26, 46, 0.08);
}

.sacfd-plan--current {
    border-color: #f5c518;
}

.sacfd-plan__name {
    font-size: 20px;
    margin: 0 0 12px;
}

.sacfd-plan__price {
    margin: 0 0 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #ece6d2;
}

.sacfd-plan__amount {
    font-size: 38px;
    font-weight: 700;
    line-height: 1;
    display: inline-block;
}

.sacfd-plan__interval {
    display: block;
    color: #777;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
}

.sacfd-plan__features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    flex: 1 1 auto;
}

.sacfd-plan__features li {
    position: relative;
    padding: 5px 0 5px 22px;
    font-size: 16px;
    border-bottom: 1px solid #f4f0e6;
}

.sacfd-plan__features li:last-child {
    border-bottom: none;
}

.sacfd-plan__features li::before {
    content: "›";
    position: absolute;
    left: 4px;
    color: #cc0000;
    font-weight: 700;
}

.sacfd-plan__action {
    margin: 0;
}

/* A module may inject a real form here (billing's no-JavaScript checkout POST). */
.sacfd-plan__action form {
    margin: 0;
}

.sacfd-plan__action form + form {
    margin-top: 12px;
}

.sacfd-plan__current-label {
    display: inline-block;
    font-weight: 700;
    color: #2e7d32;
}

.sacfd-plans__footnote {
    font-size: 15px;
    color: #666;
}

/* ── Gate notice ── */

.sacfd-gate {
    margin: 0 0 28px;
}

.sacfd-gate__teaser {
    font-size: 17px;
    color: #333;
    margin-bottom: 20px;
}

.sacfd-gate__panel {
    background: #fff;
    border: 1px solid #d5cdb8;
    border-top: 4px solid #cc0000;
    border-radius: 4px;
    padding: 24px;
}

.sacfd-gate--paid .sacfd-gate__panel {
    border-top-color: #f5c518;
}

.sacfd-gate__heading {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
}

.sacfd-gate__message {
    margin: 0;
    color: #444;
}

.sacfd-gate__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 0;
}

/* ── Header member nav (theme header.php) ── */

.sacfd-header__nav .sacfd-member-nav {
    display: inline-flex;
    gap: 20px;
    align-items: center;
    padding-left: 20px;
    margin-left: 4px;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.sacfd-member-nav__link {
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sacfd-member-nav__link:hover {
    color: #f5c518;
    text-decoration: none;
}

.sacfd-member-nav__link--cta {
    color: #f5c518;
    font-weight: 700;
}

/* ── Checkout success ── */

.sacfd-checkout-success__lead {
    font-size: 19px;
    margin-bottom: 8px;
}

/* ── Small screens ── */

@media (max-width: 720px) {
    .sacfd-plans {
        grid-template-columns: minmax(0, 1fr);
    }

    .sacfd-field-row {
        flex-direction: column;
        gap: 0;
    }

    .sacfd-header__nav .sacfd-member-nav {
        padding-left: 0;
        margin-left: 0;
        border-left: none;
    }
}

/* ── wp-admin ───────────────────────────────────────────────────────────── */

.sacfd-admin-cards {
    display: flex;
    gap: 16px;
    margin: 16px 0 24px;
    flex-wrap: wrap;
}

.sacfd-admin-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-left: 4px solid #1a3a6b;
    border-radius: 3px;
    padding: 14px 22px;
    min-width: 130px;
}

.sacfd-admin-card__value {
    display: block;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
}

.sacfd-admin-card__label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #646970;
}

.sacfd-admin-recent {
    margin-bottom: 24px;
    max-width: 900px;
}

.sacfd-muted {
    color: #8c8f94;
    font-size: 12px;
}
