/* FraudShield Panel — Dark Theme */

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a2035;
    --bg-hover: #1e2a45;
    --bg-input: #0f1629;
    --border: #1e2d4a;
    --border-light: #2a3a5c;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --green: #22c55e;
    --green-bg: rgba(34, 197, 94, 0.1);
    --green-border: rgba(34, 197, 94, 0.3);
    --red: #ef4444;
    --red-bg: rgba(239, 68, 68, 0.1);
    --red-border: rgba(239, 68, 68, 0.3);
    --yellow: #f59e0b;
    --yellow-bg: rgba(245, 158, 11, 0.1);
    --purple: #8b5cf6;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
}

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

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

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

/* === Login Page === */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.login-box .subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
    font-size: 14px;
}

.login-box .logo {
    text-align: center;
    margin-bottom: 24px;
    font-size: 32px;
}

/* === Forms === */
.form-group {
    margin-bottom: 16px;
}

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

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

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

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

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

.btn-block {
    width: 100%;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 13px;
}

.alert-error {
    background: var(--red-bg);
    border: 1px solid var(--red-border);
    color: var(--red);
}

.alert-success {
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    color: var(--green);
}

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

/* === Top Navigation Bar === */
.topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.topnav-inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 24px;
    max-width: 100%;
}

.topnav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-right: 32px;
    flex-shrink: 0;
}

.topnav-logo-icon {
    font-size: 22px;
}

.topnav-logo-text {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.topnav-logo-ver {
    font-size: 10px;
    color: var(--text-muted);
    background: var(--bg-hover);
    padding: 2px 6px;
    border-radius: 4px;
}

.topnav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.topnav-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

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

.topnav-links a.active {
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
}

.topnav-icon {
    font-size: 14px;
}

.topnav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    flex-shrink: 0;
}

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

.topnav-logout {
    font-size: 12px;
    color: var(--text-muted);
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.15s;
}

.topnav-logout:hover {
    color: var(--red);
    border-color: var(--red-border);
    background: var(--red-bg);
}

/* Main content — full width */
.main-full {
    margin-top: 56px;
    padding: 24px 32px;
    min-height: calc(100vh - 56px);
}

/* Keep .main for backward compat but override margin */
.main {
    margin-left: 0;
    margin-top: 56px;
    flex: 1;
    padding: 24px 32px;
    min-width: 0;
}

/* === Top Bar === */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.topbar h1 {
    font-size: 22px;
    font-weight: 700;
}

.topbar-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* === Filters === */
.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filters .form-group {
    margin-bottom: 0;
}

.filters .form-control {
    min-width: 140px;
    padding: 8px 12px;
    font-size: 13px;
}

.search-input {
    position: relative;
}

.search-input input {
    padding-left: 36px;
}

.search-input::before {
    content: '🔍';
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
}

/* === Table === */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

thead th {
    padding: 10px 10px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    overflow: hidden;
    position: relative;
}

/* Column widths */
thead th:nth-child(1) { width: 120px; } /* Time */
thead th:nth-child(2) { width: 130px; } /* Geo */
thead th:nth-child(3) { width: 120px; } /* IP */
thead th:nth-child(4) { width: 90px; }  /* Domain */
thead th:nth-child(5) { width: 140px; } /* Path */
thead th:nth-child(6) { width: 70px; }  /* Source */
thead th:nth-child(7) { width: 120px; } /* Browser/OS */
thead th:nth-child(8) { width: 100px; } /* Verdict */
thead th:nth-child(9) { width: 70px; }  /* Score */
thead th:nth-child(10) { width: auto; } /* Reason */

thead th:hover {
    color: var(--text-secondary);
}

thead th .sort-icon {
    margin-left: 4px;
    opacity: 0.3;
}

thead th.sorted .sort-icon {
    opacity: 1;
    color: var(--accent);
}

tbody tr {
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.1s;
}

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

tbody tr:last-child {
    border-bottom: none;
}

td {
    padding: 8px 10px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Verdict badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-allow {
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid var(--green-border);
}

.badge-forbid {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid var(--red-border);
}

.badge-warn {
    background: var(--yellow-bg);
    color: var(--yellow);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Score */
.score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
}

.score-low { background: var(--green-bg); color: var(--green); }
.score-med { background: var(--yellow-bg); color: var(--yellow); }
.score-high { background: var(--red-bg); color: var(--red); }

/* Stage tags */
.stage-tag {
    display: inline-flex;
    align-items: center;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 4px;
    vertical-align: middle;
}

.stage-s1 {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent);
}

.stage-s2 {
    background: rgba(139, 92, 246, 0.15);
    color: var(--purple);
}

/* Score breakdown */
.score-breakdown {
    display: inline-block;
    font-size: 10px;
    color: var(--text-muted);
    margin-left: 4px;
}

/* Country flag */
.geo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.geo .flag {
    font-size: 16px;
}

/* IP */
.ip-cell {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    color: var(--accent);
}

/* === Pagination === */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}

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

.pagination-buttons {
    display: flex;
    gap: 4px;
}

.pagination-buttons button {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 13px;
}

.pagination-buttons button:hover { background: var(--bg-hover); }
.pagination-buttons button.active { background: var(--accent); border-color: var(--accent); }
.pagination-buttons button:disabled { opacity: 0.4; cursor: default; }

/* === Visit Detail === */
.visit-detail {
    padding: 24px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.detail-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
}

.detail-card-header .icon {
    font-size: 16px;
}

.detail-card-body {
    padding: 16px 18px;
}

.detail-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.detail-row:last-child { border-bottom: none; }

.detail-label {
    width: 160px;
    flex-shrink: 0;
    color: var(--text-muted);
    font-weight: 500;
}

.detail-value {
    color: var(--text-primary);
    word-break: break-all;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
}

.detail-value.url {
    color: var(--accent);
}

.detail-value.params {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.param-tag {
    display: inline-flex;
    padding: 2px 8px;
    background: var(--accent);
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.param-tag.secondary {
    background: var(--bg-hover);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* Headers block */
.headers-block {
    background: var(--bg-input);
    border-radius: var(--radius);
    padding: 14px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    line-height: 1.8;
    overflow-x: auto;
}

.header-key {
    color: var(--accent);
    font-weight: 600;
}

.header-key.special {
    color: var(--purple);
}

/* Checks grid */
.checks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px 18px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-input);
    border-radius: var(--radius);
    font-size: 13px;
}

.check-icon {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

.check-name {
    font-weight: 500;
    color: var(--text-secondary);
}

.check-detail {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 12px;
}

/* Full width detail card */
.detail-full {
    grid-column: 1 / -1;
}

/* UA block */
.ua-block {
    background: var(--bg-input);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    line-height: 1.6;
    word-break: break-all;
    margin: 12px 18px 16px;
}

/* Response info */
.response-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 18px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}

/* Back button */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 14px;
}

.back-link:hover { color: var(--text-primary); }

/* === Settings Page === */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.settings-section h3 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.settings-section.full-width {
    grid-column: 1 / -1;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}

.range-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.range-group input[type="range"] {
    flex: 1;
    accent-color: var(--accent);
}

.range-value {
    font-size: 18px;
    font-weight: 700;
    min-width: 40px;
    text-align: center;
    color: var(--accent);
}

/* === Loading === */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--text-muted);
}

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

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

/* === Stats bar === */
.stats-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* === Modal (visit detail overlay) === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    overflow-y: auto;
    padding: 40px;
}

.modal-overlay.active { display: block; }

.modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.modal-header h2 { font-size: 16px; }

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 1200px) {
    .detail-grid { grid-template-columns: 1fr; }
    .checks-grid { grid-template-columns: 1fr; }
    .settings-grid { grid-template-columns: 1fr; }
    .vd-cols { grid-template-columns: 1fr; }
    .vd-checks-cols { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .topnav-inner { padding: 0 12px; }
    .topnav-logo-text { display: none; }
    .topnav-logo-ver { display: none; }
    .topnav-user { display: none; }
    .topnav-links a span:not(.topnav-icon) { display: none; }
    .topnav-links a { padding: 8px 10px; }
    .main-full { padding: 16px; }
    .main { margin-left: 0; padding: 16px; }
    .filters { flex-direction: column; }
    .stats-bar { flex-direction: column; }
    .vd-toprow { flex-wrap: wrap; }
}

/* =============================================
   VISIT DETAIL — Reference-matching layout
   ============================================= */

/* Top row mirrors the table */
.vd-toprow {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    font-size: 13px;
    flex-wrap: wrap;
}
.vd-toprow-time { color: var(--text-primary); font-weight: 600; font-size: 14px; }
.vd-toprow-geo  { color: var(--text-secondary); }
.vd-toprow-ip   { font-family: 'JetBrains Mono', monospace; color: var(--accent); font-size: 12px;
                   background: rgba(59,130,246,0.08); padding: 3px 10px; border-radius: 20px; }
.vd-toprow-domain { color: var(--text-primary); }
.vd-toprow-path   { color: var(--text-muted); }
.vd-toprow-source { color: var(--text-secondary); }
.vd-toprow-browser{ color: var(--text-secondary); }

.vd-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 14px; border-radius: 20px;
    font-size: 13px; font-weight: 600;
}
.vd-allow { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.vd-forbid { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); }

/* Two-column main layout */
.vd-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--border);
    border-top: none;
    background: var(--bg-primary);
}
.vd-col-left  { border-right: 1px solid var(--border); }
.vd-col-right { }

/* Section block */
.vd-section {
    border-bottom: 1px solid var(--border);
}
.vd-section:last-child { border-bottom: none; }
.vd-section-full {
    border: 1px solid var(--border);
    border-top: none;
}

.vd-section-title {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.vd-section-body {
    padding: 6px 20px 10px;
}

/* Key-value rows */
.vd-kv {
    display: flex;
    align-items: baseline;
    padding: 5px 0;
    font-size: 13px;
    line-height: 1.5;
    border-bottom: 1px solid rgba(30,45,74,0.3);
}
.vd-kv:last-child { border-bottom: none; }

.vd-k {
    width: 100px;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}
.vd-v {
    color: var(--text-primary);
    word-break: break-all;
    font-size: 13px;
}
.vd-v.vd-url {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--red);
    word-break: break-all;
}
.vd-muted { color: var(--text-muted); }

/* Network badges */
.vd-net-clean {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 1px 8px; border-radius: 4px; font-size: 11px; font-weight: 600;
    background: var(--green-bg); color: var(--green);
}
.vd-net-dirty {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 1px 8px; border-radius: 4px; font-size: 11px; font-weight: 600;
    background: var(--red-bg); color: var(--red);
}

/* GET param tags */
.vd-params-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 0;
}
.vd-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
}
.vd-tag-primary {
    background: rgba(239,68,68,0.12);
    color: #f87171;
}
.vd-tag-muted {
    background: rgba(100,116,139,0.12);
    color: var(--text-secondary);
}

/* User-Agent box */
.vd-ua-box {
    padding: 12px 20px;
    background: var(--bg-input);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-primary);
    word-break: break-all;
    border-bottom: 1px solid var(--border);
}

/* HTTP Headers box */
.vd-headers-box {
    padding: 12px 20px;
    background: var(--bg-input);
    overflow-x: auto;
}
.vd-headers-pre {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    line-height: 1.8;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-all;
}
.vd-hdr-key {
    color: var(--accent);
    font-weight: 600;
}
.vd-hdr-special {
    color: var(--purple);
}

/* Checks two-column grid */
.vd-checks-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 12px 20px 16px;
}
.vd-checks-col { }

.vd-check-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 5px 0;
    font-size: 13px;
    flex-wrap: wrap;
}

/* Check icons */
.vd-ci {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}
.vd-ci-pass { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.vd-ci-fail { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); }
.vd-ci-warn { background: var(--yellow-bg); color: var(--yellow); border: 1px solid rgba(245,158,11,0.3); }

.vd-check-name {
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    flex-shrink: 0;
}
.vd-check-sep {
    color: var(--text-muted);
    margin: 0 2px;
    flex-shrink: 0;
}
.vd-check-val {
    color: var(--text-muted);
    font-size: 12px;
    word-break: break-word;
    white-space: normal;
    line-height: 1.4;
}
.vd-cs {
    font-size: 11px;
    font-weight: 600;
    color: var(--red);
}

/* Response bar */
.vd-response-bar {
    padding: 10px 20px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
}
