/* ============================================================
   BB Members Plugin — supplemental CSS
   Loaded by the plugin on top of brothers.css
   ============================================================ */

/* ── DASHBOARD PANEL TABS (active states) ── */
[data-dash-panel] { display: none; }
[data-dash-panel].active { display: block; }

/* ── NOTIFICATION BELL ── */
.bb-notif-wrap {
    position: relative;
}
.bb-notif-bell {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    position: relative;
    padding: 6px;
}
.bb-notif-badge {
    position: absolute;
    top: 2px; right: 2px;
    min-width: 16px; height: 16px;
    border-radius: 8px;
    background: var(--c-danger);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}
.bb-notif-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    z-index: 9999;
    max-height: 400px;
    overflow-y: auto;
}
.bb-notif-panel.open { display: block; }
.bb-notif-panel-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--c-border);
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--c-muted);
}
.bb-notif-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--c-border);
    font-size: .85rem;
}
.bb-notif-item:last-child { border-bottom: none; }
.bb-notif-item.unread { background: rgba(30,122,62,0.05); }
.bb-notif-title { font-weight: 600; color: var(--c-text); margin-bottom: 2px; }
.bb-notif-date  { font-size: .75rem; color: var(--c-muted); }

/* ── BILLING HISTORY TABLE ── */
.billing-table {
    width: 100%;
    border-collapse: collapse;
}
.billing-table th, .billing-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
    font-size: .88rem;
}
.billing-table th {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--c-muted);
}
.billing-table tr:last-child td { border-bottom: none; }

/* ── PROFILE TABS ── */
.profile-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--c-border);
    margin-bottom: 24px;
}
.profile-tab {
    padding: 10px 20px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--c-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .2s, border-color .2s;
}
.profile-tab:hover { color: var(--c-text); }
.profile-tab.active {
    color: var(--c-green-lt);
    border-bottom-color: var(--c-green-lt);
}

/* ── ADMIN QUICK-APPROVE LINK STYLES ── */
.bb-approve-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--c-success);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 600;
    transition: background .2s;
}
.bb-approve-link:hover { background: var(--c-green-lt); color: #fff; }

/* ── LOADING INDICATOR ── */
.bb-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    gap: 10px;
    color: var(--c-muted);
}
.bb-spinner {
    width: 20px; height: 20px;
    border: 2px solid var(--c-border);
    border-top-color: var(--c-green);
    border-radius: 50%;
    animation: bb-spin .7s linear infinite;
}
@keyframes bb-spin { to { transform: rotate(360deg); } }
