/* ===== CSS VARIABLES ===== */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a2236;
    --bg-card-hover: #1f2a42;
    --bg-input: #0d1321;
    --border: #1e2d4a;
    --border-focus: #3b82f6;
    --text-primary: #e8ecf4;
    --text-secondary: #8899b4;
    --text-muted: #4a5f82;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --green: #10b981;
    --green-bg: rgba(16, 185, 129, 0.1);
    --red: #ef4444;
    --red-bg: rgba(239, 68, 68, 0.1);
    --orange: #f59e0b;
    --orange-bg: rgba(245, 158, 11, 0.1);
    --purple: #8b5cf6;
    --purple-bg: rgba(139, 92, 246, 0.1);
    --cyan: #06b6d4;
    --sidebar-w: 260px;
    --header-h: 64px;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }

/* ===== FORMS ===== */
input, select, textarea {
    font-family: inherit;
    font-size: 0.93rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    outline: none;
    transition: border var(--transition);
    width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--border-focus); }
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238899b4' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}
textarea { resize: vertical; min-height: 80px; }
label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }

/* ===== TABLE ===== */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; background: var(--bg-secondary); position: sticky; top: 0; z-index: 1; }
td { font-size: 0.9rem; color: var(--text-secondary); }
tr:hover td { background: var(--bg-card-hover); }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ===== LOGIN ===== */
.login-screen {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0e17 0%, #111827 50%, #0f1729 100%);
    position: relative;
}
.login-screen::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(59,130,246,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(139,92,246,0.06) 0%, transparent 60%);
}
.login-box {
    position: relative; z-index: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px 40px;
    width: 420px;
    max-width: 95vw;
    box-shadow: var(--shadow);
}
.login-box .logo { font-family: 'Space Mono', monospace; font-size: 1.6rem; font-weight: 700; margin-bottom: 6px; }
.login-box .logo span { color: var(--accent); }
.login-box .subtitle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }
.login-box .field { margin-bottom: 20px; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
    font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(59,130,246,0.3); }
.btn-secondary { background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--text-muted); color: var(--text-primary); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #059669; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-block { width: 100%; justify-content: center; padding: 12px; }
.btn-icon { width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: var(--radius-sm); }

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

/* Sidebar */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
}
.sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.sidebar-header .logo { font-family: 'Space Mono', monospace; font-size: 1.2rem; font-weight: 700; }
.sidebar-header .logo span { color: var(--accent); }
.sidebar-role {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.role-admin { background: var(--purple-bg); color: var(--purple); }
.role-reseller { background: var(--orange-bg); color: var(--orange); }
.role-user { background: var(--green-bg); color: var(--green); }

.sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; }
.nav-section { margin-bottom: 24px; }
.nav-section-title {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-muted); padding: 0 12px; margin-bottom: 8px; font-weight: 700;
}
.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 2px;
    text-decoration: none;
}
.nav-item:hover { background: var(--bg-card); color: var(--text-primary); }
.nav-item.active { background: var(--accent-glow); color: var(--accent); }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
}
.avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; color: #fff; flex-shrink: 0;
}
.sidebar-footer .user-info { flex: 1; min-width: 0; }
.sidebar-footer .user-name { font-weight: 600; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-footer .user-email { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Main Area */
.main-area { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }
.topbar {
    height: var(--header-h);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px;
    background: var(--bg-secondary);
    position: sticky; top: 0; z-index: 50;
}
.topbar-title { font-size: 1.15rem; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-balance { font-family: 'Space Mono', monospace; color: var(--green); font-weight: 700; }

.content { flex: 1; padding: 32px; }

/* ===== STATS GRID ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: all var(--transition);
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.stat-card .stat-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 700; font-family: 'Space Mono', monospace; margin-bottom: 4px; }
.stat-card .stat-label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }

/* ===== CARD ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
}
.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    flex-wrap: wrap;
}
.card-header h3 { font-size: 1rem; font-weight: 700; }
.card-body { padding: 24px; }
.card-body.no-pad { padding: 0; }
.table-wrap { overflow-x: auto; }

/* ===== BADGES ===== */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-active { background: var(--green-bg); color: var(--green); }
.badge-inactive { background: var(--red-bg); color: var(--red); }
.badge-admin { background: var(--purple-bg); color: var(--purple); }
.badge-reseller { background: var(--orange-bg); color: var(--orange); }
.badge-user { background: var(--green-bg); color: var(--green); }
.badge-sold { background: var(--orange-bg); color: var(--orange); }

/* ===== FORM ===== */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group .hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; }
.form-actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.form-inline { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }

/* ===== SEARCH BAR ===== */
.search-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.search-bar input, .search-bar select { max-width: 280px; }

/* ===== FIELD ITEM ===== */
.field-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    transition: all var(--transition);
    flex-wrap: wrap;
}
.field-item:hover { border-color: var(--text-muted); }
.field-item .field-name { flex: 1; font-weight: 600; min-width: 120px; }
.field-item .field-type { color: var(--text-muted); font-size: 0.82rem; font-family: 'Space Mono', monospace; }
.field-item .field-actions { display: flex; gap: 6px; }
.field-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.field-badge {
    font-size: 0.7rem; padding: 2px 8px; border-radius: 10px; font-weight: 600;
}

/* ===== LEADS GRID (Browse) ===== */
.leads-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.lead-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: all var(--transition);
}
.lead-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.lead-card .lead-category { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 10px; }
.lead-card .lead-field { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.lead-card .lead-field:last-child { border-bottom: none; }
.lead-card .lead-field .lf-label { color: var(--text-muted); }
.lead-card .lead-field .lf-value { color: var(--text-secondary); font-weight: 500; }
.lead-card .lead-price { font-size: 1.4rem; font-weight: 700; font-family: 'Space Mono', monospace; color: var(--green); margin: 14px 0 10px; }
.lead-card .lead-actions { display: flex; gap: 8px; margin-top: 12px; }
.masked { letter-spacing: 2px; color: var(--text-muted); }

/* ===== BALANCE DISPLAY ===== */
.balance-display {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(59,130,246,0.08) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    margin-bottom: 28px;
}
.balance-display .balance-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; }
.balance-display .balance-amount { font-family: 'Space Mono', monospace; font-size: 2.5rem; font-weight: 700; color: var(--green); }

/* ===== UPLOAD ZONE ===== */
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 48px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: 20px;
}
.upload-zone:hover { border-color: var(--accent); background: var(--accent-glow); }
.upload-zone p { color: var(--text-muted); font-size: 0.9rem; }
.upload-zone .upload-hint { font-size: 0.78rem; margin-top: 6px; }

/* ===== TABS ===== */
.tabs { display: flex; gap: 4px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.tab-btn {
    padding: 10px 20px; font-size: 0.88rem; font-weight: 600;
    color: var(--text-muted); background: none; border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer; transition: all var(--transition); margin-bottom: -1px;
    font-family: inherit;
}
.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ===== ALERT / FLASH ===== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex; align-items: center; gap: 10px;
}
.alert-success { background: var(--green-bg); border: 1px solid rgba(16,185,129,0.3); color: var(--green); }
.alert-error { background: var(--red-bg); border: 1px solid rgba(239,68,68,0.3); color: var(--red); }
.alert-info { background: var(--accent-glow); border: 1px solid rgba(59,130,246,0.3); color: var(--accent); }
.alert-warning { background: var(--orange-bg); border: 1px solid rgba(245,158,11,0.3); color: var(--orange); }

/* ===== VISIBILITY CONFIG TABLE ===== */
.config-row {
    display: flex; align-items: center; gap: 20px;
    padding: 14px 0; border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.config-row:last-child { border-bottom: none; }
.config-row .config-name { flex: 1; font-weight: 600; min-width: 140px; }
.config-row .config-options { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.config-row .config-options label {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: var(--text-secondary);
    cursor: pointer; text-transform: none; font-weight: 500; margin-bottom: 0;
}
.config-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
.config-row input[type="number"] { width: 70px; padding: 6px 10px; }
.config-row select { width: 120px; padding: 6px 10px; }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center; padding: 48px; color: var(--text-muted);
}
.empty-state svg { margin-bottom: 16px; opacity: 0.5; }
.empty-state p { font-size: 1rem; }

/* ===== MOBILE MENU BUTTON ===== */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}
.mobile-menu-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Sidebar close button (mobile only) */
.sidebar-close-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}
.sidebar-close-btn:hover {
    color: var(--red);
    background: var(--red-bg);
}

/* Sidebar overlay (mobile only) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 99;
}
.sidebar-overlay.active {
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 200;
        box-shadow: none;
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    }
    .main-area { margin-left: 0; }
    .content { padding: 16px; }
    .topbar { padding: 0 16px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .leads-grid { grid-template-columns: 1fr; }
    .search-bar { flex-direction: column; }
    .search-bar input, .search-bar select { max-width: 100%; }

    .mobile-menu-btn { display: flex; }
    .sidebar-close-btn { display: flex; }

    /* Topbar title smaller on mobile */
    .topbar-title { font-size: 1rem; }

    /* Card padding tighter */
    .card-header { padding: 14px 16px; }
    .card-body { padding: 16px; }

    /* Table text smaller */
    table { font-size: 0.82rem; }
    th, td { padding: 8px 10px; }

    /* Balance in topbar */
    .topbar-balance { font-size: 0.82rem; }

    /* Login box full width */
    .login-box { width: 100%; margin: 16px; padding: 32px 24px; }
}

/* ===== DUPLICATE HIGHLIGHT ===== */
tr.duplicate td { background: var(--red-bg) !important; }

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fb;
    --bg-input: #f5f6f8;
    --border: #e2e5ea;
    --border-focus: #3b82f6;
    --text-primary: #1a1d23;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.08);
    --green: #059669;
    --green-bg: rgba(5, 150, 105, 0.08);
    --red: #dc2626;
    --red-bg: rgba(220, 38, 38, 0.06);
    --orange: #d97706;
    --orange-bg: rgba(217, 119, 6, 0.08);
    --purple: #7c3aed;
    --purple-bg: rgba(124, 58, 237, 0.08);
    --cyan: #0891b2;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .login-screen {
    background: linear-gradient(135deg, #e8ecf4 0%, #f0f2f5 50%, #e2e8f0 100%);
}
[data-theme="light"] .login-screen::before {
    background: radial-gradient(ellipse at 30% 20%, rgba(59,130,246,0.06) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 80%, rgba(139,92,246,0.04) 0%, transparent 60%);
}
[data-theme="light"] .sidebar {
    box-shadow: 2px 0 12px rgba(0,0,0,0.04);
}
[data-theme="light"] th {
    background: #f8f9fb;
    color: #6b7280;
}
[data-theme="light"] .masked {
    color: #9ca3af;
}
[data-theme="light"] .upload-zone {
    border-color: #d1d5db;
}
[data-theme="light"] .upload-zone:hover {
    border-color: var(--accent);
    background: rgba(59,130,246,0.04);
}
[data-theme="light"] select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
}

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}
.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== VIEW TOGGLE ===== */
.view-toggle {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.view-toggle-btn {
    padding: 8px 14px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex; align-items: center; gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    transition: all var(--transition);
}
.view-toggle-btn:hover {
    color: var(--text-secondary);
}
.view-toggle-btn.active {
    background: var(--accent);
    color: #fff;
}
.view-toggle-btn + .view-toggle-btn {
    border-left: 1px solid var(--border);
}

/* ===== LIST VIEW ===== */
.leads-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.lead-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    transition: all var(--transition);
    flex-wrap: wrap;
}
.lead-list-item:hover {
    background: var(--bg-card-hover);
}
.lead-list-item .list-category {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    min-width: 120px;
}
.lead-list-item .list-fields {
    flex: 1;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
}
.lead-list-item .list-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 100px;
}
.lead-list-item .list-field .lf-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    font-weight: 600;
}
.lead-list-item .list-field .lf-value {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.lead-list-item .list-price {
    font-family: 'Space Mono', monospace;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--green);
    min-width: 80px;
    text-align: right;
}
.lead-list-item .list-action {
    min-width: 130px;
    text-align: right;
}

/* ===== BROWSE TOOLBAR ===== */
.browse-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.browse-toolbar .toolbar-info {
    color: var(--text-muted);
    font-size: 0.88rem;
}
.browse-toolbar .toolbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 768px) {
    .lead-list-item { flex-direction: column; align-items: flex-start; }
    .lead-list-item .list-price { text-align: left; }
    .lead-list-item .list-action { text-align: left; }
}
