/* Account Page - Simple Override */
body.page-id-18,
body.page-id-18 * {
    color: #333333 !important;
    background: #ffffff !important;
}

body.page-id-18 .site-header,
body.page-id-18 .ast-site-header,
body.page-id-18 .nav-links,
body.page-id-18 .nav-links * {
    background: #000000 !important;
    color: #ffffff !important;
}
/* Astra Theme Fixes */
body:not(.login), html:not(.login) {
    background: #000000 !important;
}
body:not(.login) .ast-container {
    background: #000000 !important;
    border: none !important;
}
body:not(.login) .site, body:not(.login) .ast-site {
    background: #000000 !important;
    border: none !important;
}
body:not(.login) .site-content, body:not(.login) .ast-site-content {
    background: #000000 !important;
    border: none !important;
}
body:not(.login) .site-header, body:not(.login) .ast-site-header {
    background: #000000 !important;
    border: none !important;
}
body:not(.login) .ast-container {
    max-width: 100vw !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
/* Also target the main content area */
body:not(.login) .site-content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
}
/* And the main site wrapper */
body:not(.login) .ast-site, body:not(.login) .site {
    max-width: 100% !important;
    width: 100% !important;
}

/* Fix MemberPress Mobile Actions */
@media (max-width: 768px) {
    .mepr-account-table .mepr-actions-column,
    .mepr-account-table th:last-child,
    .mepr-account-table td:last-child {
        width: auto !important;
        font-size: 12px !important;
        padding: 5px !important;
        word-break: break-word !important;
    }
    
    .mepr-account-table {
        font-size: 12px !important;
    }
    
    .mepr-cancel-sub-link {
        display: inline-block !important;
        background: #ff1744 !important;
        color: white !important;
        padding: 5px 10px !important;
        border-radius: 3px !important;
        text-decoration: none !important;
    }
}

/* Fix Checkout Page - Make it readable */
body[class*="checkout"],
body[class*="register"],
.mepr-checkout-form,
.mepr-checkout-form *,
.mp_payment_form_wrapper,
.mp_payment_form_wrapper * {
    color: #333333 !important;
    background: #ffffff !important;
}

/* Keep headers black */
body[class*="checkout"] .site-header,
body[class*="register"] .site-header {
    background: #000000 !important;
    color: #ffffff !important;
}

/* Fix MemberPress Registration/Stripe Forms */
.mepr-form,
.mepr-form *,
.mepr-signup-form,
.mepr-signup-form *,
.mp-form-row,
.mp-form-row *,
.mepr-coupon-field,
.mepr-coupon-field *,
#mepr-stripe-payment-element,
#mepr-stripe-payment-element *,
.mepr-stripe-form,
.mepr-stripe-form * {
    color: #333333 !important;
    background: #ffffff !important;
}

/* Form inputs specifically */
.mepr-form input,
.mepr-signup-form input,
.mepr-form select,
.mepr-form textarea {
    color: #333333 !important;
    background: #ffffff !important;
    border: 1px solid #cccccc !important;
}

/* Coupon field */
.mepr-coupon-code {
    color: #333333 !important;
    background: #ffffff !important;
}