/* ── RESET & BASE ───────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; background: #07111E; color: #F8FAFC;
             font-family: 'Inter', 'DM Sans', system-ui, sans-serif; font-size: 13px; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,.35); border-radius: 2px; }

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
@keyframes fadeIn { from{opacity:0;transform:translateX(8px)} to{opacity:1;transform:translateX(0)} }
.fade-in { animation: fadeIn .2s ease; }

/* ── LAYOUT ─────────────────────────────────────── */
.app-shell { display: flex; min-height: 100vh; }

/* ── SIDEBAR ─────────────────────────────────────── */
.sidebar {
    width: 220px; background: rgba(10,18,32,.98);
    border-right: 1px solid rgba(255,255,255,.05);
    display: flex; flex-direction: column; flex-shrink: 0;
}

.sidebar-logo {
    padding: 20px 16px; border-bottom: 1px solid rgba(255,255,255,.05);
    display: flex; align-items: center; gap: 10px;
}
.logo-icon {
    width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
    background: linear-gradient(135deg,#C49A00,#F5C518);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 16px; color: #0B1F3A;
}
.logo-title  { font-weight: 700; font-size: 13px; color: #F8FAFC; letter-spacing: .5px; }
.logo-sub    { font-size: 9px; color: #475569; font-weight: 500; letter-spacing: .08em; }

.sidebar-nav { flex: 1; padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; }

.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px; border-radius: 8px;
    color: #64748B; font-size: 12px; font-weight: 400;
    transition: all .15s; position: relative;
}
.nav-item:hover { background: rgba(99,102,241,.08); color: #94A3B8; }
.nav-item.active { background: rgba(99,102,241,.18); color: #A5B4FC; font-weight: 600; }
.nav-indicator {
    position: absolute; left: 0; top: 22%; height: 56%;
    width: 2.5px; background: #6366F1; border-radius: 0 2px 2px 0;
}
.nav-icon  { font-size: 15px; width: 18px; text-align: center; flex-shrink: 0; }
.nav-label { white-space: nowrap; }

.platform-status {
    padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.05);
}
.status-title { font-size: 9px; color: #334155; font-weight: 600;
                letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.platform-row {
    display: flex; align-items: center; gap: 6px;
    font-size: 10px; color: #64748B; margin-bottom: 5px;
}
.platform-row .live-badge { margin-left: auto; font-size: 9px; color: #10B981; font-weight: 600; }
.dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.dot.tiktok    { background: #010101; border: 1px solid #555; }
.dot.whatsapp  { background: #25D366; }
.dot.manychat  { background: #FF4C00; }

/* ── MAIN AREA ───────────────────────────────────── */
.main-area { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* ── TOPBAR ──────────────────────────────────────── */
.topbar {
    height: 52px; background: rgba(10,18,32,.95);
    border-bottom: 1px solid rgba(255,255,255,.05);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; flex-shrink: 0; backdrop-filter: blur(10px);
}
.topbar-title { color: #94A3B8; font-size: 12px; font-weight: 500; }
.topbar-right { display: flex; gap: 10px; align-items: center; }
.clock {
    background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.2);
    border-radius: 6px; padding: 4px 10px; font-size: 11px;
    color: #818CF8; font-weight: 600; font-family: monospace;
}
.user-pill {
    height: 32px; padding: 0 12px; border-radius: 7px;
    background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.2);
    display: flex; align-items: center; gap: 7px;
}
.user-avatar {
    width: 20px; height: 20px; border-radius: 50%; font-size: 9px; font-weight: 700;
    background: linear-gradient(135deg,#EF4444,#F59E0B);
    display: flex; align-items: center; justify-content: center;
}

/* ── CONTENT ─────────────────────────────────────── */
.content-area { flex: 1; overflow-y: auto; }

/* ── PAGE CONTENT ────────────────────────────────── */
.page-content { padding: 24px 28px; }
.page-header  { margin-bottom: 24px; }
.page-header-sub { font-size: 10px; color: #334155; font-weight: 600;
                   letter-spacing: .1em; text-transform: uppercase; margin-bottom: 3px; }
.page-title   { font-size: 20px; font-weight: 700; color: #F8FAFC; margin-bottom: 4px; }
.page-desc    { font-size: 11px; color: #475569; }
.green-dot    { color: #10B981; font-weight: 600; }

/* ── CARDS ───────────────────────────────────────── */
.card {
    background: rgba(30,41,59,.7); border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px; padding: 18px;
}
.card-title { font-size: 13px; font-weight: 600; color: #F8FAFC; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }

/* ── STAT CARDS ──────────────────────────────────── */
.stat-grid {
    display: grid; grid-template-columns: repeat(4,1fr);
    gap: 14px; margin-bottom: 22px;
}
.stat-card {
    background: linear-gradient(135deg,rgba(30,41,59,.9),rgba(15,23,42,.95));
    border: 1px solid rgba(255,255,255,.06);
    border-left: 3px solid var(--accent);
    border-radius: 11px; padding: 18px 20px; position: relative; overflow: hidden;
}
.stat-icon  { position: absolute; top: 14px; right: 16px; font-size: 24px; opacity: .2; }
.stat-label { color: #94A3B8; font-size: 9px; font-weight: 600;
              letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.stat-value { color: #F8FAFC; font-size: 24px; font-weight: 700;
              letter-spacing: -.02em; margin-bottom: 4px; }
.stat-delta { font-size: 11px; font-weight: 600; }

/* ── SENTIMENT BAR ───────────────────────────────── */
.sent-bar-wrap { margin-bottom: 10px; }
.sent-bar {
    height: 12px; border-radius: 6px; overflow: hidden;
    display: flex; gap: 0;
}
.sent-bar > div { transition: width .8s ease; }
.sent-legend {
    display: flex; gap: 16px; flex-wrap: wrap;
    font-size: 11px; color: #94A3B8;
}
.legend-dot { display: inline-block; width: 8px; height: 8px;
              border-radius: 50%; margin-right: 4px; }

/* ── PLATFORM BREAKDOWN ──────────────────────────── */
.platform-breakdown { margin-top: 10px; }
.pb-item {
    display: grid; grid-template-columns: 12px 1fr 40px 120px;
    align-items: center; gap: 10px; margin-bottom: 12px;
    font-size: 11px; color: #94A3B8;
}
.pb-dot { width: 10px; height: 10px; border-radius: 50%; }
.pb-bar-wrap { height: 4px; background: rgba(255,255,255,.06); border-radius: 2px; }
.pb-bar { height: 4px; border-radius: 2px; transition: width .8s ease; }

/* ── URGENT ITEMS ────────────────────────────────── */
.urgent-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding-bottom: 12px; margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.urgent-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.urgent-left { width: 2px; min-height: 50px; border-radius: 1px; flex-shrink: 0; margin-top: 2px; }
.tiktok-border  { background: #010101; border: 1px solid #555; }
.wa-border      { background: #25D366; }
.urgent-body { flex: 1; }
.urgent-meta { display: flex; gap: 6px; margin-bottom: 3px; flex-wrap: wrap; }
.urgent-content { color: #94A3B8; font-size: 11px; line-height: 1.4; margin-bottom: 3px; }
.urgent-sla { color: #EF4444; font-size: 10px; font-weight: 600; }

/* ── BADGES & TAGS ───────────────────────────────── */
.badge-red {
    font-size: 10px; font-weight: 700; color: #EF4444;
    background: rgba(239,68,68,.15); padding: 2px 9px; border-radius: 20px;
}
.tag-cat {
    font-size: 10px; font-weight: 600; color: #F8FAFC;
    background: rgba(255,255,255,.08); padding: 1px 7px; border-radius: 20px;
}
.tag-platform {
    font-size: 9px; font-weight: 700; padding: 1px 7px;
    border-radius: 20px; color: #fff;
}
.tag-platform.tiktok    { background: #010101; border: 1px solid #555; color: #ccc; }
.tag-platform.whatsapp  { background: #25D366; color: #000; }
.tag-type {
    font-size: 9px; color: #64748B;
    background: rgba(100,116,139,.15); padding: 1px 7px; border-radius: 20px;
}

/* ── FEED LAYOUT ─────────────────────────────────── */
.feed-layout {
    display: flex; height: calc(100vh - 52px); overflow: hidden;
}

.feed-list {
    width: 440px; border-right: 1px solid rgba(255,255,255,.05);
    display: flex; flex-direction: column; flex-shrink: 0;
}
.feed-list-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 16px 0; margin-bottom: 12px;
}
.feed-title { font-size: 16px; font-weight: 700; color: #F8FAFC; }
.live-indicator {
    font-size: 11px; font-weight: 600; color: #10B981;
    display: flex; align-items: center; gap: 4px;
    animation: pulse 1.5s infinite;
}

.filter-bar { padding: 0 16px; display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.filter-chip {
    background: rgba(30,41,59,.7); border: 1px solid rgba(255,255,255,.07);
    color: #64748B; font-size: 10px; font-weight: 600;
    padding: 3px 10px; border-radius: 20px; transition: all .15s;
}
.filter-chip.active {
    background: rgba(99,102,241,.28); border-color: rgba(99,102,241,.5); color: #A5B4FC;
}

.search-box {
    margin: 0 16px 10px; background: rgba(30,41,59,.8);
    border: 1px solid rgba(255,255,255,.07); border-radius: 7px;
    padding: 6px 12px; display: flex; gap: 7px; align-items: center;
}
.search-box input {
    background: none; border: none; color: #94A3B8;
    font-size: 11px; outline: none; width: 100%;
}

.feed-items { flex: 1; overflow-y: auto; padding: 0 12px 16px; }

/* ── FEED ITEM ───────────────────────────────────── */
.feed-item {
    background: rgba(30,41,59,.5); border: 1px solid rgba(255,255,255,.05);
    border-radius: 9px; padding: 11px 13px; cursor: pointer;
    margin-bottom: 7px; transition: all .15s;
}
.feed-item:hover { background: rgba(30,41,59,.8); }
.feed-item.selected {
    background: rgba(99,102,241,.1); border-color: rgba(99,102,241,.4);
}
.feed-item.sent-urgent  { border-left: 3px solid #FCD34D; }
.feed-item.sent-negative{ border-left: 3px solid #FCA5A5; }
.feed-item.sent-positive{ border-left: 3px solid #6EE7B7; }
.feed-item.sent-neutral { border-left: 3px solid #94A3B8; }

.fi-top { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 7px; }
.fi-avatar {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
}
.fi-avatar.sent-urgent   { background: rgba(252,211,77,.15);  border: 1.5px solid rgba(252,211,77,.5);  color: #FCD34D; }
.fi-avatar.sent-negative { background: rgba(252,165,165,.15); border: 1.5px solid rgba(252,165,165,.5); color: #FCA5A5; }
.fi-avatar.sent-positive { background: rgba(110,231,183,.15); border: 1.5px solid rgba(110,231,183,.5); color: #6EE7B7; }
.fi-avatar.sent-neutral  { background: rgba(148,163,184,.15); border: 1.5px solid rgba(148,163,184,.5); color: #94A3B8; }

.fi-meta { flex: 1; min-width: 0; }
.fi-author {
    display: flex; align-items: center; gap: 6px;
    flex-wrap: wrap; color: #E2E8F0; font-weight: 600;
    font-size: 12px; margin-bottom: 3px;
}
.fi-preview { color: #94A3B8; font-size: 11px; line-height: 1.5; }

.fi-bottom {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 10px;
}
.time-label  { color: #475569; }
.like-label  { color: #475569; }

.sent-badge { font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
.sent-badge.sent-urgent   { background: #451A03; color: #FCD34D; }
.sent-badge.sent-negative { background: #450A0A; color: #FCA5A5; }
.sent-badge.sent-positive { background: #064E3B; color: #6EE7B7; }
.sent-badge.sent-neutral  { background: #1E293B; color: #94A3B8; }

.urgent-pulse { color: #FCD34D; font-size: 9px; font-weight: 700; animation: pulse 1.5s infinite; }

.status-badge { font-size: 9px; font-weight: 600; padding: 2px 7px; border-radius: 20px; }
.status-badge.status-pending    { background: rgba(245,158,11,.2);  color: #F59E0B; }
.status-badge.status-inprogress { background: rgba(99,102,241,.2);  color: #A5B4FC; }
.status-badge.status-resolved   { background: rgba(16,185,129,.2);  color: #6EE7B7; }
.status-badge.status-escalated  { background: rgba(239,68,68,.2);   color: #FCA5A5; }

.forwarded-badge { font-size: 9px; color: #25D366; font-weight: 600; }

/* ── DETAIL PANEL ────────────────────────────────── */
.feed-detail {
    flex: 1; display: flex; flex-direction: column;
    padding: 22px; overflow-y: auto; animation: fadeIn .2s ease;
}
.detail-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 14px;
}
.detail-header h3 { font-size: 15px; font-weight: 700; color: #F8FAFC; }
.close-btn { background: none; border: none; color: #64748B; font-size: 16px; }

.detail-card {
    background: rgba(30,41,59,.8); border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px; padding: 16px; margin-bottom: 14px;
}
.dc-author-row { display: flex; gap: 10px; margin-bottom: 10px; }
.dc-avatar {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
}
.dc-name { color: #F8FAFC; font-weight: 700; font-size: 13px; margin-bottom: 3px; }
.dc-sub  { display: flex; gap: 6px; align-items: center; }
.dc-content { color: #CBD5E1; font-size: 13px; line-height: 1.7; }
.post-link { color: #818CF8; font-size: 11px; margin-top: 8px; display: inline-block; }

.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.meta-item { background: rgba(15,23,42,.6); border-radius: 8px; padding: 9px 12px; }
.meta-label { color: #475569; font-size: 9px; font-weight: 600;
              letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.meta-val   { font-size: 12px; color: #94A3B8; }
.meta-val.sent-urgent   { color: #FCD34D; font-weight: 700; }
.meta-val.sent-negative { color: #FCA5A5; font-weight: 700; }
.meta-val.sent-positive { color: #6EE7B7; font-weight: 700; }
.meta-val.status-escalated { color: #FCA5A5; font-weight: 700; }
.meta-val.status-resolved  { color: #6EE7B7; font-weight: 700; }
.meta-val.text-red    { color: #EF4444; font-weight: 700; }
.meta-val.text-indigo { color: #818CF8; }

/* ── SECTION LABELS ──────────────────────────────── */
.section-label {
    color: #64748B; font-size: 9px; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px;
}

/* ── REPLIES ─────────────────────────────────────── */
.replies-section { margin-bottom: 14px; }
.reply-item { background: rgba(15,23,42,.6); border-radius: 8px; padding: 10px 12px; margin-bottom: 6px; }
.reply-meta { font-size: 9px; color: #475569; margin-bottom: 4px; }
.reply-content { font-size: 12px; color: #CBD5E1; }

/* ── ASSIGN DEPT ─────────────────────────────────── */
.assign-section { margin-bottom: 14px; }
.dept-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dept-chip {
    background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.25);
    color: #818CF8; font-size: 10px; font-weight: 600;
    padding: 4px 10px; border-radius: 20px; transition: all .15s;
}
.dept-chip:hover, .dept-chip.active {
    background: rgba(99,102,241,.25); border-color: rgba(99,102,241,.5);
}

/* ── REPLY SECTION ───────────────────────────────── */
.reply-section { margin-bottom: 14px; }
.reply-input {
    width: 100%; background: rgba(15,23,42,.8);
    border: 1px solid rgba(99,102,241,.25); border-radius: 8px;
    color: #CBD5E1; font-size: 12px; padding: 10px; resize: vertical;
}
.reply-input:focus { outline: none; border-color: rgba(99,102,241,.6);
                     box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.action-row { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn-primary {
    background: linear-gradient(135deg,#6366F1,#8B5CF6); border: none;
    border-radius: 8px; color: #fff; font-weight: 700; font-size: 12px; padding: 9px 18px;
}
.btn-primary:hover { opacity: .9; }
.btn-escalate {
    background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.28);
    border-radius: 8px; color: #EF4444; font-weight: 600; font-size: 11px; padding: 9px 13px;
}
.btn-resolve {
    background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.28);
    border-radius: 8px; color: #10B981; font-weight: 600; font-size: 11px; padding: 9px 13px;
}
.btn-forward {
    background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.28);
    border-radius: 8px; color: #25D366; font-weight: 600; font-size: 11px; padding: 9px 13px;
}
.btn-ghost {
    background: rgba(99,102,241,.08); border: 1px solid rgba(99,102,241,.2);
    border-radius: 20px; color: #818CF8; font-size: 11px; font-weight: 600;
    padding: 4px 12px;
}
.btn-ghost.small  { font-size: 10px; padding: 3px 9px; }
.btn-ghost.danger { color: #EF4444; border-color: rgba(239,68,68,.2);
                    background: rgba(239,68,68,.08); }

/* ── TOASTS ──────────────────────────────────────── */
.action-toast { margin-top: 8px; padding: 8px 12px; border-radius: 7px; font-size: 11px; font-weight: 600; }
.toast-ok  { background: rgba(16,185,129,.15); border: 1px solid rgba(16,185,129,.3); color: #6EE7B7; }
.toast-err { background: rgba(239,68,68,.15);  border: 1px solid rgba(239,68,68,.3);  color: #FCA5A5; }

/* ── FEED EMPTY ──────────────────────────────────── */
.feed-empty {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #1E293B; gap: 10px;
}
.feed-empty-icon { font-size: 36px; }
.feed-empty div  { font-size: 13px; color: #475569; text-align: center; }
.empty-state { text-align: center; color: #475569; padding: 30px; font-size: 12px; }

/* ── TRENDING ────────────────────────────────────── */
.trending-item {
    display: flex; align-items: center; gap: 12px;
    background: rgba(30,41,59,.7); border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px; padding: 12px 14px; margin-bottom: 8px;
}
.trending-rank {
    width: 32px; height: 32px; border-radius: 8px; background: rgba(15,23,42,.8);
    display: flex; align-items: center; justify-content: center;
    color: #475569; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.trending-body { flex: 1; }
.trending-name  { color: #F8FAFC; font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.trending-count { color: #64748B; font-size: 11px; }
.trending-bar-wrap { width: 80px; height: 4px; background: rgba(255,255,255,.06); border-radius: 2px; }
.trending-bar { height: 4px; border-radius: 2px; }

.alert-box {
    margin-top: 16px; background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.2); border-radius: 12px; padding: 16px;
}
.alert-title { font-size: 12px; font-weight: 700; color: #FCA5A5; margin-bottom: 6px; }
.alert-box p { font-size: 12px; color: #94A3B8; line-height: 1.6; }

/* ── REPORT ──────────────────────────────────────── */
.ai-summary {
    background: linear-gradient(135deg,rgba(99,102,241,.1),rgba(139,92,246,.07));
    border: 1px solid rgba(99,102,241,.2); border-radius: 12px; padding: 20px; margin-bottom: 18px;
}
.ai-header { color: #A5B4FC; font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.ai-summary p { color: #CBD5E1; font-size: 13px; line-height: 1.7; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.report-quad {
    background: rgba(30,41,59,.7); border: 1px solid rgba(255,255,255,.06);
    border-radius: 11px; padding: 16px;
}
.report-quad h4 { color: var(--qcolor); font-weight: 700; font-size: 12px; margin-bottom: 10px; }
.quad-item { color: #94A3B8; font-size: 12px; line-height: 1.4; margin-bottom: 7px;
             display: flex; gap: 6px; }
.quad-item::before { content: '▸'; color: var(--qcolor); flex-shrink: 0; }

/* ── SUBSCRIBERS TABLE ───────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th {
    text-align: left; padding: 8px 12px; color: #64748B;
    font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.data-table td {
    padding: 10px 12px; color: #94A3B8;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.data-table tr:last-child td { border-bottom: none; }
.mono { font-family: monospace; font-size: 11px; }

/* ── FORM ────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 10px; color: #64748B; font-weight: 600;
                    letter-spacing: .06em; text-transform: uppercase; }
.form-input {
    background: rgba(15,23,42,.8); border: 1px solid rgba(99,102,241,.2);
    border-radius: 7px; color: #E2E8F0; font-size: 12px; padding: 8px 10px;
}
.form-input:focus { outline: none; border-color: rgba(99,102,241,.6); }
.form-row { display: flex; gap: 20px; align-items: center; }
.checkbox-label { display: flex; align-items: center; gap: 6px;
                  color: #94A3B8; font-size: 12px; cursor: pointer; }

/* ── SETTINGS ────────────────────────────────────── */
.webhook-item {
    background: rgba(15,23,42,.6); border-radius: 9px; padding: 14px;
    margin-bottom: 10px;
}
.wh-label { display: flex; gap: 8px; align-items: center; margin-bottom: 6px;
            font-size: 12px; color: #E2E8F0; font-weight: 600; }
.wh-url   { font-family: monospace; font-size: 11px; color: #818CF8;
            background: rgba(99,102,241,.1); padding: 4px 8px; border-radius: 4px;
            margin-bottom: 6px; display: inline-block; }
.wh-desc  { font-size: 11px; color: #64748B; line-height: 1.5; }
.config-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.config-item { display: flex; justify-content: space-between; align-items: center;
               background: rgba(15,23,42,.6); border-radius: 8px; padding: 10px 14px; }
.config-key { font-size: 11px; color: #64748B; font-weight: 600; font-family: monospace; }
.config-val { font-size: 11px; color: #94A3B8; }

.flow-diagram { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.flow-node {
    background: rgba(15,23,42,.8); border: 1px solid rgba(255,255,255,.08);
    border-radius: 9px; padding: 10px 14px; text-align: center;
    font-size: 11px; color: #94A3B8; line-height: 1.5;
}
.flow-node small { font-size: 9px; color: #475569; display: block; }
.tiktok-node   { border-color: rgba(1,1,1,.5); }
.whatsapp-node { border-color: rgba(37,211,102,.3); }
.wa-node       { border-color: rgba(37,211,102,.3); }
.webhook-node  { border-color: rgba(99,102,241,.3); }
.db-node       { border-color: rgba(245,158,11,.3); }
.mc-node       { border-color: rgba(255,76,0,.3); }
.flow-arrow    { color: #334155; font-size: 16px; }

/* ── MISC ────────────────────────────────────────── */
.loading  { text-align: center; padding: 40px; color: #475569; font-size: 12px; }
code      { font-family: monospace; }
