.rbm-status-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}
.status-active { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.status-hold { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.status-suspended { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.status-terminated { background: #1e293b; color: #ffffff; border: 1px solid #0f172a; }

.rbm-suspended-banner {
    background: #dc2626;
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 2px 4px;
    border-radius: 4px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 1px 3px rgba(220,38,38,0.3);
}

.rbm-node.status-suspended {
    border: 2px solid #dc2626 !important;
    background: #fef2f2 !important;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.25) !important;
}

.rbm-node.status-suspended .rbm-node-id-large {
    color: #991b1b !important;
}

.rbm-node.status-hold { border-style: dotted !important; opacity: 0.9; }
.rbm-node.status-terminated { border-color: #0f172a !important; background: #e2e8f0 !important; opacity: 0.5; }

.rbm-tree-container {
    max-width: 1100px !important;
    width: 100%;
    margin: 20px auto;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rbm-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.rbm-title-area h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
}

.rbm-subtitle {
    font-size: 0.85rem;
    color: #64748b;
}

.rbm-status-badge {
    background: #10b981;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.rbm-nav-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 24px;
    overflow-x: auto;
}

.rbm-tab-item {
    padding: 10px 18px;
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.rbm-tab-item.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

.rbm-tab-item:hover {
    color: #1e40af;
}

.rbm-wallet-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 24px;
    border-radius: 10px;
}

.rbm-wallet-icon { font-size: 3rem; }

.rbm-wallet-info h3 { margin: 0; font-size: 1rem; color: #475569; }

.rbm-wallet-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #059669;
    margin: 6px 0;
}

.rbm-wallet-desc { font-size: 0.85rem; color: #64748b; margin: 0; }

.rbm-terms-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
}

.rbm-policy-section { margin-bottom: 20px; }

.rbm-policy-section h4 { margin: 0 0 6px 0; color: #1e293b; font-size: 0.98rem; }

.rbm-policy-section p, .rbm-policy-section li {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 6px 0;
}

.rbm-acceptance-card {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    padding: 20px;
    border-radius: 8px;
    margin-top: 24px;
}

.rbm-terms-accepted-msg {
    color: #065f46;
    background: #dcfce7;
    border: 1px solid #86efac;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rbm-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.rbm-kpi-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.rbm-kpi-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
}

.rbm-kpi-val {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 8px 0 4px 0;
}

.rbm-kpi-sub { font-size: 0.75rem; color: #94a3b8; }

.rbm-metrics-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
}

.rbm-card-header { margin: 0 0 6px 0; font-size: 1.1rem; color: #0f172a; }

.rbm-card-desc { font-size: 0.85rem; color: #64748b; margin: 0 0 20px 0; }

.rbm-rank-roadmap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.rbm-roadmap-step {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.rbm-roadmap-step.achieved { background: #f0fdf4; border-color: #86efac; }

.rbm-roadmap-step.current {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.rbm-step-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #cbd5e1;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.rbm-roadmap-step.achieved .rbm-step-node { background: #10b981; color: #ffffff; }

.rbm-step-title { font-size: 0.82rem; font-weight: 700; color: #0f172a; }

.rbm-step-req { font-size: 0.7rem; color: #64748b; margin-top: 3px; }

.rbm-step-reward { font-size: 0.7rem; font-weight: 700; color: #059669; margin-top: 5px; }

.rbm-tree-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    overflow-x: auto;
}

.rbm-level-section {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    box-sizing: border-box;
}

.rbm-level-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    text-align: center;
}

.rbm-row { display: flex; justify-content: center; gap: 16px; width: 100%; }

.rbm-row.grid-8 { gap: 8px; }

.rbm-line { width: 2px; height: 14px; background: #cbd5e1; }

.rbm-node {
    border-radius: 8px;
    padding: 10px 6px;
    width: 95px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
    position: relative;
}

.rbm-node:hover { transform: translateY(-2px); }

.rbm-node.rbm-is-me { 
    background: #fef08a !important; 
    border: 2px solid #eab308 !important; 
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.5) !important;
}

.rbm-avatar-wrap img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid #ffffff;
}

.rbm-empty-icon {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 34px;
    background: #ffffff;
    border-radius: 50%;
    color: #94a3b8;
    font-size: 18px;
    font-weight: bold;
}

.rbm-node-id-large {
    font-size: 0.85rem;
    font-weight: 800;
    margin-top: 5px;
    color: #0f172a;
    letter-spacing: 0.3px;
}

.rbm-node-node-sub {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 600;
    margin-top: 1px;
}

.rbm-rank-tag {
    font-size: 0.6rem;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.rbm-badge {
    font-size: 0.62rem;
    padding: 2px 5px;
    border-radius: 10px;
    margin-top: 4px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.7);
}

.rbm-node.slot-empty { border-style: dashed !important; opacity: 0.7; }

.lvl-1-group { background: #f3e8ff; border: 1px solid #d8b4fe; }
.lvl-1-group .rbm-level-label { color: #6b21a8; }
.lvl-1-node { background: #ffffff; border: 2px solid #a855f7; color: #581c87; }
.lvl-1-node .rbm-badge { background: #f3e8ff; color: #6b21a8; }

.lvl-2-group { background: #eff6ff; border: 1px solid #bfdbfe; }
.lvl-2-group .rbm-level-label { color: #1e40af; }
.lvl-2-node { background: #ffffff; border: 2px solid #3b82f6; color: #1e3a8a; }
.lvl-2-node .rbm-badge { background: #eff6ff; color: #1e40af; }

.lvl-3-group { background: #ccfbf1; border: 1px solid #99f6e4; }
.lvl-3-group .rbm-level-label { color: #115e59; }
.lvl-3-node { background: #ffffff; border: 2px solid #14b8a6; color: #134e4a; }
.lvl-3-node .rbm-badge { background: #ccfbf1; color: #115e59; }

.lvl-4-group { background: #fef3c7; border: 1px solid #fde68a; }
.lvl-4-group .rbm-level-label { color: #92400e; }
.lvl-4-node { background: #ffffff; border: 2px solid #f59e0b; color: #78350f; }
.lvl-4-node .rbm-badge { background: #fef3c7; color: #92400e; }

@media (max-width: 900px) {
    .rbm-node { width: 75px; padding: 5px 3px; }
    .rbm-node-id-large { font-size: 0.75rem; }
    .rbm-avatar-wrap img { width: 32px; height: 32px; }
    .rbm-row.grid-8 { gap: 4px; }
}

/* ==========================================================================
   PassiveBoard WooCommerce Plugin - Core Styles
   ========================================================================== */

/* Main Wrapper */
.pb-user-portal-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #2c3e50;
    max-width: 1000px;
    margin: 0 auto;
}

/* Alert Boxes */
.pb-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}
.pb-alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeba2;
    color: #856404;
}

/* Navigation Tabs */
.pb-portal-nav {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 25px;
}
.pb-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}
.pb-nav-item:hover {
    color: #1e293b;
}
.pb-nav-item.active {
    color: #2563eb;
    border-bottom-color: #2563eb;
}

/* Status Header Card */
.pb-status-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #ffffff;
    padding: 28px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.25);
}
.pb-sub-heading {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
}
.pb-tier-title {
    margin: 6px 0 12px 0;
    font-size: 26px;
    color: #f59e0b;
    font-weight: 700;
}
.pb-badge-container {
    display: flex;
    gap: 10px;
}
.pb-badge {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}
.pb-badge-active {
    background-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.3);
}
.pb-badge-level {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
}
.pb-stat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    text-align: right;
}
.pb-stat-label {
    display: block;
    font-size: 12px;
    color: #94a3b8;
}
.pb-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

/* General Cards */
.pb-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}
.pb-card h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #1e293b;
    font-weight: 600;
}

/* Progress Section */
.pb-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.pb-progress-text {
    font-weight: 700;
    color: #2563eb;
}
.pb-progress-track {
    width: 100%;
    height: 14px;
    background-color: #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 12px;
}
.pb-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 20px;
    transition: width 0.6s ease;
}
.pb-info-text {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Grid Layout & Lists */
.pb-grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) {
    .pb-grid-two-col {
        grid-template-columns: 1fr;
    }
    .pb-status-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .pb-stat-box {
        text-align: left;
    }
}
.pb-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.pb-details-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 14px;
}
.pb-details-list li:last-child {
    border-bottom: none;
}
.pb-label {
    color: #64748b;
}
.pb-val {
    font-weight: 600;
    color: #0f172a;
}
.pb-text-success {
    color: #10b981;
}
.pb-tag-pending {
    background-color: #fef3c7;
    color: #d97706;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}
.pb-balance-display {
    font-size: 28px;
    font-weight: bold;
    color: #059669;
    margin: 0;
}
