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

:root {
    --bg: #f5f7fa;
    --bg-card: #ffffff;
    --bg-input: #f0f2f5;
    --bg-sidebar: #ffffff;
    --border: #e4e7ec;
    --border-light: #f0f2f5;
    --text: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --accent-light: rgba(79,70,229,0.06);
    --accent-medium: rgba(79,70,229,0.12);
    --success: #059669;
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    --error: #dc2626;
    --error-bg: #fef2f2;
    --error-border: #fecaca;
    --warning: #d97706;
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;
    --info-bg: #eff6ff;
    --info-border: #bfdbfe;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --sidebar-w: 280px;
    --header-h: 56px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════
   LOGIN
   ═══════════════════════════════════════ */
#login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

#login-screen::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79,70,229,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

#login-screen::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16,185,129,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 44px 40px;
    width: 400px;
    text-align: center;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
}

.login-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
}

.login-card h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.login-sub {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 14px;
}

#login-form input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: var(--bg-input);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: all 0.2s var(--ease);
    font-family: inherit;
}

#login-form input:focus {
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

#login-form input::placeholder { color: var(--text-muted); }

#login-form button {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    font-family: inherit;
}

#login-form button:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(79,70,229,0.3);
    transform: translateY(-1px);
}

#login-form button:active {
    transform: translateY(0);
}

.error {
    color: var(--error);
    font-size: 13px;
    margin-top: 10px;
}

/* ═══════════════════════════════════════
   HEADER
   ═══════════════════════════════════════ */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    padding: 0 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo {
    width: 32px;
    height: 32px;
    background: var(--accent);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

header h1 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

#menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 5px 7px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1;
    transition: all 0.15s;
}

#menu-toggle:hover { background: var(--bg-input); }

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

#username-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: var(--bg-input);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

.user-avatar {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: 700;
}

#logout-btn {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

#logout-btn:hover {
    border-color: var(--error);
    color: var(--error);
    background: var(--error-bg);
}

/* ═══════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════ */
.layout {
    display: flex;
    margin-top: var(--header-h);
    min-height: calc(100vh - var(--header-h));
}

/* ═══════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════ */
#sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    height: calc(100vh - var(--header-h));
    position: fixed;
    padding: 14px 12px;
    transition: transform 0.3s var(--ease);
}

#sidebar::-webkit-scrollbar { width: 4px; }
#sidebar::-webkit-scrollbar-track { background: transparent; }
#sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.sidebar-search {
    margin-bottom: 10px;
}

.sidebar-search input {
    width: 100%;
    padding: 8px 12px 8px 32px;
    background: var(--bg-input);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: all 0.15s;
    font-family: inherit;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 10px center;
}

.sidebar-search input:focus {
    border-color: var(--accent);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.08);
}

.sidebar-search input::placeholder { color: var(--text-muted); }

.sidebar-category {
    margin-bottom: 2px;
}

.sidebar-category.hidden { display: none; }

.sidebar-cat-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    background: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}

.sidebar-cat-btn:hover { background: var(--bg-input); }

.sidebar-cat-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-cat-icon svg { width: 15px; height: 15px; }

.cat-dns .sidebar-cat-icon { background: #ede9fe; color: #7c3aed; }
.cat-network .sidebar-cat-icon { background: #dbeafe; color: #2563eb; }
.cat-web .sidebar-cat-icon { background: #d1fae5; color: #059669; }
.cat-email .sidebar-cat-icon { background: #fee2e2; color: #dc2626; }
.cat-utility .sidebar-cat-icon { background: #fef3c7; color: #d97706; }

.sidebar-cat-label {
    flex: 1;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.sidebar-cat-count {
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-input);
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 500;
}

.sidebar-cat-arrow {
    color: var(--text-muted);
    transition: transform 0.2s var(--ease);
    font-size: 10px;
}

.sidebar-category.collapsed .sidebar-cat-arrow {
    transform: rotate(-90deg);
}

.sidebar-tools-list {
    padding: 2px 0 6px;
    overflow: hidden;
    transition: max-height 0.25s var(--ease);
}

.sidebar-category.collapsed .sidebar-tools-list {
    max-height: 0 !important;
    padding: 0;
}

.sidebar-item {
    display: block;
    width: 100%;
    padding: 6px 10px 6px 46px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: all 0.1s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: var(--radius-xs);
    font-weight: 400;
    font-family: inherit;
}

.sidebar-item:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.sidebar-item.active {
    background: var(--accent-medium);
    color: var(--accent);
    font-weight: 600;
}

.sidebar-item.hidden { display: none; }

.sidebar-no-results {
    padding: 20px 16px;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
    display: none;
}

/* ═══════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════ */
main {
    flex: 1;
    margin-left: var(--sidebar-w);
    padding: 28px 36px;
    max-width: 860px;
}

/* Welcome */
.welcome {
    margin-top: 60px;
    text-align: center;
}

.welcome-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-light);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
}

.welcome h2 {
    font-size: 22px;
    margin-bottom: 6px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.welcome p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

.welcome-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.15s;
}

.welcome-badge:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.welcome-shortcut {
    margin-top: 28px;
    font-size: 12px;
    color: var(--text-muted);
}

.welcome-shortcut kbd {
    display: inline-block;
    padding: 2px 6px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Tool area */
.tool-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.tool-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#tool-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.tool-desc {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 2px;
}

/* ═══════════════════════════════════════
   FORM
   ═══════════════════════════════════════ */
#tool-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-xs);
}

.form-group {
    margin-bottom: 14px;
}

.form-group:last-of-type {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 9px 12px;
    background: var(--bg-input);
    border: 1px solid transparent;
    border-radius: var(--radius-xs);
    color: var(--text);
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: all 0.15s;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(79,70,229,0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

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

.form-row .form-group { flex: 1; }

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

.form-check span {
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text);
    font-weight: 500;
}

.btn-run {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-xs);
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    font-family: inherit;
}

.btn-run:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 12px rgba(79,70,229,0.25);
    transform: translateY(-1px);
}

.btn-run:active { transform: translateY(0); }

.btn-run:disabled {
    background: var(--border);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-run.loading {
    position: relative;
    color: transparent;
}

.btn-run.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.5s linear infinite;
}

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

/* ═══════════════════════════════════════
   RESULTS
   ═══════════════════════════════════════ */
#results {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-xs);
    animation: fadeIn 0.2s var(--ease);
}

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

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.results-header h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 700;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

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

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

#results-content {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-all;
}

.result-error {
    color: var(--error);
    padding: 12px 16px;
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
}

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

.result-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
    font-size: 13px;
}

.result-table td:first-child {
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
    width: 1%;
    padding-right: 24px;
}

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

.result-pre {
    background: #1e1e2e;
    border-radius: var(--radius-sm);
    padding: 16px;
    overflow-x: auto;
    white-space: pre;
    font-size: 12px;
    line-height: 1.6;
    color: #cdd6f4;
}

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.badge-error { background: var(--error-bg); color: var(--error); border: 1px solid var(--error-border); }
.badge-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning-border); }
.badge-info { background: var(--info-bg); color: var(--accent); border: 1px solid var(--info-border); }

.grade { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.grade-a { color: var(--success); }
.grade-b { color: #22c55e; }
.grade-c { color: var(--warning); }
.grade-d { color: #ea580c; }
.grade-f { color: var(--error); }

/* ═══════════════════════════════════════
   TOAST
   ═══════════════════════════════════════ */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 10px 18px;
    background: var(--text);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s var(--ease);
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════
   DOMAIN REPORT
   ═══════════════════════════════════════ */
.domain-search-form {
    margin-top: 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.domain-search-wrap {
    display: flex;
    gap: 0;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.domain-search-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(79,70,229,0.08);
}

.domain-search-wrap input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--text);
    outline: none;
    font-family: inherit;
    min-width: 0;
}

.domain-search-wrap input::placeholder { color: var(--text-muted); }

.btn-analyze {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--accent);
    border: none;
    color: white;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    white-space: nowrap;
}

.btn-analyze:hover { background: var(--accent-hover); }

.btn-analyze:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}

.btn-analyze.loading {
    position: relative;
    color: transparent;
}

.btn-analyze.loading svg { visibility: hidden; }

.btn-analyze.loading::after {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    top: 50%; left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.5s linear infinite;
}

/* Report area */
.report-back {
    margin-bottom: 20px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.btn-back:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.report-header {
    margin-bottom: 20px;
}

.report-domain-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.report-summary {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.report-summary-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.report-summary-pass { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.report-summary-fail { background: var(--error-bg); color: var(--error); border: 1px solid var(--error-border); }
.report-summary-warn { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning-border); }

.report-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-inner {
    height: 100%;
    width: 30%;
    background: var(--accent);
    border-radius: 3px;
    animation: progress-pulse 1.5s ease-in-out infinite;
}

@keyframes progress-pulse {
    0% { width: 10%; }
    50% { width: 80%; }
    100% { width: 10%; }
}

.progress-text {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

/* Report sections */
.report-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.report-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg);
}

.report-section-icon {
    width: 28px; height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.report-section-icon svg { width: 14px; height: 14px; }

.report-section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
}

.report-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
}

.report-check:last-child { border-bottom: none; }

.report-check-status {
    width: 22px; height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
    margin-top: 1px;
}

.report-check-status.pass { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.report-check-status.fail { background: var(--error-bg); color: var(--error); border: 1px solid var(--error-border); }
.report-check-status.warning { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning-border); }

.report-check-body { flex: 1; min-width: 0; }

.report-check-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.report-check-value {
    font-size: 12px;
    color: var(--text-secondary);
    word-break: break-all;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.report-check-detail {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ═══════════════════════════════════════
   MOBILE OVERLAY
   ═══════════════════════════════════════ */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(2px);
    z-index: 49;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
    #menu-toggle { display: block; }

    #sidebar {
        position: fixed;
        z-index: 50;
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
        width: 280px;
    }

    #sidebar.open { transform: translateX(0); }
    .sidebar-overlay.open { display: block; }

    main {
        margin-left: 0;
        padding: 20px 16px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .login-card {
        width: 92vw;
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    header h1 { font-size: 14px; }
    #username-display { display: none; }
    main { padding: 16px 12px; }
}
