/* ═══════════════════════════════════════════════════
   AI Phishing Detector — Main Stylesheet
   3 Colors: #1E2761 (Indigo) | #E84855 (Crimson) | #EEF2FF (Periwinkle)
═══════════════════════════════════════════════════ */

:root {
    --primary: #1E2761;
    --accent: #E84855;
    --bg: #EEF2FF;
    --surface: #FFFFFF;
    --text: #1a2035;
    --text-light: #64748b;
    --border: #dde4f5;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #E84855;
    --sidebar-w: 240px;

    /* Legacy aliases kept for templates */
    --primary-color: #1E2761;
    --secondary-color: #E84855;
    --success-color: #22c55e;
    --danger-color: #E84855;
    --warning-color: #f59e0b;
    --dark: #1a2035;
    --light: #EEF2FF;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ══════════════════════════════════════════════════
   LEFT SIDEBAR NAVIGATION
══════════════════════════════════════════════════ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 2px 0 12px rgba(30, 39, 97, 0.08);
    /* Appear/disappear — no slide */
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 18px 16px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--primary);
    flex-shrink: 0;
}

.sidebar-brand .logo {
    font-size: 1.7rem;
}

.sidebar-brand .brand-name {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--primary);
}

.sidebar-nav {
    flex: 1;
    padding: 12px 0;
}

.nav-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    padding: 16px 18px 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 18px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    position: relative;
}

.sidebar-link:hover {
    color: var(--primary);
    background: rgba(30, 39, 97, 0.05);
    border-left-color: var(--primary);
}

.sidebar-link.active {
    color: var(--primary);
    background: rgba(30, 39, 97, 0.08);
    border-left-color: var(--primary);
    font-weight: 600;
}

.sidebar-link.highlight {
    margin: 10px 14px;
    padding: 10px 14px;
    background: var(--accent);
    color: white !important;
    border-radius: 8px;
    border-left: none;
    justify-content: center;
    font-weight: 600;
}

.sidebar-link.highlight:hover {
    background: #cf3844;
    border-left: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 72, 85, 0.35);
}

.sidebar-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 8px 18px;
}

.sidebar-user {
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.user-badge-small {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(30, 39, 97, 0.06);
    border-radius: 8px;
    margin-bottom: 8px;
}

.user-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.user-name-sm {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
}

.logout-btn {
    display: block;
    padding: 7px 12px;
    background: #fff5f5;
    color: var(--accent);
    border: 1px solid #fecdd3;
    border-radius: 7px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
}

.logout-btn:hover {
    background: var(--accent);
    color: white;
}

/* Mobile toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1100;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(30, 39, 97, 0.25);
}

.sidebar-overlay {
    /* Mobile state managed by .sidebar-overlay.open inside @media block */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 999;
    display: block;
    /* always in DOM, visibility toggled */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

/* Main content offset */
.page-wrapper {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Auth pages (Get Started, Login) — Remove navigation UI */
body.page-auth .sidebar,
body.page-auth .sidebar-toggle,
body.page-auth .sidebar-overlay,
body.page-auth .settings-panel,
body.page-auth .settings-overlay,
body.page-auth .modal-overlay {
    display: none !important;
}

body.page-auth .page-wrapper {
    margin-left: 0 !important;
}

main {
    flex: 1;
}

/* ══════════════════════════════════════════════════
   CONTAINER
══════════════════════════════════════════════════ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ══════════════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════════════ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, #2d3b8e 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    position: relative;
}

.hero h2 {
    position: relative;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ══════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════ */
.btn {
    padding: 0.85rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 14px rgba(232, 72, 85, 0.35);
}

.btn-primary:hover {
    background: #cf3844;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 72, 85, 0.45);
    color: white;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: white;
}

.btn-secondary {
    background: rgba(30, 39, 97, 0.1);
    color: var(--primary);
    border: 2px solid rgba(30, 39, 97, 0.2);
}

.btn-secondary:hover {
    background: rgba(30, 39, 97, 0.15);
}

/* ══════════════════════════════════════════════════
   FEATURES SECTION
══════════════════════════════════════════════════ */
.features {
    padding: 5rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.3rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.section-title p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(30, 39, 97, 0.07);
    transition: all 0.25s;
    position: relative;
    color: var(--text);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(30, 39, 97, 0.14);
    border-color: rgba(30, 39, 97, 0.25);
}

.feature-card::before {
    display: none;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    color: var(--primary);
    position: relative;
}

.feature-card h4 {
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-light);
    position: relative;
}

.features h2,
.features p,
.features .feature-card h3,
.features .feature-card p {
    color: inherit !important;
}

/* ══════════════════════════════════════════════════
   STATS SECTION
══════════════════════════════════════════════════ */
.stats {
    background: linear-gradient(135deg, var(--primary) 0%, #2d3b8e 100%);
    color: white;
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.8rem;
    margin-bottom: 0.4rem;
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.88;
}

/* ══════════════════════════════════════════════════
   FLASH MESSAGES
══════════════════════════════════════════════════ */
.flash-messages {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 2rem;
}

.flash-message {
    padding: 13px 18px;
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease-out;
}

.flash-message.info {
    background: #dbeafe;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.flash-message.success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.flash-message.error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* ══════════════════════════════════════════════════
   USER SECTION (in sidebar)
══════════════════════════════════════════════════ */
.user-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-badge {
    background: linear-gradient(135deg, var(--primary), #2d3b8e);
    padding: 7px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    color: white;
    font-weight: 600;
    gap: 8px;
    font-size: 0.85rem;
}

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

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.footer {
    background: var(--primary);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    max-width: 50px;
    /* Adjust this to fit your logo's aspect ratio */
    height: auto;
    margin-bottom: 1rem;
    border-radius: 4px;
    /* Optional: if your logo looks good with soft corners */
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #a8b9ff;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.4rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #a8b9ff;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.65;
    font-size: 0.88rem;
}

/* ══════════════════════════════════════════════════
   ANIMATIONS (GLOBAL)
══════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.55s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scan page pulse badge */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Example card hover */
.example-card:hover {
    border-color: var(--primary) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(30, 39, 97, 0.18) !important;
}

/* ══════════════════════════════════════════════════
   ANALYTICS PAGE
══════════════════════════════════════════════════ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

canvas {
    transition: opacity 0.3s ease;
}

#activityFeed::-webkit-scrollbar,
#recentActivity::-webkit-scrollbar {
    width: 7px;
}

#activityFeed::-webkit-scrollbar-track,
#recentActivity::-webkit-scrollbar-track {
    background: var(--bg);
    border-radius: 4px;
}

#activityFeed::-webkit-scrollbar-thumb,
#recentActivity::-webkit-scrollbar-thumb {
    background: #c4cde8;
    border-radius: 4px;
}

#activityFeed::-webkit-scrollbar-thumb:hover,
#recentActivity::-webkit-scrollbar-thumb:hover {
    background: #9ba8d4;
}

/* ══════════════════════════════════════════════════
   REPORTS / DASHBOARD PAGE
══════════════════════════════════════════════════ */
@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.3);
    }
}

@keyframes feedIn {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes flash {
    0% {
        background: rgba(30, 39, 97, 0.1);
    }

    100% {
        background: transparent;
    }
}

.feed-new {
    animation: feedIn 0.3s ease, flash 1.4s ease 0.3s;
}

/* ══════════════════════════════════════════════════
   EMAIL ANALYZER PAGE
══════════════════════════════════════════════════ */
.feature-card::before {
    pointer-events: none;
}

.feature-card h3,
.feature-card p {
    position: relative;
    z-index: 2;
}

.analyzer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.analyzer-input {
    width: 100%;
    min-height: 200px;
    background: rgba(30, 39, 97, 0.06);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.analyzer-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 39, 97, 0.12);
}

.analyzer-input::placeholder {
    color: var(--text-light);
}

.risk-banner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.risk-score-display {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.risk-level-title {
    font-size: 1.4rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.risk-bar-container {
    flex-grow: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.risk-bar {
    height: 100%;
    transition: width 1s ease-out;
}

.finding-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

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

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

.finding-text {
    color: var(--text);
}

.parsed-headers {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.header-row {
    display: flex;
    padding: 0.5rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
    border-bottom: 1px dashed var(--border);
}

.header-key {
    color: var(--primary);
    width: 200px;
    flex-shrink: 0;
    font-weight: bold;
}

.header-val {
    color: var(--text);
    word-break: break-all;
}

/* ══════════════════════════════════════════════════
   GET STARTED / AUTH PAGE
══════════════════════════════════════════════════ */
body.page-auth {
    background: #050914;
}

body.page-auth .sidebar,
body.page-auth .footer {
    display: none;
}

body.page-auth .page-wrapper {
    margin-left: 0;
}

.access-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding-top: 20px;
}

.gsnew-wrap {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    /* creates clean separation instead of line */
}



.terminal {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(30, 39, 97, 0.4), 0 0 80px rgba(30, 39, 97, 0.2);
    max-width: 500px;
    width: 100%;
    overflow: hidden;
    animation: fadeIn 0.9s ease-out;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 8px 32px rgba(232, 72, 85, 0.15);
    }

    50% {
        box-shadow: 0 8px 32px rgba(232, 72, 85, 0.35), 0 0 100px rgba(232, 72, 85, 0.2);
    }

    100% {
        box-shadow: 0 8px 32px rgba(232, 72, 85, 0.15);
    }
}

.terminal-header {
    background: linear-gradient(135deg, var(--primary) 0%, #2d3b8e 100%);
    color: white;
    padding: 24px;
    text-align: center;
}

.terminal-header h1 {
    font-size: 26px;
    margin-bottom: 5px;
    color: white;
}

.terminal-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.terminal-body {
    padding: 28px;
}

.stats-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-mini {
    text-align: center;
    padding: 12px 8px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-mini h3 {
    font-size: 1.3rem;
    color: #a8b9ff;
    margin-bottom: 3px;
}

.stat-mini p {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.6);
}

.features-highlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.feature-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid rgba(168, 185, 255, 0.5);
    transition: all 0.25s;
}

.feature-mini:hover {
    background: rgba(255, 255, 255, 0.09);
    transform: translateX(4px);
}

.feature-mini span {
    font-size: 1.1rem;
}

.feature-mini p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.feature-mini strong {
    color: #a8b9ff;
}

.message {
    padding: 11px;
    margin-bottom: 18px;
    border-radius: 8px;
    font-size: 0.88rem;
    text-align: center;
    display: none;
}

.message.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

.message.success {
    background: #dcfce7;
    border: 2px solid #22c55e;
    color: #166534;
}

.message.error {
    background: #fee2e2;
    border: 2px solid #ef4444;
    color: #991b1b;
}

.loading {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.loading.show {
    display: block;
}

.spinner {
    border: 3px solid rgba(30, 39, 97, 0.15);
    border-top: 3px solid #a8b9ff;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    animation: spin 0.9s linear infinite;
    margin: 0 auto;
}

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

.terminal-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.terminal-footer p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 5px 0;
}

.terminal-footer a {
    color: #a8b9ff;
    text-decoration: none;
    font-weight: 600;
}

.terminal-footer a:hover {
    color: #c4d0ff;
    text-decoration: underline;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — SIDEBAR
══════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .sidebar {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .sidebar.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    }

    .sidebar-overlay {
        display: block;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.18s ease, visibility 0.18s ease;
    }

    .sidebar-overlay.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .sidebar-toggle {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .page-wrapper {
        margin-left: 0;
        padding-top: 58px;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .features-grid,
    .stats-grid,
    .footer-grid,
    .features-highlight,
    .analyzer-grid,
    .details-grid,
    .summary-bar,
    [style*="grid-template-columns:repeat(auto-fit,minmax(440px"],
    [style*="grid-template-columns: repeat(auto-fit,minmax(440px"],
    [style*="grid-template-columns:repeat(auto-fit, minmax(440px"],
    [style*="grid-template-columns: repeat(auto-fit, minmax(440px"],
    [style*="grid-template-columns:repeat(auto-fit,minmax(320px"],
    [style*="grid-template-columns: repeat(auto-fit,minmax(320px"],
    [style*="grid-template-columns:repeat(auto-fit, minmax(320px"],
    [style*="grid-template-columns: repeat(auto-fit, minmax(320px"] {
        grid-template-columns: 1fr !important;
    }

    .feature-card,
    .input-card,
    .result-card,
    .batch-results-card,
    .cluster-card {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero {
        padding: 3.25rem 0;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.15;
        overflow-wrap: anywhere;
    }

    .hero p,
    .section-title p {
        font-size: 0.95rem;
    }

    .features {
        padding: 2.5rem 0;
    }

    .section-title {
        margin-bottom: 1.75rem;
    }

    .section-title h2 {
        font-size: 1.65rem;
        line-height: 1.2;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .btn,
    button,
    input,
    textarea,
    select {
        max-width: 100%;
    }

    .hero-cta,
    .drawer-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn,
    .drawer-link-btn {
        width: 100%;
        text-align: center;
    }

    table,
    pre,
    code,
    textarea,
    input {
        max-width: 100%;
    }

    pre,
    .batch-table-wrap,
    .phish-email-box,
    .terminal-results {
        overflow-x: auto;
    }

    .features-highlight {
        grid-template-columns: 1fr;
    }

    .analyzer-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════
   SIDEBAR COLLAPSE (DESKTOP)
═══════════════════════════════════════════════════ */
:root {
    --sidebar-collapsed-w: 60px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 12px 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
    flex: 1;
    min-width: 0;
    padding: 4px 6px;
}

.sidebar-brand .logo {
    font-size: 1.7rem;
    flex-shrink: 0;
}

.sidebar-brand .brand-name {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--primary);
    overflow: hidden;
}

.sidebar-collapse-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.1rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.sidebar-collapse-btn:hover {
    background: var(--bg);
    color: var(--primary);
}

.collapse-icon {
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Collapsed state */
.sidebar.collapsed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Page offset changes on collapse — instant, no slide */
body.sidebar-is-collapsed .page-wrapper {
    margin-left: 0;
}

/* ── Sidebar reveal button (visible only when sidebar is collapsed) ── */
#sidebarRevealBtn {
    display: none;
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    width: 22px;
    height: 56px;
    cursor: pointer;
    font-size: 0.85rem;
    box-shadow: 3px 0 12px rgba(30, 39, 97, 0.3);
    transition: width 0.18s ease, background 0.15s;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#sidebarRevealBtn:hover {
    width: 30px;
    background: #263492;
}

body.sidebar-is-collapsed #sidebarRevealBtn {
    display: flex;
}

/* Quick buttons */
.sidebar-quick-btns {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.quick-btn {
    flex: 1;
    min-width: 32px;
    height: 32px;
    background: rgba(30, 39, 97, 0.06);
    border: 1px solid var(--border);
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text);
}

.quick-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ═══════════════════════════════════════════════════
   ACCOUNT BUTTON + DROPDOWN
═══════════════════════════════════════════════════ */
.account-btn-wrap {
    position: relative;
}

.account-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(30, 39, 97, 0.06);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    min-height: 44px;
}

.account-btn:hover {
    background: rgba(30, 39, 97, 0.1);
    border-color: rgba(30, 39, 97, 0.2);
}

.account-btn-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.account-btn-name {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-btn-email {
    display: block;
    font-size: 0.7rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-btn-arrow {
    color: var(--text-light);
    font-size: 1rem;
    transition: transform 0.2s;
}

.account-btn.open .account-btn-arrow {
    transform: rotate(90deg);
}

.account-dropdown {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 -8px 32px rgba(30, 39, 97, 0.16);
    z-index: 2000;
    display: none;
    overflow: hidden;
    min-width: 220px;
}

.account-dropdown.open {
    display: block;
}

.account-dropdown-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 10px;
}

.user-avatar-lg {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #4a5dbd);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.account-full-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
}

.account-full-email {
    font-size: 0.73rem;
    color: var(--text-light);
}

.dropdown-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 4px 0;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 9px 14px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 0.84rem;
    color: var(--text);
    transition: background 0.15s;
}

.dropdown-item:hover {
    background: var(--bg);
}

.dropdown-item.danger {
    color: var(--accent);
}

.dropdown-item.danger:hover {
    background: #fff5f5;
}

/* ═══════════════════════════════════════════════════
   SETTINGS PANEL
═══════════════════════════════════════════════════ */
.settings-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 3000;
}

.settings-overlay.open {
    display: block;
}

.settings-panel {
    position: fixed;
    top: 0;
    right: -480px;
    width: 460px;
    max-width: 95vw;
    height: 100vh;
    background: var(--surface);
    box-shadow: -8px 0 40px rgba(30, 39, 97, 0.18);
    z-index: 3100;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    /* Prevent horizontal overflow on mobile when closed */
    visibility: hidden;
    pointer-events: none;
}

.settings-panel.open {
    right: 0;
    visibility: visible;
    pointer-events: auto;
}

.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.settings-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.settings-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-light);
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

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

.settings-tabs {
    display: flex;
    gap: 2px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.settings-tabs::-webkit-scrollbar {
    display: none;
}

.stab {
    padding: 6px 10px;
    background: none;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    transition: all 0.2s;
}

.stab:hover {
    background: var(--bg);
    color: var(--text);
}

.stab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.stab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.stab-content.active {
    display: block;
}

.settings-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.settings-desc {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.settings-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.settings-form-row {
    margin-bottom: 12px;
}

.settings-form-row label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
}

.settings-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color 0.2s;
}

.settings-input:focus {
    outline: none;
    border-color: var(--primary);
}

.settings-select {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text);
    background: var(--surface);
    cursor: pointer;
}

.settings-select:focus {
    outline: none;
    border-color: var(--primary);
}

.settings-textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text);
    background: var(--surface);
    min-height: 100px;
    resize: vertical;
    margin-bottom: 10px;
}

.settings-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.settings-btn-primary {
    padding: 9px 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    margin-top: 10px;
}

.settings-btn-primary:hover {
    background: #263492;
    transform: translateY(-1px);
}

.settings-btn-secondary {
    display: block;
    padding: 9px 18px;
    background: var(--bg);
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    width: 100%;
    text-align: left;
}

.settings-btn-secondary:hover {
    background: var(--border);
}

.settings-btn-danger {
    padding: 9px 18px;
    background: #fff5f5;
    color: var(--accent);
    border: 1.5px solid #fecdd3;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.2s;
    margin-top: 8px;
}

.settings-btn-danger:hover {
    background: var(--accent);
    color: white;
}

/* Toggle switches */
.settings-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    gap: 12px;
}

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

.toggle-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text);
}

.toggle-desc {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 2px;
}

.toggle-switch {
    position: relative;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-track {
    display: block;
    width: 42px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked+.toggle-track {
    background: var(--primary);
}

.toggle-switch input:checked+.toggle-track::after {
    transform: translateX(18px);
}

/* Theme options */
.theme-options {
    display: flex;
    gap: 8px;
}

.theme-opt {
    flex: 1;
    padding: 10px 8px;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.2s;
}

.theme-icon {
    font-size: 1.3rem;
}

.theme-opt:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.theme-opt.active {
    border-color: var(--primary);
    background: rgba(30, 39, 97, 0.07);
    color: var(--primary);
}

/* Font options */
.font-options {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.font-opt {
    padding: 6px 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    background: var(--surface);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.2s;
}

.font-opt:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.font-opt.active {
    border-color: var(--primary);
    background: rgba(30, 39, 97, 0.07);
    color: var(--primary);
}

/* Session card */
.session-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg);
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-bottom: 8px;
}

.session-card.current {
    border-color: var(--success);
    background: rgba(34, 197, 94, 0.06);
}

.session-device {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text);
}

.session-meta {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 2px;
}

.session-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--success);
    background: rgba(34, 197, 94, 0.12);
    padding: 3px 9px;
    border-radius: 20px;
}

/* Danger zone */
.danger-zone {
    background: rgba(232, 72, 85, 0.04);
    border-radius: 12px;
    padding: 16px;
    border: 1px dashed rgba(232, 72, 85, 0.3);
    border-bottom: 1px dashed rgba(232, 72, 85, 0.3) !important;
}

/* Plan card */
.plan-card-current {
    background: linear-gradient(135deg, rgba(30, 39, 97, 0.08), rgba(30, 39, 97, 0.04));
    border: 2px solid rgba(30, 39, 97, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
}

.plan-current-badge {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.plan-feature-item {
    font-size: 0.82rem;
    color: var(--text);
    padding: 3px 0;
}

/* Help links */
.help-links {
    display: flex;
    gap: 8px;
    flex-direction: column;
}

.help-link-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}

.help-link-card:hover {
    border-color: var(--primary);
    background: rgba(30, 39, 97, 0.05);
    color: var(--primary);
}

/* Learn cards */
.learn-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.learn-card {
    padding: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.learn-card-icon {
    font-size: 1.5rem;
    margin-bottom: 6px;
}

.learn-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.learn-card p {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.learn-card-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

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

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

.modal-box {
    background: var(--surface);
    border-radius: 16px;
    padding: 28px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.modal-box h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 12px;
}

.modal-box p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.modal-box .settings-input {
    margin-top: 14px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 18px;
}

/* ═══════════════════════════════════════════════════
   DARK MODE
═══════════════════════════════════════════════════ */
[data-theme="dark"] {
    --bg: #0f1117;
    --surface: #1a1d27;
    --text: #e2e8f0;
    --text-light: #94a3b8;
    --border: #2d3348;
    --primary: #7c8ff0;
}

[data-theme="dark"] body {
    background: var(--bg);
    color: var(--text);
}

[data-theme="dark"] .sidebar {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .settings-panel {
    background: var(--surface);
}

[data-theme="dark"] .account-dropdown {
    background: var(--surface);
}

[data-theme="dark"] .modal-box {
    background: var(--surface);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0d1036 0%, #1a1d4a 100%);
}

/* PAGE CONTENT CARDS — fix white bg in all pages */
.page-card {
    background: var(--surface);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    color: var(--text);
}

[data-theme="dark"] .page-card {
    background: var(--surface);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .page-card h2,
[data-theme="dark"] .page-card h3,
[data-theme="dark"] .page-card h4 {
    color: var(--text);
}

/* Content section background inside pages */
[data-theme="dark"] section .inner-white-box,
[data-theme="dark"] section [style*="background: white"],
[data-theme="dark"] section [style*="background:white"],
[data-theme="dark"] .feature-card {
    background: var(--surface) !important;
}

[data-theme="dark"] .feature-card {
    border-color: var(--border);
}

[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .feature-card h4 {
    color: var(--text) !important;
}

[data-theme="dark"] .feature-card p,
[data-theme="dark"] .feature-card li {
    color: var(--text-light) !important;
}

/* Status cards & metric boxes */
[data-theme="dark"] .status-card,
[data-theme="dark"] .metric-box {
    background: var(--surface) !important;
    border-color: var(--border) !important;
}

[data-theme="dark"] .status-card h4,
[data-theme="dark"] .metric-box div {
    color: var(--text) !important;
}

/* Trust/info boxes with #f7fafc / #f8f9fa backgrounds */
[data-theme="dark"] [style*="background: #f7fafc"],
[data-theme="dark"] [style*="background: #f8f9fa"],
[data-theme="dark"] [style*="background:#f7fafc"],
[data-theme="dark"] [style*="background:#f8f9fa"] {
    background: var(--surface) !important;
}

[data-theme="dark"] [style*="border-left: 4px solid"][style*="#f7fafc"],
[data-theme="dark"] [style*="border-left: 4px solid"][style*="#f8f9fa"] {
    background: var(--surface) !important;
}

/* Generic bg: var(--bg) adapts automatically */
[data-theme="dark"] .features {
    background: var(--bg) !important;
}

[data-theme="dark"] section.features {
    color: var(--text);
}

/* Footer */
[data-theme="dark"] .footer {
    background: linear-gradient(135deg, #060810 0%, #0d1036 100%);
}

[data-theme="dark"] .footer p,
[data-theme="dark"] .footer li a,
[data-theme="dark"] .footer h3,
[data-theme="dark"] .footer h4 {
    color: rgba(255, 255, 255, 0.75) !important;
}

[data-theme="dark"] .footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
}

/* Contact / rate limits info boxes */
[data-theme="dark"] [style*="background: #fef5e7"],
[data-theme="dark"] [style*="background:#fef5e7"] {
    background: rgba(245, 158, 11, 0.1) !important;
}

[data-theme="dark"] [style*="color: #7c2d12"] {
    color: var(--text) !important;
}

[data-theme="dark"] [style*="color: #7c2d12"] td {
    color: var(--text-light) !important;
}

/* Feature cards in dark — Technical Features section with white bg */
[data-theme="dark"] section[style*="background: white"] {
    background: var(--surface) !important;
}

[data-theme="dark"] section[style*="background:white"] {
    background: var(--surface) !important;
}

/* ═══════════════════════════════════════════════════
   STATUS PAGE — transferred from status.html
═══════════════════════════════════════════════════ */
.fade-in {
    animation: fadeIn 0.9s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.8s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pulse {
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0px rgba(72, 187, 120, 0.3);
    }

    50% {
        box-shadow: 0 0 12px rgba(72, 187, 120, 0.6);
    }

    100% {
        box-shadow: 0 0 0px rgba(72, 187, 120, 0.3);
    }
}

.status-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.status-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.metric-box {
    transition: transform 0.3s ease;
}

.metric-box:hover {
    transform: translateY(-5px);
}

/* ═══════════════════════════════════════════════════
   SCAM DETECTOR PAGE — transferred from scam_detector.html
═══════════════════════════════════════════════════ */
.feature-card::before {
    pointer-events: none;
}

.feature-card h3,
.feature-card p {
    position: relative;
    z-index: 2;
}

.analyzer-input {
    width: 100%;
    min-height: 250px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
    outline: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
    position: relative;
    z-index: 2;
}

.analyzer-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}

.analyzer-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.risk-banner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.risk-score-display {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.risk-level-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.risk-bar-container {
    flex-grow: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.risk-bar {
    height: 100%;
    transition: width 1s ease-out;
}

.finding-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.finding-text {
    color: var(--text);
    /* ← Use variable instead of hardcoded white */
}

.tool-selector {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.tool-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.tool-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.sample-messages {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sample-messages h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.sample-msg {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sample-msg:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--primary-color);
}

/* ═══════════════════════════════════════════════════
   BILLING / PRICING PAGE
═══════════════════════════════════════════════════ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(30, 39, 97, 0.12);
}

.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(30, 39, 97, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 18px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1rem 0 0.25rem;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
}

.pricing-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: '✓ ';
    color: var(--success);
    font-weight: 700;
}

.pricing-features li.no::before {
    content: '✗ ';
    color: var(--text-light);
}

.pricing-cta {
    display: block;
    width: 100%;
    padding: 13px;
    text-align: center;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    margin-top: 1rem;
}

.pricing-cta-primary {
    background: var(--primary);
    color: white;
}

.pricing-cta-primary:hover {
    background: #263492;
    transform: translateY(-1px);
    color: white;
}

.pricing-cta-secondary {
    background: var(--bg);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.pricing-cta-secondary:hover {
    background: rgba(30, 39, 97, 0.08);
}

[data-theme="dark"] .pricing-card {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] .pricing-cta-secondary {
    background: var(--surface);
}

/* ═══════════════════════════════════════════════════
   LANGUAGE OVERLAY FEEDBACK
═══════════════════════════════════════════════════ */
.lang-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lang-toast.show {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════
   FONT THEMES  — apply to body (not just :root / html)
═══════════════════════════════════════════════════ */
[data-font="inter"],
[data-font="inter"] body {
    font-family: 'Inter', 'Segoe UI', sans-serif !important;
}

[data-font="mono"],
[data-font="mono"] body {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace !important;
}

[data-font="serif"],
[data-font="serif"] body {
    font-family: 'Georgia', 'Times New Roman', serif !important;
}

[data-font="rounded"],
[data-font="rounded"] body {
    font-family: 'Nunito', 'Comic Sans MS', cursive, sans-serif !important;
}

/* Load Inter via Google Fonts dynamically in JS */

/* ═══════════════════════════════════════════════════
   RESPONSIVE UPDATES
═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .settings-panel {
        width: 100%;
        max-width: 100%;
    }

    .sidebar-collapse-btn {
        display: none;
    }
}

@media (max-width: 480px) {
    .theme-options {
        flex-direction: column;
    }

    .settings-tabs {
        gap: 4px;
    }

    .stab {
        padding: 5px 7px;
        font-size: 0.72rem;
    }
}

/* ═══════════════════════════════════════════════════
   COMPREHENSIVE DARK MODE OVERRIDES — v2
   Covering: batch_checker, scan, home, extension,
   documentation, about, contact, email_analyzer,
   scam_detector
═══════════════════════════════════════════════════ */

/* ── Hard-coded text colors ── */
[data-theme="dark"] [style*="color: #2d3748"],
[data-theme="dark"] [style*="color:#2d3748"] {
    color: var(--text) !important;
}

[data-theme="dark"] [style*="color: #718096"],
[data-theme="dark"] [style*="color:#718096"] {
    color: var(--text-light) !important;
}

[data-theme="dark"] [style*="color: #4a5568"],
[data-theme="dark"] [style*="color:#4a5568"] {
    color: var(--text-light) !important;
}

[data-theme="dark"] [style*="color: #742a2a"],
[data-theme="dark"] [style*="color:#742a2a"] {
    color: rgba(252, 129, 129, .9) !important;
}

[data-theme="dark"] [style*="color: #991b1b"],
[data-theme="dark"] [style*="color:#991b1b"] {
    color: #fc8181 !important;
}

[data-theme="dark"] [style*="color: #7f1d1d"],
[data-theme="dark"] [style*="color:#7f1d1d"] {
    color: #fc8181 !important;
}

[data-theme="dark"] [style*="color: #155724"],
[data-theme="dark"] [style*="color:#155724"] {
    color: #68d391 !important;
}

[data-theme="dark"] [style*="color: #721c24"],
[data-theme="dark"] [style*="color:#721c24"] {
    color: #fc8181 !important;
}

[data-theme="dark"] [style*="color: #c53030"],
[data-theme="dark"] [style*="color:#c53030"] {
    color: var(--accent) !important;
}

[data-theme="dark"] [style*="color: var(--dark)"],
[data-theme="dark"] [style*="color:var(--dark)"] {
    color: var(--text) !important;
}

[data-theme="dark"] [style*="color: var(--primary-color)"],
[data-theme="dark"] [style*="color:var(--primary-color)"] {
    color: var(--primary) !important;
}

/* ── Hard-coded white / light backgrounds ── */
[data-theme="dark"] [style*="background: white"],
[data-theme="dark"] [style*="background:white"] {
    background: var(--surface) !important;
}

[data-theme="dark"] [style*="background: #fff"],
[data-theme="dark"] [style*="background:#fff"] {
    background: var(--surface) !important;
}

[data-theme="dark"] [style*="background: #fff5f5"],
[data-theme="dark"] [style*="background:#fff5f5"] {
    background: rgba(232, 72, 85, .1) !important;
}

[data-theme="dark"] [style*="background: #fef5e7"],
[data-theme="dark"] [style*="background:#fef5e7"] {
    background: rgba(245, 158, 11, .1) !important;
}

[data-theme="dark"] [style*="background: #fffaf0"],
[data-theme="dark"] [style*="background:#fffaf0"] {
    background: rgba(245, 158, 11, .08) !important;
}

[data-theme="dark"] [style*="background: #f0fff4"],
[data-theme="dark"] [style*="background:#f0fff4"] {
    background: rgba(34, 197, 94, .08) !important;
}

[data-theme="dark"] [style*="background: #d4edda"],
[data-theme="dark"] [style*="background:#d4edda"] {
    background: rgba(34, 197, 94, .12) !important;
}

[data-theme="dark"] [style*="background: #f8d7da"],
[data-theme="dark"] [style*="background:#f8d7da"] {
    background: rgba(232, 72, 85, .12) !important;
}

[data-theme="dark"] [style*="background:#fecaca"] {
    background: rgba(232, 72, 85, .2) !important;
}

[data-theme="dark"] [style*="background:#fed7aa"],
[data-theme="dark"] [style*="background: #fed7aa"] {
    background: rgba(245, 158, 11, .2) !important;
}

[data-theme="dark"] [style*="background:#fef08a"],
[data-theme="dark"] [style*="background: #fef08a"] {
    background: rgba(234, 179, 8, .2) !important;
}

[data-theme="dark"] [style*="color: #7c2d12"],
[data-theme="dark"] [style*="color:#7c2d12"] {
    color: #f97316 !important;
}

[data-theme="dark"] [style*="color: #713f12"],
[data-theme="dark"] [style*="color:#713f12"] {
    color: #eab308 !important;
}

[data-theme="dark"] [style*="color: #c3e6cb"] {
    color: var(--border) !important;
}

[data-theme="dark"] [style*="background: #edf2f7"],
[data-theme="dark"] [style*="background:#edf2f7"],
[data-theme="dark"] [style*="background: #e6f7ff"],
[data-theme="dark"] [style*="background:#e6f7ff"] {
    background: rgba(124, 143, 240, .12) !important;
}

/* ── form elements ── */
[data-theme="dark"] textarea[style],
[data-theme="dark"] input[type="text"][style],
[data-theme="dark"] input[type="email"][style],
[data-theme="dark"] select[style] {
    background: var(--surface) !important;
    color: var(--text) !important;
}

[data-theme="dark"] textarea:not(.analyzer-input),
[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]) {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

[data-theme="dark"] select {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

/* ── Batch checker specific ── */
[data-theme="dark"] #dropZone {
    background: var(--bg) !important;
    color: var(--text) !important;
}

[data-theme="dark"] #dropZone:hover {
    background: rgba(124, 143, 240, .1) !important;
}

[data-theme="dark"] #dropZone.dragover {
    background: rgba(124, 143, 240, .15) !important;
}

[data-theme="dark"] #validationErrors {
    background: rgba(232, 72, 85, .1) !important;
    border-color: var(--accent) !important;
    color: #fc8181 !important;
}

[data-theme="dark"] .result-phishing {
    background: rgba(252, 129, 129, .1) !important;
}

[data-theme="dark"] .result-legitimate {
    background: rgba(104, 211, 145, .1) !important;
}

[data-theme="dark"] .result-error {
    background: rgba(251, 211, 141, .1) !important;
}

[data-theme="dark"] .result-pending {
    background: rgba(99, 179, 237, .1) !important;
}

/* ── Scan results ── */
[data-theme="dark"] .scan-intel-box {
    background: var(--surface) !important;
}

[data-theme="dark"] pre code {
    color: var(--text) !important;
}

[data-theme="dark"] pre {
    background: var(--bg) !important;
    color: var(--text) !important;
}

[data-theme="dark"] details>pre {
    background: rgba(0, 0, 0, .3) !important;
}

/* ── Scam detector / email analyzer ── */
[data-theme="dark"] .finding-text {
    color: var(--text) !important;
}

[data-theme="dark"] .risk-bar-container {
    background: var(--border) !important;
}

[data-theme="dark"] .analyzer-input {
    background: rgba(30, 39, 97, .15) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

[data-theme="dark"] .analyzer-input::placeholder {
    color: var(--text-light) !important;
}

/* Tool selector buttons (scam_detector/email_analyzer) */
[data-theme="dark"] .tool-btn {
    border-color: var(--border);
    background: var(--surface);
    color: var(--text-light);
}

[data-theme="dark"] .tool-btn:hover {
    background: var(--bg);
    color: var(--text);
}

[data-theme="dark"] .tool-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

[data-theme="dark"] .sample-messages {
    background: rgba(30, 39, 97, .2) !important;
    border-color: var(--border) !important;
}

[data-theme="dark"] .sample-msg {
    background: rgba(255, 255, 255, .04) !important;
}

[data-theme="dark"] .sample-msg:hover {
    background: rgba(255, 255, 255, .08) !important;
}

[data-theme="dark"] .sample-messages h4 {
    color: var(--primary) !important;
}

/* ── About page ── contact button ── */
[data-theme="dark"] a[style*="background: white; color: var(--primary-color)"],
[data-theme="dark"] a[style*="background:white;color:var(--primary-color)"],
[data-theme="dark"] a.btn[style*="background: white"] {
    background: var(--surface) !important;
    color: var(--primary) !important;
    border: 1px solid var(--border);
}

/* ── Contact page ── */
[data-theme="dark"] [style*="color: var(--primary);"] {
    color: var(--primary) !important;
}

/* ── Extension page (gradient cards are fine, just fix text) ── */
[data-theme="dark"] .features-grid .feature-card h4 {
    color: var(--text) !important;
}

/* ── Home page detect boxes ── */
[data-theme="dark"] [style*="background: #f7fafc"][style*="border-left"] {
    background: var(--surface) !important;
    color: var(--text) !important;
}

[data-theme="dark"] [style*="background: #f7fafc"][style*="border-left"] h4 {
    color: var(--text) !important;
}

[data-theme="dark"] [style*="background: #f7fafc"][style*="border-left"] ul,
[data-theme="dark"] [style*="background: #f7fafc"][style*="border-left"] li {
    color: var(--text-light) !important;
}

/* ── How It Works steps ── */
[data-theme="dark"] [style*="text-align: center; padding: 30px"] h3 {
    color: var(--text) !important;
}

[data-theme="dark"] [style*="text-align: center; padding: 30px"] p {
    color: var(--text-light) !important;
}

/* ── Documentation buttons / links ── */
[data-theme="dark"] .page-card a {
    color: var(--primary);
}

[data-theme="dark"] .page-card code {
    color: var(--primary);
    background: rgba(124, 143, 240, .1);
    padding: 1px 4px;
    border-radius: 3px;
}


/* ═══════════════════════════════════════════════════
   BATCH CHECKER — transferred from batch_checker.html
═══════════════════════════════════════════════════ */
#dropZone:hover {
    border-color: var(--primary);
    background: rgba(124, 143, 240, .1);
}

#dropZone.dragover {
    border-color: var(--primary);
    background: rgba(124, 143, 240, .15);
}

#resultsContainer::-webkit-scrollbar {
    width: 8px;
}

#resultsContainer::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: 4px;
}

#resultsContainer::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.result-line {
    padding: 8px;
    border-left: 3px solid transparent;
    margin-bottom: 5px;
    word-break: break-all;
}

.result-phishing {
    border-left-color: #fc8181;
    background: rgba(252, 129, 129, .1);
}

.result-legitimate {
    border-left-color: #68d391;
    background: rgba(104, 211, 145, .1);
}

.result-error {
    border-left-color: #fbd38d;
    background: rgba(251, 211, 141, .1);
}

.result-pending {
    border-left-color: #63b3ed;
    background: rgba(99, 179, 237, .1);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .5
    }
}

.processing {
    animation: pulse 1.5s infinite;
}

/* Terminal-style results container — dark in both themes */
#resultsContainer {
    font-family: 'Courier New', monospace;
    background: #1e1e1e !important;
    color: #f0f0f0 !important;
    padding: 20px;
    border-radius: 10px;
    max-height: 500px;
    overflow-y: auto;
    margin-top: 20px;
}

/* ═══════════════════════════════════════════════════
   HOME PAGE — animation helper
═══════════════════════════════════════════════════ */
/* (no page-specific classes needed; animateValue uses vanilla JS) */

/* ═══════════════════════════════════════════════════
   EXTENSION PAGE — dark mode fixes
═══════════════════════════════════════════════════ */
[data-theme="dark"] .extension-page h3,
[data-theme="dark"] [style*="color: #2d3748"],
[data-theme="dark"] [style*="color:#2d3748"] {
    color: var(--text) !important;
}

/* Extension download button (white bg on gradient section) */
.ext-download-btn {
    background: white;
    color: #667eea;
    padding: 15px 40px;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
    border-radius: 10px;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
    transition: all 0.3s;
}

[data-theme="dark"] .ext-download-btn {
    background: var(--surface) !important;
    color: var(--primary) !important;
    border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════
   INTEGRATION ALERTS — scan / batch / dashboard
═══════════════════════════════════════════════════ */
.integration-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    margin-top: 12px;
    animation: slideDown 0.35s ease-out;
    border: 1px solid transparent;
}


.int-alert-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.int-alert-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.int-alert-body strong {
    font-size: 0.92rem;
    color: var(--text);
}

.int-alert-sub {
    font-size: 0.78rem;
    color: var(--text-light);
}

.int-alert-link {
    flex-shrink: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(30, 39, 97, 0.08);
    transition: background 0.2s;
}

.int-alert-link:hover {
    background: rgba(30, 39, 97, 0.15);
}

/* Dashboard integration stat cards */
.integration-stat-card {
    background: white;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s, box-shadow 0.25s;
    border: 2px solid transparent;
}

.integration-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}


/* Batch integration summary row */
#integrationSummary {
    margin-top: 16px;
    padding: 18px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #7dd3fc;
    font-size: 0.92rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

#integrationSummary .int-sum-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.82rem;
}


#integrationSummary a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.82rem;
}

[data-theme="dark"] [data-theme="dark"] [data-theme="dark"] .integration-stat-card {
    background: var(--surface);
}

[data-theme="dark"] #integrationSummary {
    background: rgba(59, 130, 246, 0.1);
    border-color: #1e40af;
}

/* API docs — integration section */
.api-integration-section {
    margin-top: 2.5rem;
    padding: 0;
}

.api-integration-section h3 {
    margin-bottom: 1rem;
}

.api-endpoint-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 16px;
}

.api-endpoint-card .endpoint-method {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    background: #dcfce7;
    color: #166534;
    margin-right: 8px;
    vertical-align: middle;
}

.api-endpoint-card .endpoint-path {
    font-family: 'Courier New', monospace;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary);
    vertical-align: middle;
}

.api-endpoint-card .endpoint-desc {
    margin-top: 8px;
    font-size: 0.87rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════
   ABOUT PAGE — contact button fix
═══════════════════════════════════════════════════ */
.about-contact-btn {
    background: white;
    color: var(--primary);
    border: 2px solid transparent;
    transition: all .2s;
}

[data-theme="dark"] .about-contact-btn {
    background: var(--surface) !important;
    color: var(--primary) !important;
    border-color: var(--border);
}


/* ═══════════════════════════════════════════════════════════
   CAMPAIGN CLUSTERING PAGE
═══════════════════════════════════════════════════════════ */
.cluster-hero {
    background: linear-gradient(135deg, #1E2761 0%, #3d4f9f 60%, #764ba2 100%);
    color: white;
    padding: 3rem 0 2.5rem;
    text-align: center;
}

.cluster-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: .6rem;
}

.cluster-hero p {
    opacity: .88;
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

.badge-research {
    display: inline-block;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
    margin-bottom: 1rem;
    backdrop-filter: blur(8px);
}

.cluster-body {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.url-textarea {
    width: 100%;
    min-height: 160px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: .9rem 1rem;
    font-size: .875rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    resize: vertical;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color .2s;
}

.url-textarea:focus {
    border-color: var(--primary);
}

.btn-cluster {
    margin-top: 1rem;
    background: linear-gradient(135deg, #1E2761, #3d4f9f);
    color: white;
    border: none;
    border-radius: 10px;
    padding: .75rem 2rem;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .2s;
}

.btn-cluster:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.btn-cluster:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.summary-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-stat {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.2rem 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(30, 39, 97, .06);
    border-top: 3px solid var(--primary);
}

.summary-stat .val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.summary-stat .label {
    font-size: .75rem;
    color: var(--text-light);
    margin-top: .3rem;
}

.summary-stat.danger {
    border-top-color: var(--danger);
}

.summary-stat.danger .val {
    color: var(--danger);
}

.summary-stat.warn {
    border-top-color: var(--warning);
}

.summary-stat.warn .val {
    color: var(--warning);
}

.cluster-card {
    background: var(--surface);
    border-radius: 14px;
    margin-bottom: 1.2rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(30, 39, 97, .07);
    border-left: 5px solid var(--border);
}

.cluster-card.CRITICAL {
    border-left-color: #e53e3e;
}

.cluster-card.HIGH {
    border-left-color: #dd6b20;
}

.cluster-card.MEDIUM {
    border-left-color: #d69e2e;
}

.cluster-card.LOW {
    border-left-color: #38a169;
}

.cluster-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.4rem;
    cursor: pointer;
    gap: 1rem;
    flex-wrap: wrap;
}

.cluster-header:hover {
    background: rgba(30, 39, 97, .03);
}

.threat-badge {
    font-size: .7rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: .06em;
}

.threat-badge.CRITICAL {
    background: #fed7d7;
    color: #c53030;
}

.threat-badge.HIGH {
    background: #feebc8;
    color: #c05621;
}

.threat-badge.MEDIUM {
    background: #fefcbf;
    color: #744210;
}

.threat-badge.LOW {
    background: #c6f6d5;
    color: #276749;
}

[data-theme="dark"] .threat-badge.CRITICAL {
    background: rgba(197, 48, 48, .2);
    color: #fc8181;
}

[data-theme="dark"] .threat-badge.HIGH {
    background: rgba(192, 86, 33, .2);
    color: #fbd38d;
}

[data-theme="dark"] .threat-badge.MEDIUM {
    background: rgba(214, 158, 46, .2);
    color: #f6e05e;
}

[data-theme="dark"] .threat-badge.LOW {
    background: rgba(56, 161, 105, .2);
    color: #68d391;
}

.cluster-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
}

.cluster-meta {
    font-size: .8rem;
    color: var(--text-light);
}

.cluster-body-inner {
    padding: 0 1.4rem 1.2rem;
    border-top: 1px solid var(--border);
}

.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .8rem;
    margin: 1rem 0;
}

.infra-item {
    background: var(--bg);
    border-radius: 8px;
    padding: .7rem .9rem;
    font-size: .8rem;
}

.infra-item .key {
    color: var(--text-light);
    margin-bottom: 2px;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.infra-item .value {
    font-weight: 700;
    color: var(--text);
}

.url-list {
    margin-top: .8rem;
    max-height: 160px;
    overflow-y: auto;
    background: var(--bg);
    border-radius: 8px;
    padding: .6rem .8rem;
}

.url-item {
    font-family: 'JetBrains Mono', monospace;
    font-size: .78rem;
    color: var(--text-light);
    padding: 2px 0;
    word-break: break-all;
}

.url-item::before {
    content: "› ";
    color: var(--primary);
}

.singleton-note {
    background: var(--bg);
    border-radius: 10px;
    padding: .8rem 1rem;
    font-size: .85rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 1rem;
}

.loading-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
    font-size: .95rem;
}

.spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    margin-bottom: .8rem;
}

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

.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-top: 1.4rem;
}

.how-item {
    background: var(--bg);
    border-radius: 12px;
    padding: 1.2rem;
    border-left: 4px solid var(--primary);
}

.how-item h4 {
    font-size: .9rem;
    color: var(--primary);
    margin-bottom: .3rem;
}

.how-item p {
    font-size: .82rem;
    color: var(--text-light);
    line-height: 1.6;
}

[data-theme="dark"] .url-textarea {
    background: var(--surface);
}

[data-theme="dark"] .how-item,
[data-theme="dark"] .infra-item,
[data-theme="dark"] .url-list {
    background: rgba(255, 255, 255, .04);
}

/* ═══════════════════════════════════════════════════════════
   VISUAL BRAND DETECTION (SCREENSHOT) PAGE
═══════════════════════════════════════════════════════════ */
.vis-hero {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: white;
    padding: 3rem 0 2.5rem;
    text-align: center;
}

.vis-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: .6rem;
}

.vis-hero p {
    opacity: .88;
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

.badge-cv {
    display: inline-block;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
    margin-bottom: 1rem;
}

.vis-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.url-field {
    width: 100%;
    padding: .85rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: .9rem;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color .2s;
}

.url-field:focus {
    border-color: var(--primary);
}

.html-textarea {
    width: 100%;
    min-height: 120px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: .8rem 1rem;
    font-size: .8rem;
    font-family: monospace;
    resize: vertical;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color .2s;
    margin-top: .6rem;
}

.html-textarea:focus {
    border-color: var(--primary);
}

.btn-analyse {
    margin-top: 1rem;
    background: linear-gradient(135deg, #0f2027, #2c5364);
    color: white;
    border: none;
    border-radius: 10px;
    padding: .75rem 2rem;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .2s;
}

.btn-analyse:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.btn-analyse:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.verdict-banner {
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.verdict-banner.phishing {
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    border-left: 6px solid #c53030;
}

.verdict-banner.legit {
    background: linear-gradient(135deg, #c6f6d5, #9ae6b4);
    border-left: 6px solid #276749;
}

.verdict-banner.unknown {
    background: linear-gradient(135deg, #e9d8fd, #d6bcfa);
    border-left: 6px solid #6b46c1;
}

[data-theme="dark"] .verdict-banner.phishing {
    background: rgba(197, 48, 48, .15);
    border-left-color: #fc8181;
}

[data-theme="dark"] .verdict-banner.legit {
    background: rgba(39, 103, 73, .15);
    border-left-color: #68d391;
}

[data-theme="dark"] .verdict-banner.unknown {
    background: rgba(107, 70, 193, .15);
    border-left-color: #b794f4;
}

.verdict-icon {
    font-size: 3rem;
    line-height: 1;
}

.verdict-title {
    font-size: 1.5rem;
    font-weight: 800;
}

.verdict-sub {
    font-size: .9rem;
    opacity: .8;
    margin-top: .3rem;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

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

.detail-card {
    background: var(--surface);
    border-radius: 14px;
    padding: 1.4rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}

.detail-card h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.evidence-item {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .85rem;
    color: var(--text);
}

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

.evidence-item .icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 0 auto 1rem;
    font-size: 1.4rem;
    font-weight: 800;
}

.score-circle.high {
    background: #fed7d7;
    color: #c53030;
    border: 3px solid #c53030;
}

.score-circle.medium {
    background: #fefcbf;
    color: #744210;
    border: 3px solid #d69e2e;
}

.score-circle.low {
    background: #c6f6d5;
    color: #276749;
    border: 3px solid #276749;
}

[data-theme="dark"] .score-circle.high {
    background: rgba(197, 48, 48, .2);
    color: #fc8181;
    border-color: #fc8181;
}

[data-theme="dark"] .score-circle.medium {
    background: rgba(214, 158, 46, .2);
    color: #f6e05e;
    border-color: #f6e05e;
}

[data-theme="dark"] .score-circle.low {
    background: rgba(39, 103, 73, .2);
    color: #68d391;
    border-color: #68d391;
}

.score-circle .score-label {
    font-size: .65rem;
    font-weight: 600;
}

.page-signal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .45rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .85rem;
}

.page-signal:last-child {
    border-bottom: none;
}

.page-signal .sig-label {
    color: var(--text-light);
}

.page-signal .sig-val {
    font-weight: 600;
    color: var(--text);
}

.sig-yes {
    color: #c53030 !important;
}

.sig-no {
    color: #276749 !important;
}

[data-theme="dark"] .sig-yes {
    color: #fc8181 !important;
}

[data-theme="dark"] .sig-no {
    color: #68d391 !important;
}

.brand-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(30, 39, 97, .1);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: .8rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: .5rem;
}

[data-theme="dark"] .brand-chip {
    background: rgba(255, 255, 255, .08);
}

[data-theme="dark"] .url-field,
[data-theme="dark"] .html-textarea {
    background: var(--surface);
}

/* ═══════════════════════════════════════════════════════════
   ZERO-DAY DETECTION PAGE
═══════════════════════════════════════════════════════════ */
.zd-hero {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a0533 40%, #2d1060 100%);
    color: white;
    padding: 3rem 0 2.5rem;
    text-align: center;
}

.zd-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: .6rem;
}

.zd-hero p {
    opacity: .88;
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

.badge-zd {
    display: inline-block;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
    margin-bottom: 1rem;
}

.zd-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.btn-zd {
    margin-top: 1rem;
    background: linear-gradient(135deg, #1a0533, #6b21a8);
    color: white;
    border: none;
    border-radius: 10px;
    padding: .75rem 2rem;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .2s;
}

.btn-zd:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.btn-zd:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.mode-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.2rem;
}

.mode-tab {
    flex: 1;
    padding: .6rem;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--text-light);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
}

.mode-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.zd-verdict {
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    border-left: 6px solid;
}

.zd-verdict.PHISHING {
    background: linear-gradient(135deg, #1a0533, #4a044e);
    color: white;
    border-color: #e879f9;
}

.zd-verdict.SUSPICIOUS {
    background: linear-gradient(135deg, #431407, #7c2d12);
    color: white;
    border-color: #fb923c;
}

.zd-verdict.LIKELY_LEGITIMATE {
    background: linear-gradient(135deg, #052e16, #14532d);
    color: white;
    border-color: #4ade80;
}

.zd-verdict .v-icon {
    font-size: 3.5rem;
    line-height: 1;
}

.zd-verdict .v-score {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

.zd-verdict .v-label {
    font-size: .75rem;
    opacity: .8;
    margin-top: 2px;
}

.zd-verdict .v-right {
    flex: 1;
    min-width: 180px;
}

.zd-verdict .v-title {
    font-size: 1.4rem;
    font-weight: 800;
}

.zd-verdict .v-sub {
    font-size: .9rem;
    opacity: .85;
    margin-top: .3rem;
    line-height: 1.5;
}

.rules-section {
    margin-bottom: 1.5rem;
}

.rule-group {
    margin-bottom: 1.2rem;
}

.rule-group-title {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-light);
    margin-bottom: .6rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.rule-item {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    background: var(--surface);
    border-radius: 10px;
    padding: .8rem 1rem;
    margin-bottom: .5rem;
    border-left: 3px solid;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
}

.rule-item.critical {
    border-left-color: #c53030;
}

.rule-item.high {
    border-left-color: #dd6b20;
}

.rule-item.medium {
    border-left-color: #d69e2e;
}

.rule-item.positive {
    border-left-color: #38a169;
}

.rule-pts {
    min-width: 36px;
    text-align: center;
    font-size: .85rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    flex-shrink: 0;
}

.rule-pts.neg {
    background: #c6f6d5;
    color: #276749;
}

.rule-pts.pos {
    background: #fed7d7;
    color: #c53030;
}

[data-theme="dark"] .rule-pts.pos {
    background: rgba(197, 48, 48, .2);
    color: #fc8181;
}

[data-theme="dark"] .rule-pts.neg {
    background: rgba(39, 103, 73, .2);
    color: #68d391;
}

.rule-name {
    font-size: .85rem;
    font-weight: 700;
    color: var(--text);
}

.rule-detail {
    font-size: .78rem;
    color: var(--text-light);
    margin-top: 1px;
}

.signals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .8rem;
    margin-bottom: 1.5rem;
}

.sig-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .06);
    text-align: center;
    border-top: 3px solid var(--border);
}

.sig-card.danger {
    border-top-color: var(--danger);
}

.sig-card.warn {
    border-top-color: var(--warning);
}

.sig-card.safe {
    border-top-color: var(--success);
}

.sig-card .sv {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

.sig-card .sl {
    font-size: .72rem;
    color: var(--text-light);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.batch-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.batch-stat {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.2rem 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    border-top: 3px solid var(--border);
}

.batch-stat .bv {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.batch-stat .bl {
    font-size: .73rem;
    color: var(--text-light);
    margin-top: .2rem;
}

.batch-stat.danger {
    border-top-color: var(--danger);
}

.batch-stat.danger .bv {
    color: var(--danger);
}

.batch-stat.warn {
    border-top-color: var(--warning);
}

.batch-stat.warn .bv {
    color: var(--warning);
}

.batch-stat.safe {
    border-top-color: var(--success);
}

.batch-stat.safe .bv {
    color: var(--success);
}

.batch-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
}

.batch-table th {
    text-align: left;
    padding: .6rem .8rem;
    border-bottom: 2px solid var(--border);
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: .72rem;
}

.batch-table td {
    padding: .6rem .8rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.batch-table tr:hover td {
    background: rgba(30, 39, 97, .04);
}

[data-theme="dark"] .batch-table tr:hover td {
    background: rgba(255, 255, 255, .04);
}

.verdict-chip {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
}

.vc-PHISHING {
    background: #fed7d7;
    color: #c53030;
}

.vc-SUSPICIOUS {
    background: #feebc8;
    color: #c05621;
}

.vc-LIKELY_LEGITIMATE {
    background: #c6f6d5;
    color: #276749;
}

[data-theme="dark"] .vc-PHISHING {
    background: rgba(197, 48, 48, .2);
    color: #fc8181;
}

[data-theme="dark"] .vc-SUSPICIOUS {
    background: rgba(192, 86, 33, .2);
    color: #fbd38d;
}

[data-theme="dark"] .vc-LIKELY_LEGITIMATE {
    background: rgba(39, 103, 73, .2);
    color: #68d391;
}

[data-theme="dark"] .url-field {
    background: var(--surface);
}

[data-theme="dark"] .url-textarea {
    background: var(--surface);
}


/* ══════════════════════════════════════════════════════════════════
   DEFENSIVE AUTOMATION — Feature 6
   Auto-Report Phishing + Password Breach Warning
   Classes: .da-*  (da = defensive automation)
   Fully theme-aware: uses CSS variables for light + dark mode
══════════════════════════════════════════════════════════════════ */

/* ── Hero ── */
.da-hero {
    padding: 3rem 0 2.5rem;
    text-align: center;
}

.da-hero--green {
    background: linear-gradient(135deg, var(--primary) 0%, #1a3a2a 100%);
}

.da-hero--red {
    background: linear-gradient(135deg, var(--primary) 0%, #3a1a1a 100%);
}

[data-theme="light"] .da-hero--green {
    background: linear-gradient(135deg, #0f2d20 0%, #1E2761 100%);
}

[data-theme="light"] .da-hero--red {
    background: linear-gradient(135deg, #2d0f0f 0%, #1E2761 100%);
}

.da-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 .6rem;
}

.da-hero p {
    color: rgba(255, 255, 255, .72);
    max-width: 580px;
    margin: 0 auto;
    font-size: .95rem;
}

.da-hero strong {
    color: #fff;
}

/* ── Badge ── */
.da-badge {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .06em;
    padding: .35rem .9rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.da-badge--green {
    background: rgba(34, 197, 94, .15);
    border: 1px solid rgba(34, 197, 94, .4);
    color: #4ade80;
}

.da-badge--red {
    background: rgba(239, 68, 68, .15);
    border: 1px solid rgba(239, 68, 68, .4);
    color: #fca5a5;
}

/* ── Body wrapper ── */
.da-body {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem 4rem;
}

/* ── Card ── */
.da-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.6rem;
    margin-bottom: 1.4rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
}

.da-card h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1rem;
}

.da-card__desc {
    font-size: .88rem;
    color: var(--text-light);
    margin-bottom: .9rem;
    line-height: 1.6;
}

[data-theme="dark"] .da-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

/* ── Info box ── */
.da-info-box {
    border-radius: 0 8px 8px 0;
    padding: .9rem 1.1rem;
    font-size: .85rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.da-info-box--green {
    background: rgba(34, 197, 94, .07);
    border-left: 4px solid #22c55e;
    color: var(--text);
}

.da-info-box--red {
    background: rgba(239, 68, 68, .07);
    border-left: 4px solid #ef4444;
    color: var(--text);
}

.da-info-box strong {
    color: var(--text);
}

[data-theme="dark"] .da-info-box--green {
    background: rgba(34, 197, 94, .1);
}

[data-theme="dark"] .da-info-box--red {
    background: rgba(239, 68, 68, .1);
}

/* ── Privacy pill ── */
.da-privacy-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(34, 197, 94, .08);
    border: 1px solid rgba(34, 197, 94, .25);
    border-radius: 8px;
    padding: .6rem 1rem;
    font-size: .8rem;
    color: #16a34a;
    margin-top: .4rem;
    font-weight: 500;
}

[data-theme="dark"] .da-privacy-pill {
    color: #86efac;
    background: rgba(34, 197, 94, .1);
    border-color: rgba(34, 197, 94, .3);
}

/* ── Input ── */
.da-input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .75rem 1rem;
    color: var(--text);
    font-size: .95rem;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}

.da-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 39, 97, .12);
}

[data-theme="dark"] .da-input {
    background: #0f1117;
    border-color: var(--border);
    color: var(--text);
}

[data-theme="dark"] .da-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 143, 240, .18);
}

/* ── Password wrapper ── */
.da-field {
    margin-bottom: .9rem;
}

.da-label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .4rem;
}

.da-pwd-wrap {
    position: relative;
}

.da-pwd-wrap .da-input {
    padding-right: 3rem;
}

.da-eye-btn {
    position: absolute;
    right: .8rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    line-height: 1;
}

.da-eye-btn:hover {
    color: var(--text);
}

/* ── Button ── */
.da-btn {
    margin-top: .9rem;
    color: #fff;
    border: none;
    padding: .78rem 2rem;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: filter .2s, opacity .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: inherit;
}

.da-btn--green {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.da-btn--red {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.da-btn:hover {
    filter: brightness(1.1);
}

.da-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    filter: none;
}

/* ── Spinner ── */
.da-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: da-spin .7s linear infinite;
    flex-shrink: 0;
}

.da-spinner.active {
    display: block;
}

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

/* ── Provider result grid ── */
.da-provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: .9rem;
    margin-top: .6rem;
}

/* ── Provider info card (how-it-works) ── */
.da-provider-info {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
}

.da-provider-info__name {
    font-size: .82rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .3rem;
}

.da-provider-info__desc {
    font-size: .8rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ── Provider result card ── */
.da-provider-result {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
}

.da-provider-result__name {
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .4rem;
}

.da-provider-result__status {
    font-size: 1rem;
    font-weight: 700;
}

.da-provider-result__detail {
    font-size: .76rem;
    color: var(--text-light);
    margin-top: .3rem;
}

.da-status-reported {
    color: #16a34a;
}

.da-status-skipped {
    color: var(--warning);
}

.da-status-failed {
    color: var(--danger);
}

.da-status-error {
    color: var(--danger);
}

[data-theme="dark"] .da-status-reported {
    color: #4ade80;
}

/* ── Summary bar ── */
.da-summary-bar {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding: .75rem 1rem;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: .82rem;
}

.da-summary-bar span {
    font-weight: 600;
    color: var(--text-light);
}

.da-summary-bar span b {
    color: var(--text);
}

.da-summary-bar .da-sum-reported b {
    color: #16a34a;
}

.da-summary-bar .da-sum-failed b {
    color: var(--danger);
}

[data-theme="dark"] .da-summary-bar .da-sum-reported b {
    color: #4ade80;
}

/* ── API key list ── */
.da-key-list {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-top: .4rem;
}

.da-key-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .6rem .8rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.da-key-name {
    font-family: 'Courier New', monospace;
    font-size: .82rem;
    color: var(--warning);
    font-weight: 600;
}

.da-key-link {
    font-size: .8rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

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

[data-theme="dark"] .da-key-link {
    color: #7c8ff0;
}

/* ── Code inline ── */
.da-code {
    font-family: 'Courier New', monospace;
    font-size: .82rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: .1rem .4rem;
    color: #16a34a;
}

[data-theme="dark"] .da-code {
    color: #4ade80;
}

/* ── Breach result sections ── */
.da-result-section {
    margin-top: 1rem;
}

.da-result-section+.da-result-section {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.da-result-section h3 {
    font-size: .82rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .7rem;
}

/* ── Severity badge ── */
.da-sev {
    display: inline-block;
    padding: .28rem .75rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.da-sev-critical {
    background: rgba(239, 68, 68, .15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, .35);
}

.da-sev-high {
    background: rgba(249, 115, 22, .15);
    color: #ea580c;
    border: 1px solid rgba(249, 115, 22, .35);
}

.da-sev-medium {
    background: rgba(234, 179, 8, .15);
    color: #ca8a04;
    border: 1px solid rgba(234, 179, 8, .35);
}

.da-sev-low {
    background: rgba(99, 102, 241, .15);
    color: #4f46e5;
    border: 1px solid rgba(99, 102, 241, .35);
}

.da-sev-safe {
    background: rgba(34, 197, 94, .15);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, .35);
}

[data-theme="dark"] .da-sev-critical {
    color: #f87171;
}

[data-theme="dark"] .da-sev-high {
    color: #fb923c;
}

[data-theme="dark"] .da-sev-medium {
    color: #fbbf24;
}

[data-theme="dark"] .da-sev-low {
    color: #a5b4fc;
}

[data-theme="dark"] .da-sev-safe {
    color: #4ade80;
}

/* ── Breach count big ── */
.da-count-big {
    font-size: 2rem;
    font-weight: 800;
    color: var(--danger);
    margin: .3rem 0;
    line-height: 1;
}

/* ── Breach message ── */
.da-breach-msg {
    font-size: .88rem;
    margin: .4rem 0;
    line-height: 1.5;
}

.da-breach-msg--safe {
    color: #16a34a;
}

.da-breach-msg--danger {
    color: var(--danger);
}

[data-theme="dark"] .da-breach-msg--safe {
    color: #4ade80;
}

/* ── Privacy note footer ── */
.da-privacy-note {
    font-size: .76rem;
    color: var(--text-light);
    margin-top: 1rem;
    padding: .6rem .8rem;
    background: var(--bg);
    border-radius: 6px;
    border: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════════════════════
   RISK HEATMAP — Inline panel (scan + batch pages) & standalone page
══════════════════════════════════════════════════════════════════ */
.heatmap-hero {
    background: linear-gradient(135deg, #1e2761 0%, #2d3b8e 60%, #4a1d96 100%);
    padding: 3rem 0;
    color: white;
    text-align: center;
}

.heatmap-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: .5rem;
}

.heatmap-hero p {
    font-size: 1.05rem;
    opacity: .88;
}

.hm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 28px;
}

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

.hm-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .07);
}

.hm-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* gauge */
.gauge-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gauge-svg {
    width: 220px;
    height: 130px;
}

.gauge-score {
    font-size: 2.8rem;
    font-weight: 900;
    transition: color .5s;
}

.gauge-label {
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: color .5s;
}

.gauge-sublabel {
    font-size: .78rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* feature grid */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}

.feat-cell {
    border-radius: 10px;
    padding: 12px 10px;
    text-align: center;
    cursor: default;
    position: relative;
    transition: transform .15s;
}

.feat-cell:hover {
    transform: scale(1.04);
}

.feat-cell .fc-label {
    font-size: .72rem;
    font-weight: 600;
    color: rgba(0, 0, 0, .65);
    line-height: 1.2;
    word-break: break-word;
}

.feat-cell .fc-val {
    font-size: 1.1rem;
    font-weight: 800;
    margin-top: 4px;
    color: rgba(0, 0, 0, .75);
}

.feat-cell .fc-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e2761;
    color: white;
    font-size: .72rem;
    padding: 6px 10px;
    border-radius: 7px;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.feat-cell:hover .fc-tooltip {
    display: block;
}

.fc-safe {
    background: #d1fae5;
}

.fc-low {
    background: #fef9c3;
}

.fc-mid {
    background: #fed7aa;
}

.fc-high {
    background: #fecaca;
}

.fc-crit {
    background: #fca5a5;
}

/* dark mode cell colours */
[data-theme="dark"] .fc-safe {
    background: rgba(34, 197, 94, .22);
}

[data-theme="dark"] .fc-low {
    background: rgba(250, 204, 21, .18);
}

[data-theme="dark"] .fc-mid {
    background: rgba(249, 115, 22, .22);
}

[data-theme="dark"] .fc-high {
    background: rgba(239, 68, 68, .22);
}

[data-theme="dark"] .fc-crit {
    background: rgba(153, 27, 27, .35);
}

[data-theme="dark"] .feat-cell .fc-label {
    color: rgba(255, 255, 255, .75);
}

[data-theme="dark"] .feat-cell .fc-val {
    color: rgba(255, 255, 255, .9);
}

/* risk bar */
.risk-bar-wrap {
    margin-top: 6px;
}

.risk-bar-track {
    height: 14px;
    border-radius: 7px;
    background: linear-gradient(90deg, #22c55e 0%, #facc15 35%, #f97316 65%, #ef4444 85%, #991b1b 100%);
    position: relative;
    overflow: visible;
}

.risk-bar-needle {
    position: absolute;
    top: -5px;
    width: 4px;
    height: 24px;
    background: #1e2761;
    border-radius: 2px;
    transform: translateX(-50%);
    transition: left .8s cubic-bezier(.34, 1.56, .64, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}

.risk-bar-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: .72rem;
    color: var(--text-light);
}

/* breakdown */
.breakdown-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bk-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bk-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bk-name {
    flex: 1;
    font-size: .9rem;
    color: var(--text);
}

.bk-bar-wrap {
    flex: 2;
    height: 10px;
    background: var(--bg);
    border-radius: 5px;
    overflow: hidden;
}

.bk-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width .8s ease;
}

.bk-pct {
    width: 36px;
    text-align: right;
    font-size: .82rem;
    font-weight: 700;
}

/* legend */
.legend-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    color: var(--text-light);
}

.legend-box {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

/* verdict banner */
.hm-verdict-banner {
    display: none;
    border-radius: 14px;
    padding: 22px 26px;
    color: white;
    margin-top: 20px;
    font-size: 1.15rem;
    font-weight: 700;
    align-items: center;
    gap: 14px;
}

.hm-verdict-banner.show {
    display: flex;
}

/* history table */
.hist-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

.hist-table th {
    text-align: left;
    padding: 8px 10px;
    color: var(--text-light);
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}

.hist-table td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    word-break: break-all;
}

.hist-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
}

.empty-hist {
    text-align: center;
    padding: 28px;
    color: var(--text-light);
    font-size: .9rem;
}

/* inline heatmap panel (scan/batch pages) */
.inline-heatmap {
    border-radius: 16px;
    border: 2px solid var(--border);
    overflow: hidden;
    margin-top: 28px;
}

.inline-heatmap-header {
    padding: 18px 24px;
    background: linear-gradient(135deg, #1e2761, #4a1d96);
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
}

.inline-heatmap-body {
    padding: 24px;
    background: var(--surface);
}

/* mini heatmap badge for batch results */
.hm-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}

.hm-score-safe {
    background: #d1fae5;
    color: #15803d;
}

.hm-score-low {
    background: #fef9c3;
    color: #854d0e;
}

.hm-score-mid {
    background: #fed7aa;
    color: #9a3412;
}

.hm-score-high {
    background: #fecaca;
    color: #991b1b;
}

.hm-score-crit {
    background: #fca5a5;
    color: #7f1d1d;
}

[data-theme="dark"] .hm-score-safe {
    background: rgba(34, 197, 94, .22);
    color: #4ade80;
}

[data-theme="dark"] .hm-score-low {
    background: rgba(250, 204, 21, .18);
    color: #fde047;
}

[data-theme="dark"] .hm-score-mid {
    background: rgba(249, 115, 22, .22);
    color: #fb923c;
}

[data-theme="dark"] .hm-score-high {
    background: rgba(239, 68, 68, .22);
    color: #f87171;
}

[data-theme="dark"] .hm-score-crit {
    background: rgba(153, 27, 27, .35);
    color: #fca5a5;
}

/* dark hm-card */
[data-theme="dark"] .hm-card {
    background: var(--surface);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
}

/* URL quick-load buttons */
.url-input-wrap {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.url-input-wrap input {
    flex: 1;
    min-width: 220px;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: .95rem;
    font-family: 'Courier New', monospace;
    background: var(--bg);
    color: var(--text);
    transition: border-color .2s;
}

.url-input-wrap input:focus {
    outline: none;
    border-color: var(--primary);
}

.analyze-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), #4a1d96);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s;
}

.analyze-btn:hover {
    opacity: .88;
}

.analyze-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* ══════════════════════════════════════════════════════════════════
   SIMULATE ATTACK PAGE
══════════════════════════════════════════════════════════════════ */
.sim-hero {
    background: linear-gradient(135deg, #1a0533 0%, #2d1b69 50%, #1e2761 100%);
    padding: 3rem 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sim-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.sim-hero h1 {
    font-size: 2.3rem;
    font-weight: 900;
    margin-bottom: .6rem;
    position: relative;
}

.sim-hero p {
    font-size: 1rem;
    opacity: .85;
    position: relative;
}

.warning-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, .25);
    border: 1px solid rgba(239, 68, 68, .5);
    color: #fca5a5;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: .82rem;
    font-weight: 600;
    margin-top: 12px;
    position: relative;
}

/* mode tabs */
/* mode-tab base styles already defined above for zero-day page */
/* simulate attack: extend with icon/desc support */
.mode-tab .mt-icon {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 6px;
}

.mode-tab .mt-desc {
    font-size: .72rem;
    opacity: .8;
    margin-top: 4px;
    font-weight: 400;
}

/* larger padding variant for simulate attack tabs */
.sim-hero~section .mode-tab {
    padding: 16px 12px;
    min-width: 160px;
}

.sim-hero~section .mode-tab.active {
    background: linear-gradient(135deg, var(--primary), #4a1d96);
    color: white;
    border-color: var(--primary);
}

.mode-tab .mt-icon {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 6px;
}

.mode-tab .mt-desc {
    font-size: .72rem;
    opacity: .8;
    margin-top: 4px;
    font-weight: 400;
}

/* sim card */
.sim-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .07);
    margin-bottom: 24px;
}

.sim-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

[data-theme="dark"] .sim-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
}

/* browser chrome */
.browser-chrome {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
    border: 1.5px solid #d1d5db;
}

.browser-bar {
    background: #f3f4f6;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.browser-dots {
    display: flex;
    gap: 5px;
}

.browser-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.browser-url-bar {
    flex: 1;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: .82rem;
    font-family: 'Courier New', monospace;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 6px;
}

.browser-url-bar .lock-icon {
    font-size: .9rem;
}

.browser-body {
    background: white;
    min-height: 320px;
}

[data-theme="dark"] .browser-chrome {
    border-color: #4b5563;
}

[data-theme="dark"] .browser-bar {
    background: #1f2937;
    border-color: #374151;
}

[data-theme="dark"] .browser-url-bar {
    background: #111827;
    border-color: #374151;
    color: #e5e7eb;
}

/* phishing page templates */
.phish-page {
    padding: 0;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.phish-bank {
    background: #003087;
    color: white;
}

.phish-bank .bank-header {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #002070;
}

.phish-bank .bank-logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.phish-bank .bank-body {
    padding: 32px 24px;
    flex: 1;
}

.phish-bank .bank-form {
    background: white;
    border-radius: 10px;
    padding: 24px;
    max-width: 380px;
    margin: 0 auto;
}

.phish-bank .bank-form h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #003087;
    margin-bottom: 16px;
}

.phish-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d1d5db;
    border-radius: 7px;
    font-size: .9rem;
    margin-bottom: 10px;
    box-sizing: border-box;
    color: #111;
}

.phish-btn {
    width: 100%;
    padding: 12px;
    background: #003087;
    color: white;
    border: none;
    border-radius: 7px;
    font-weight: 700;
    cursor: pointer;
    font-size: .95rem;
}

.phish-btn:hover {
    background: #002070;
}

.phish-email-container {
    padding: 24px;
    background: #f9fafb;
}

.phish-email-box {
    background: white;
    border-radius: 10px;
    padding: 28px;
    max-width: 480px;
    margin: 0 auto;
    border: 1px solid #e5e7eb;
}

.phish-email-logo {
    font-size: 2rem;
    margin-bottom: 12px;
}

.phish-email-box h2 {
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.phish-email-box p {
    font-size: .88rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 14px;
}

.phish-email-btn {
    display: inline-block;
    padding: 11px 28px;
    background: #ff9900;
    color: white;
    border-radius: 6px;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    cursor: pointer;
}

.phish-email-footer {
    font-size: .72rem;
    color: #888;
    margin-top: 18px;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

.phish-prize {
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    text-align: center;
    padding: 32px 24px;
    color: white;
}

.phish-prize h1 {
    font-size: 2rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, .3);
    margin-bottom: 8px;
}

.phish-prize-sub {
    font-size: 1.1rem;
    opacity: .9;
    margin-bottom: 20px;
}

.phish-prize-form {
    background: rgba(255, 255, 255, .95);
    border-radius: 12px;
    padding: 20px;
    max-width: 340px;
    margin: 0 auto;
}

.phish-prize-form h3 {
    color: #c05621;
    margin-bottom: 14px;
    font-size: 1rem;
}

/* AI panel */
.ai-panel {
    background: linear-gradient(135deg, #1e2761 0%, #2d1b69 100%);
    border-radius: 14px;
    padding: 24px;
    color: white;
    margin-top: 20px;
}

.ai-panel h3 {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-message {
    font-size: .95rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

.ai-flags-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-flag-item {
    background: rgba(255, 255, 255, .12);
    border-radius: 9px;
    padding: 12px 16px;
    border-left: 3px solid #ef4444;
}

.ai-flag-item .flag-title {
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-flag-item .flag-desc {
    font-size: .85rem;
    opacity: .9;
    line-height: 1.5;
}

.ai-flag-item.warning {
    border-left-color: #facc15;
}

.ai-flag-item.info {
    border-left-color: #38bdf8;
}

/* quiz */
.quiz-q {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-opt {
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    font-size: .92rem;
    color: var(--text);
    background: var(--bg);
    transition: all .2s;
    text-align: left;
}

.quiz-opt:hover {
    border-color: var(--primary);
}

.quiz-opt.correct {
    background: #d1fae5;
    border-color: #16a34a;
    color: #15803d;
}

.quiz-opt.wrong {
    background: #fee2e2;
    border-color: #dc2626;
    color: #991b1b;
}

.quiz-feedback {
    margin-top: 14px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: .92rem;
    display: none;
}

.quiz-feedback.show {
    display: block;
}

.quiz-score {
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
    padding: 20px;
}

[data-theme="dark"] .quiz-opt.correct {
    background: rgba(34, 197, 94, .2);
    border-color: #16a34a;
    color: #4ade80;
}

[data-theme="dark"] .quiz-opt.wrong {
    background: rgba(239, 68, 68, .2);
    border-color: #dc2626;
    color: #f87171;
}

/* progress */
.progress-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.progress-track {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #4a1d96);
    border-radius: 4px;
    transition: width .4s;
}

.progress-label {
    font-size: .8rem;
    color: var(--text-light);
    white-space: nowrap;
}

/* stats row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.stat-box {
    background: var(--bg);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
}

.stat-lbl {
    font-size: .78rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* builder */
.builder-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media(max-width:700px) {
    .builder-row {
        grid-template-columns: 1fr;
    }
}

.builder-select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    background: var(--bg);
    color: var(--text);
    font-size: .9rem;
}

.builder-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* cursor blink */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: white;
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
    margin-left: 1px;
}

@media(max-width:600px) {
    .sim-hero h1 {
        font-size: 1.7rem;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Hook AI Assistant — always bottom-right ── */
#hookLauncher,
#hook-launcher {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    z-index: 9999 !important;
}

#hookPanel,
#hook-panel {
    position: fixed !important;
    bottom: 90px !important;
    right: 24px !important;
    z-index: 9998 !important;
}

/* ═══════════════════════════════════════════════════
   GET STARTED — SPLIT LAYOUT (2026 redesign)
═══════════════════════════════════════════════════ */
.gs-wrap {
    min-height: 100vh;
    display: flex;
    position: relative;
    overflow-x: hidden;
    background: #060d24;
}

/* ── Left panel (branding + features) ── */
.gs-left {
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 3rem 3.5rem 3rem 4rem;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
}

.gs-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 10% 20%, rgba(59, 91, 219, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(232, 72, 85, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(99, 120, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.gs-left::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
}

/* ── Right panel (auth card) ── */
.gs-right {
    flex: 0 0 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.025);
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    position: sticky;
    top: 0;
    height: 100vh;
    align-self: flex-start;
    overflow-y: auto;
}

/* Brand header */
.gs-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1.8rem;
    position: relative;
    z-index: 1;
}

.gs-brand-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b5bdb, #e84855);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 8px 28px rgba(59, 91, 219, 0.45);
    flex-shrink: 0;
}

.gs-brand-text h1 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.gs-brand-text span {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.45);
}

/* Hero headline */
.gs-headline {
    position: relative;
    z-index: 1;
    margin-bottom: 1.2rem;
}

.gs-headline h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.gs-headline h2 em {
    font-style: normal;
    background: linear-gradient(90deg, #6879ff, #e84855);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gs-headline p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 480px;
}

/* Stats row */
.gs-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.gs-stat {
    text-align: left;
}

.gs-stat-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1;
}

.gs-stat-lbl {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Feature list — 3 cols desktop, 2 tablet, 1 mobile */
.gs-feat-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.35);
    margin: 1.8rem 0 0.7rem;
    position: relative;
    z-index: 1;
}

.gs-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.gs-feat {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: background 0.2s, border-color 0.2s;
}

.gs-feat:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
}

.gs-feat-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.gs-feat-body h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    line-height: 1.2;
}

.gs-feat-body p {
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.4;
}

/* ── Auth card (right panel) ── */
.gs-auth-card {
    width: 100%;
    max-width: 360px;
    position: relative;
    z-index: 1;
}

.gs-auth-inner {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 2.2rem 2rem 1.8rem;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.gs-auth-title {
    text-align: center;
    margin-bottom: 1.6rem;
}

.gs-auth-title h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 0.4rem;
}

.gs-auth-title p {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

/* Pills */
.gs-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
    margin-bottom: 1.6rem;
}

.gs-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
}

.gs-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3b5bdb;
    flex-shrink: 0;
}

.gs-pill-dot.green {
    background: #22c55e;
}

.gs-pill-dot.red {
    background: #e84855;
}

.gs-pill-dot.yellow {
    background: #f59e0b;
}

/* Trust line */
.gs-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 1.2rem;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.35);
}

/* Divider */
.gs-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.3rem;
}

.gs-divider::before,
.gs-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.gs-divider span {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

/* Google button */
.gs-google-btn {
    width: 100%;
    padding: 13px 18px;
    background: #fff;
    border: none;
    border-radius: 12px;
    color: #1a202c;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
    letter-spacing: -0.01em;
}

.gs-google-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
    background: #f8f9ff;
}

.gs-google-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Loading */
.gs-loading {
    display: none;
    text-align: center;
    padding: 1.2rem 0 0.4rem;
}

.gs-loading.show {
    display: block;
}

.gs-spinner {
    width: 26px;
    height: 26px;
    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: #3b5bdb;
    border-radius: 50%;
    animation: gs-spin 0.8s linear infinite;
    margin: 0 auto 8px;
}

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

.gs-loading p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.84rem;
}

/* Message box */
.gs-message {
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 0.84rem;
    margin-bottom: 1rem;
    display: none;
    text-align: center;
}

.gs-message.show {
    display: block;
}

.gs-message.error {
    background: rgba(232, 72, 85, 0.15);
    border: 1px solid rgba(232, 72, 85, 0.3);
    color: #fc8181;
}

.gs-message.success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #86efac;
}

/* One tap */
#gs-one-tap {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

/* Footer */
.gs-auth-footer {
    text-align: center;
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.gs-auth-footer p {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.6;
}

.gs-auth-footer a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}

.gs-auth-footer a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* How it works row */
.gs-how {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.gs-how-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
}

.gs-step-num {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #3b5bdb, #6879ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.gs-how-arrow {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

/* Try-without-account link */
.gs-try-link {
    font-size: 0.79rem;
    color: rgba(255, 255, 255, 0.38);
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
}

.gs-try-link:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Scroll hint (mobile) */
.gs-scroll-hint {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    display: none;
}

/* Responsive */
@media (max-width: 1100px) {
    .gs-features {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .gs-wrap {
        flex-direction: column;
    }

    .gs-left {
        flex: 0 0 auto;
        padding: 3rem 2rem 2.5rem;
    }

    .gs-right {
        flex: 0 0 auto;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        padding: 2.5rem 1.5rem 3rem;
    }

    .gs-features {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
    }

    .gs-auth-card {
        max-width: 480px;
        width: 100%;
    }

    .gs-headline h2 {
        font-size: 2rem;
    }
}

@media (max-width: 540px) {
    .gs-left {
        padding: 2.5rem 1.5rem 2rem;
    }

    .gs-features {
        grid-template-columns: 1fr 1fr;
    }

    .gs-stats {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .gs-headline h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 380px) {
    .gs-features {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════
   SCAN PAGE — welcome banner + trial counter
═══════════════════════════════════════════════════ */
.scan-welcome-banner {
    background: linear-gradient(135deg, rgba(59, 91, 219, 0.12) 0%, rgba(99, 120, 255, 0.08) 100%);
    border: 1px solid rgba(59, 91, 219, 0.18);
    border-radius: 16px;
    padding: 18px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.scan-welcome-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.scan-welcome-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #3b5bdb, #6879ff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.scan-welcome-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.scan-welcome-text span {
    font-size: 0.82rem;
    color: var(--text-light);
}

.scan-welcome-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.scan-welcome-actions a {
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.scan-welcome-actions .btn-wdash {
    background: var(--primary);
    color: white;
}

.scan-welcome-actions .btn-wdash:hover {
    opacity: 0.88;
}

.scan-welcome-actions .btn-wbatch {
    background: rgba(30, 39, 97, 0.08);
    color: var(--primary);
    border: 1px solid var(--border);
}

.scan-welcome-actions .btn-wbatch:hover {
    background: rgba(30, 39, 97, 0.13);
}

/* Trial counter live update */
.trial-live-count {
    font-weight: 700;
    transition: color 0.3s;
}

.trial-live-count.warn {
    color: #f59e0b;
}

.trial-live-count.danger {
    color: #e84855;
}

/* ═══════════════════════════════════════════════════
   GET STARTED — COMPLETE REDESIGN (gsnew-* classes)
═══════════════════════════════════════════════════ */
#gs-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.gsnew-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.gsnew-left {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4.5rem 4rem 3.5rem 5rem;
    position: relative;
}

.gsnew-left::before {
    content: '';
    position: absolute;
    top: -120px;
    left: -80px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

.gsnew-left::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: 60px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(232, 72, 85, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.gsnew-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 3.5rem;
    animation: gsnewFadeUp 0.6s ease both;
}

.gsnew-brand-shield {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.3), 0 8px 32px rgba(99, 102, 241, 0.35);
}

.gsnew-brand-text {
    display: flex;
    flex-direction: column;
}

.gsnew-brand-text strong {
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.gsnew-brand-text span {
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
    margin-top: 2px;
    letter-spacing: 0.02em;
}

.gsnew-headline {
    margin-bottom: 2rem;
    animation: gsnewFadeUp 0.6s 0.1s ease both;
}

.gsnew-headline h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.4rem, 4vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.05em;
    color: #fff;
    margin-bottom: 1rem;
}

.gsnew-headline h2 .accent {
    background: linear-gradient(90deg, #818cf8 0%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gsnew-headline p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.7;
    max-width: 480px;
}

.gsnew-stats {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 3rem;
    animation: gsnewFadeUp 0.6s 0.2s ease both;
}

.gsnew-stat-item {
    display: flex;
    flex-direction: column;
}

.gsnew-stat-val {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1;
}

.gsnew-stat-label {
    font-size: 0.71rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
    font-weight: 500;
}

.gsnew-feats-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 0.9rem;
    animation: gsnewFadeUp 0.6s 0.25s ease both;
}

.gsnew-feats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 540px;
    animation: gsnewFadeUp 0.6s 0.3s ease both;
    mask-image: linear-gradient(to bottom, black 85%, transparent);
}

.gsnew-feat-pill {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.62);
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s;
    cursor: default;
}

.gsnew-feat-pill:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
    color: rgba(255, 255, 255, 0.85);
}

.gsnew-feat-pill .pi {
    font-size: 1rem;
}

.gsnew-divider-line {
    display: none;
}

.gsnew-right {
    flex: 0 0 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2.5rem 2rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

.gsnew-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), transparent);
}

.gsnew-card {
    width: 100%;
    max-width: 360px;
    animation: gsnewFadeUp 0.7s 0.15s ease both;
}

.gsnew-card-head {
    margin-bottom: 2rem;
}

.gsnew-card-eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #818cf8;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gsnew-card-eyebrow::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: #818cf8;
    border-radius: 1px;
}

.gsnew-card-head h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.gsnew-card-head p {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.55;
}

.gsnew-trust-row {
    display: flex;
    gap: 8px;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
}

.gsnew-trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.gsnew-trust-chip .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-green {
    background: #22c55e;
    box-shadow: 0 0 4px #22c55e;
}

.dot-blue {
    background: #60a5fa;
    box-shadow: 0 0 4px #60a5fa;
}

.dot-purple {
    background: #a78bfa;
    box-shadow: 0 0 4px #a78bfa;
}

.gsnew-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.gsnew-sep-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.gsnew-sep-txt {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.28);
    white-space: nowrap;
}

#gs-message {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.83rem;
    margin-bottom: 1rem;
    display: none;
    text-align: center;
}

#gs-message.show {
    display: block;
}

#gs-message.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

#gs-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #86efac;
}

#google-signin-btn {
    width: 100%;
    padding: 14px 20px;
    background: #fff;
    border: none;
    border-radius: 12px;
    color: #111;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.15s;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    font-family: 'DM Sans', sans-serif;
    letter-spacing: -0.01em;
}

#google-signin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 36px rgba(0, 0, 0, 0.45);
    background: #f5f5ff;
}

#google-signin-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

#gs-loading {
    display: none;
    text-align: center;
    padding: 1rem 0 0.4rem;
}

#gs-loading.show {
    display: block;
}

.gsnew-spinner {
    width: 24px;
    height: 24px;
    border: 2.5px solid rgba(255, 255, 255, 0.1);
    border-top-color: #818cf8;
    border-radius: 50%;
    animation: gs-spin 0.75s linear infinite;
    margin: 0 auto 8px;
}

#gs-loading p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.82rem;
}

#gs-one-tap {
    margin-top: 10px;
    display: flex;
    justify-content: center;
}

.gsnew-try-link {
    display: block;
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color 0.2s;
}

.gsnew-try-link:hover {
    color: rgba(255, 255, 255, 0.65);
}

.gsnew-try-link span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gsnew-card-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gsnew-card-footer p {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.22);
    text-align: center;
    line-height: 1.7;
}

.gsnew-card-footer a {
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color 0.2s;
}

.gsnew-card-footer a:hover {
    color: rgba(255, 255, 255, 0.7);
}

.gsnew-preview-card {
    margin-bottom: 1.8rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    overflow: hidden;
    position: relative;
}

.gsnew-preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.gsnew-preview-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.gsnew-preview-dots {
    display: flex;
    gap: 5px;
}

.gsnew-preview-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.gsnew-preview-dot:first-child {
    background: rgba(239, 68, 68, 0.5);
}

.gsnew-preview-dot:nth-child(2) {
    background: rgba(245, 158, 11, 0.5);
}

.gsnew-preview-dot:last-child {
    background: rgba(34, 197, 94, 0.5);
}

.gsnew-preview-url {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 4px 10px;
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gsnew-preview-result {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
}

.gsnew-preview-verdict {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.72rem;
}

.gsnew-preview-verdict.phishing {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.gsnew-preview-verdict.safe {
    background: rgba(34, 197, 94, 0.12);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.gsnew-preview-conf {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    font-family: 'DM Mono', monospace;
}

.gsnew-preview-bar-fill {
    height: 3px;
    border-radius: 2px;
    margin-top: 8px;
    transition: width 1.5s ease;
}

@keyframes gsnewFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 960px) {
    .gsnew-wrap {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .gsnew-left {
        padding: 3rem 2rem 2rem;
    }

    .gsnew-divider-line {
        display: none;
    }

    .gsnew-right {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        flex: none;
        padding: 2.5rem 1.5rem 3rem;
    }

    #gs-canvas {
        display: none;
    }

    .gsnew-left::before,
    .gsnew-left::after {
        display: none;
    }

    body.page-auth {
        overflow-y: auto;
    }
}

@media (max-width: 540px) {
    .gsnew-headline h2 {
        font-size: 2rem;
    }

    .gsnew-feats {
        gap: 6px;
    }

    .gsnew-feat-pill {
        font-size: 0.74rem;
        padding: 7px 11px;
    }

    .gsnew-stats {
        gap: 1.5rem;
    }
}

/* ==========================================
 * RESTORED: CAMPAIGN CLUSTERING PAGE CSS
 * ========================================== */
.cluster-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: .6rem;
}

.cluster-hero p {
    opacity: .88;
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
}

.cluster-body {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.btn-cluster:hover {
    opacity: .9;
    transform: translateY(-1px);
}

.btn-cluster:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

.cluster-card {
    margin-top: 1rem;
    border-left: 4px solid #ccc;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.cluster-card.CRITICAL {
    border-left-color: #e53e3e;
}

.cluster-card.HIGH {
    border-left-color: #dd6b20;
}

.cluster-card.MEDIUM {
    border-left-color: #d69e2e;
}

.cluster-card.LOW {
    border-left-color: #38a169;
}

.cluster-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cluster-header:hover {
    background: rgba(30, 39, 97, .03);
    cursor: pointer;
}

.threat-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.75rem;
}

.threat-badge.CRITICAL {
    background: #fed7d7;
    color: #c53030;
}

.threat-badge.HIGH {
    background: #feebc8;
    color: #c05621;
}

.threat-badge.MEDIUM {
    background: #fefcbf;
    color: #744210;
}

.threat-badge.LOW {
    background: #c6f6d5;
    color: #276749;
}

[data-theme="dark"] .cluster-card {
    background: #2d3748;
}

[data-theme="dark"] .threat-badge.CRITICAL {
    background: rgba(197, 48, 48, .2);
    color: #fc8181;
}

[data-theme="dark"] .threat-badge.HIGH {
    background: rgba(192, 86, 33, .2);
    color: #fbd38d;
}

[data-theme="dark"] .threat-badge.MEDIUM {
    background: rgba(214, 158, 46, .2);
    color: #f6e05e;
}

[data-theme="dark"] .threat-badge.LOW {
    background: rgba(56, 161, 105, .2);
    color: #68d391;
}

.cluster-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
}

.cluster-meta {
    font-size: .8rem;
    color: var(--text-light);
}

.cluster-body-inner {
    display: none;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
}

.cluster-card.expanded .cluster-body-inner {
    display: block;
}

/* ═══════════════════════════════════════════════════════════════════
   GET STARTED PAGE — UI/UX FIXES
═══════════════════════════════════════════════════════════════════ */

/* Fix brand/headline visual order: brand should appear above headline */
.gsnew-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3.5rem 3.5rem 3rem 4.5rem;
    min-height: 100vh;
    gap: 0;
}

.gsnew-brand {
    order: -1;
    margin-bottom: 2.2rem;
}

.gsnew-headline {
    order: 0;
    margin-bottom: 2rem;
}

.gsnew-stats {
    order: 1;
    margin-bottom: 2rem;
}

.gsnew-feats-label {
    order: 2;
    margin-bottom: 0.75rem;
}

.gsnew-feats {
    order: 3;
    /* Remove the fade mask that cuts off pills */
    mask-image: none;
    -webkit-mask-image: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    max-width: 560px;
}

/* Headline sizing improvements */
.gsnew-headline h2 {
    font-size: clamp(2.2rem, 3.2vw, 3.4rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.gsnew-headline p {
    font-size: 0.975rem;
    color: rgba(255, 255, 255, 0.52);
    line-height: 1.7;
    max-width: 460px;
    margin-top: 0.9rem;
}

/* Stats row – tighter, cleaner */
.gsnew-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.gsnew-stat-val {
    font-size: 1.55rem;
}

.gsnew-stat-label {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    margin-top: 3px;
}

/* Feature pills – consistent height, no overflow */
.gsnew-feat-pill {
    padding: 9px 13px;
    font-size: 0.78rem;
    border-radius: 10px;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 38px;
}

.gsnew-feat-pill .pi {
    font-size: 0.95rem;
    flex-shrink: 0;
}

/* Right panel – better vertical centering and width */
.gsnew-right {
    flex: 0 0 400px;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.18);
    align-self: stretch;
}

/* Auth card container */
.gsnew-card {
    width: 100%;
    max-width: 340px;
}

/* Preview card – tighter */
.gsnew-preview-card {
    margin-bottom: 1.6rem;
    padding: 13px 15px;
    border-radius: 12px;
}

.gsnew-preview-url {
    font-size: 0.7rem;
    padding: 4px 10px;
}

.gsnew-preview-verdict {
    font-size: 0.73rem;
    padding: 4px 10px;
}

.gsnew-preview-conf {
    font-size: 0.7rem;
}

/* Card header spacing */
.gsnew-card-head {
    margin-bottom: 1.5rem;
}

.gsnew-card-eyebrow {
    margin-bottom: 0.5rem;
    font-size: 0.68rem;
}

.gsnew-card-head h3 {
    font-size: 1.6rem;
    line-height: 1.18;
    margin-bottom: 0.5rem;
}

.gsnew-card-head p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.55;
}

/* Trust chips row */
.gsnew-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 1.4rem;
}

.gsnew-trust-chip {
    font-size: 0.71rem;
    padding: 4px 10px;
}

/* Separator */
.gsnew-sep {
    margin-bottom: 1.2rem;
}

/* Google button – prominent, well-proportioned */
#google-signin-btn {
    padding: 13px 18px;
    font-size: 0.9rem;
    border-radius: 11px;
    gap: 10px;
    letter-spacing: -0.01em;
}

/* Loading state */
#gs-loading {
    padding: 0.9rem 0 0.3rem;
}

#gs-loading p {
    font-size: 0.8rem;
    margin-top: 6px;
}

/* Try without account link */
.gsnew-try-link {
    margin-top: 1rem;
    font-size: 0.76rem;
}

/* Footer */
.gsnew-card-footer {
    margin-top: 1.6rem;
    padding-top: 1.2rem;
}

.gsnew-card-footer p {
    font-size: 0.71rem;
    line-height: 1.65;
}

/* ── Responsive fixes ── */
@media (max-width: 1100px) {
    .gsnew-feats {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }

    .gsnew-left {
        padding: 3rem 2.5rem 3rem 3rem;
    }
}

@media (max-width: 960px) {
    .gsnew-left {
        min-height: auto;
        padding: 3rem 2rem 2.5rem;
        justify-content: flex-start;
    }

    .gsnew-right {
        min-height: auto;
        height: auto;
        position: static;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding: 2.5rem 1.5rem 3rem;
        flex: none;
        background: rgba(0, 0, 0, 0.22);
    }

    .gsnew-feats {
        grid-template-columns: repeat(2, 1fr);
    }

    .gsnew-card {
        max-width: 420px;
    }
}

@media (max-width: 540px) {
    .gsnew-left {
        padding: 2.5rem 1.5rem 2rem;
    }

    .gsnew-headline h2 {
        font-size: 1.9rem;
    }

    .gsnew-feats {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }

    .gsnew-feat-pill {
        font-size: 0.73rem;
        padding: 8px 10px;
        min-height: 36px;
    }

    .gsnew-stats {
        gap: 1.4rem;
    }

    .gsnew-stat-val {
        font-size: 1.35rem;
    }
}

/* ══════════════════════════════════════════════════
   REMOVED TRANSLATE LOGIC
   Completely hides all Google Translate UI elements
   and prevents layout shifts.
   ══════════════════════════════════════════════════ */

/* Hide the main banner iframe */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame,
iframe.goog-te-menu-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Fix body shifts and positioning */
body {
    top: 0 !important;
    position: static !important;
}

/* Hide the tooltip on hover over translated text */
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    color: inherit !important;
}

/* Hide the processing spinner and other UI bits */
.goog-te-spinner-pos,
.goog-te-menu-value,
.goog-te-gadget-icon,
.goog-te-gadget-simple img {
    display: none !important;
}

/* Ensure no space is reserved for the native widget */
#google_translate_element {
    display: none !important;
}

/* Reset any injected body font-size or margins */
html {
    padding-top: 0 !important;
}

/* Shared investigation drawer */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
    z-index: 1090;
}

.drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.investigation-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(560px, 100vw);
    height: 100vh;
    background: var(--bg);
    box-shadow: -18px 0 40px rgba(15, 23, 42, 0.18);
    transform: translateX(100%);
    transition: transform .24s ease;
    z-index: 1100;
    display: flex;
    flex-direction: column;
}

.investigation-drawer.open {
    transform: translateX(0);
}

.investigation-drawer-header {
    padding: 22px 24px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.investigation-drawer-header h2 {
    margin: 6px 0 4px;
    font-size: 1.2rem;
    color: var(--text);
}

.investigation-drawer-header p {
    margin: 0;
    color: var(--text-light);
    font-size: .9rem;
    line-height: 1.5;
    word-break: break-word;
}

.drawer-close-btn {
    border: 0;
    background: var(--surface);
    color: var(--text);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 700;
}

.investigation-tabs {
    display: flex;
    gap: 8px;
    padding: 14px 24px 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.investigation-tab {
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--text-light);
    padding: 10px 2px 12px;
    cursor: pointer;
    font-weight: 700;
}

.investigation-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.investigation-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 28px;
    background: var(--bg);
}

.drawer-pane {
    display: none;
}

.drawer-pane.active {
    display: block;
}

.drawer-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.drawer-block h3 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 1rem;
}

.drawer-block p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
    font-size: .92rem;
}

.drawer-evidence-list,
.drawer-detail-list {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--text);
}

.drawer-evidence-list li,
.drawer-detail-list li {
    margin-bottom: 7px;
    line-height: 1.5;
}

.drawer-pill-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.drawer-pill {
    padding: 7px 12px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    background: var(--bg);
    color: var(--text);
}

.async-state {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 12px;
    background: var(--bg);
    color: var(--text-light);
    padding: 18px;
    font-size: .9rem;
}

.drawer-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.drawer-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.report-draft-box {
    width: 100%;
    min-height: 150px;
    resize: vertical;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px;
    font-family: inherit;
    font-size: .92rem;
    line-height: 1.5;
    color: var(--text);
    background: var(--surface);
}

.report-status {
    margin-top: 12px;
    font-size: .9rem;
    color: var(--text-light);
}

@media (max-width: 720px) {
    .investigation-drawer {
        width: 100vw;
    }

    .investigation-drawer-header,
    .investigation-tabs,
    .investigation-drawer-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .investigation-drawer-header {
        padding-top: 18px;
    }

    .investigation-tabs {
        gap: 6px;
        overflow-x: auto;
        padding-top: 10px;
        scrollbar-width: none;
    }

    .investigation-tabs::-webkit-scrollbar {
        display: none;
    }

    .investigation-tab {
        flex: 0 0 auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }

    .drawer-block {
        padding: 15px;
        border-radius: 12px;
    }

    .drawer-pill {
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 540px) {
    #hookLauncher,
    #hook-launcher,
    #hook-launch {
        right: 14px !important;
        bottom: max(14px, env(safe-area-inset-bottom)) !important;
    }

    #hookPanel,
    #hook-panel,
    #hook-win {
        left: 10px !important;
        right: 10px !important;
        width: auto !important;
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100dvh - 96px) !important;
    }
}

/* Quiz Category Buttons & Interactive Elements in Dark Mode */
[data-theme="dark"] .btn[style*="background:var(--bg)"],
[data-theme="dark"] .btn[style*="background: var(--bg)"] {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text) !important;
}

[data-theme="dark"] .btn[style*="background:var(--bg)"]:hover,
[data-theme="dark"] .btn[style*="background: var(--bg)"]:hover {
    background: var(--bg) !important;
    border-color: var(--primary) !important;
}
