/* ==========================================================================
   VOTER SUBSCRIPTION POPUP (template-parts/subscribe-modal.php)
   ========================================================================== */

body.bbt-sub-open { overflow: hidden; }

.bbt-sub-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(4px);
}
.bbt-sub-backdrop.active { display: flex; }

.bbt-sub-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 26px 24px 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0f172a;
    color: #e2e8f0;
    text-align: center;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
    animation: bbtSubPop 0.22s ease-out;
}
@keyframes bbtSubPop {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .bbt-sub-card { animation: none; }
}

.bbt-sub-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    padding: 0 !important;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}
.bbt-sub-close:hover { background: rgba(255, 255, 255, 0.18); }

.bbt-sub-title {
    margin: 0 30px 14px;
    color: #ffffff !important;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

/* The anti-fake-voting message is the strongest element in the popup. */
.bbt-sub-fake {
    margin-bottom: 16px;
    padding: 14px 12px;
    border-radius: 12px;
    background: #facc15;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.3);
}

.bbt-sub-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 2px 8px;
    margin-bottom: 14px;
}
.bbt-sub-price-only,
.bbt-sub-price-for { color: #cbd5e1; font-size: 15px; font-weight: 600; }
.bbt-sub-price-num { color: #fb923c; font-size: 44px; font-weight: 900; line-height: 1; }

.bbt-sub-points {
    margin: 0 0 16px !important;
    padding: 0 !important;
    list-style: none !important;
    text-align: left;
    font-size: 14px;
    line-height: 1.45;
}
.bbt-sub-points li { margin: 0 0 5px; color: #cbd5e1; }
.bbt-sub-points strong { color: #ffffff; }

.bbt-sub-step[hidden] { display: none; }

.bbt-sub-cta {
    display: block;
    width: 100%;
    padding: 13px 16px !important;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ea580c, #dc2626);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: filter 0.15s;
}
.bbt-sub-cta:hover { filter: brightness(1.1); }
.bbt-sub-cta:disabled { opacity: 0.6; cursor: default; }
.bbt-sub-hint { margin: 8px 0 0; color: #94a3b8; font-size: 13px; }

.bbt-sub-rejected {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(220, 38, 38, 0.15);
    color: #fca5a5;
    font-size: 13.5px;
    text-align: left;
}
.bbt-sub-rejected[hidden] { display: none; }

.bbt-sub-norefund { margin: 0 0 12px; color: #e2e8f0; font-size: 13.5px; line-height: 1.4; }
.bbt-sub-norefund strong { color: #fde68a; }
.bbt-sub-norefund a { color: #fbbf24 !important; text-decoration: underline; }

.bbt-sub-pay {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}
.bbt-sub-qr { flex: 0 0 auto; }
.bbt-sub-qr img { display: block; width: 120px; height: 120px; border-radius: 8px; background: #ffffff; }
.bbt-sub-qr span { display: block; margin-top: 5px; color: #94a3b8; font-size: 11px; }
.bbt-sub-pay-side { flex: 1; min-width: 0; }
.bbt-sub-upi {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
    text-align: left;
    word-break: break-all;
}
.bbt-sub-upi strong { color: #ffffff; }
.bbt-sub-upi button {
    flex: 0 0 auto;
    padding: 4px 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: transparent;
    color: #e2e8f0;
    font-size: 12px;
    cursor: pointer;
}

.bbt-sub-utr { text-align: left; }
.bbt-sub-utr label { display: block; margin-bottom: 6px; color: #cbd5e1; font-size: 13.5px; line-height: 1.4; }
.bbt-sub-utr strong { color: #ffffff; }
.bbt-sub-utr input {
    width: 100%;
    margin-bottom: 10px;
    padding: 11px 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 10px !important;
    background: #1e293b !important;
    color: #ffffff !important;
    font-size: 16px;
    letter-spacing: 0.08em;
}

.bbt-sub-wait {
    padding: 14px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.14);
    font-size: 14px;
    line-height: 1.5;
}
.bbt-sub-wait strong { display: block; margin-bottom: 4px; color: #ffffff; font-size: 16px; }
.bbt-sub-wait a { color: #fbbf24 !important; }

.bbt-sub-disclaimer { margin: 14px 0 0; color: #94a3b8; font-size: 11.5px; line-height: 1.4; }

@media (max-width: 480px) {
    .bbt-sub-card { padding: 22px 16px 16px; }
    .bbt-sub-fake { font-size: 18px; }
    .bbt-sub-pay { flex-direction: column; }
    .bbt-sub-pay-side { width: 100%; }
}

/* Payment method tabs (popup + tip box) */
.bbt-pay-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.bbt-pay-tab {
    padding: 9px 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: transparent;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
}
.bbt-pay-tab:hover { border-color: #fb923c; }
.bbt-pay-tab.is-active { border-color: #fb923c; background: rgba(234, 88, 12, 0.18); color: #ffffff; }
[data-method-pane][hidden] { display: none; }
.bbt-sub-price-usd { margin: -8px 0 14px; color: #94a3b8; font-size: 13px; }
.bbt-sub-paypal-note { margin: 8px 0 0; color: #94a3b8; font-size: 12.5px; text-align: left; }

/* Customer support box */
.bbt-support {
    margin: 14px 0 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
}
.bbt-support-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; }
.bbt-support-links a { color: #fbbf24 !important; font-weight: 600; text-decoration: underline; word-break: break-word; }
.bbt-page-content > .bbt-support { margin: 0 0 24px; font-size: 15px; }

/* Tip box on the account page */
.bbt-tip > p { margin: 0 0 14px; }
.bbt-tip-form label { display: block; margin-bottom: 6px; font-weight: 600; }
.bbt-tip-row { display: flex; align-items: center; gap: 8px; }
.bbt-tip-symbol { color: #ffffff; font-size: 18px; font-weight: 800; }
.bbt-tip-row input { flex: 1; min-width: 0; margin: 0 !important; }
.bbt-account-card .bbt-tip-row .bbt-sub-cta { flex: 0 0 auto; }
.bbt-tip-form .bbt-form-msg { margin: 8px 0 0; }
.bbt-tip-result[hidden] { display: none; }
.bbt-tip-result { margin-top: 14px; }
.bbt-tip-sending { margin: 0 0 10px; }
.bbt-tip-sending strong { color: #ffffff; }
.bbt-account-card .bbt-tip-result .bbt-sub-cta { display: block; width: 100%; }
.bbt-tip-result .bbt-sub-pay { margin-bottom: 0; }

/* Contact page */
.bbt-contact-intro { margin: 0 0 8px; color: #cbd5e1; font-size: 1.05rem; text-align: center; }
.bbt-contact-item p a { color: #fbbf24 !important; text-decoration: underline; word-break: break-word; }
.bbt-contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bbt-form-wrapper .bbt-form-msg { margin: 0 0 12px; }
.bbt-form-wrapper .bbt-form-control {
    width: 100%;
    background: #1e293b !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

/* Keep the login popup above the cookie banner too */
.bbt-auth-modal-backdrop { z-index: 2147483000 !important; }

/* Links inside legal pages must stay readable on the dark card */
.bbt-clause a { color: #fbbf24 !important; text-decoration: underline; }

/* Form messages (popup + account page) */
.bbt-form-msg { min-height: 0; margin: 0 0 10px; color: #fca5a5; font-size: 13.5px; line-height: 1.4; }
.bbt-form-msg:empty { display: none; }
.bbt-form-msg.is-ok { color: #4ade80; }

/* Login extras */
.bbt-auth-forgot { margin: 12px 0 0; color: #94a3b8; font-size: 12.5px; line-height: 1.5; text-align: center; }
.bbt-auth-forgot a { color: #fbbf24 !important; }
.bbt-auth-forgot span { display: block; }
.bbt-google-wrap { margin: 14px 0 4px; }
.bbt-google-btn { display: flex; justify-content: center; min-height: 44px; }
.bbt-auth-or { position: relative; margin: 12px 0 2px; color: #94a3b8; font-size: 12.5px; text-align: center; }
.bbt-auth-or::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: rgba(255, 255, 255, 0.12); }
.bbt-auth-or span { position: relative; padding: 0 10px; background: var(--bbt-auth-surface, #0f172a); }

.bbt-badge-subscriber { background: rgba(16, 185, 129, 0.15); color: #059669; }

.bbt-account-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 2147483001;
    max-width: calc(100vw - 32px);
    padding: 10px 16px;
    border-radius: 10px;
    background: #111827;
    color: #ffffff;
    font-size: 14px;
    opacity: 0;
    transform: translate(-50%, 8px);
    transition: opacity 0.2s, transform 0.2s;
}
.bbt-account-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   "SUBSCRIBERS ONLY" BANNER (bbt_subs_notice_html)
   ========================================================================== */

.bbt-sub-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1000px;
    margin: 18px auto;
    padding: 14px 16px;
    border: 2px solid #facc15;
    border-radius: 14px;
    background: #1e1b0f;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}
.bbt-sub-notice > div { flex: 1; min-width: 0; }
.bbt-sub-notice-icon { font-size: 26px; line-height: 1; }
.bbt-sub-notice-fake { display: block; color: #facc15; font-size: 16px; font-weight: 800; }
.bbt-sub-notice-price { color: #fb923c; font-size: 17px; }
.bbt-sub-notice-btn {
    flex: 0 0 auto;
    padding: 10px 16px !important;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #ea580c, #dc2626);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}
.bbt-sub-notice.is-active { border-color: #10b981; background: rgba(16, 185, 129, 0.12); }
.bbt-sub-notice.is-pending { border-color: #3b82f6; background: rgba(59, 130, 246, 0.12); }

@media (max-width: 640px) {
    .bbt-sub-notice { flex-wrap: wrap; }
    .bbt-sub-notice > div { flex-basis: calc(100% - 40px); }
    .bbt-sub-notice-btn { width: 100%; }
}

/* ==========================================================================
   MY ACCOUNT PAGE (page-account.php)
   ========================================================================== */

.bbt-account-page { background: #0b1120; color: #e2e8f0; }
.bbt-account-wrap { max-width: 960px; margin: 0 auto; padding: 32px 16px 56px; }

.bbt-account-card {
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: #111a2e;
}
.bbt-account-card h1,
.bbt-account-card h2 { margin: 0 0 12px; color: #ffffff !important; font-size: 20px; font-weight: 800; }
.bbt-account-card h3 { margin: 20px 0 10px; color: #ffffff !important; font-size: 15px; font-weight: 700; }
.bbt-account-card p { color: #cbd5e1; }
.bbt-account-card label { color: #cbd5e1; }
.bbt-account-card .bbt-sub-cta { display: inline-block; width: auto; }

.bbt-account-guest { max-width: 480px; margin: 0 auto 18px; }
.bbt-account-guest h1 { font-size: 26px; }

.bbt-account-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.bbt-account-avatar {
    flex: 0 0 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ea580c, #dc2626);
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    line-height: 60px;
    text-align: center;
}
.bbt-account-head-info { flex: 1; min-width: 0; }
.bbt-account-head-info h1 { margin: 0; color: #ffffff !important; font-size: 24px; font-weight: 800; }
.bbt-account-head-info p { margin: 2px 0 0; color: #94a3b8; font-size: 14px; word-break: break-word; }
.bbt-account-logout {
    flex: 0 0 auto;
    padding: 8px 14px;
    border: 1px solid rgba(248, 113, 113, 0.5);
    border-radius: 10px;
    color: #fca5a5 !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
}

.bbt-account-status { margin-bottom: 4px; color: #ffffff; font-size: 18px; font-weight: 800; }
.bbt-account-sub.is-active { border-color: rgba(16, 185, 129, 0.5); }
.bbt-account-sub.is-active .bbt-account-status { color: #4ade80; }
.bbt-account-sub.is-pending .bbt-account-status { color: #93c5fd; }
.bbt-account-sub.is-rejected .bbt-account-status { color: #fca5a5; }

.bbt-account-table-wrap { overflow-x: auto; }
.bbt-account-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 13.5px; }
.bbt-account-table th,
.bbt-account-table td { padding: 8px 10px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); color: #cbd5e1; text-align: left; white-space: nowrap; }
.bbt-account-table th { color: #94a3b8; font-weight: 600; }

.bbt-account-votes { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.bbt-account-votes li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 14px; }
.bbt-account-votes li:last-child { border-bottom: 0; }
.bbt-account-votes span { color: #94a3b8; }
.bbt-account-votes a { color: #fbbf24 !important; font-weight: 600; }
.bbt-account-empty { margin: 0; color: #94a3b8; }
.bbt-account-google { margin: 12px 0 0; color: #4ade80 !important; font-size: 14px; }

.bbt-account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.bbt-account-grid .bbt-account-card { margin-bottom: 0; }

@media (max-width: 720px) {
    .bbt-account-grid { grid-template-columns: 1fr; }
    .bbt-account-head { flex-wrap: wrap; }
}
