/* ── 519 Backstage Club — UI ──────────────────────────────────────────── */

/* ── Base portal wrapper ──────────────────────────────────────────────── */
.bsc-portal {
    max-width: 500px;
    margin: 0 auto;
    font-family: inherit;
}

.bsc-portal-header {
    text-align: center;
    margin-bottom: 28px;
}

.bsc-portal-banner {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
}

.bsc-portal-sub {
    font-size: 14px;
    color: #888;
    margin: 0;
}

/* ── Notices ──────────────────────────────────────────────────────────── */
.bsc-notice {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.bsc-notice-error   { background: #fee2e2; color: #991b1b; border-left: 4px solid #dc2626; }
.bsc-notice-info    { background: #eff6ff; color: #1e40af; border-left: 4px solid #3b82f6; }
.bsc-notice-success { background: #dcfce7; color: #166534; border-left: 4px solid #22c55e; }

[data-theme="dark"] .bsc-notice-error   { background: #3b0f0f; color: #fca5a5; }
[data-theme="dark"] .bsc-notice-info    { background: #1e2d40; color: #93c5fd; }
[data-theme="dark"] .bsc-notice-success { background: #14281e; color: #86efac; }

/* ── Social login buttons ─────────────────────────────────────────────── */
.bsc-social-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.bsc-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid #ddd;
    color: #333 !important;
    background: #fff;
    transition: background 0.15s, box-shadow 0.15s;
}

.bsc-social-btn:hover {
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

[data-theme="dark"] .bsc-social-btn {
    background: #222;
    border-color: #444;
    color: #f0f0f0 !important;
}

[data-theme="dark"] .bsc-social-btn:hover { background: #2a2a2a; }

.bsc-divider {
    text-align: center;
    position: relative;
    margin: 18px 0;
    font-size: 12px;
    color: #aaa;
}

.bsc-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0; right: 0;
    height: 1px;
    background: #e5e5e5;
}

[data-theme="dark"] .bsc-divider::before { background: #333; }

.bsc-divider span {
    position: relative;
    padding: 0 12px;
    background: var(--bg-body, #fff);
}

[data-theme="dark"] .bsc-divider span { background: var(--bg-body, #111); }

/* ── Form fields ──────────────────────────────────────────────────────── */
.bsc-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bsc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bsc-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-base, #333);
}

[data-theme="dark"] .bsc-field label { color: #ccc; }

.bsc-field input[type="email"],
.bsc-field input[type="password"],
.bsc-field input[type="text"],
.bsc-field input[type="number"],
.bsc-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-base, #111);
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

[data-theme="dark"] .bsc-field input,
[data-theme="dark"] .bsc-field textarea {
    background: #1a1a1a;
    border-color: #444;
    color: #f0f0f0;
}

.bsc-field input:focus,
.bsc-field textarea:focus {
    outline: none;
    border-color: #026cdf;
    box-shadow: 0 0 0 3px rgba(2, 108, 223, 0.15);
}

.bsc-field-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.bsc-check-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    font-weight: 400 !important;
    cursor: pointer;
    line-height: 1.4;
}

.bsc-hint {
    font-weight: 400;
    color: #999;
    font-size: 11px;
}

/* Password strength meter */
.bsc-pw-strength {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    height: 14px;
}

.bsc-pw-weak   { color: #dc2626; }
.bsc-pw-fair   { color: #f97316; }
.bsc-pw-good   { color: #16a34a; }
.bsc-pw-strong { color: #15803d; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.bsc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.bsc-btn:hover { transform: translateY(-1px); }

.bsc-btn-primary {
    background: #026cdf;
    color: #fff !important;
}

.bsc-btn-primary:hover { background: #0055b8; }

.bsc-btn-secondary {
    background: #374151;
    color: #fff !important;
}

.bsc-btn-secondary:hover { background: #1f2937; }

.bsc-btn-outline {
    background: transparent;
    border: 1px solid currentColor;
    color: var(--text-base, #333) !important;
}

[data-theme="dark"] .bsc-btn-outline { color: #ccc !important; }

.bsc-btn-outline:hover { background: rgba(0,0,0,0.06); }

.bsc-btn-full { width: 100%; box-sizing: border-box; }

/* ── Links ────────────────────────────────────────────────────────────── */
.bsc-link-muted {
    font-size: 12px;
    color: #888;
    text-decoration: none;
}

.bsc-link-muted:hover { color: #026cdf; text-decoration: underline; }

.bsc-link-accent {
    font-size: 12px;
    color: #026cdf;
    text-decoration: none;
    font-weight: 600;
}

.bsc-muted { color: #888; font-size: 13px; }

.bsc-switch-prompt {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 20px;
}

.bsc-tos-note {
    font-size: 11px;
    color: #aaa;
    line-height: 1.5;
}

/* ── Email confirm screen ─────────────────────────────────────────────── */
.bsc-portal-confirm {
    text-align: center;
    padding: 40px 20px;
}

.bsc-confirm-icon {
    font-size: 52px;
    margin-bottom: 16px;
}

/* ── Dashboard ────────────────────────────────────────────────────────── */
.bsc-dash-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e5e5;
}

[data-theme="dark"] .bsc-dash-header { border-color: #2a2a2a; }

.bsc-member-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #f59e0b;
    text-transform: uppercase;
}

.bsc-member-name {
    font-size: 22px;
    font-weight: 900;
    margin: 4px 0 0;
    color: var(--text-base, #111);
}

[data-theme="dark"] .bsc-member-name { color: #f0f0f0; }

.bsc-dash-pts { text-align: right; }

.bsc-pts-big {
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    color: #026cdf;
}

.bsc-pts-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #888;
    text-transform: uppercase;
}

.bsc-pts-today {
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
}

/* Perks row */
.bsc-perks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

@media (max-width: 540px) {
    .bsc-perks-grid { grid-template-columns: 1fr; }
    .bsc-dash-header { flex-direction: column; }
    .bsc-dash-pts { text-align: left; }
}

.bsc-perk {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #f9fafb;
    border-radius: 8px;
    padding: 14px;
    font-size: 12px;
    line-height: 1.4;
}

[data-theme="dark"] .bsc-perk { background: #1a1a1a; }

.bsc-perk-icon { font-size: 22px; flex-shrink: 0; }

/* Sections */
.bsc-section {
    margin-bottom: 28px;
}

.bsc-section-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 12px;
}

/* Ledger */
.bsc-ledger { display: flex; flex-direction: column; gap: 6px; }

.bsc-ledger-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 6px;
}

[data-theme="dark"] .bsc-ledger-row { background: #1a1a1a; }

.bsc-ledger-action { flex: 1; color: var(--text-base, #333); }
[data-theme="dark"] .bsc-ledger-action { color: #ccc; }

.bsc-earn   { font-weight: 800; color: #16a34a; }
.bsc-deduct { font-weight: 800; color: #dc2626; }

.bsc-ledger-date { font-size: 11px; color: #aaa; }

.bsc-dash-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    margin-top: 8px;
}

[data-theme="dark"] .bsc-dash-footer { border-color: #2a2a2a; }

/* ── Sidebar Widget ───────────────────────────────────────────────────── */
.bsc-widget {
    font-size: 13px;
}

.bsc-widget-banner {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.bsc-widget-pitch {
    font-size: 12px;
    color: #888;
    margin: 0 0 14px;
    line-height: 1.4;
}

/* Widget form fields */
.bsc-widget-form { display: flex; flex-direction: column; gap: 8px; }

.bsc-widget-input {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    font-size: 13px;
    color: var(--text-base, #111);
    background: #fff;
    box-sizing: border-box;
}

[data-theme="dark"] .bsc-widget-input {
    background: #1a1a1a;
    border-color: #444;
    color: #f0f0f0;
}

.bsc-widget-input:focus {
    outline: none;
    border-color: #026cdf;
    box-shadow: 0 0 0 3px rgba(2,108,223,0.15);
}

.bsc-widget-sub-links {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
}

/* Mobile widget CTA: hidden by default, shown on small screens */
.bsc-widget-mobile-cta { display: none; }

@media (max-width: 600px) {
    .bsc-widget-form      { display: none !important; }
    .bsc-widget-mobile-cta { display: block !important; }
}

/* Member state */
.bsc-widget-member-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.bsc-widget-member-name {
    font-weight: 700;
    color: var(--text-base, #111);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

[data-theme="dark"] .bsc-widget-member-name { color: #f0f0f0; }

.bsc-widget-pts {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.bsc-widget-pts-num {
    font-size: 22px;
    font-weight: 900;
    color: #026cdf;
    line-height: 1;
}

.bsc-widget-pts-unit {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
}

/* Daily points progress bar */
.bsc-widget-pts-bar {
    height: 4px;
    background: #e5e5e5;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

[data-theme="dark"] .bsc-widget-pts-bar { background: #333; }

.bsc-widget-pts-fill {
    height: 100%;
    background: linear-gradient(90deg, #026cdf, #a855f7);
    border-radius: 2px;
    transition: width 0.6s ease;
    min-width: 4px;
}

.bsc-widget-pts-caption {
    font-size: 11px;
    color: #aaa;
    margin: 0 0 14px;
}

.bsc-widget-actions { display: flex; flex-direction: column; }

/* ── Contest redemption block ─────────────────────────────────────────── */
.bsc-redemption-wrap {
    margin: 24px 0;
    padding: 18px 20px;
    background: #0d0d0d;
    border: 1px solid #333;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    font-size: 13px;
    color: #ccc;
}

.bsc-redemption-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 6px;
}

.bsc-badge-member {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #f59e0b;
}

.bsc-redemption-balance { font-size: 12px; color: #888; }
.bsc-redemption-balance strong { color: #f0f0f0; }

.bsc-redemption-offer p { margin: 0 0 12px; color: #ddd; }
.bsc-redemption-offer strong { color: #fff; }

.bsc-btn-redeem {
    background: #f59e0b;
    color: #000 !important;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.15s;
}

.bsc-btn-redeem:hover { background: #d97706; }
.bsc-btn-redeem:disabled { opacity: 0.6; cursor: wait; }

.bsc-redemption-done  { color: #86efac; font-weight: 600; margin: 0; }
.bsc-redemption-low   { color: #aaa; margin: 0; }
.bsc-redemption-error { color: #fca5a5; margin-top: 8px; }

/* ── Points toast notification ────────────────────────────────────────── */
.bsc-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #026cdf;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    padding: 10px 18px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 99999;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    letter-spacing: 0.5px;
}

.bsc-toast--visible {
    opacity: 1;
    transform: translateY(0);
}
