:root {
    --bg: #0a0c16;
    --surface: #12162a;
    --surface2: #1c2141;
    --border: #252d55;
    --accent: #6c63ff;
    --accent2: #4ecdc4;
    --safe: #22c55e;
    --risky: #f59e0b;
    --invalid: #ef4444;
    --text: #e8eaf6;
    --text-muted: #8892b0;
    --radius: 16px;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Ad Slots */
.ad-slot {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-header {
    background: #0e1120;
    border-bottom: 1px solid var(--border);
    min-height: 50px;
}

.ad-placeholder {
    color: var(--text-muted);
    font-size: 11px;
    border: 1px dashed var(--border);
    padding: 6px 18px;
    border-radius: 4px;
}

.ad-sidebar {
    display: none;
}

/* Page layout */
.page {
    flex: 1;
    display: flex;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 28px;
}

@media (min-width: 1100px) {
    .ad-sidebar {
        display: flex;
        align-items: flex-start;
        padding-top: 40px;
    }

    .ad-rect {
        min-width: 300px;
        min-height: 250px;
    }

    .ad-rect-inner {
        min-width: 296px;
        min-height: 246px;
    }
}

.content {
    flex: 1;
}

/* Hero */
.hero {
    margin-bottom: 32px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    line-height: 1.15;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-muted);
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.6;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--surface);
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 20px;
    width: fit-content;
}

.tab {
    padding: 8px 20px;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
}

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

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Card */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

/* Single check */
.input-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.email-input {
    flex: 1;
    min-width: 240px;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s;
}

.email-input:focus {
    border-color: var(--accent);
}

.toggle-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 13px;
    user-select: none;
}

.toggle-wrap input {
    display: none;
}

.toggle {
    width: 36px;
    height: 20px;
    background: var(--border);
    border-radius: 99px;
    position: relative;
    transition: background 0.2s;
}

.toggle::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: left 0.2s;
}

.toggle-wrap input:checked+.toggle {
    background: var(--accent);
}

.toggle-wrap input:checked+.toggle::after {
    left: 19px;
}

/* Result */
.result-area {
    margin-top: 20px;
}

.result-area.hidden {
    display: none;
}

.result-card {
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: start;
}

.verdict-pill {
    padding: 6px 16px;
    border-radius: 99px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
}

.v-safe {
    background: rgba(34, 197, 94, .15);
    color: var(--safe);
    border: 1px solid var(--safe);
}

.v-risky {
    background: rgba(245, 158, 11, .15);
    color: var(--risky);
    border: 1px solid var(--risky);
}

.v-invalid {
    background: rgba(239, 68, 68, .15);
    color: var(--invalid);
    border: 1px solid var(--invalid);
}

.result-details {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

.result-details strong {
    color: var(--text);
}

.suggestion {
    color: var(--accent2);
    font-weight: 600;
}

/* Drop zone */
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: 14px;
    padding: 48px 24px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--accent);
    background: rgba(108, 99, 255, .05);
}

.drop-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.drop-text {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.drop-hint {
    color: var(--text-muted);
    font-size: 13px;
    margin: 8px 0;
}

/* Progress */
.progress-wrap {
    margin-top: 20px;
}

.progress-wrap.hidden {
    display: none;
}

.progress-bar-track {
    height: 8px;
    background: var(--surface2);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 8px;
}

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

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

/* Bulk summary */
.bulk-summary {
    margin-top: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.bulk-summary.hidden {
    display: none;
}

.summary-pill {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--border);
}

.s-total {
    border-color: var(--accent);
    color: var(--accent);
}

.s-safe {
    border-color: var(--safe);
    color: var(--safe);
}

.s-risky {
    border-color: var(--risky);
    color: var(--risky);
}

.s-invalid {
    border-color: var(--invalid);
    color: var(--invalid);
}

/* Bulk results table */
#bulk-results.hidden {
    display: none;
}

.bulk-toolbar {
    display: flex;
    gap: 10px;
    margin: 16px 0 10px;
    align-items: center;
}

.search-input {
    flex: 1;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
}

.table-wrap {
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
    border-radius: 10px;
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

thead th {
    background: var(--surface2);
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    position: sticky;
    top: 0;
}

tbody tr {
    border-bottom: 1px solid var(--border);
}

tbody tr:hover {
    background: rgba(255, 255, 255, .03);
}

tbody td {
    padding: 9px 12px;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-safe {
    background: rgba(34, 197, 94, .15);
    color: var(--safe);
}

.badge-risky {
    background: rgba(245, 158, 11, .15);
    color: var(--risky);
}

.badge-invalid {
    background: rgba(239, 68, 68, .15);
    color: var(--invalid);
}

/* Features */
.features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 99px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    color: #fff;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    background: var(--surface2);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 12px;
    border-radius: 8px;
}

.file-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--border);
}

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

.footer a:hover {
    text-decoration: underline;
}