/* ===================================================================
   LinkedIn CRM Dashboard — Admin CSS
   Color Scheme: LinkedIn Blue & Dark (Premium Style)
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ──────────────── CSS Variables (Light Theme) ──────────────── */
:root {
    --primary: #0a66c2;
    --primary-dark: #004182;
    --primary-light: #70b5f9;
    --primary-rgb: 10, 102, 194;

    --success: #057642;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --secondary: #6b7280;

    --gradient-primary: linear-gradient(135deg, #0a66c2 0%, #004182 100%);
    --gradient-sidebar: linear-gradient(180deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
    --gradient-accent: linear-gradient(135deg, #70b5f9 0%, #0a66c2 50%, #004182 100%);

    --bg-body: #f3f2ef;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafe;
    --bg-sidebar: linear-gradient(180deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
    --bg-header: #ffffff;
    --bg-input: #ffffff;
    --bg-input-focus: #f0f7ff;
    --bg-dropdown: #ffffff;
    --bg-table-header: #f8f9fa;
    --bg-table-row-hover: #f0f7ff;
    --bg-badge-light: rgba(10, 102, 194, 0.1);

    --text-primary: #1a1a2e;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --text-inverse: #ffffff;
    --text-sidebar: #8b949e;
    --text-sidebar-active: #ffffff;
    --text-sidebar-hover: #e6edf3;
    --text-sidebar-heading: #546e7a;
    --text-link: #0a66c2;

    --border-color: #e5e7eb;
    --border-light: #f0f0f0;
    --border-input: #d1d5db;
    --border-input-focus: #0a66c2;

    --sidebar-width: 260px;
    --sidebar-mini-width: 80px;
    --sidebar-active-bg: rgba(10, 102, 194, 0.15);
    --sidebar-hover-bg: rgba(255, 255, 255, 0.05);
    --sidebar-active-border: #0a66c2;

    --header-height: 64px;
    --header-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-card-hover: 0 4px 16px rgba(10, 102, 194, 0.1);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 50%;

    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.35s ease;
}

/* ──────────────── Dark Theme ──────────────── */
[data-theme="dark"] {
    --bg-body: #0d1117;
    --bg-card: #161b22;
    --bg-card-hover: #1c2333;
    --bg-sidebar: linear-gradient(180deg, #010409 0%, #0d1117 50%, #010409 100%);
    --bg-header: #161b22;
    --bg-input: #1c2333;
    --bg-input-focus: #1a2332;
    --bg-dropdown: #1c2333;
    --bg-table-header: #1c2333;
    --bg-table-row-hover: rgba(10, 102, 194, 0.05);
    --bg-badge-light: rgba(10, 102, 194, 0.15);

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-link: #70b5f9;

    --border-color: #30363d;
    --border-light: #21262d;
    --border-input: #30363d;

    --header-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-card-hover: 0 4px 16px rgba(10, 102, 194, 0.15);

    --gradient-card: linear-gradient(135deg, rgba(10, 102, 194, 0.06) 0%, rgba(10, 102, 194, 0.03) 100%);
}

/* ──────────────── Base Reset ──────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    margin: 0; padding: 0;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(var(--primary-rgb), 0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--primary-rgb), 0.4); }
* { scrollbar-width: thin; scrollbar-color: rgba(var(--primary-rgb), 0.2) transparent; }

.text-muted { color: var(--text-muted) !important; }
a { text-decoration: none; color: var(--text-link); transition: color var(--transition-fast); }
a:hover { color: var(--primary-dark); }

/* ──────────────── Layout Shell ──────────────── */
.admin-wrapper { display: flex; min-height: 100vh; }

.admin-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding-top: var(--header-height);
    transition: margin-left var(--transition-base);
    min-height: 100vh;
}

.admin-content .content-inner { padding: 28px; max-width: 100%; }
body.mini-sidebar .admin-content { margin-left: var(--sidebar-mini-width); }

/* ──────────────── Sidebar ──────────────── */
.admin-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: width var(--transition-base);
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-brand {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-height: var(--header-height);
}

.sidebar-brand i {
    font-size: 24px;
    color: #0a66c2;
}

.sidebar-brand .brand-text {
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: -0.3px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

/* ── Sidebar Sections ── */
.sidebar-section {
    padding: 4px 0;
}

.sidebar-section + .sidebar-section {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 4px;
    padding-top: 8px;
}

.sidebar-section__heading {
    padding: 6px 24px 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(139, 148, 158, 0.6);
    white-space: nowrap;
}

.nav-item { list-style: none; margin: 1px 8px; }

.nav-item > a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px;
    color: var(--text-sidebar);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    font-size: 13.5px; font-weight: 500;
    position: relative; white-space: nowrap;
}

.nav-item > a i { font-size: 18px; width: 20px; text-align: center; flex-shrink: 0; }
.nav-item > a:hover { background: var(--sidebar-hover-bg); color: var(--text-sidebar-hover); }
.nav-item > a.active { background: var(--sidebar-active-bg); color: var(--text-sidebar-active); }

.nav-item > a.active::before {
    content: '';
    position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 20px;
    background: var(--gradient-accent);
    border-radius: 0 3px 3px 0;
}

.nav-item > a.active i { color: var(--primary-light); }

/* ── Sidebar Badge ── */
.sidebar-badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
}

.user-avatar__initials {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #0a66c2, #004182);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
}

.user-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-name { color: #e6edf3; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role {
    font-size: 10px;
    font-weight: 600;
    color: rgba(139, 148, 158, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-logout-btn {
    background: none;
    border: none;
    color: var(--text-sidebar);
    font-size: 16px;
    padding: 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    opacity: 0.5;
}
.sidebar-logout-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    opacity: 1;
}

/* ──────────────── Header ──────────────── */
.admin-header {
    position: fixed;
    top: 0; left: var(--sidebar-width); right: 0;
    height: var(--header-height);
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px;
    z-index: 1030;
    transition: left var(--transition-base);
    box-shadow: var(--header-shadow);
    backdrop-filter: blur(10px);
}

body.mini-sidebar .admin-header { left: var(--sidebar-mini-width); }
.header-left { display: flex; align-items: center; gap: 16px; }
.header-right { display: flex; align-items: center; gap: 8px; }

.page-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.sidebar-toggle {
    color: var(--text-secondary);
    font-size: 22px;
    padding: 4px;
    display: none;
}

.theme-toggle {
    color: var(--text-secondary);
    font-size: 18px;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.theme-toggle:hover { background: var(--bg-badge-light); color: var(--primary); }

/* ──────────────── Cards ──────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition-base);
    color: var(--text-primary);
}

.card:hover { box-shadow: var(--shadow-card-hover); }
.card-header { background: transparent; border-bottom: 1px solid var(--border-color); padding: 16px 20px; }
.card-body { padding: 20px; }
.card-footer { background: transparent; border-top: 1px solid var(--border-color); padding: 12px 20px; }

[data-theme="dark"] .card { background: var(--bg-card); border-color: var(--border-color); }

/* ── Stat Card ── */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px; position: relative; overflow: hidden;
    transition: all var(--transition-base);
}

.stat-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }

.stat-card::after {
    content: ''; position: absolute; top: -30px; right: -30px;
    width: 100px; height: 100px; border-radius: 50%;
    background: var(--gradient-primary); opacity: 0.05;
}

.stat-card .stat-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-md);
    font-size: 22px; margin-bottom: 12px;
}

.stat-card .stat-icon.bg-primary { background: rgba(10, 102, 194, 0.12); color: var(--primary); }
.stat-card .stat-icon.bg-success { background: rgba(5, 118, 66, 0.12); color: var(--success); }
.stat-card .stat-icon.bg-warning { background: rgba(245, 158, 11, 0.12); color: var(--warning); }
.stat-card .stat-icon.bg-danger { background: rgba(239, 68, 68, 0.12); color: var(--danger); }
.stat-card .stat-icon.bg-info { background: rgba(59, 130, 246, 0.12); color: var(--info); }

.stat-card .stat-value { font-size: 28px; font-weight: 700; line-height: 1.2; color: var(--text-primary); }
.stat-card .stat-label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.stat-card .stat-trend {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; font-weight: 600; margin-top: 8px; padding: 2px 8px;
    border-radius: var(--radius-sm);
}
.stat-card .stat-trend.up { background: rgba(5, 118, 66, 0.1); color: var(--success); }
.stat-card .stat-trend.down { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

[data-theme="dark"] .stat-card { background: var(--gradient-card); }

/* ──────────────── Tables ──────────────── */
.table { color: var(--text-primary); --bs-table-bg: transparent; }
.table thead th {
    background: var(--bg-table-header);
    border-bottom: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600; font-size: 12px;
    text-transform: uppercase; letter-spacing: 0.5px;
    padding: 12px 16px; white-space: nowrap;
}
.table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle; color: var(--text-primary);
}
.table tbody tr:hover { background: var(--bg-table-row-hover); }

[data-theme="dark"] .table { --bs-table-bg: transparent; color: var(--text-primary); }
[data-theme="dark"] .table thead th { background: rgba(10, 102, 194, 0.06); border-color: var(--border-color); color: var(--text-muted); }
[data-theme="dark"] .table tbody td { color: var(--text-primary); border-color: var(--border-color); }

/* ──────────────── Forms ──────────────── */
.form-control, .form-select {
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 8px 14px; font-size: 14px;
    transition: all var(--transition-fast);
}
.form-control:focus, .form-select:focus {
    background: var(--bg-input-focus);
    border-color: var(--border-input-focus);
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.12);
    color: var(--text-primary);
}
.form-control::placeholder { color: var(--text-muted); }
.form-label { font-weight: 500; margin-bottom: 6px; color: var(--text-primary); font-size: 13px; }

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background: var(--bg-input); border-color: var(--border-input); color: var(--text-primary);
}

/* ──────────────── Buttons ──────────────── */
.btn-primary {
    background: var(--gradient-primary); border: none; color: #fff;
    font-weight: 600; border-radius: var(--radius-md);
    padding: 8px 20px; transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(10, 102, 194, 0.25);
}
.btn-primary:hover { background: var(--gradient-accent); box-shadow: 0 4px 16px rgba(10, 102, 194, 0.35); transform: translateY(-1px); color: #fff; }

.btn-outline-primary {
    border: 1px solid var(--primary); color: var(--primary);
    background: transparent; border-radius: var(--radius-md);
    font-weight: 500; transition: all var(--transition-fast);
}
.btn-outline-primary:hover { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(10, 102, 194, 0.25); }

.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ──────────────── Badges ──────────────── */
.badge { font-weight: 600; font-size: 11px; padding: 4px 10px; border-radius: var(--radius-sm); }
.badge.bg-success { background: rgba(5, 118, 66, 0.15) !important; color: var(--success); }
.badge.bg-danger { background: rgba(239, 68, 68, 0.15) !important; color: var(--danger); }
.badge.bg-warning { background: rgba(245, 158, 11, 0.15) !important; color: var(--warning); }
.badge.bg-info { background: rgba(59, 130, 246, 0.15) !important; color: var(--info); }
.badge.bg-secondary { background: rgba(107, 114, 128, 0.15) !important; color: var(--secondary); }
.badge.bg-primary { background: rgba(10, 102, 194, 0.15) !important; color: var(--primary); }

/* ──────────────── Dropdown ──────────────── */
.dropdown-menu {
    background: var(--bg-dropdown); border: 1px solid var(--border-color);
    border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    padding: 8px; min-width: 200px;
}
.dropdown-item {
    border-radius: var(--radius-sm); padding: 8px 12px;
    font-size: 13px; color: var(--text-primary);
    transition: all var(--transition-fast);
}
.dropdown-item:hover { background: var(--bg-badge-light); color: var(--primary); }
.dropdown-item.active { background: var(--bg-badge-light); color: var(--primary); font-weight: 600; }

[data-theme="dark"] .dropdown-menu { background: var(--bg-dropdown); border-color: var(--border-color); }
[data-theme="dark"] .dropdown-item { color: var(--text-primary); }

/* ──────────────── Modals ──────────────── */
.modal-content {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); color: var(--text-primary);
}
.modal-header { border-bottom: 1px solid var(--border-color); padding: 16px 20px; }
.modal-body { padding: 20px; }
.modal-footer { border-top: 1px solid var(--border-color); padding: 12px 20px; }
[data-theme="dark"] .btn-close { filter: invert(1); }

/* ──────────────── Pagination ──────────────── */
.pagination .page-link {
    background: var(--bg-card); border-color: var(--border-color);
    color: var(--text-primary); font-size: 13px;
    border-radius: var(--radius-sm); margin: 0 2px;
}
.pagination .page-link:hover { background: var(--bg-badge-light); color: var(--primary); border-color: var(--primary); }
.pagination .page-item.active .page-link { background: var(--gradient-primary); border-color: transparent; color: #fff; }

/* ──────────────── Empty State ──────────────── */
.empty-state {
    text-align: center; padding: 48px 20px;
    color: var(--text-muted);
}
.empty-state i { font-size: 48px; margin-bottom: 16px; opacity: 0.3; display: block; }
.empty-state h5 { color: var(--text-secondary); font-weight: 600; margin-bottom: 8px; }
.empty-state p { font-size: 13px; max-width: 400px; margin: 0 auto 16px; }

/* ──────────────── Profile Card ──────────────── */
.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition-base);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.profile-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.profile-card > :last-child { margin-top: auto; }

/* Account Chip on Listing Cards */
.card-account-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 4px;
    border-radius: 20px;
    background: rgba(10, 102, 194, 0.06);
    border: 1px solid rgba(10, 102, 194, 0.1);
    margin-bottom: 10px;
    width: fit-content;
}
.card-account-chip__avatar {
    width: 20px; height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.card-account-chip__icon {
    width: 20px; height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--primary);
    flex-shrink: 0;
}
.card-account-chip__name {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

/* ═══════ Card Component System ═══════ */

/* Identity Row: avatar + name/subtitle + badge */
.card-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.card-identity__avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
}
.card-identity__avatar--square { border-radius: var(--radius-md); }
.card-identity__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-badge-light);
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
}
.card-identity__info {
    flex: 1;
    min-width: 0;
}
.card-identity__name {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-identity__name a {
    color: var(--text-primary);
    text-decoration: none;
}
.card-identity__name a:hover { color: var(--primary); }
.card-identity__sub {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Meta: small icon + text items below identity */
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}
.card-meta__item {
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.card-meta__item i { font-size: 12px; opacity: 0.7; }
.card-meta:empty { display: none; }

/* Footer Bar: account chip left, stats right */
.card-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.card-footer-bar__left { flex-shrink: 0; }
.card-footer-bar__stats {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
}
.card-footer-bar__stats span {
    display: flex;
    align-items: center;
    gap: 3px;
}
.card-footer-bar__stats i { font-size: 13px; opacity: 0.6; }

/* Actions row */
.card-actions {
    display: flex;
    gap: 6px;
}

.profile-avatar {
    width: 48px; height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.profile-avatar-placeholder {
    width: 48px; height: 48px;
    border-radius: var(--radius-full);
    background: var(--bg-badge-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 20px; font-weight: 700;
}

/* ── Outreach Status ── */
.outreach-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 10px; border-radius: 20px; }
.outreach-badge.none { background: rgba(107, 114, 128, 0.1); color: var(--secondary); }
.outreach-badge.warm { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.outreach-badge.contacted { background: rgba(10, 102, 194, 0.1); color: var(--primary); }
.outreach-badge.responded { background: rgba(5, 118, 66, 0.1); color: var(--success); }
.outreach-badge.converted { background: rgba(16, 185, 129, 0.15); color: #10b981; }

/* ── Company Status ── */
.company-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 10px; border-radius: 20px; }
.company-badge.saved { background: rgba(107, 114, 128, 0.1); color: var(--secondary); }
.company-badge.researching { background: rgba(59, 130, 246, 0.1); color: var(--info); }
.company-badge.contacted { background: rgba(10, 102, 194, 0.1); color: var(--primary); }
.company-badge.proposal_sent { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.company-badge.won { background: rgba(5, 118, 66, 0.1); color: var(--success); }
.company-badge.lost { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

/* ──────────────── Alerts ──────────────── */
.alert {
    border-radius: var(--radius-md); border: none;
    font-size: 13px; padding: 12px 16px;
}
.alert-success { background: rgba(5, 118, 66, 0.1); color: var(--success); }
.alert-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.alert-warning { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.alert-info { background: rgba(59, 130, 246, 0.1); color: var(--info); }

/* ──────────────── Utilities ──────────────── */
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.fs-xs { font-size: 11px; }
.fs-sm { font-size: 13px; }

/* ──────────────── Livewire Loading ──────────────── */
[wire\:loading] { opacity: 0.6; pointer-events: none; }

/* ──────────────── Responsive ──────────────── */
@media (max-width: 991.98px) {
    .admin-sidebar { left: -260px; transition: left var(--transition-base); }
    .admin-sidebar.show { left: 0; }
    .admin-content { margin-left: 0; }
    .admin-header { left: 0; }
    .sidebar-toggle { display: block; }
    .sidebar-overlay {
        display: none; position: fixed; inset: 0;
        background: rgba(0,0,0,0.5); z-index: 1035;
    }
}

@media (max-width: 767.98px) {
    .admin-content .content-inner { padding: 16px; }
    .stat-card .stat-value { font-size: 22px; }
}

/* ──────────────── Auth Pages ──────────────── */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-body);
    padding: 24px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 440px;
}

.auth-card .auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-card .auth-logo i {
    font-size: 40px;
    color: var(--primary);
}

.auth-card .auth-logo h2 {
    font-size: 22px;
    font-weight: 800;
    margin-top: 12px;
    color: var(--text-primary);
}

.auth-card .auth-logo p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ──────────────── Utilities for VVIP Redesign ──────────────── */
.text-pre-line { white-space: pre-line; }
.lh-lg { line-height: 1.75; }
.text-secondary-override { color: var(--text-secondary); }
.text-primary-override { color: var(--text-primary); }
.icon-xs { font-size: 10px; }
.icon-sm { font-size: 12px; }
.icon-md { font-size: 13px; }
.icon-lg { font-size: 16px; }
.icon-xl { font-size: 28px; }
.text-border { color: var(--border-color); }

.detail-section--edit { border-left: 4px solid var(--primary); }
.detail-section--note { border-left: 4px solid var(--warning); background-color: rgba(245, 158, 11, 0.02); }

.badge-count-pill {
    background: var(--bg-badge-light);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
}
.badge-primary-contact {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(5, 118, 66, 0.1);
    color: var(--success);
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.badge-connection-status {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(10, 102, 194, 0.08);
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ──────────────── Premium Company Detail Page ──────────────── */
.company-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: none;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
}
.company-hero__banner {
    height: 160px;
    background: linear-gradient(135deg, #101c2e 0%, #1a365d 50%, #004182 100%);
    position: relative;
    overflow: hidden;
}
.company-hero__banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 15% 50%, rgba(255,255,255,0.08) 0%, transparent 40%),
                      radial-gradient(circle at 85% 30%, rgba(10,102,194,0.4) 0%, transparent 50%);
    opacity: 0.8;
}
.company-hero__banner--photo {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.company-hero__banner--photo::before {
    background-image: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 100%);
    opacity: 1;
}
/* Company listing card cover */
.company-card-cover {
    height: 80px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: linear-gradient(135deg, #101c2e 0%, #1a365d 50%, #004182 100%);
    background-size: cover;
    background-position: center;
    margin: -20px -20px 14px -20px;
}
.company-hero__body { padding: 0 32px 32px; }
.company-hero__logo {
    width: 110px; height: 110px;
    border-radius: var(--radius-xl);
    border: 6px solid var(--bg-card);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: var(--bg-card);
    object-fit: contain;
    padding: 8px;
    margin-top: -55px;
    position: relative;
    z-index: 2;
    transition: transform var(--transition-base);
}
.company-hero__logo:hover {
    transform: translateY(-4px);
}
.company-hero__logo-placeholder {
    width: 110px; height: 110px;
    border-radius: var(--radius-xl);
    border: 6px solid var(--bg-card);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-top: -55px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: var(--primary-light);
}

.company-meta {
    display: flex; flex-wrap: wrap;
    gap: 18px; font-size: 13.5px; color: var(--text-secondary);
    font-weight: 500;
}
.company-meta span { display: inline-flex; align-items: center; gap: 6px; }
.company-meta i { font-size: 15px; color: rgba(10,102,194, 0.7); }

/* Detail Sections */
.detail-section {
    background: var(--bg-card);
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: var(--radius-xl);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
    padding: 28px;
    margin-bottom: 24px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.detail-section:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.detail-section__title {
    font-size: 13.5px; font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
}
.detail-section__title i {
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--bg-badge-light);
}
.detail-section__title i.text-primary { background: rgba(10, 102, 194, 0.1); }
.detail-section__title i.text-warning { background: rgba(245, 158, 11, 0.1); }
.detail-section__title i.text-success { background: rgba(5, 118, 66, 0.1); }
.detail-section__title i.text-info { background: rgba(59, 130, 246, 0.1); }
.detail-section__title i.text-secondary { background: rgba(107, 114, 128, 0.1); }
.detail-section__title i.text-muted { background: rgba(107, 114, 128, 0.08); color: var(--text-muted); }

/* VVIP Info Rows */
.info-row {
    display: flex; align-items: center;
    padding: 14px 0;
    border-bottom: 1px dashed var(--border-color);
    gap: 16px;
}
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-row:first-of-type { padding-top: 0; }
.info-row__label {
    font-size: 12.5px; font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 120px; flex-shrink: 0;
}
.info-row__value {
    font-size: 14px; font-weight: 600;
    color: var(--text-primary);
    min-width: 0; word-break: break-word;
}
.info-row__value a {
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition-fast);
}
.info-row__value a:hover { color: var(--primary-dark); }

/* Contact Items */
.contact-item {
    display: flex; align-items: center; gap: 14px;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    text-decoration: none; color: inherit;
    transition: all var(--transition-fast);
    background: rgba(0,0,0,0.01);
}
.contact-item:hover {
    background: var(--bg-card);
    border-color: rgba(10, 102, 194, 0.2);
    box-shadow: 0 4px 12px rgba(10, 102, 194, 0.05);
}
.contact-item.mb-1 { margin-bottom: 8px !important; }
.contact-item__avatar {
    width: 48px; height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover; flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.contact-item__avatar-ph {
    width: 48px; height: 48px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(10,102,194,0.1) 0%, rgba(10,102,194,0.2) 100%);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: var(--primary);
    font-size: 18px; flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Premium Tag Pills */
.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12.5px; font-weight: 600;
    background: rgba(10, 102, 194, 0.06);
    color: var(--primary);
    border: 1px solid rgba(10, 102, 194, 0.1);
    transition: all var(--transition-fast);
}
.tag-pill:hover {
    background: rgba(10, 102, 194, 0.1);
    transform: translateY(-1px);
}
.tag-pill.green {
    background: rgba(5, 118, 66, 0.06);
    color: var(--success);
    border-color: rgba(5, 118, 66, 0.1);
}
.tag-pill.green:hover { background: rgba(5, 118, 66, 0.1); }

/* Modern Pipeline Steps */
.pipeline-step {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13.5px; color: var(--text-secondary);
    position: relative;
    font-weight: 600;
    margin-bottom: 4px;
    transition: background 0.2s;
}
.pipeline-step:last-child { margin-bottom: 0; }
.pipeline-step.active {
    background: linear-gradient(90deg, rgba(10, 102, 194, 0.08) 0%, transparent 100%);
    color: var(--primary);
    font-weight: 800;
}
.pipeline-step.done { color: var(--text-muted); }
.pipeline-dot {
    width: 10px; height: 10px;
    border-radius: 50%; flex-shrink: 0;
    background: var(--border-color);
    position: relative;
    z-index: 2;
}
/* Pipeline line connector */
.pipeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px;
    top: 24px;
    bottom: -12px;
    width: 2px;
    background: var(--border-light);
    z-index: 1;
}
.pipeline-step.done:not(:last-child)::after {
    background: rgba(5, 118, 66, 0.3);
}

.pipeline-step.active .pipeline-dot {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.2);
}
.pipeline-step.done .pipeline-dot { background: var(--success); }

/* Sticky Sidebar */
@media (min-width: 1200px) {
    .company-sidebar { position: sticky; top: 90px; }
}

/* Profile Hero Avatar (circular override for profile pages) */
.profile-hero__avatar.company-hero__logo,
.profile-hero__avatar.company-hero__logo-placeholder {
    border-radius: var(--radius-full);
    object-fit: cover;
    padding: 0;
}

/* ──────────────── Modal (Custom) ──────────────── */
.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1040;
}

.modal-custom {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    pointer-events: none;
}

.modal-custom > .card {
    pointer-events: auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    max-height: 80vh;
    overflow-y: auto;
}

/* ──────────────── Decision Maker Contacts (Card) ──────────────── */
.card-contacts {
    padding: 8px 16px 4px;
    border-top: 1px solid var(--border-light);
}

.card-contacts__label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-contacts__label i {
    font-size: 10px;
    color: #f59e0b;
}

.card-contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.15s ease;
    margin-bottom: 4px;
}

.card-contact-row:hover {
    background: var(--bg-secondary);
}

.card-contact-row__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.card-contact-row__avatar--placeholder {
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.card-contact-row__info {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.card-contact-row__name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-contact-row__role {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-contacts__more {
    display: block;
    font-size: 10px;
    color: var(--primary);
    font-weight: 600;
    padding: 2px 8px 4px;
}

/* ══════════════════════════════════════════════════════════════════
   Accounts Page — Card, Stats, Token, Setup
   ══════════════════════════════════════════════════════════════════ */

/* ── Mini Stat Boxes ── */
.account-stat-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.account-stat-mini:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.account-stat-mini__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.account-stat-mini__value {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}
.account-stat-mini__label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Account Card ── */
.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.account-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.account-card--selected {
    border-color: var(--primary);
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

/* Status bar */
.account-card__status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}
.account-card__status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}
.account-card__status-dot--active {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 4px rgba(16, 185, 129, 0.3); }
    50% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.6); }
}
.account-card__primary-badge {
    font-size: 10px;
    font-weight: 700;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
}

/* Profile */
.account-card__profile {
    display: flex;
    gap: 14px;
    padding: 16px;
    align-items: flex-start;
}
.account-card__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-light);
}
.account-card__avatar--placeholder {
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    border: none;
}
.account-card__info {
    min-width: 0;
    flex-grow: 1;
}
.account-card__name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.account-card__username {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}
.account-card__username:hover {
    text-decoration: underline;
}
.account-card__headline {
    font-size: 11px;
    color: var(--text-muted);
    margin: 4px 0 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Stats grid */
.account-card__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.account-card__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    gap: 2px;
}
.account-card__stat:not(:last-child) {
    border-right: 1px solid var(--border-light);
}
.account-card__stat-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}
.account-card__stat-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Premium Mini Input */
.premium-mini-input {
    width: 54px;
    height: 30px;
    padding: 0;
    margin: 0;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: rgba(10, 102, 194, 0.04);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
}
.premium-mini-input:hover, .premium-mini-input:focus {
    background: rgba(10, 102, 194, 0.08);
    border-color: var(--primary);
    outline: none;
}
[data-theme="dark"] .premium-mini-input {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}
[data-theme="dark"] .premium-mini-input:focus,
[data-theme="dark"] .premium-mini-input:hover {
    background: rgba(10, 102, 194, 0.15);
    border-color: var(--primary);
}
/* Hide inner spin buttons */
.premium-mini-input::-webkit-outer-spin-button,
.premium-mini-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.premium-mini-input[type=number] {
    -moz-appearance: textfield;
}

/* Actions */
.account-card__actions {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
}

/* Footer */
.account-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
}

/* ── Token Reveal ── */
.account-token-reveal {
    background: var(--bg-card);
    border: 1px solid #f59e0b;
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}
.account-token-reveal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}
.account-token-reveal__token-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 10px 14px;
}
.account-token-reveal__token-box code {
    flex-grow: 1;
    word-break: break-all;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

/* ── Empty State ── */
.account-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
}
.account-empty__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
}

/* ── Setup Guide ── */
.account-setup-guide {
    margin-top: 24px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
}
.account-setup-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    transition: transform 0.15s ease;
}
.account-setup-step:hover {
    transform: translateX(4px);
}
.account-setup-step__number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
}

/* ── Form Card Polish ── */
.account-form-card {
    border-left: 4px solid var(--primary);
}

/* ══════════════════════════════════════════════════════════════════
   Comments Page — Feed, Stats, Tone Bar, Tags
   ══════════════════════════════════════════════════════════════════ */

/* ── Stat Cards (reuse pattern) ── */
.comment-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.comment-stat:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.comment-stat__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.comment-stat__value {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}
.comment-stat__label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Tone Distribution Bar ── */
.comment-tone-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
}
.comment-tone-bar__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.comment-tone-bar__track {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    gap: 2px;
}
.comment-tone-bar__segment {
    border-radius: 4px;
    transition: opacity 0.2s ease;
    cursor: pointer;
    min-width: 4px;
}
.comment-tone-bar__segment:hover {
    opacity: 0.8;
    transform: scaleY(1.3);
}
.comment-tone-bar__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.comment-tone-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-secondary);
    color: var(--text-muted);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}
.comment-tone-chip:hover {
    border-color: var(--chip-color);
    color: var(--chip-color);
}
.comment-tone-chip--active {
    background: var(--chip-color);
    color: white;
    border-color: var(--chip-color);
}
.comment-tone-chip--active .comment-tone-chip__dot {
    background: white !important;
}
.comment-tone-chip__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.comment-tone-chip__count {
    font-weight: 400;
    opacity: 0.7;
}

/* ── Filters Bar ── */
.comment-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.comment-filters__search {
    flex-grow: 1;
    min-width: 200px;
    position: relative;
}
.comment-filters__search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}
.comment-filters__search input {
    padding-left: 36px;
}
.comment-filters__select {
    width: auto;
    min-width: 140px;
}

/* ── Comment Feed (Timeline) ── */
.comment-feed {
    display: flex;
    flex-direction: column;
}

.comment-item {
    display: flex;
    gap: 14px;
    padding: 0;
}

.comment-item__side {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 40px;
}

.comment-item__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-light);
}
.comment-item__avatar--placeholder {
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    border: 2px solid var(--border-light);
}

.comment-item__thread-line {
    width: 2px;
    flex-grow: 1;
    background: var(--border-light);
    margin: 4px 0;
    min-height: 16px;
}

.comment-item__body {
    flex-grow: 1;
    min-width: 0;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    transition: box-shadow 0.15s ease;
}
.comment-item__body:hover {
    box-shadow: var(--shadow-sm);
}

.comment-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}
.comment-item__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.comment-item__type-badge {
    font-size: 10px;
    padding: 2px 8px;
}
.comment-item__target {
    font-size: 12px;
    color: var(--text-muted);
}
.comment-item__target a {
    color: var(--primary);
    text-decoration: none;
}
.comment-item__target a:hover {
    text-decoration: underline;
}
.comment-item__time {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.comment-item__post-link {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 12px;
    transition: all 0.15s ease;
    text-decoration: none;
}
.comment-item__post-link:hover {
    background: var(--primary);
    color: white;
}

.comment-item__text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* ── Tags ── */
.comment-item__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.comment-tag {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--bg-secondary);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}
.comment-tag--tone {
    color: var(--tag-color);
    background: color-mix(in srgb, var(--tag-color) 10%, transparent);
    border-color: color-mix(in srgb, var(--tag-color) 25%, transparent);
}
.comment-tag--question {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.2);
}
.comment-tag--status.comment-tag--inserted {
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}
.comment-tag--status.comment-tag--generated {
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.2);
}
.comment-tag--status.comment-tag--copied {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.2);
}
.comment-tag--instruction {
    color: #ec4899;
    background: rgba(236, 72, 153, 0.08);
    border-color: rgba(236, 72, 153, 0.2);
}
.comment-tag--account {
    color: var(--primary);
    background: rgba(10, 102, 194, 0.08);
    border-color: rgba(10, 102, 194, 0.2);
}

/* ── AI Suggestions Accordion ── */
.comment-item__suggestions {
    margin-top: 8px;
    border-top: 1px solid var(--border-light);
    padding-top: 8px;
}
.comment-item__suggestions summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.comment-item__suggestions summary::-webkit-details-marker {
    display: none;
}
.comment-item__suggestions summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 4px;
    transition: transform 0.15s ease;
}
.comment-item__suggestions[open] summary::before {
    transform: rotate(90deg);
}

.comment-item__suggestions-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.comment-suggestion {
    display: flex;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: var(--text-muted);
    transition: background 0.1s ease;
}
.comment-suggestion:hover {
    background: var(--bg-secondary);
}
.comment-suggestion--selected {
    background: rgba(10, 102, 194, 0.06);
    color: var(--text-primary);
    border-left: 2px solid var(--primary);
}
.comment-suggestion__number {
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}
.comment-suggestion__text {
    line-height: 1.4;
}

/* ── Empty State ── */
.comment-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
}
.comment-empty__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
}

/* ══════════════════════════════════════════════════════════════════
   Dashboard — Redesigned
   ══════════════════════════════════════════════════════════════════ */

/* ── Welcome ── */
.dash-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Stat Cards ── */
.dash-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
}
.dash-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.dash-stat__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.dash-stat__value {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}
.dash-stat__label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}
.dash-stat__link {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.15s ease;
    text-decoration: none;
    opacity: 0;
}
.dash-stat:hover .dash-stat__link {
    opacity: 1;
}
.dash-stat__link:hover {
    background: var(--primary);
    color: white;
}

/* ── Pulse Bar ── */
.dash-pulse {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}
.dash-pulse__item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.dash-pulse__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}
.dash-pulse__dot--live {
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.4);
    animation: pulse-dot 2s ease-in-out infinite;
}
.dash-pulse__icon {
    color: var(--text-muted);
    font-size: 14px;
}
.dash-pulse__text {
    font-size: 12px;
    color: var(--text-muted);
}
.dash-pulse__text strong {
    color: var(--text-primary);
    font-weight: 700;
}
.dash-pulse__divider {
    width: 1px;
    height: 16px;
    background: var(--border-light);
}

/* ── Card (generic) ── */
.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.dash-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
}
.dash-card__title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}
.dash-card__action {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: gap 0.15s ease;
    gap: 2px;
}
.dash-card__action:hover {
    gap: 6px;
}
.dash-card__body {
    padding: 16px 20px;
}
.dash-card__body--flush {
    padding: 0;
}

/* ── Chart ── */
.dash-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 120px;
    padding-bottom: 20px;
    position: relative;
}
.dash-chart__col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    position: relative;
}
.dash-chart__bar {
    width: 100%;
    border-radius: 4px 4px 0 0;
    background: var(--border-light);
    transition: height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    min-height: 3px;
    cursor: default;
}
.dash-chart__bar--active {
    background: var(--gradient-primary);
}
.dash-chart__bar:hover {
    opacity: 0.85;
}
.dash-chart__tooltip {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(10, 102, 194, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
    white-space: nowrap;
}
.dash-chart__col:hover .dash-chart__tooltip {
    opacity: 1;
}
.dash-chart__label {
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 4px;
    position: absolute;
    bottom: -18px;
}

/* ── Pipeline ── */
.dash-pipeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dash-pipeline__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.dash-pipeline__track {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
}
.dash-pipeline__fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Activity Feed ── */
.dash-activity {
    display: flex;
    flex-direction: column;
}
.dash-activity__item {
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    align-items: flex-start;
    transition: background 0.1s ease;
    border-bottom: 1px solid var(--border-light);
}
.dash-activity__item:last-child {
    border-bottom: none;
}
.dash-activity__item:hover {
    background: var(--bg-card-hover);
}
.dash-activity__icon-wrap {
    flex-shrink: 0;
    padding-top: 2px;
}
.dash-activity__icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.dash-activity__icon--comment {
    background: rgba(10, 102, 194, 0.1);
    color: var(--primary);
}
.dash-activity__icon--reply {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}
.dash-activity__content {
    flex-grow: 1;
    min-width: 0;
}
.dash-activity__text {
    font-size: 13px;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 2px;
}
.dash-activity__meta {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    flex-wrap: wrap;
}
.dash-activity__tone {
    font-weight: 600;
}
.dash-activity__time {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
    white-space: nowrap;
    padding-top: 2px;
}

/* ── Leaderboard ── */
.dash-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dash-leaderboard__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    transition: background 0.1s ease;
    text-decoration: none;
    color: inherit;
}
.dash-leaderboard__item:hover {
    background: var(--bg-card-hover);
}
.dash-leaderboard__rank {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    background: var(--bg-secondary);
    color: var(--text-muted);
    flex-shrink: 0;
}
.dash-leaderboard__rank--top {
    background: var(--gradient-primary);
    color: white;
}
.dash-leaderboard__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-light);
}
.dash-leaderboard__avatar--placeholder {
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    border: none;
}
.dash-leaderboard__info {
    flex-grow: 1;
    min-width: 0;
}
.dash-leaderboard__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-leaderboard__title {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dash-leaderboard__score {
    text-align: right;
    flex-shrink: 0;
}
.dash-leaderboard__score-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.dash-leaderboard__score-label {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

/* ── Empty State ── */
.dash-empty {
    text-align: center;
    padding: 40px 20px;
}
.dash-empty__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 12px;
}

/* ──────────────── Activity Log Redesign ──────────────── */
.activity-page {
    padding-bottom: 40px;
}

.activity-timeline {
    position: relative;
    padding-left: 24px;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--border-color);
    opacity: 0.6;
}

.activity-group {
    margin-bottom: 30px;
}

.activity-group-label {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    margin-left: -16px;
    box-shadow: var(--shadow-sm);
}

.activity-item {
    position: relative;
    margin-bottom: 20px;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 16px;
    width: 10px;
    height: 10px;
    background: var(--bg-body);
    border: 2px solid var(--primary);
    border-radius: 50%;
    z-index: 2;
}

.activity-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    gap: 16px;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.activity-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    border-color: var(--primary-light);
}

.activity-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
    font-size: 14px;
    text-transform: uppercase;
    border: 1px solid var(--border-color);
}

.activity-body {
    flex-grow: 1;
    min-w: 0;
}

.activity-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.activity-user {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 14px;
}

.activity-action-tag {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-module-tag {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-msg {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.activity-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.activity-meta-pill {
    font-size: 10.5px;
    padding: 3px 10px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
}

.activity-meta-pill strong {
    color: var(--text-primary);
    margin-left: 2px;
}

.activity-transition-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 3px 12px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 10.5px;
    font-weight: 600;
}

.activity-from { color: var(--danger); }
.activity-to { color: var(--success); font-weight: 700; }
.activity-arrow { color: var(--text-muted); font-size: 10px; }

.activity-info {
    flex-shrink: 0;
    text-align: right;
    min-width: 100px;
}

.activity-time {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.activity-ip {
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0.6;
    margin-top: 2px;
}

/* Dark mode overrides for activity log if needed */
[data-theme="dark"] .activity-card {
    background: var(--gradient-card);
}
[data-theme="dark"] .activity-group-label {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* ── Activity Filter Bar Fixes ── */
.activity-filter-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 12px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.activity-filter-bar .form-control,
.activity-filter-bar .form-select,
.activity-filter-bar .input-group-text {
    background-color: var(--bg-body) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
    font-size: 13px !important;
    height: 38px;
}

.activity-filter-bar .input-group-text {
    border-right: none !important;
    padding-left: 12px;
    padding-right: 8px;
}

.activity-filter-bar .form-control:focus,
.activity-filter-bar .form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: none !important;
    background-color: var(--bg-input-focus) !important;
}

.activity-filter-bar .btn-reset {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    height: 38px;
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.activity-filter-bar .btn-reset:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

[data-theme="dark"] .activity-filter-bar {
    background: rgba(var(--primary-rgb), 0.03);
}

[data-theme="dark"] .activity-filter-bar .form-control,
[data-theme="dark"] .activity-filter-bar .form-select,
[data-theme="dark"] .activity-filter-bar .input-group-text {
    background-color: rgba(0, 0, 0, 0.2) !important;
}

.activity-filter-bar .input-group .form-control {
    border-left: none !important;
    padding-left: 0;
}

/* ══════════════════════════════════════════════════════════════════
   Super Admin Agencies Overview
   ══════════════════════════════════════════════════════════════════ */
.agency-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-lg); transition: all 0.2s ease; }
.agency-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--primary-light); }
.card-divider { height: 1px; background-color: var(--border-light); margin: 1.25rem 0; }
.stat-box { background: var(--bg-body); border-radius: var(--radius-md); padding: 0.75rem; text-align: center; border: 1px solid var(--border-color); }
.stat-value { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); line-height: 1; }
.stat-label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; margin-top: 0.25rem; }
.li-btn-primary { background-color: var(--primary); color: #fff; border-radius: var(--radius-full); font-weight: 600; padding: 0.4rem 1rem; border: none; transition: background 0.2s; }
.li-btn-primary:hover { background-color: var(--primary-dark); color: #fff; }
.li-btn-outline { color: var(--primary); border: 1px solid var(--primary); background: transparent; border-radius: var(--radius-full); font-weight: 600; padding: 0.4rem 1rem; transition: background 0.2s; }
.li-btn-outline:hover { background: rgba(var(--primary-rgb), 0.1); color: var(--primary); }
.li-badge { background: rgba(var(--primary-rgb), 0.1); color: var(--primary); font-weight: 600; border-radius: var(--radius-sm); padding: 0.25rem 0.5rem; font-size: 0.75rem; }
.li-text-main { color: var(--text-primary); font-weight: 600; }
.li-text-sub { color: var(--text-muted); font-size: 0.85rem; }
.progress-thin { height: 6px; border-radius: 3px; background-color: var(--border-light); }
.progress-thin .progress-bar { background-color: var(--primary); border-radius: 3px; }

/* Dark mode overrides for Agencies List */
[data-theme="dark"] .agency-card { background: var(--bg-card); border-color: var(--border-color); }
[data-theme="dark"] .stat-box { background: rgba(0, 0, 0, 0.2); border-color: var(--border-color); }
