/* =========================================================
   VeriFyre Design System
   Subject: Fire incident reporting and validation system
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=IBM+Plex+Mono:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700;800;900&display=swap');

:root {
    --vf-bg: #F9F6EE;
    --vf-surface: #FFFFFF;
    --vf-ink: #1F2123;
    --vf-muted: #6B6F76;

    --vf-red: #E53935;
    --vf-red-deep: #B71C1C;
    --vf-hero-accent: #FF2C20;
    --vf-red-tint: #FBE9E7;

    --vf-amber: #F2A93B;
    --vf-green: #2E7D32;

    --vf-line: rgba(31, 33, 35, 0.10);
    --vf-shadow: 0 12px 32px rgba(31, 33, 35, 0.10);
    --vf-shadow-sm: 0 4px 14px rgba(31, 33, 35, 0.08);

    --vf-font-display: 'Barlow Condensed', sans-serif;
    --vf-font-body: 'Source Sans 3', Arial, sans-serif;
    --vf-font-mono: 'IBM Plex Mono', monospace;

    --vf-radius: 16px;
    --vf-radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--vf-font-body);
    background: var(--vf-bg);
    color: var(--vf-ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

h1,
h2,
h3 {
    font-family: var(--vf-font-display);
    font-weight: 800;
    letter-spacing: 0.2px;
    text-transform: none;
}

button,
input {
    font-family: var(--vf-font-body);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--vf-amber);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* =========================================================
   TOP STRIPE
   ========================================================= */

.vf-stripe {
    height: 4px;
    width: 100%;
    background: var(--vf-red);
}

/* =========================================================
   NAVBAR
   ========================================================= */

.vf-navbar {
    background: var(--vf-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--vf-shadow-sm);
}

.vf-navbar__inner {
    max-width: 1240px;
    margin: 0 auto;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
}

.vf-navbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--vf-font-display);
    font-size: 30px;
    font-weight: 900;
    color: var(--vf-red);
    letter-spacing: 0.3px;
    line-height: 1;
}

.vf-navbar__brand img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--vf-red-tint);
}

.vf-navbar__brand span {
    color: var(--vf-red);
}

.vf-navbar__links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-weight: 700;
    font-size: 15px;
    color: var(--vf-ink);
}

.vf-navbar__links a {
    position: relative;
    padding: 6px 0;
    line-height: 1;
    white-space: nowrap;
}

.vf-navbar__links a:not(.vf-navbar__login)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--vf-red);
    transition: width 0.2s ease;
}

.vf-navbar__links a:not(.vf-navbar__login):hover::after {
    width: 100%;
}

/* FIXED LOG IN BUTTON */
.vf-navbar__login {
    background: var(--vf-red) !important;
    color: #ffffff !important;
    padding: 0 24px !important;
    min-width: 92px;
    height: 42px;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1 !important;
    font-weight: 800 !important;
    white-space: nowrap;
    box-shadow: 0 6px 14px rgba(229, 57, 53, 0.25);
    transition: background 0.2s ease, transform 0.15s ease;
}

.vf-navbar__login:hover {
    background: var(--vf-red-deep) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.vf-link-btn {
    background: none;
    border: none;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    color: var(--vf-ink);
}

.vf-navbar__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    cursor: pointer;
}

.vf-navbar__toggle span {
    width: 100%;
    height: 3px;
    background: var(--vf-red);
    border-radius: 2px;
    transition: 0.2s;
}

@media (max-width: 1024px) {
    .vf-navbar__toggle {
        display: flex;
    }

    .vf-navbar__links {
        position: fixed;
        top: 0;
        right: -280px;
        height: 100vh;
        width: 260px;
        max-width: 80vw;
        background: var(--vf-surface);
        flex-direction: column;
        align-items: flex-start;
        padding: 90px 24px 24px;
        box-shadow: -6px 0 24px rgba(0, 0, 0, 0.14);
        transition: right 0.25s ease;
        gap: 24px;
        overflow-y: auto;
        z-index: 1001;
    }

    .vf-navbar__links--open {
        right: 0;
    }

    .vf-navbar__login {
        align-self: flex-start;
    }
}

@media (max-width: 420px) {
    .vf-navbar__inner {
        padding: 12px 16px;
    }

    .vf-navbar__brand {
        font-size: 25px;
    }

    .vf-navbar__brand img {
        height: 36px;
        width: 36px;
    }
}

/* =========================================================
   FOOTER
   ========================================================= */

.vf-footer {
    margin-top: 64px;
}

.vf-footer__bar {
    background: var(--vf-ink);
    color: #fff;
}

.vf-footer__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 36px 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: space-between;
}

.vf-footer__brand strong {
    font-family: var(--vf-font-display);
    font-size: 22px;
    color: var(--vf-red);
}

.vf-footer p {
    margin: 3px 0;
    font-size: 14px;
    opacity: 0.78;
}

.vf-footer strong {
    font-size: 15px;
}

.vf-footer__contact strong,
.vf-footer__rights strong {
    color: #fff;
}

/* =========================================================
   LAYOUT HELPERS
   ========================================================= */

.vf-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 64px 28px;
}

.vf-eyebrow {
    font-family: var(--vf-font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--vf-red-deep);
    margin-bottom: 10px;
    display: block;
}

.vf-card {
    background: var(--vf-surface);
    border-radius: var(--vf-radius);
    box-shadow: var(--vf-shadow);
    border: 1px solid var(--vf-line);
    padding: 32px;
}

.vf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    white-space: nowrap;
    background: var(--vf-red);
    color: var(--vf-surface);
    padding: 15px 32px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.vf-btn:hover {
    background: var(--vf-red-deep);
    transform: translateY(-1px);
}

.vf-btn:disabled {
    background: var(--vf-red-tint);
    color: var(--vf-red);
    cursor: not-allowed;
    transform: none;
}

.vf-btn:disabled:hover {
    background: var(--vf-red-tint);
    transform: none;
}

.vf-btn--outline {
    background: transparent;
    color: var(--vf-red);
    border: 2px solid var(--vf-red);
}

.vf-btn--outline:hover {
    background: var(--vf-red-tint);
    color: var(--vf-red-deep);
}

.vf-input {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid var(--vf-line);
    border-radius: var(--vf-radius-sm);
    font-size: 15px;
    font-family: var(--vf-font-body);
    margin-bottom: 18px;
    background: var(--vf-surface);
    transition: border-color 0.15s ease;
}

.vf-input:focus {
    border-color: var(--vf-red);
    outline: none;
}

.vf-password-wrap {
    position: relative;
}

.vf-password-wrap .vf-input {
    padding-right: 44px;
}

.vf-password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 18px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--vf-muted);
    padding: 0;
}

.vf-password-toggle:hover {
    color: var(--vf-red);
}

.vf-eye-icon {
    width: 20px;
    height: 20px;
}

.vf-label {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--vf-muted);
    display: block;
    margin-bottom: 7px;
}

/* =========================================================
   EDUCATION / CYBERSECURITY SHARED ICON SYSTEM
   Fire-toned accent palette, all warm hues from the brand's
   red spectrum, used by both the Education and Cybersecurity
   pages for icon badges and section headers.
   ========================================================= */

.vf-edu-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.vf-edu-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}

.vf-edu-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--vf-red-tint);
    color: var(--vf-red-deep);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.vf-edu-badge .vf-edu-svg {
    width: 14px;
    height: 14px;
}

.vf-edu-header h1 {
    margin: 0 0 10px;
    font-size: 38px;
    font-weight: 900;
    color: var(--vf-ink);
    letter-spacing: -0.5px;
}

.vf-edu-header p {
    margin: 0;
    color: var(--vf-muted);
    font-size: 16px;
}

.vf-edu-box__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    padding: 9px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vf-edu-accent, var(--vf-red));
    background: var(--vf-edu-accent-tint, var(--vf-red-tint));
    transition: transform 0.25s ease;
}

.vf-edu-box--gold    { --vf-edu-accent: #b45309; --vf-edu-accent-tint: #fef3c7; }
.vf-edu-box--ember   { --vf-edu-accent: #ea580c; --vf-edu-accent-tint: #ffedd5; }
.vf-edu-box--crimson { --vf-edu-accent: var(--vf-red); --vf-edu-accent-tint: var(--vf-red-tint); }
.vf-edu-box--maroon  { --vf-edu-accent: var(--vf-red-deep); --vf-edu-accent-tint: #fbe3e3; }
.vf-edu-box--rust    { --vf-edu-accent: #9a3412; --vf-edu-accent-tint: #ffe4d1; }
.vf-edu-box--coral   { --vf-edu-accent: #e11d48; --vf-edu-accent-tint: #ffe4e9; }

@media (max-width: 700px) {
    .vf-edu {
        padding: 40px 16px;
    }

    .vf-edu-header h1 {
        font-size: 26px;
    }

    .vf-edu-header p {
        font-size: 14px;
    }
}

/* =========================================================
   HERO
   ========================================================= */

.vf-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.vf-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(20, 12, 12, 0.72),
        rgba(20, 12, 12, 0.45) 55%,
        rgba(20, 12, 12, 0.78)
    );
}

.vf-hero__content {
    position: relative;
    z-index: 1;
    max-width: 820px;
    padding: 0 28px;
    margin: 0 auto;
}

.vf-hero h1 {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.05;
    margin: 0 0 18px;
    letter-spacing: 0.5px;
    color: var(--vf-hero-accent);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.vf-hero p {
    font-family: var(--vf-font-body);
    font-size: 18px;
    font-weight: 600;
    max-width: 650px;
    margin: 0 auto 28px;
    opacity: 0.95;
    color: #fff;
}

@media (max-width: 600px) {
    .vf-hero {
        min-height: 500px;
    }

    .vf-hero h1 {
        font-size: 42px;
    }

    .vf-hero p {
        font-size: 16px;
    }
}

/* =========================================================
   AUTH PAGES
   ========================================================= */

.vf-auth-wrap {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
}

.vf-auth-card {
    background: var(--vf-surface);
    border-radius: 22px;
    box-shadow: var(--vf-shadow);
    border: 1px solid var(--vf-line);
    border-top: 5px solid var(--vf-red);
    padding: 44px 40px;
    width: 100%;
    max-width: 460px;
}

.vf-auth-card h1 {
    color: var(--vf-ink);
    text-align: center;
    margin-bottom: 6px;
    font-size: 32px;
}

.vf-auth-card > p:first-of-type {
    margin-top: 0;
}

.vf-auth-links {
    background: var(--vf-red-tint);
    border-left: 4px solid var(--vf-red);
    border-radius: var(--vf-radius-sm);
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    font-weight: 700;
    font-size: 14px;
}

.vf-auth-links a {
    color: var(--vf-red-deep);
}

.vf-error {
    color: var(--vf-red-deep);
    background: var(--vf-red-tint);
    border-radius: var(--vf-radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    margin: -6px 0 16px;
}

.vf-otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 22px;
}

.vf-otp-inputs input {
    flex: 1 1 0;
    max-width: 50px;
    min-width: 0;
    height: 58px;
    text-align: center;
    font-family: var(--vf-font-mono);
    font-size: 22px;
    font-weight: 700;
    border: 1.5px solid var(--vf-line);
    border-radius: var(--vf-radius-sm);
}

.vf-otp-inputs input:focus {
    border-color: var(--vf-red);
    outline: none;
}

.vf-otp-channels__label {
    text-align: center;
    color: var(--vf-muted);
    font-size: 13px;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 10px;
}

.vf-otp-channels {
    display: flex;
    gap: 10px;
}

.vf-otp-channel-form {
    flex: 1;
    min-width: 0;
}

.vf-otp-channel {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    background: var(--vf-surface);
    border: 1.5px solid var(--vf-line);
    border-radius: var(--vf-radius-sm);
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .1s ease;
}

.vf-otp-channel:hover {
    border-color: var(--vf-red);
    transform: translateY(-1px);
}

.vf-otp-channel--active {
    border-color: var(--vf-red);
    background: var(--vf-red-tint);
}

.vf-otp-channel__icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vf-red-tint);
    color: var(--vf-red);
}

.vf-otp-channel--active .vf-otp-channel__icon {
    background: var(--vf-red);
    color: #fff;
}

.vf-otp-channel__icon svg {
    width: 18px;
    height: 18px;
}

.vf-otp-channel__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
}

.vf-otp-channel__title {
    font-weight: 700;
    font-size: 13px;
    color: var(--vf-ink);
}

.vf-otp-channel__value {
    font-size: 12px;
    color: var(--vf-muted);
    font-family: var(--vf-font-mono);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vf-otp-channel__badge {
    flex: 0 0 auto;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #fff;
    background: var(--vf-green);
    border-radius: 999px;
    padding: 3px 8px;
}

@media (max-width: 480px) {
    .vf-auth-card {
        padding: 32px 20px;
    }

    .vf-otp-inputs {
        gap: 6px;
    }

    .vf-otp-channels {
        flex-direction: column;
    }
}

/* =========================================================
   MAP
   ========================================================= */

.vf-map {
    width: 100%;
    height: 420px;
    border-radius: var(--vf-radius);
    overflow: hidden;
    box-shadow: var(--vf-shadow);
    border: 1px solid var(--vf-line);
}

/* =========================================================
   REPORT A FIRE
   ========================================================= */

.vf-camera-box {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 3;
    background: var(--vf-ink);
    border-radius: var(--vf-radius);
    overflow: hidden;
    position: relative;
    margin: 0 auto 24px;
    border: 3px solid var(--vf-red);
}

.vf-camera-box video,
.vf-camera-box canvas,
.vf-camera-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vf-911-banner {
    background: var(--vf-ink);
    color: #fff;
    border-radius: var(--vf-radius-sm);
    padding: 16px 22px;
    text-align: center;
    font-family: var(--vf-font-mono);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 24px;
    border-left: 4px solid var(--vf-red);
}

/* =========================================================
   CROWDSOURCING MODAL
   ========================================================= */

.vf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 12, 12, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 2000;
}

.vf-modal-overlay--active {
    display: flex;
}

.vf-crowdsource-modal {
    background: var(--vf-surface);
    border-radius: 24px;
    padding: 36px;
    max-width: 380px;
    text-align: center;
    box-shadow: var(--vf-shadow);
    border-top: 5px solid var(--vf-red);
}

.vf-crowdsource-modal h2 {
    color: var(--vf-ink);
    margin-bottom: 10px;
    font-size: 26px;
}

.vf-verify-btn {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: var(--vf-red);
    color: #fff;
    font-family: var(--vf-font-display);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 0.5px;
    border: none;
    margin: 22px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(229, 57, 53, 0.5);
    transition: transform 0.15s ease, background 0.2s ease;
}

.vf-verify-btn:hover {
    background: var(--vf-red-deep);
    transform: scale(1.04);
}

/* =========================================================
   POST-OPERATION QUESTIONS MODAL
   ========================================================= */

.vf-postop-modal {
    background: var(--vf-surface);
    border-radius: 20px;
    padding: 28px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--vf-shadow);
    border-top: 5px solid var(--vf-red);
    text-align: left;
}

.vf-postop-modal h2 {
    color: var(--vf-red);
    margin-top: 0;
    margin-bottom: 4px;
    font-size: 22px;
}

.vf-postop-modal p.vf-postop-subtitle {
    color: var(--vf-muted);
    font-size: 13px;
    margin-bottom: 18px;
}

.vf-postop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}

.vf-postop-grid .vf-postop-field--full {
    grid-column: 1 / -1;
}

.vf-postop-field {
    margin-bottom: 14px;
}

.vf-postop-error {
    color: var(--vf-red);
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.vf-postop-error.is-visible {
    display: block;
}

.vf-postop-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 8px;
}

/* =========================================================
   SUCCESS PAGE
   ========================================================= */

.vf-success-wrap {
    text-align: center;
    padding: 72px 24px;
    max-width: 600px;
    margin: 0 auto;
}

.vf-success-icon {
    width: 92px;
    height: 92px;
    background: var(--vf-green);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 46px;
    margin: 0 auto 22px;
    box-shadow: 0 10px 28px rgba(46, 125, 50, 0.35);
}

.vf-success-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}

/* =========================================================
   DASHBOARD SHELLS
   ========================================================= */

.vf-dash {
    display: flex;
    min-height: 80vh;
}

.vf-dash__sidebar {
    width: 230px;
    background: var(--vf-surface);
    border-right: 1px solid var(--vf-line);
    padding: 28px 16px;
}

.vf-dash__sidebar a {
    display: block;
    padding: 12px 16px;
    border-radius: var(--vf-radius-sm);
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 14px;
    color: var(--vf-ink);
}

.vf-dash__sidebar a.active,
.vf-dash__sidebar a:hover {
    background: var(--vf-red-tint);
    color: var(--vf-red-deep);
}

.vf-dash__main {
    flex: 1;
    padding: 36px;
    min-width: 0;
}

@media (max-width: 768px) {
    .vf-dash {
        flex-direction: column;
        min-height: auto;
    }

    .vf-dash__sidebar {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 8px;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--vf-line);
        padding: 14px 16px;
    }

    .vf-dash__sidebar a {
        margin-bottom: 0;
        white-space: nowrap;
    }

    .vf-dash__main {
        padding: 24px 18px;
    }
}

.vf-report-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vf-report-item {
    background: var(--vf-surface);
    border-radius: var(--vf-radius-sm);
    border: 1px solid var(--vf-line);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--vf-shadow-sm);
    cursor: pointer;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.vf-report-item:hover {
    box-shadow: var(--vf-shadow);
    border-color: var(--vf-red);
}

.vf-status-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes vf-dot-pulse-red {
    0%   { box-shadow: 0 0 0 0   rgba(229, 57, 53, 0.65); }
    70%  { box-shadow: 0 0 0 10px rgba(229, 57, 53, 0); }
    100% { box-shadow: 0 0 0 0   rgba(229, 57, 53, 0); }
}

@keyframes vf-dot-pulse-orange {
    0%   { box-shadow: 0 0 0 0   rgba(230, 81, 0, 0.65); }
    70%  { box-shadow: 0 0 0 10px rgba(230, 81, 0, 0); }
    100% { box-shadow: 0 0 0 0   rgba(230, 81, 0, 0); }
}

@keyframes vf-new-item-flash {
    0%   { background: rgba(229, 57, 53, 0.10); border-color: rgba(229, 57, 53, 0.55); }
    100% { background: var(--vf-surface); border-color: var(--vf-line); }
}

@keyframes vf-live-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.25; }
}

.vf-status-dot--active {
    background: var(--vf-red);
    animation: vf-dot-pulse-red 1.5s ease-out infinite;
}

.vf-status-dot--extinguished {
    background: var(--vf-green);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.12);
}

.vf-status-dot--fake {
    background: #9e9e9e;
    box-shadow: 0 0 0 4px rgba(158, 158, 158, 0.18);
}

.vf-status-dot--blocked {
    background: #e65100;
    animation: vf-dot-pulse-orange 1.5s ease-out infinite;
}

.vf-report-item--new {
    animation: vf-new-item-flash 2.5s ease-out forwards;
}

.vf-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    animation: vf-live-blink 1.4s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 4px;
    flex-shrink: 0;
}

/* =========================================================
   VALIDATION TRAFFIC-LIGHT PANEL
   Used on the Fire Reports detail view and the Metadata
   Validation table to show at-a-glance report credibility.
   ========================================================= */

.vf-validation-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    background: var(--vf-surface);
    border-radius: var(--vf-radius);
    box-shadow: var(--vf-shadow-sm);
    padding: 18px 20px;
}

.vf-validation-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 84px;
    text-align: center;
}

.vf-validation-icon {
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.vf-validation-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.vf-validation-icon--passed {
    background: rgba(46, 125, 50, 0.12);
    color: var(--vf-green);
    box-shadow: 0 0 8px 1px rgba(46, 125, 50, 0.25);
}

.vf-validation-icon--warning {
    background: rgba(242, 169, 59, 0.15);
    color: var(--vf-amber);
    box-shadow: 0 0 8px 1px rgba(242, 169, 59, 0.3);
}

.vf-validation-icon--failed {
    background: var(--vf-red-tint);
    color: var(--vf-red);
    box-shadow: 0 0 8px 1px rgba(229, 57, 53, 0.3);
}

.vf-validation-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--vf-muted);
    line-height: 1.3;
}

.vf-validation-panel--compact {
    display: inline-flex;
    gap: 8px;
    padding: 0;
    background: none;
    box-shadow: none;
}

.vf-validation-panel--compact .vf-validation-icon {
    width: 26px;
    height: 26px;
    padding: 6px;
    cursor: help;
}

.vf-crowdsource-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--vf-red-tint);
    color: var(--vf-red-deep);
    border: none;
    border-radius: 999px;
    padding: 4px 10px;
    font-family: var(--vf-font-mono);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s ease;
}

.vf-crowdsource-badge:hover {
    background: var(--vf-red-deep);
    color: #fff;
}

.vf-crowdsource-badge svg {
    width: 16px;
    height: 16px;
}

.vf-crowdsource-list-modal {
    background: var(--vf-surface);
    border-radius: var(--vf-radius);
    padding: 28px;
    max-width: 420px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--vf-shadow);
    text-align: left;
}

.vf-crowdsource-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--vf-line);
    border-radius: var(--vf-radius-sm);
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.vf-crowdsource-list-item:hover {
    border-color: var(--vf-red);
}

/* Validation items that double as clickable detail tabs (Fire Reports
   detail panel - admin and firefighter views). */
button.vf-validation-item {
    background: none;
    border: 2px solid transparent;
    border-radius: var(--vf-radius-sm);
    padding: 8px 6px;
    cursor: pointer;
    font: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
}

button.vf-validation-item:hover {
    background: var(--vf-bg);
}

button.vf-validation-item.is-active {
    background: var(--vf-red-tint);
    border-color: var(--vf-red);
}

button.vf-validation-item.is-active .vf-validation-label {
    color: var(--vf-red-deep);
}

.vf-detail-section-title {
    font-family: var(--vf-font-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--vf-muted);
    margin: 18px 0 10px;
}

.vf-detail-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}

.vf-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--vf-bg);
    border: 1px solid var(--vf-line);
    border-radius: var(--vf-radius-sm);
}

.vf-detail-row__label {
    font-size: 13px;
    font-weight: 700;
    color: var(--vf-muted);
    flex-shrink: 0;
}

.vf-detail-row__value {
    font-size: 14px;
    font-weight: 700;
    color: var(--vf-ink);
    text-align: right;
}

.vf-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--vf-font-mono);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.vf-pill--passed {
    background: rgba(46, 125, 50, 0.12);
    color: var(--vf-green);
}

.vf-pill--warning {
    background: rgba(242, 169, 59, 0.15);
    color: var(--vf-amber);
}

.vf-pill--failed {
    background: var(--vf-red-tint);
    color: var(--vf-red-deep);
}

.vf-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 16px 18px;
    background: var(--vf-surface);
    border: 1px solid var(--vf-line);
    border-radius: var(--vf-radius);
    box-shadow: var(--vf-shadow-sm);
    padding: 20px 22px;
    margin-bottom: 24px;
}

.vf-filter-bar .vf-input {
    margin-bottom: 0;
    height: 46px;
}

.vf-filter-bar .vf-label {
    margin-bottom: 6px;
}

.vf-filter-bar__field {
    display: flex;
    flex-direction: column;
    flex: 1 1 140px;
    min-width: 140px;
}

.vf-filter-bar__field--grow {
    flex: 2 1 220px;
}

.vf-filter-bar__actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.vf-filter-bar__actions .vf-btn,
.vf-filter-bar__actions .vf-btn--outline {
    height: 46px;
    padding: 0 26px;
    font-size: 14px;
    white-space: nowrap;
}

@media (max-width: 540px) {
    .vf-filter-bar {
        padding: 18px;
    }

    .vf-filter-bar__field {
        flex-basis: 100%;
    }

    .vf-filter-bar__actions {
        flex-basis: 100%;
    }

    .vf-filter-bar__actions .vf-btn,
    .vf-filter-bar__actions .vf-btn--outline {
        flex: 1;
    }
}

.vf-reports-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    align-items: start;
}

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

@media (max-width: 540px) {
    .vf-report-item {
        flex-wrap: wrap;
    }
}

.vf-auth-group {
    width: 100%;
    max-width: 460px;
}

.vf-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--vf-red-tint);
    color: var(--vf-red-deep);
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.vf-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* =========================================================
   Restore original font for logo and hero title
   ========================================================= */

.vf-navbar__brand,
.vf-navbar__brand span {
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: -0.8px !important;
}

.vf-hero h1 {
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: -1.5px !important;
    text-transform: none !important;
}

/* =========================================================
   ADMIN SHELL (sidebar + topbar) - logged-in admin/superadmin area
   ========================================================= */

.vf-admin-body {
    margin: 0;
    background: var(--vf-bg);
    color: var(--vf-ink);
    font-family: var(--vf-font-body);
}

.vf-admin-shell {
    display: flex;
    min-height: 100vh;
}

.vf-admin-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--vf-ink);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.vf-admin-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--vf-font-display);
    font-size: 30px;
    font-weight: 900;
    color: var(--vf-red);
    letter-spacing: 0.3px;
    line-height: 1;
    margin-bottom: 28px;
    padding: 0 8px;
}

.vf-admin-sidebar__brand img {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid var(--vf-red-tint);
}

.vf-admin-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.vf-admin-sidebar__nav a {
    display: block;
    padding: 12px 14px;
    border-radius: var(--vf-radius-sm);
    font-weight: 700;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
}

.vf-admin-sidebar__nav a.active,
.vf-admin-sidebar__nav a:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}

.vf-admin-sidebar__logout {
    margin-top: 16px;
}

.vf-admin-sidebar__logout button {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 12px 14px;
    border-radius: var(--vf-radius-sm);
    font-weight: 700;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
}

.vf-admin-sidebar__logout button:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}

.vf-admin-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.vf-admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 32px;
    background: var(--vf-surface);
    border-bottom: 1px solid var(--vf-line);
}

.vf-admin-role-label {
    font-weight: 800;
    font-size: 18px;
    color: var(--vf-red);
    white-space: nowrap;
}

.vf-admin-search {
    position: relative;
}

.vf-admin-search input {
    width: 220px;
    height: 40px;
    padding: 0 16px;
    border: 1.5px solid var(--vf-line);
    border-radius: 999px;
    background: var(--vf-bg);
    font-size: 14px;
}

.vf-admin-search input:focus {
    outline: none;
    border-color: var(--vf-red);
}

.vf-admin-search__results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--vf-surface);
    border: 1px solid var(--vf-line);
    border-radius: 12px;
    box-shadow: var(--vf-shadow);
    max-height: 280px;
    overflow-y: auto;
    z-index: 50;
}

.vf-admin-search__results li {
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--vf-ink);
    cursor: pointer;
}

.vf-admin-search__results li:hover,
.vf-admin-search__results li.is-active {
    background: var(--vf-red-tint);
    color: var(--vf-red-deep);
}

.vf-admin-topbar__right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.vf-admin-bell {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--vf-red-tint);
    color: var(--vf-red-deep);
    font-size: 16px;
    cursor: pointer;
}

.vf-admin-bell svg {
    width: 18px;
    height: 18px;
    display: block;
    margin: 0 auto;
}

/* =========================================================
   NOTIFICATION BELL
   ========================================================= */

.vf-notif {
    position: relative;
}

.vf-notif__trigger {
    position: relative;
}

.vf-notif__dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--vf-red);
    border: 2px solid var(--vf-surface);
}

.vf-notif__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    max-width: 90vw;
    background: var(--vf-surface);
    border: 1px solid var(--vf-line);
    border-radius: var(--vf-radius);
    box-shadow: var(--vf-shadow);
    overflow: hidden;
    z-index: 1100;
}

.vf-notif__dropdown-header {
    padding: 14px 18px;
    font-weight: 800;
    font-size: 14px;
    color: var(--vf-ink);
    border-bottom: 1px solid var(--vf-line);
}

.vf-notif__list {
    max-height: 360px;
    overflow-y: auto;
}

.vf-notif__empty {
    margin: 0;
    padding: 24px 18px;
    text-align: center;
    color: var(--vf-muted);
    font-size: 13px;
}

.vf-notif__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--vf-line);
    color: var(--vf-ink);
}

.vf-notif__item:last-child {
    border-bottom: none;
}

.vf-notif__item:hover {
    background: var(--vf-bg);
}

.vf-notif__item--unread {
    background: var(--vf-red-tint);
}

.vf-notif__item--unread:hover {
    background: var(--vf-red-tint);
}

.vf-notif__item-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vf-surface);
    color: var(--vf-red);
    box-shadow: 0 0 0 1px var(--vf-line);
}

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

.vf-notif__item-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.vf-notif__item-body strong {
    font-size: 13px;
    font-weight: 700;
}

.vf-notif__item-body span {
    font-size: 13px;
    color: var(--vf-muted);
}

.vf-notif__item-body small {
    font-size: 11px;
    color: var(--vf-muted);
    font-family: var(--vf-font-mono);
}

@media (max-width: 480px) {
    .vf-notif__dropdown {
        position: fixed;
        top: 70px;
        right: 10px;
        left: 10px;
        width: auto;
    }
}

.vf-admin-greeting {
    font-weight: 700;
    font-size: 15px;
}

/* =========================================================
   TOPBAR USER MENU (name opens a Logout dropdown)
   ========================================================= */

.vf-user-menu {
    position: relative;
}

.vf-user-menu__trigger {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0;
    padding: 6px 8px;
    border-radius: var(--vf-radius-sm);
    cursor: pointer;
    color: inherit;
    font: inherit;
}

.vf-user-menu__trigger:hover {
    background: var(--vf-bg);
}

.vf-user-menu__chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--vf-muted);
    transition: transform 0.15s ease;
}

.vf-user-menu__trigger[aria-expanded="true"] .vf-user-menu__chevron {
    transform: rotate(180deg);
}

.vf-user-menu__dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 170px;
    background: var(--vf-surface);
    border: 1px solid var(--vf-line);
    border-radius: var(--vf-radius);
    box-shadow: var(--vf-shadow);
    overflow: hidden;
    z-index: 1100;
}

.vf-user-menu__dropdown form {
    margin: 0;
}

.vf-user-menu__logout {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 13px 18px;
    font-weight: 700;
    font-size: 14px;
    color: var(--vf-red-deep);
    cursor: pointer;
}

.vf-user-menu__logout:hover {
    background: var(--vf-red-tint);
}

.vf-admin-content {
    flex: 1;
    padding: 32px;
    min-width: 0;
}

.vf-admin-flash {
    background: var(--vf-red-tint);
    border-left: 4px solid var(--vf-red);
    border-radius: var(--vf-radius-sm);
    padding: 13px 16px;
    font-weight: 700;
    font-size: 14px;
    color: var(--vf-red-deep);
    margin-bottom: 20px;
}

.vf-admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--vf-surface);
    border-radius: var(--vf-radius);
    overflow: hidden;
    box-shadow: var(--vf-shadow);
}

.vf-admin-table th {
    background: var(--vf-red-tint);
    color: var(--vf-red-deep);
    text-align: left;
    padding: 14px 18px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.vf-admin-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--vf-line);
    font-size: 14px;
}

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

.vf-admin-table__actions {
    display: flex;
    gap: 10px;
}

.vf-admin-table__actions button,
.vf-admin-table__actions a {
    border: none;
    background: var(--vf-red-tint);
    color: var(--vf-red-deep);
    border-radius: var(--vf-radius-sm);
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.vf-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    transition: transform 0.1s ease, opacity 0.1s ease;
}

.vf-icon-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.vf-icon-btn svg {
    width: 16px;
    height: 16px;
    display: block;
}

.vf-icon-btn--role {
    background: #e0edff;
    color: #2563eb;
}

.vf-icon-btn--edit {
    background: #eceef1;
    color: #4b5563;
}

.vf-icon-btn--delete {
    background: #fde2e2;
    color: #dc2626;
}

.vf-status--verified {
    color: var(--vf-green);
    font-weight: 800;
}

.vf-status--unverified,
.vf-status--pending {
    color: var(--vf-red-deep);
    font-weight: 800;
}

.vf-status--locked {
    color: #d97706;
    font-weight: 800;
}

.vf-status--locked-note {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #92400e;
}

.vf-admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.vf-admin-stat-card {
    background: var(--vf-surface);
    border-radius: var(--vf-radius);
    box-shadow: var(--vf-shadow-sm);
    border: 1px solid var(--vf-line);
    padding: 20px 22px;
    display: block;
    text-decoration: none;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.vf-admin-stat-card--clickable {
    cursor: pointer;
}

.vf-admin-stat-card--clickable:hover {
    box-shadow: var(--vf-shadow);
    border-color: var(--vf-red);
}

.vf-admin-stat-card strong {
    display: block;
    font-size: 30px;
    color: var(--vf-red);
}

.vf-admin-stat-card span {
    color: var(--vf-muted);
    font-size: 13px;
    font-weight: 700;
}

/* =========================================================
   TOGGLE SWITCH
   Used on the Roles & Permissions page in place of bare
   browser checkboxes.
   ========================================================= */

.vf-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

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

.vf-toggle__track {
    width: 44px;
    height: 25px;
    flex-shrink: 0;
    background: #d8dadd;
    border-radius: 999px;
    display: inline-block;
    position: relative;
    transition: background 0.2s ease;
}

.vf-toggle__track::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(31, 33, 35, 0.3);
    transition: transform 0.2s ease;
}

.vf-toggle input:checked + .vf-toggle__track {
    background: var(--vf-red);
}

.vf-toggle input:checked + .vf-toggle__track::before {
    transform: translateX(19px);
}

.vf-toggle input:disabled + .vf-toggle__track {
    cursor: not-allowed;
}

.vf-toggle input:disabled:not(:checked) + .vf-toggle__track {
    background: #e7e8ea;
}

.vf-toggle input:checked:disabled + .vf-toggle__track {
    background: var(--vf-red);
    opacity: 0.45;
}

.vf-toggle:has(input:disabled) {
    cursor: not-allowed;
}

.vf-toggle input:focus-visible + .vf-toggle__track {
    outline: 3px solid var(--vf-amber);
    outline-offset: 2px;
}

.vf-admin-table td.vf-toggle-cell {
    text-align: center;
}

@media (max-width: 900px) {
    .vf-admin-shell {
        flex-direction: column;
    }

    .vf-admin-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: auto;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: visible;
        align-items: center;
    }

    .vf-admin-sidebar__brand {
        margin-bottom: 0;
    }

    .vf-admin-sidebar__nav {
        flex-direction: row;
    }

    .vf-admin-sidebar__logout {
        margin-top: 0;
    }

    .vf-admin-topbar {
        padding: 14px 18px;
    }

    .vf-admin-search input {
        width: 160px;
    }

    .vf-admin-content {
        padding: 20px 18px;
    }
}

/* =========================================================
   Security Operations Center (Admin > Security Monitor)
   Deliberately distinct from the red/cream VeriFyre theme -
   dark slate + cyan, scoped entirely under .vf-secops.
   ========================================================= */
.vf-secops {
    --sec-bg: #0B1220;
    --sec-panel: #131C2E;
    --sec-panel-alt: #18233B;
    --sec-border: rgba(148, 163, 184, 0.16);
    --sec-text: #E7ECF5;
    --sec-muted: #8B98AC;
    --sec-accent: #38BDF8;
    --sec-accent-deep: #0EA5E9;
    --sec-critical: #F43F5E;
    --sec-high: #FB923C;
    --sec-medium: #F4B740;
    --sec-low: #34D399;

    background: var(--sec-bg);
    color: var(--sec-text);
    font-family: var(--vf-font-body);
    border-radius: var(--vf-radius);
    padding: 28px;
    margin: -8px;
}

.vf-secops__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    border-bottom: 1px solid var(--sec-border);
    padding-bottom: 22px;
    margin-bottom: 24px;
}

.vf-secops__eyebrow {
    display: block;
    font-family: var(--vf-font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--sec-accent);
    margin-bottom: 6px;
}

.vf-secops__title {
    font-family: var(--vf-font-display);
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 4px;
    color: #FFFFFF;
}

.vf-secops__subtitle {
    color: var(--sec-muted);
    margin: 0;
    max-width: 520px;
    font-size: 0.92rem;
}

.vf-secops__level {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--vf-font-body);
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 0.85rem;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--sec-panel);
    border: 1px solid var(--sec-border);
    white-space: nowrap;
}

.vf-secops__level-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--sec-low);
    box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
    animation: vf-secops-pulse 2s ease-in-out infinite;
}

.vf-secops__level--elevated {
    color: var(--sec-critical);
    border-color: rgba(244, 63, 94, 0.35);
}

.vf-secops__level--elevated .vf-secops__level-dot {
    background: var(--sec-critical);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.22);
    animation: vf-secops-pulse 1s ease-in-out infinite;
}

@keyframes vf-secops-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.vf-secops__stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.vf-secops__stat {
    position: relative;
    background: var(--sec-panel);
    border: 1px solid var(--sec-border);
    border-radius: var(--vf-radius-sm);
    padding: 18px 16px;
    border-top: 3px solid var(--sec-accent);
}

.vf-secops__stat-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(56, 189, 248, 0.14);
    color: var(--sec-accent);
}

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

.vf-secops__stat--blocked .vf-secops__stat-icon {
    background: rgba(251, 146, 60, 0.16);
    color: var(--sec-high);
}

.vf-secops__stat--critical .vf-secops__stat-icon {
    background: rgba(244, 63, 94, 0.16);
    color: var(--sec-critical);
}

.vf-secops__stat-label {
    display: block;
    font-size: 0.76rem;
    color: var(--sec-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.vf-secops__stat-value {
    font-family: var(--vf-font-display);
    font-size: 2.1rem;
    font-weight: 800;
    color: #FFFFFF;
}

.vf-secops__stat--blocked {
    border-top-color: var(--sec-high);
}

.vf-secops__stat--critical {
    border-top-color: var(--sec-critical);
}

.vf-secops__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.vf-secops__panel {
    background: var(--sec-panel);
    border: 1px solid var(--sec-border);
    border-radius: var(--vf-radius);
    padding: 20px 22px;
}

.vf-secops__panel-title {
    font-family: var(--vf-font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 16px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.vf-secops__panel-hint {
    font-family: var(--vf-font-body);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--sec-muted);
}

.vf-secops__empty {
    color: var(--sec-muted);
    font-size: 0.9rem;
    margin: 0;
}

.vf-secops__bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vf-secops__bar-row {
    display: grid;
    grid-template-columns: 150px 1fr 36px;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--sec-text);
    padding: 4px 6px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.vf-secops__bar-row:hover,
.vf-secops__bar-row.is-active {
    background: var(--sec-panel-alt);
}

.vf-secops__bar-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--sec-text);
}

.vf-secops__bar-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--sec-accent);
}

.vf-secops__bar-icon svg {
    width: 100%;
    height: 100%;
}

.vf-secops__bar-track {
    background: var(--sec-panel-alt);
    border-radius: 999px;
    height: 9px;
    overflow: hidden;
}

.vf-secops__bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--sec-accent);
}

.vf-secops__bar-fill--brute_force,
.vf-secops__bar-fill--unauthorized_access { background: var(--sec-high); }
.vf-secops__bar-fill--sql_injection,
.vf-secops__bar-fill--command_injection { background: var(--sec-critical); }
.vf-secops__bar-fill--xss,
.vf-secops__bar-fill--file_upload_attack { background: var(--sec-medium); }
.vf-secops__bar-fill--path_traversal,
.vf-secops__bar-fill--report_flooding,
.vf-secops__bar-fill--metadata_tampering { background: var(--sec-accent); }

.vf-secops__bar-count {
    font-family: var(--vf-font-body);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--sec-text);
    text-align: right;
}

.vf-secops__ip-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vf-secops__ip-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: var(--sec-panel-alt);
    border-radius: 8px;
    padding: 10px 12px;
    flex-wrap: wrap;
}

.vf-secops__ip-address {
    font-family: var(--vf-font-mono);
    color: var(--sec-accent);
    font-weight: 600;
}

.vf-secops__ip-count {
    font-size: 0.78rem;
    color: var(--sec-text);
}

.vf-secops__ip-seen {
    font-size: 0.74rem;
    color: var(--sec-muted);
}

.vf-secops__panel--feed {
    padding-bottom: 8px;
}

.vf-secops__feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.vf-secops__filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.vf-secops__filters a {
    font-family: var(--vf-font-body);
    font-weight: 700;
    font-size: 0.76rem;
    text-decoration: none;
    color: var(--sec-muted);
    background: var(--sec-panel-alt);
    border: 1px solid var(--sec-border);
    border-radius: 999px;
    padding: 5px 13px;
}

.vf-secops__filters a.active {
    color: #0B1220;
    background: var(--sec-accent);
    border-color: var(--sec-accent);
}

.vf-secops__active-type-tag {
    font-family: var(--vf-font-body);
    font-weight: 700;
    font-size: 0.74rem;
    color: var(--sec-accent);
    border: 1px dashed var(--sec-accent);
    border-radius: 999px;
    padding: 5px 13px;
}

.vf-secops__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

.vf-secops__table th {
    text-align: left;
    color: var(--sec-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 10px 12px;
    border-bottom: 1px solid var(--sec-border);
}

.vf-secops__table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--sec-border);
    vertical-align: top;
}

.vf-secops__table tr:last-child td {
    border-bottom: none;
}

.vf-secops__mono {
    font-family: var(--vf-font-mono);
    color: var(--sec-muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.vf-secops__detail {
    color: var(--sec-text);
    max-width: 360px;
}

.vf-secops__detail-link {
    display: inline-block;
    margin-top: 4px;
    color: var(--sec-accent);
    font-size: 0.78rem;
    text-decoration: none;
}

.vf-secops__pill {
    display: inline-block;
    font-family: var(--vf-font-body);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.vf-secops__pill--type {
    background: var(--sec-panel-alt);
    color: var(--sec-text);
    border: 1px solid var(--sec-border);
}

.vf-secops__pill--critical {
    background: rgba(244, 63, 94, 0.16);
    color: var(--sec-critical);
}

.vf-secops__pill--high {
    background: rgba(251, 146, 60, 0.16);
    color: var(--sec-high);
}

.vf-secops__pill--medium {
    background: rgba(244, 183, 64, 0.16);
    color: var(--sec-medium);
}

.vf-secops__pill--low {
    background: rgba(52, 211, 153, 0.16);
    color: var(--sec-low);
}

.vf-secops__pill--blocked {
    background: rgba(244, 63, 94, 0.16);
    color: var(--sec-critical);
}

.vf-secops__pill--logged {
    background: var(--sec-panel-alt);
    color: var(--sec-muted);
    border: 1px solid var(--sec-border);
}

.vf-secops__pill--cleared {
    background: rgba(52, 211, 153, 0.16);
    color: var(--sec-low);
    margin-top: 6px;
}

.vf-secops__table .vf-btn {
    padding: 5px 14px;
    font-size: 0.74rem;
    font-weight: 700;
    margin-top: 6px;
}

.vf-secops__pagination {
    margin-top: 14px;
    color: var(--sec-muted);
}

.vf-secops__pagination nav {
    color: var(--sec-muted);
}

.vf-secops__pagination .vf-pagination__page--current {
    background: var(--sec-accent);
    border-color: var(--sec-accent);
    color: #0B1220;
}

.vf-secops__pagination .vf-pagination__btn:hover,
.vf-secops__pagination .vf-pagination__page:hover {
    border-color: var(--sec-accent);
    color: var(--sec-accent);
}

.vf-secops__form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.vf-secops__form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sec-text);
}

.vf-secops__input {
    width: 90px;
    padding: 9px 12px;
    border-radius: var(--vf-radius-sm);
    border: 1.5px solid var(--sec-border);
    background: var(--sec-panel-alt);
    color: var(--sec-text);
    font-size: 0.9rem;
    font-family: var(--vf-font-body);
    transition: border-color 0.15s ease;
}

.vf-secops__input:focus {
    border-color: var(--sec-accent);
    outline: none;
}

.vf-secops__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    background: var(--sec-accent);
    color: var(--sec-bg);
    padding: 9px 22px;
    border-radius: 999px;
    border: none;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.vf-secops__btn:hover {
    background: var(--sec-accent-deep);
    transform: translateY(-1px);
}

.vf-secops__status {
    color: var(--sec-low);
    font-size: 0.85rem;
    margin: 0 0 12px;
}

.vf-secops__error {
    color: var(--sec-critical);
    font-size: 0.85rem;
    margin: 10px 0 0;
}

.vf-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.vf-pagination__btn,
.vf-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border-radius: var(--vf-radius-sm, 8px);
    border: 1.5px solid var(--vf-line);
    font-size: 13px;
    font-weight: 600;
    color: var(--vf-muted);
    text-decoration: none;
    background: var(--vf-surface, #fff);
    line-height: 1;
}

.vf-pagination__btn:hover,
.vf-pagination__page:hover {
    border-color: var(--vf-red);
    color: var(--vf-red);
}

.vf-pagination__btn--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vf-pagination__btn--disabled:hover {
    border-color: var(--vf-line);
    color: var(--vf-muted);
}

.vf-pagination__pages {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vf-pagination__page--current {
    background: var(--vf-red);
    border-color: var(--vf-red);
    color: var(--vf-surface, #fff);
    cursor: default;
}

.vf-pagination__dots {
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    color: var(--vf-muted);
}

@media (max-width: 1100px) {
    .vf-secops__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .vf-secops__grid {
        grid-template-columns: 1fr;
    }
}

/* LOADING SCREEN */
.vf-loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: var(--vf-bg, #F9F6EE);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.vf-loading-screen--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.vf-loading-spinner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 5px solid var(--vf-ink, #1F2123);
    border-top-color: var(--vf-red, #E53935);
    border-right-color: var(--vf-red, #E53935);
    animation: vf-loading-spin 0.8s linear infinite;
}

.vf-loading-text {
    font-family: var(--vf-font-body, 'Source Sans 3', Arial, sans-serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--vf-muted, #6B6F76);
    letter-spacing: 0.2px;
}

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

/* =========================================================
   HOTLINES PAGE
   ========================================================= */

.vf-hotline-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--vf-red-tint);
    border-left: 4px solid var(--vf-red);
    border-radius: var(--vf-radius-sm);
    padding: 16px 18px;
    margin-bottom: 40px;
    color: var(--vf-red-deep);
    font-weight: 700;
    font-size: 14.5px;
    line-height: 1.5;
}

.vf-hotline-notice svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}

.vf-hotline-search {
    position: relative;
    max-width: 360px;
    margin: 0 auto 36px;
}

.vf-hotline-search svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: var(--vf-muted);
    pointer-events: none;
}

.vf-hotline-search input {
    width: 100%;
    height: 46px;
    padding: 0 16px 0 44px;
    border: 1.5px solid var(--vf-line);
    border-radius: 999px;
    background: var(--vf-surface);
    color: var(--vf-ink);
    font-size: 14.5px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vf-hotline-search input:focus {
    outline: none;
    border-color: var(--vf-red);
    box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.12);
}

.vf-hotline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 56px;
}

.vf-hotline-card {
    background: var(--vf-surface);
    border-radius: var(--vf-radius-sm);
    box-shadow: var(--vf-shadow-sm);
    border: 1px solid var(--vf-line);
    border-top: 3px solid var(--vf-red);
    padding: 18px 20px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.vf-hotline-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--vf-shadow);
}

.vf-hotline-card h4 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 800;
    color: var(--vf-ink);
    letter-spacing: -0.2px;
}

.vf-hotline-card__numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vf-phone-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--vf-red-tint);
    color: var(--vf-red-deep);
    font-weight: 700;
    font-size: 13.5px;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.vf-phone-chip svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.vf-phone-chip:hover {
    background: var(--vf-red);
    color: #fff;
    transform: translateY(-1px);
}

.vf-hotline-empty {
    display: none;
    text-align: center;
    color: var(--vf-muted);
    font-weight: 700;
    padding: 30px 0 50px;
}

.vf-hotline-empty--visible {
    display: block;
}

.vf-station-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.vf-station-group-card {
    background: var(--vf-surface);
    border-radius: var(--vf-radius);
    box-shadow: var(--vf-shadow-sm);
    border: 1px solid var(--vf-line);
    padding: 22px 22px 8px;
}

.vf-station-group-card h4 {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--vf-red);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vf-station-group-card h4::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--vf-red);
    flex-shrink: 0;
}

.vf-station-group-item {
    padding: 10px 0;
    border-top: 1px solid var(--vf-line);
}

.vf-station-group-item:first-of-type {
    border-top: none;
}

.vf-station-group-item__name {
    font-weight: 700;
    font-size: 14px;
    color: var(--vf-ink);
    margin-bottom: 6px;
}

@media (max-width: 900px) {
    .vf-hotline-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .vf-hotline-grid {
        grid-template-columns: 1fr;
    }

    .vf-hotline-search {
        max-width: 100%;
    }
}