:root {
    --bg-primary: #0f0f14;
    --bg-secondary: #16161d;
    --bg-card: #1c1c26;
    --bg-hover: #22222e;
    --bg-input: #12121a;
    --border: #2a2a3a;
    --text-primary: #e8e8ed;
    --text-secondary: #8888a0;
    --text-muted: #55556a;
    --accent: #7c5cfc;
    --accent-hover: #6a48e8;
    --accent-glow: rgba(124, 92, 252, 0.15);
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --info: #60a5fa;
    --status-actief: #34d399;
    --status-gelockt: #f87171;
    --status-onbekend: #fbbf24;
    --status-inactief: #6b7280;
    --status-exported: #60a5fa;
    --status-pending: #fbbf24;
    --status-in_progress: #60a5fa;
    --status-completed: #34d399;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    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;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.logo {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
}

.logo-lg {
    width: 56px;
    height: 56px;
    font-size: 20px;
    border-radius: var(--radius-lg);
}

.logo-text {
    font-weight: 600;
    font-size: 16px;
}

.nav-links {
    list-style: none;
    padding: 12px 8px;
    flex: 1;
}

.nav-links li { margin-bottom: 2px; }

.nav-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
}

.nav-links a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-links a.active {
    background: var(--accent-glow);
    color: var(--accent);
}

.nav-links svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.user-avatar {
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.user-name {
    font-size: 13px;
    color: var(--text-secondary);
}

.logout-btn {
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
}

.logout-btn:hover { color: var(--danger); }

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 240px;
    min-height: 100vh;
}

.top-bar {
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 50;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.content {
    padding: 24px 32px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: transform 0.15s;
}

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

.stat-number {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.stat-total .stat-number { color: var(--text-primary); }
.stat-actief .stat-number { color: var(--status-actief); }
.stat-gelockt .stat-number { color: var(--status-gelockt); }
.stat-onbekend .stat-number { color: var(--status-onbekend); }
.stat-inactief .stat-number { color: var(--status-inactief); }
.stat-exported .stat-number { color: var(--status-exported); }

/* Actions Grid */
.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.action-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    transition: all 0.15s;
    cursor: pointer;
    color: var(--text-primary);
}

.action-card:hover {
    border-color: var(--accent);
    background: var(--bg-hover);
    color: var(--text-primary);
}

.action-icon {
    margin-bottom: 10px;
}

.action-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.action-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.action-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Filter Bar */
.filter-bar {
    margin-bottom: 20px;
}

.filter-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group { flex-shrink: 0; }

/* Tables */
.table-container {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
}

.data-table td {
    padding: 10px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.data-table tbody tr:hover {
    background: var(--bg-hover);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.cell-username { font-weight: 500; }

.cell-actions {
    display: flex;
    gap: 6px;
}

.inline-form { display: inline; }

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-actief { background: rgba(52, 211, 153, 0.15); color: var(--status-actief); }
.status-gelockt { background: rgba(248, 113, 113, 0.15); color: var(--status-gelockt); }
.status-onbekend { background: rgba(251, 191, 36, 0.15); color: var(--status-onbekend); }
.status-inactief { background: rgba(107, 114, 128, 0.15); color: var(--status-inactief); }
.status-exported { background: rgba(96, 165, 250, 0.15); color: var(--status-exported); }
.status-pending { background: rgba(251, 191, 36, 0.15); color: var(--status-pending); }
.status-in_progress { background: rgba(96, 165, 250, 0.15); color: var(--status-in_progress); }
.status-completed { background: rgba(52, 211, 153, 0.15); color: var(--status-completed); }
.status-error { background: rgba(248, 113, 113, 0.15); color: var(--danger); }

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.badge-type {
    background: var(--accent-glow);
    color: var(--accent);
    border: none;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    color: var(--text-primary);
    background: var(--bg-card);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
}

.btn-danger {
    background: transparent;
    color: var(--danger);
    border-color: var(--danger);
}

.btn-danger:hover { background: rgba(248, 113, 113, 0.1); color: var(--danger); }

.btn-ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--text-secondary);
}

.btn-ghost:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-xs { padding: 4px 8px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }

/* Forms */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 700px;
}

.form-group {
    margin-bottom: 16px;
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

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

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

select {
    cursor: pointer;
    appearance: auto;
}

.input-search {
    min-width: 240px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* Flash Messages */
.flash-messages {
    padding: 0 32px;
    margin-top: 16px;
}

.flash {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flash-success {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: var(--success);
}

.flash-error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: var(--danger);
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.7;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.page-info {
    font-size: 13px;
    color: var(--text-muted);
}

/* Bulk Actions */
.bulk-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    align-items: center;
}

.bulk-actions select {
    width: auto;
    min-width: 160px;
}

/* Target Cards */
.target-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.target-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

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

.target-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.target-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.target-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.target-actions {
    display: flex;
    gap: 8px;
}

/* Empty State */
.empty-state {
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.empty-state-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
}

.empty-state-card p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Import Info */
.import-info {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.import-info h3 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.format-example {
    margin-bottom: 12px;
}

.format-example h4 {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.format-example pre {
    background: var(--bg-input);
    padding: 10px;
    border-radius: var(--radius);
    font-size: 12px;
    overflow-x: auto;
    color: var(--text-secondary);
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    min-width: 400px;
    max-width: 500px;
}

.modal-content h3 {
    margin-bottom: 16px;
}

/* Auth Pages */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-primary);
}

.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header .logo {
    margin: 0 auto 12px;
}

.auth-header h1 {
    font-size: 22px;
    margin-bottom: 4px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.auth-link {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .sidebar {
        width: 60px;
        overflow: hidden;
    }
    .logo-text, .user-name, .logout-btn { display: none; }
    .nav-links a span { display: none; }
    .sidebar-header { justify-content: center; }
    .main-content { margin-left: 60px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .form-row { flex-direction: column; }
    .content { padding: 16px; }
    .top-bar { padding: 16px; }
}

/* Link styling */
.link {
    color: var(--accent);
    font-size: 13px;
}

.link:hover { text-decoration: underline; }

/* Nav Divider */
.nav-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 12px;
}

/* Checker Layout */
.checker-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
}

.checker-panel .form-card { max-width: none; }

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Tabs */
.tab-bar {
    display: flex;
    gap: 2px;
    margin-bottom: 20px;
    background: var(--bg-input);
    border-radius: var(--radius);
    padding: 3px;
}

.tab-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s;
}

.tab-btn.active {
    background: var(--accent);
    color: #fff;
}

.mono-textarea {
    font-family: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.import-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--accent-glow);
    border-radius: var(--radius);
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.import-hint code {
    background: var(--bg-input);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.hint-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.checker-info-bar {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.info-item:last-child { margin-bottom: 0; }

.info-icon {
    width: 14px;
    height: 14px;
    color: var(--accent);
    flex-shrink: 0;
}

/* Job Cards */
.job-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.job-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    color: var(--text-primary);
    transition: border-color 0.15s;
}

.job-card:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

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

.job-id {
    font-weight: 600;
    font-size: 14px;
}

.job-stats-mini {
    font-size: 12px;
    color: var(--text-muted);
}

.job-stats-mini .dot { margin: 0 4px; }

.job-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Job Detail */
.job-overview { margin-bottom: 24px; }

.job-progress-section { margin-bottom: 16px; }

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--success));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.stats-grid-sm {
    grid-template-columns: repeat(4, 1fr);
}

.stats-grid-sm .stat-card { padding: 16px; }
.stats-grid-sm .stat-number { font-size: 28px; }

/* Live Feed */
.live-feed {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-height: 500px;
    overflow-y: auto;
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.feed-item:last-child { border-bottom: none; }

.feed-time {
    color: var(--text-muted);
    font-family: monospace;
    font-size: 12px;
    flex-shrink: 0;
}

.feed-user {
    font-weight: 500;
    min-width: 120px;
}

.feed-msg {
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed-waiting {
    justify-content: center;
    padding: 24px;
    color: var(--text-muted);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

/* Settings */
.settings-layout { max-width: 700px; }
.settings-form { max-width: none; }

.settings-divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
}

.balance-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 8px;
}

.balance-label { color: var(--text-muted); }
.balance-ok { color: var(--success); font-weight: 600; }
.balance-low { color: var(--danger); font-weight: 600; }

/* Quick Copy Button */
.copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    transition: all 0.15s;
}

.copy-btn:hover {
    background: var(--accent-glow);
    color: var(--accent);
}

.copy-btn.copied {
    color: var(--success);
}

/* Status indicators */
.status-running {
    background: rgba(124, 92, 252, 0.15);
    color: var(--accent);
}

.status-invalid {
    background: rgba(251, 191, 36, 0.15);
    color: var(--warning);
}

.status-captcha_failed {
    background: rgba(248, 113, 113, 0.15);
    color: var(--danger);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== DASHBOARD GRID ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    margin-top: 8px;
}

.dashboard-sidebar .detail-card { margin-bottom: 0; }

@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}

/* Forum Overview Cards */
.forum-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.forum-overview-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    color: var(--text-primary);
    transition: all 0.15s;
}

.forum-overview-card:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.forum-overview-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.forum-overview-info { flex: 1; min-width: 0; }

.forum-overview-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.forum-overview-stats {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
}

.forum-overview-actief { color: var(--success); }

.forum-overview-bar {
    width: 60px;
    height: 4px;
    background: var(--bg-input);
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
}

.forum-overview-fill {
    height: 100%;
    background: var(--success);
    border-radius: 2px;
    transition: width 0.3s;
}

/* Activity Feed */
.activity-feed { display: flex; flex-direction: column; gap: 0; }

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.activity-item:last-child { border-bottom: none; }

.activity-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-top: 7px;
    flex-shrink: 0;
}

.activity-content { flex: 1; }

.activity-action {
    font-size: 13px;
    display: block;
}

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

/* System Info */
.system-info-list { display: flex; flex-direction: column; gap: 0; }

.system-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.system-info-row:last-child { border-bottom: none; }
.system-info-val { font-weight: 600; color: var(--text-primary); }

/* ===== FORUMS PAGE ===== */
.forum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.forum-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all 0.15s;
}

.forum-card:hover { border-color: var(--accent); }

.forum-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.forum-icon {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    flex-shrink: 0;
}

.forum-card-info { flex: 1; min-width: 0; }

.forum-card-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.forum-card-url {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.forum-card-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}

.forum-stat { text-align: center; }

.forum-stat-num {
    font-size: 20px;
    font-weight: 700;
    display: block;
    line-height: 1.2;
}

.forum-stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.forum-card-notes {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.forum-card-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ===== ACCOUNT DETAIL ===== */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

@media (max-width: 1024px) {
    .detail-layout { grid-template-columns: 1fr; }
}

.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.detail-card-warn {
    border-color: var(--warning);
    background: rgba(251, 191, 36, 0.05);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-field { display: flex; flex-direction: column; gap: 4px; }

.detail-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.detail-value {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.detail-notes {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.detail-notes p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.password-masked {
    font-family: monospace;
    letter-spacing: 2px;
}

.text-muted { font-size: 13px; color: var(--text-muted); }
.text-center { text-align: center; }

/* Account Link */
.account-link {
    color: var(--text-primary);
    font-weight: 500;
}

.account-link:hover { color: var(--accent); }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 0; }

.timeline-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.timeline-item:last-child { border-bottom: none; }

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}

.dot-actief { background: var(--success); }
.dot-gelockt { background: var(--danger); }
.dot-invalid { background: var(--warning); }
.dot-error { background: var(--danger); }
.dot-captcha_failed { background: var(--warning); }

.timeline-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.timeline-msg {
    font-size: 13px;
    color: var(--text-secondary);
}

.timeline-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
}

/* Health Ring */
.health-ring-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 12px auto;
}

.health-ring { width: 100%; height: 100%; transform: rotate(-90deg); }

.health-ring-bg {
    fill: none;
    stroke: var(--bg-input);
    stroke-width: 8;
}

.health-ring-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 326.7;
    transition: stroke-dashoffset 0.5s ease;
}

.health-ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.health-score {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.health-unit {
    font-size: 14px;
    color: var(--text-muted);
}

/* Tags */
.tag-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 4px;
    margin-bottom: 4px;
}

.current-tags { margin-bottom: 12px; }

.tag-form { display: flex; flex-direction: column; gap: 8px; }

.tag-checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.tag-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}
.tag-checkbox-item:hover { background: var(--bg-hover); }
.tag-checkbox-item input[type="checkbox"] {
    accent-color: var(--tag-color, var(--accent));
    width: 14px;
    height: 14px;
}
.tag-checkbox-label {
    font-size: 13px;
    color: var(--text-primary);
}

/* Session Vault */
.vault-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
}

.vault-active {
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.vault-empty {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.vault-icon { flex-shrink: 0; }
.vault-icon svg { width: 24px; height: 24px; }
.vault-active .vault-icon svg { color: var(--success); }
.vault-empty .vault-icon svg { color: var(--text-muted); }

.vault-label { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.vault-active .vault-label { color: var(--success); }

.vault-detail {
    font-size: 12px;
    color: var(--text-muted);
}

/* Duplicate Detection */
.dup-list { display: flex; flex-direction: column; gap: 6px; }

.dup-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    color: var(--text-primary);
}

.dup-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.dup-forum { font-weight: 500; font-size: 14px; }

/* ===== SESSION VIEWER ===== */
.session-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    min-height: calc(100vh - 140px);
}

@media (max-width: 1024px) {
    .session-layout { grid-template-columns: 1fr; }
}

.session-controls .detail-card { margin-bottom: 16px; }

.session-info-card {
    margin-top: 16px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.session-info-card h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.session-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
    font-size: 12px;
}

.session-detail-val {
    color: var(--text-secondary);
    text-align: right;
    word-break: break-all;
    max-width: 180px;
}

.session-viewer-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    min-height: 500px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.viewer-placeholder,
.viewer-loading,
.viewer-error {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    gap: 12px;
    color: var(--text-secondary);
}

.loader-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-spinner-sm {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.screenshot-tabs {
    display: flex;
    gap: 2px;
    padding: 8px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.screenshot-tab {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s;
}

.screenshot-tab:hover { background: var(--bg-hover); color: var(--text-primary); }
.screenshot-tab.active { background: var(--accent); color: #fff; }

.screenshot-url-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-input);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
    font-family: monospace;
}

.screenshot-title {
    color: var(--text-secondary);
    font-family: inherit;
}

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== COMMAND PALETTE ===== */
.cmd-palette-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
    min-width: 200px;
}

.cmd-palette-trigger:hover {
    border-color: var(--accent);
    color: var(--text-secondary);
}

.cmd-palette-trigger kbd {
    margin-left: auto;
    padding: 1px 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 11px;
    font-family: inherit;
    color: var(--text-muted);
}

.cmd-palette-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 300;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
}

.cmd-palette {
    width: 560px;
    max-height: 70vh;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cmd-palette-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.cmd-palette-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
}

.cmd-esc {
    padding: 2px 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.cmd-palette-results {
    overflow-y: auto;
    padding: 8px;
}

.cmd-group { margin-bottom: 8px; }

.cmd-group-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 6px 10px;
}

.cmd-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.1s;
}

.cmd-item:hover {
    background: var(--accent-glow);
    color: var(--accent);
}

.cmd-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cmd-icon svg {
    width: 16px;
    height: 16px;
}

.cmd-icon-action {
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
}

.cmd-item-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

/* ===== NOTIFICATIONS ===== */
.notification-bell { position: relative; }

.notif-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius);
    position: relative;
    transition: all 0.15s;
}

.notif-btn:hover { color: var(--text-primary); background: var(--bg-hover); }

.notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    background: var(--danger);
    color: #fff;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notif-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 340px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    z-index: 200;
    margin-top: 8px;
}

.notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 14px;
}

.notif-list { max-height: 300px; overflow-y: auto; }

.notif-item {
    display: flex;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    cursor: pointer;
}

.notif-item:hover { background: var(--bg-hover); }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: rgba(124, 92, 252, 0.05); }

.notif-item-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.notif-item-icon.notif-info { background: rgba(96, 165, 250, 0.15); color: var(--info); }
.notif-item-icon.notif-success { background: rgba(52, 211, 153, 0.15); color: var(--success); }
.notif-item-icon.notif-warning { background: rgba(251, 191, 36, 0.15); color: var(--warning); }
.notif-item-icon.notif-danger { background: rgba(248, 113, 113, 0.15); color: var(--danger); }

.notif-item-content { flex: 1; min-width: 0; }

.notif-item-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.notif-item-msg {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notif-item-time {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.notif-empty {
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 400;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    font-size: 13px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toastIn 0.2s ease;
    max-width: 360px;
}

.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-info { border-left: 3px solid var(--info); }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    margin-left: auto;
    padding: 0 4px;
}
