/* ── Bizonomist Community CSS ─────────────────────────────────────────── */

/* Opt-in card */
.bizo-comm-optin-card {
    max-width:680px; margin:20px auto;
    background:rgba(46,255,123,0.06);
    border:1px solid rgba(46,255,123,0.2);
    border-radius:16px; padding:20px;
    display:flex; gap:14px; align-items:flex-start;
}
.bizo-comm-optin-icon { font-size:32px; flex-shrink:0; margin-top:2px; }
.bizo-comm-optin-title { font-size:16px; font-weight:800; color:#fff; margin-bottom:6px; }
.bizo-comm-optin-body { font-size:13px; color:rgba(255,255,255,0.65); line-height:1.65; margin-bottom:14px; }
.bizo-comm-optin-btn {
    display:inline-block; padding:11px 20px;
    background:linear-gradient(135deg,#2EFF7B,#7BFFB2);
    color:#041E0D; font-weight:800; font-size:14px;
    border:none; border-radius:10px; cursor:pointer; text-decoration:none;
    margin-right:10px;
}
.bizo-comm-optin-skip {
    background:none; border:none; color:rgba(255,255,255,0.35);
    font-size:12px; cursor:pointer; text-decoration:underline;
}
.bizo-comm-optin-expert-prompt {
    margin-top:10px; padding-top:10px;
    border-top:1px solid rgba(255,255,255,0.06);
    font-size:12px; color:rgba(255,255,255,0.4);
}

/* Dashboard community tabs */
.bizo-comm-tabs { display:flex; gap:6px; margin-bottom:20px; flex-wrap:wrap; }
.bizo-comm-tab {
    padding:9px 18px; background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:10px; color:rgba(255,255,255,0.55);
    font-size:13px; font-weight:600; cursor:pointer;
    transition:all 0.2s;
}
.bizo-comm-tab.active, .bizo-comm-tab:hover {
    background:rgba(46,255,123,0.1); border-color:rgba(46,255,123,0.3); color:#2EFF7B;
}
.bizo-comm-earn-badge {
    display:inline-block; margin-left:6px; padding:1px 6px;
    background:rgba(246,160,32,0.15); border:1px solid rgba(246,160,32,0.3);
    border-radius:6px; font-size:10px; color:#F6A020;
}
.bizo-comm-pane { display:none; }
.bizo-comm-pane.active { display:block; }

/* Review card (give a review) */
.bizo-comm-review-card {
    background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08);
    border-radius:16px; padding:20px; margin-bottom:20px; max-width:680px;
}
.bizo-comm-idea-meta {
    display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px;
}
.bizo-comm-meta-tag {
    padding:3px 10px; background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.1); border-radius:8px;
    font-size:11px; color:rgba(255,255,255,0.5);
}
.bizo-comm-idea-text {
    font-size:15px; font-weight:600; color:#fff; line-height:1.55; margin-bottom:16px;
    background:rgba(46,255,123,0.04); border-left:3px solid rgba(46,255,123,0.4);
    padding:12px 16px; border-radius:0 8px 8px 0;
}
.bizo-comm-q-label {
    font-size:12px; font-weight:700; color:rgba(255,255,255,0.5);
    text-transform:uppercase; letter-spacing:0.08em; margin-bottom:8px; display:block;
}
.bizo-comm-select {
    width:100%; padding:10px 14px; margin-bottom:8px;
    background:#0A1F0D; border:1px solid rgba(255,255,255,0.1);
    border-radius:10px; color:#fff; font-size:13px;
}
.bizo-comm-input {
    width:100%; padding:10px 14px; margin-bottom:14px;
    background:#0A1F0D; border:1px solid rgba(255,255,255,0.1);
    border-radius:10px; color:#fff; font-size:13px;
    box-sizing:border-box;
}
.bizo-comm-reaction-option {
    display:block; padding:11px 14px; margin-bottom:6px;
    background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.07);
    border-radius:10px; cursor:pointer; font-size:13px; color:rgba(255,255,255,0.75);
    transition:all 0.15s;
}
.bizo-comm-reaction-option:hover, .bizo-comm-reaction-option.selected {
    background:rgba(46,255,123,0.08); border-color:rgba(46,255,123,0.25); color:#fff;
}
.bizo-comm-submit-btn {
    width:100%; padding:13px; margin-top:8px;
    background:linear-gradient(135deg,#2EFF7B,#7BFFB2);
    color:#041E0D; font-weight:800; font-size:15px;
    border:none; border-radius:12px; cursor:pointer;
}
.bizo-comm-submit-btn:disabled { opacity:0.5; cursor:not-allowed; }

/* Received review cards */
.bizo-comm-received-card {
    background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.07);
    border-radius:16px; padding:20px; margin-bottom:16px; max-width:680px;
}
.bizo-comm-received-header {
    display:flex; justify-content:space-between; align-items:baseline; margin-bottom:12px;
}
.bizo-comm-progress {
    display:flex; gap:6px; align-items:center; margin-bottom:14px;
}
.bizo-comm-progress-dot {
    width:10px; height:10px; border-radius:50%;
    background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.2);
}
.bizo-comm-progress-dot.filled { background:#2EFF7B; border-color:#2EFF7B; }
.bizo-comm-review-response {
    background:rgba(255,255,255,0.03); border-radius:10px;
    padding:12px 14px; margin-bottom:8px;
}
.bizo-comm-review-q {
    font-size:10px; font-weight:700; color:rgba(255,255,255,0.4);
    text-transform:uppercase; letter-spacing:0.08em; margin-bottom:4px;
}
.bizo-comm-review-a { font-size:13px; color:rgba(255,255,255,0.75); line-height:1.6; }
.bizo-comm-reviewer-label {
    font-size:11px; color:rgba(255,255,255,0.35);
    margin-top:10px; padding-top:8px; border-top:1px solid rgba(255,255,255,0.05);
}

/* Expert review section */
.bizo-comm-expert-hero {
    text-align:center; background:rgba(255,215,0,0.05);
    border:1px solid rgba(255,215,0,0.15); border-radius:16px;
    padding:28px; margin-bottom:20px; max-width:680px;
}
.bizo-comm-expert-icon { font-size:40px; margin-bottom:12px; }
.bizo-comm-expert-hero h3 { color:#fff; font-size:20px; margin-bottom:10px; }
.bizo-comm-expert-hero p { color:rgba(255,255,255,0.6); font-size:14px; line-height:1.7; margin-bottom:16px; }
.bizo-comm-expert-includes {
    display:grid; grid-template-columns:repeat(2,1fr); gap:8px; margin-bottom:20px;
}
.bizo-comm-ei {
    background:rgba(255,255,255,0.04); border-radius:8px; padding:8px 12px;
    font-size:12px; color:rgba(255,255,255,0.65); text-align:left;
}
.bizo-comm-expert-cost {
    font-size:22px; font-weight:900; color:#FFD700; margin-bottom:16px;
}
.bizo-comm-expert-submit-btn {
    display:inline-block; padding:13px 32px;
    background:linear-gradient(135deg,#FFD700,#FFA500);
    color:#000; font-weight:800; font-size:15px;
    border:none; border-radius:12px; cursor:pointer;
}

/* Expert delivered review */
.bizo-comm-expert-delivered {
    background:rgba(255,215,0,0.05); border:1px solid rgba(255,215,0,0.15);
    border-radius:16px; padding:24px; margin-bottom:16px; max-width:680px;
}
.bizo-comm-expert-section {
    margin-bottom:16px; padding-bottom:16px; border-bottom:1px solid rgba(255,255,255,0.06);
}
.bizo-comm-expert-section:last-child { border-bottom:none; margin-bottom:0; padding-bottom:0; }
.bizo-comm-expert-section-title {
    font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.1em;
    color:#FFD700; margin-bottom:8px;
}
.bizo-comm-expert-section-body {
    font-size:14px; color:rgba(255,255,255,0.75); line-height:1.75; white-space:pre-line;
}

/* Admin sub-tabs */
.bizo-comm-admin-tab {
    padding:8px 16px; background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.08);
    border-bottom:none; border-radius:8px 8px 0 0;
    color:rgba(255,255,255,0.5); font-size:12px; font-weight:600; cursor:pointer;
}
.bizo-comm-admin-tab.active { background:#041E0D; color:#2EFF7B; border-color:rgba(46,255,123,0.2); }

.bizo-comm-loading { color:rgba(255,255,255,0.4); font-size:13px; padding:20px; text-align:center; }

@media(max-width:600px){
    .bizo-comm-optin-card { flex-direction:column; }
    .bizo-comm-expert-includes { grid-template-columns:1fr; }
    .bizo-comm-tabs { gap:4px; }
    .bizo-comm-tab { font-size:11px; padding:7px 12px; }
}

/* Badge row */
.bizo-comm-badge-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px;}
.bizo-comm-badge{display:flex;align-items:center;gap:5px;padding:6px 12px;background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);border-radius:10px;font-size:12px;color:rgba(255,255,255,0.7);}
.bizo-comm-badge span:first-child{font-size:16px;}

/* Star rating widget */
.bizo-comm-rate-widget{ padding:10px 0 4px; }
.bizo-comm-stars{ display:inline-flex; gap:4px; cursor:pointer; }
.bizo-comm-star{ font-size:22px; color:rgba(255,255,255,0.25); transition:color 0.1s; user-select:none; }
.bizo-comm-star:hover,
.bizo-comm-star.active{ color:#FFD700; }

/* Profile completion prompt */
.bizo-comm-profile-prompt{
    display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px;
    padding:12px 16px; margin-bottom:16px;
    background:rgba(255,176,32,0.06); border:1px solid rgba(255,176,32,0.2); border-radius:12px;
    font-size:12px; color:rgba(255,255,255,0.6);
}
.bizo-comm-profile-prompt-link{
    font-size:12px; font-weight:700; color:#FFB020; text-decoration:none; white-space:nowrap;
}
.bizo-comm-profile-prompt-link:hover{ text-decoration:underline; }

/* Amazon-style rating distribution */
.bizo-comm-dist{
    display:flex; gap:20px; align-items:flex-start;
    padding:14px 0 4px;
}
.bizo-comm-dist-summary{
    text-align:center; flex-shrink:0; min-width:70px;
}
.bizo-comm-dist-avg{
    font-size:40px; font-weight:900; color:#FFD700; line-height:1;
}
.bizo-comm-dist-stars{
    margin:4px 0 2px;
}
.bizo-comm-dist-count{
    font-size:10px; color:rgba(255,255,255,0.4);
}
.bizo-comm-dist-bars{
    flex:1; display:flex; flex-direction:column; gap:5px;
}
.bizo-comm-dist-row{
    display:flex; align-items:center; gap:8px;
}
.bizo-comm-dist-label{
    font-size:11px; color:rgba(255,255,255,0.5);
    min-width:30px; text-align:right; flex-shrink:0;
}
.bizo-comm-dist-track{
    flex:1; height:10px; background:rgba(255,255,255,0.06);
    border-radius:999px; overflow:hidden;
}
.bizo-comm-dist-fill{
    height:100%; background:linear-gradient(90deg,#FFD700,#FFA500);
    border-radius:999px; width:0; /* animated via JS */
}
.bizo-comm-dist-pct{
    font-size:11px; color:rgba(255,255,255,0.4);
    min-width:28px; text-align:right; flex-shrink:0;
}
.bizo-lb-row td[onclick]{ transition:background 0.1s; }
.bizo-lb-row td[onclick]:hover{ background:rgba(255,255,255,0.03); }

/* Community stats card */
.bizo-comm-stats-card{
    display:grid; grid-template-columns:repeat(4,1fr); gap:10px;
    margin-bottom:20px;
}
.bizo-comm-stat-item{
    background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.07);
    border-radius:12px; padding:14px 12px; text-align:center;
    transition:background 0.15s;
}
.bizo-comm-stat-item[style*="cursor:pointer"]:hover{ background:rgba(255,215,0,0.06); border-color:rgba(255,215,0,0.2); }
.bizo-comm-stat-num{ font-size:22px; font-weight:900; color:#fff; line-height:1.2; margin-bottom:4px; }
.bizo-comm-stat-lbl{ font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:0.07em; color:rgba(255,255,255,0.4); }

/* WA chat history view */
.bizo-comm-wa-chat-view{ display:flex; flex-direction:column; gap:10px; max-width:600px; }
.bizo-comm-wa-date-sep{
    text-align:center; font-size:10px; color:rgba(255,255,255,0.3);
    padding:6px 0; position:relative;
}
.bizo-comm-wa-date-sep::before,.bizo-comm-wa-date-sep::after{
    content:''; position:absolute; top:50%; width:40%; height:1px;
    background:rgba(255,255,255,0.06);
}
.bizo-comm-wa-date-sep::before{ left:0; }
.bizo-comm-wa-date-sep::after{ right:0; }
.bizo-comm-wa-msg-in,.bizo-comm-wa-msg-out{
    max-width:80%; padding:10px 14px; border-radius:12px; position:relative;
}
.bizo-comm-wa-msg-in{
    background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.08);
    align-self:flex-start; border-radius:4px 12px 12px 12px;
}
.bizo-comm-wa-msg-out{
    background:rgba(46,255,123,0.08); border:1px solid rgba(46,255,123,0.15);
    align-self:flex-end; border-radius:12px 4px 12px 12px;
}
.bizo-comm-wa-msg-sender{ font-size:10px; font-weight:700; color:rgba(255,255,255,0.4); margin-bottom:4px; }
.bizo-comm-wa-msg-in .bizo-comm-wa-msg-sender{ color:rgba(255,255,255,0.4); }
.bizo-comm-wa-msg-out .bizo-comm-wa-msg-sender{ color:rgba(46,255,123,0.6); }
.bizo-comm-wa-msg-text{ font-size:13px; color:rgba(255,255,255,0.82); line-height:1.6; white-space:pre-wrap; }
.bizo-comm-wa-msg-time{ font-size:10px; color:rgba(255,255,255,0.3); margin-top:4px; text-align:right; }

@media(max-width:600px){
    .bizo-comm-stats-card{ grid-template-columns:repeat(2,1fr); }
}
