/* ===================================================== */
/* AZBCE Paywall & Donation Styles                       */
/* ===================================================== */

.azbce-paywall-container {
    border: 1px solid #d4af37; /* Gold accent for adventure feel */
    border-radius: 12px;
    background: #ffffff;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.azbce-donation-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #28a745; /* Green for support/donation */
}

.azbce-paywall-header {
    text-align: center;
    margin-bottom: 24px;
}

.azbce-paywall-header p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.azbce-paywall-header strong {
    color: #d4af37;
    font-weight: 700;
}

/* Tabs for Login / Create Account */
.azbce-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    border-bottom: 2px solid #eee;
}

.azbce-tab {
    background: none;
    border: none;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.azbce-tab:hover {
    color: #333;
}

.azbce-tab.active {
    color: #d4af37;
}

.azbce-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #d4af37;
    border-radius: 2px;
}

/* Tab Content */
.azbce-tab-content {
    display: none;
}

#azbce-login-tab.active,
#azbce-register-tab.active {
    display: block;
}

/* Forms */
.azbce-login-form,
.azbce-register-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.azbce-login-form p,
.azbce-register-form p {
    margin: 0;
}

.azbce-login-form input,
.azbce-register-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.azbce-login-form button,
.azbce-register-form button {
    background: #d4af37;
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.azbce-login-form button:hover,
.azbce-register-form button:hover {
    background: #b8932a;
}

/* Payment Wrapper */
.azbce-payment-wrapper {
    text-align: center;
    margin-top: 20px;
}

#azbce-payment-element,
#azbce-donation-element {
    max-width: 500px;
    margin: 0 auto 20px;
}

/* Pay / Support Button */
.azbce-pay-btn {
    background: #d4af37 !important;
    color: white !important;
    padding: 14px 32px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(212,175,55,0.3);
    transition: all 0.3s ease !important;
}

.azbce-pay-btn:hover {
    background: #b8932a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212,175,55,0.4);
}

.azbce-donation-container .azbce-pay-btn {
    background: #28a745 !important; /* Green for donations */
}

.azbce-donation-container .azbce-pay-btn:hover {
    background: #218838 !important;
}

/* Messages */
.azbce-message {
    text-align: center;
    margin: 16px 0;
    font-weight: 500;
    min-height: 24px;
}

.azbce-message span[color="green"] {
    color: #28a745;
}

/* Thank You States */
.azbce-paywall-container > div[style*="text-align:center"] {
    background: #f8fff9;
    border: 2px dashed #28a745;
    border-radius: 12px;
    padding: 40px;
}

/* ===================================================== */
/* User Dashboard Styles                                 */
/* ===================================================== */

.azbce-dashboard {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.azbce-dashboard h2 {
    color: #d4af37;
    border-bottom: 3px solid #d4af37;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.azbce-dashboard h3 {
    color: #333;
    margin-top: 40px;
    margin-bottom: 16px;
    font-size: 20px;
}

.azbce-unlocked-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.azbce-unlocked-table th,
.azbce-unlocked-table td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.azbce-unlocked-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #444;
}

.azbce-unlocked-table tr:hover {
    background: #fffef0;
}

/* Payment Methods Section */
#azbce-payment-methods {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

#azbce-add-card-section {
    margin-top: 20px;
    padding: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.azbce-saved-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
}

/* Forms in Dashboard */
#azbce-account-form,
#azbce-preferences-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

#azbce-account-form p,
#azbce-preferences-form p {
    grid-column: span 2;
}

#azbce-account-form label,
#azbce-preferences-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

#azbce-account-form input[type="text"],
#azbce-account-form input[type="email"],
#azbce-account-form input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Danger Zone */
#azbce-delete-account {
    background: #d63638;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

#azbce-delete-account:hover {
    background: #c12b2d;
}

/* Responsive */
@media (max-width: 640px) {
    .azbce-paywall-container {
        padding: 20px;
        margin: 20px 10px;
    }

    .azbce-tabs {
        flex-direction: column;
    }

    .azbce-tab {
        padding: 14px;
        text-align: center;
    }

    .azbce-tab.active::after {
        bottom: 0;
        left: 50%;
        width: 60px;
        transform: translateX(-50%);
    }

    #azbce-account-form,
    #azbce-preferences-form {
        grid-template-columns: 1fr;
    }
}

/* 3-Step Donation Flow */
.azbce-amount-presets {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.azbce-preset-btn {
    background: #f8f9fa;
    border: 2px solid #ddd;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.azbce-preset-btn:hover {
    border-color: #28a745;
}

.azbce-preset-btn.active {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.azbce-custom-amount-wrapper {
    text-align: center;
    margin: 20px 0;
}

#azbce-custom-amount-input {
    width: 200px;
    padding: 12px;
    font-size: 18px;
    border: 1px solid #ccc;
    border-radius: 6px;
    text-align: center;
}

.azbce-step-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.azbce-donation-step p strong {
    font-size: 18px;
    color: #333;
}