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

body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #172033;
}

/* Navbar */

.navbar {
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7%;
    background: white;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

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

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    text-decoration: none;
    color: #172033;
    font-size: 15px;
    font-weight: 600;
}

.nav-links a:hover {
    color: #2563eb;
}


/* Hero Section */

.hero {
    min-height: 560px;
    padding: 80px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    background: linear-gradient(135deg, #eef4ff, #ffffff);
}

.hero-content {
    max-width: 650px;
}

.tagline {
    color: #2563eb;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 58px;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero h1 span {
    color: #2563eb;
}

.hero-text {
    font-size: 18px;
    line-height: 1.7;
    color: #5b6475;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn,
.search-btn {
    border: none;
    padding: 14px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.primary-btn {
    background: #2563eb;
    color: white;
}

.primary-btn:hover {
    background: #1d4ed8;
}

.secondary-btn {
    background: white;
    color: #2563eb;
    border: 1px solid #2563eb;
}


/* Search Card */

.hero-card {
    width: 360px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.10);
}

.search-icon {
    font-size: 55px;
    margin-bottom: 20px;
}

.hero-card h2 {
    margin-bottom: 15px;
}

.hero-card p {
    color: #667085;
    line-height: 1.6;
    margin-bottom: 25px;
}

.search-btn {
    background: #172033;
    color: white;
}


/* Features */

.features {
    padding: 80px 7%;
    background: white;
}

.section-heading {
    text-align: center;
    margin-bottom: 50px;
}

.section-heading p {
    color: #2563eb;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: 36px;
}

.feature-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.feature-card {
    padding: 30px;
    background: #f8fafc;
    border-radius: 15px;
    border: 1px solid #e5e7eb;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 35px;
    margin-bottom: 18px;
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: #667085;
    line-height: 1.6;
}


/* Footer */

footer {
    padding: 25px;
    text-align: center;
    background: #172033;
    color: white;
}


/* Mobile */

@media (max-width: 900px) {

    .nav-links {
        display: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-card {
        width: 100%;
        max-width: 400px;
    }

    .feature-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {

    .hero h1 {
        font-size: 40px;
    }

    .feature-container {
        grid-template-columns: 1fr;
    }
}




/* ============================= */
/* Missing Person Form */
/* ============================= */

.form-page {
    min-height: 100vh;
    padding: 70px 7%;
    background: #f5f7fb;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header p {
    color: #2563eb;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.form-header h1 {
    font-size: 42px;
    margin-bottom: 12px;
}

.form-header span {
    color: #667085;
}


.missing-form {
    max-width: 900px;
    margin: auto;
    background: white;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}


.missing-form h2 {
    font-size: 21px;
    margin-top: 25px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}


.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}


.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}


.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
}


.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    font-family: inherit;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}


.form-group textarea {
    resize: vertical;
}


.form-group small {
    margin-top: 7px;
    color: #667085;
}


.submit-btn {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    border: none;
    border-radius: 9px;
    background: #2563eb;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}


.submit-btn:hover {
    background: #1d4ed8;
}


/* Mobile Form */

@media (max-width: 700px) {

    .missing-form {
        padding: 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-header h1 {
        font-size: 32px;
    }

}


/* Current Location Button */

.location-btn {
    margin-top: 12px;
    padding: 12px 18px;
    border: 1px solid #2563eb;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.location-btn:hover {
    background: #dbeafe;
}

.location-status {
    margin-top: 8px;
    font-size: 14px;
    color: #16a34a;
}


/* ===============================
   Multiple Sightings
================================ */

.sightings-section {
    margin-top: 30px;
}

.section-note {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.sighting-card {
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #f8fafc;
}

.sighting-card h3 {
    margin-bottom: 18px;
    color: #2563eb;
}

.remove-sighting-btn {
    margin-top: 10px;
    padding: 9px 14px;
    border: none;
    border-radius: 7px;
    background: #fee2e2;
    color: #dc2626;
    font-weight: 600;
    cursor: pointer;
}

.remove-sighting-btn:hover {
    background: #fecaca;
}

/* ===============================
   SEARCH RESULT CARD
================================ */

.search-result-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    max-width: 700px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.search-result-card h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 24px;
}

.search-result-card p {
    margin: 8px 0;
    font-size: 16px;
}

.search-result-card strong {
    font-weight: 600;
}
/* Smart Matching */
.smart-match-panel {
    max-width: 900px;
    margin: 28px auto;
    padding: 24px;
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.smart-match-panel h2 { margin-bottom: 8px; }
.smart-match-note, .verification-note { display: block; margin: 12px 0; color: #667085; }
.matching-location-map { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 12px 0 16px; padding: 14px 16px; border: 1px solid #cfe3e4; border-radius: 12px; background: #f1f8f8; color: var(--ink); }
.matching-location-map a { color: var(--brand-deep); font-weight: 700; }
.match-result-card {
    margin-top: 16px;
    padding: 18px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #f8fafc;
}
.match-result-card h3 { margin-bottom: 10px; color: #1d4ed8; }
.match-result-card p { margin: 8px 0; }
.match-result-card ul { margin: 10px 0 12px 20px; }
.match-result-card li { margin: 5px 0; }
.match-results-summary, .match-empty-state { margin: 14px 0; padding: 12px 14px; border-radius: 10px; background: #eef6f8; color: var(--brand-deep); }
.match-map-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 12px 0; }
.match-map-actions a { color: var(--brand); font-weight: 700; }
.match-map-actions small { flex-basis: 100%; color: var(--muted); }
#findMatchesBtn:disabled { opacity: 0.65; cursor: wait; }

.auth-page { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 36px 18px; background: #f4f7fb; }
.auth-card { width: min(100%, 480px); padding: 32px; border: 1px solid #dbe3ef; border-radius: 16px; background: #fff; box-shadow: 0 12px 36px rgba(16, 24, 40, .08); }
.auth-card h1 { margin: 8px 0; }
.auth-card .form-group { margin: 18px 0; }
.auth-card .form-group input, .auth-card .form-group select { width: 100%; }
.auth-card #authSubmit { width: 100%; margin-top: 8px; }
.auth-hidden { display: none !important; }
.auth-message { min-height: 24px; color: #b42318; }
.text-button, .nav-button { border: 0; background: transparent; color: #2563eb; font: inherit; cursor: pointer; }
.nav-button { color: inherit; }
.dashboard-page { max-width: 1000px; margin: 0 auto; padding: 36px 20px; }
.dashboard-page .page-header { margin-bottom: 24px; }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.password-change-panel { flex: 0 1 100%; max-width: 460px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: 0 6px 18px rgba(23,43,77,.05); }
.password-change-panel summary { color: var(--brand-deep); font-weight: 700; cursor: pointer; }
.password-change-form { display: grid; gap: 12px; margin-top: 16px; }
.password-change-form label { display: grid; gap: 6px; color: var(--ink); font-size: 14px; font-weight: 600; }
.password-change-form input { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid #ccd9e2; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; }
.password-change-form input:focus { border-color: var(--brand); outline: 3px solid rgba(23,107,135,.12); }
.password-change-form .btn { justify-self: start; }
.password-change-form .case-save-message { margin: 0; }
.dashboard-reports { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.dashboard-report-card { padding: 18px; border: 1px solid #dbe3ef; border-radius: 12px; background: #fff; }
.dashboard-report-card h3 { margin-top: 0; }
.case-status { display: inline-block; padding: 6px 10px; border-radius: 20px; font-weight: 700; }
.case-status-open { color: #92400e; background: #fef3c7; }
.case-status-closed { color: #067647; background: #d1fadf; }
.case-update-form { display: grid; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #e4e7ec; }
.case-update-form label { display: grid; gap: 6px; font-weight: 600; }
.case-update-form input, .case-update-form select, .case-update-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #cfd7e3; border-radius: 8px; font: inherit; }
.case-save-message { min-height: 20px; margin: 0; color: #344054; }

/* Polished shared visual system */
:root {
    --ink: #172b4d;
    --muted: #5f6f86;
    --brand: #176b87;
    --brand-deep: #104b67;
    --mint: #dff4ef;
    --paper: #ffffff;
    --canvas: #f3f7fa;
    --line: #d8e3eb;
    --shadow: 0 18px 48px rgba(25, 57, 78, .10);
}

html { scroll-behavior: smooth; }
body { min-height: 100vh; display: flex; flex-direction: column; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.55; }
main, .search-page { flex: 1; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(23, 107, 135, .32); outline-offset: 2px; }

.navbar { position: sticky; top: 0; z-index: 50; min-height: 72px; height: auto; padding: 12px clamp(18px, 6vw, 84px); background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); box-shadow: 0 4px 18px rgba(23,43,77,.04); backdrop-filter: blur(14px); }
.logo { color: var(--brand-deep); letter-spacing: -.04em; }
.nav-links { align-items: center; gap: clamp(12px, 2vw, 28px); }
.nav-links a, .nav-button { color: var(--ink); font-size: 14px; font-weight: 650; text-decoration: none; }
.nav-links a:hover, .nav-button:hover { color: var(--brand); }
.nav-button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; }

.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 580px; padding: clamp(56px, 8vw, 104px) clamp(22px, 8vw, 120px); gap: clamp(32px, 6vw, 90px); color: white; background: radial-gradient(ellipse at 80% 14%, rgba(134, 220, 202, .33), transparent 32%), linear-gradient(125deg, #103d58 0%, #176b87 58%, #2e9a9a 100%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 440px; height: 440px; right: 6%; bottom: -250px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; box-shadow: 0 0 0 44px rgba(255,255,255,.05), 0 0 0 92px rgba(255,255,255,.04); }
.hero-content { max-width: 690px; }
.hero .tagline { color: #a8e4d7; text-transform: uppercase; font-size: 13px; letter-spacing: .14em; }
.hero h1 { font-size: clamp(42px, 6.4vw, 72px); line-height: 1.06; letter-spacing: -.055em; }
.hero h1 span { color: #b6f1df; }
.hero-text { max-width: 580px; color: rgba(255,255,255,.82); font-size: clamp(16px, 1.7vw, 19px); }
.hero-buttons { flex-wrap: wrap; }
.btn, .search-btn, .submit-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 20px; border-radius: 12px; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:hover, .search-btn:hover, .submit-btn:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(16,75,103,.16); }
.primary-btn, .submit-btn { background: var(--brand); color: #fff; border: 1px solid var(--brand); }
.primary-btn:hover, .submit-btn:hover { background: var(--brand-deep); }
.hero .primary-btn { background: #fff; border-color: #fff; color: var(--brand-deep); }
.hero .secondary-btn { color: white; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.08); }
.hero-card { width: min(100%, 380px); border: 1px solid rgba(255,255,255,.68); border-radius: 24px; background: rgba(255,255,255,.96); box-shadow: 0 22px 60px rgba(5,31,49,.22); }
.hero-card h2 { color: var(--ink); font-size: 23px; }
.hero-card p { color: var(--muted); }
.search-btn { background: var(--brand-deep); color: white; }

.features { padding: clamp(56px, 7vw, 90px) clamp(20px, 7vw, 100px); }
.section-heading p { color: var(--brand); letter-spacing: .12em; font-size: 13px; }
.section-heading h2 { color: var(--ink); font-size: clamp(28px, 4vw, 40px); letter-spacing: -.035em; }
.feature-container { gap: 18px; }
.feature-card { border-radius: 18px; border-color: var(--line); background: #fbfdfe; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 16px; background: var(--mint); }
.feature-card h3 { color: var(--ink); }
.feature-card p { color: var(--muted); }

.form-page { min-height: auto; padding: clamp(40px, 6vw, 72px) 20px 84px; background: linear-gradient(180deg, #eaf4f6 0, var(--canvas) 260px); }
.form-header { max-width: 760px; margin: 0 auto 32px; }
.form-header p { color: var(--brand); text-transform: uppercase; font-size: 13px; letter-spacing: .14em; }
.form-header h1 { color: var(--ink); font-size: clamp(32px, 5vw, 46px); letter-spacing: -.045em; }
.form-header span { color: var(--muted); }
.missing-form { padding: clamp(22px, 5vw, 46px); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.missing-form h2 { color: var(--brand-deep); font-size: 19px; letter-spacing: -.02em; }
.form-group label { color: #263d59; font-size: 14px; }
.form-group input, .form-group select, .form-group textarea, .case-update-form input, .case-update-form select, .case-update-form textarea { border-color: #ccd9e2; border-radius: 10px; background: #fff; color: var(--ink); }
.form-group input::placeholder, .form-group textarea::placeholder { color: #8b9aad; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(23,107,135,.1); }
.submit-btn { min-height: 52px; }
.submit-btn:disabled, .btn:disabled { cursor: wait; opacity: .68; transform: none; }
.location-btn { border-color: #b9d9df; border-radius: 10px; background: #eaf6f5; color: var(--brand-deep); }
.location-btn:hover { background: #dff0ee; }
.location-status { color: #18745e; }
.section-note, .form-group small { color: var(--muted); }
.sighting-card { border-color: var(--line); border-radius: 14px; background: #f7fafb; }
.sighting-card h3 { color: var(--brand); }
.remove-sighting-btn { border-radius: 9px; }
.recording-card { display: grid; gap: 20px; margin: 10px 0 28px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #f7fafb; }
.recording-card .form-group { margin: 0; }
.recording-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.recording-actions button:disabled { cursor: not-allowed; opacity: .55; }
.recording-card audio, .recording-card video { display: block; width: min(100%, 520px); margin-top: 10px; border-radius: 10px; }
.recording-card video { max-height: 320px; background: #111; }
.recording-card [hidden] { display: none; }
.private-media-list { display: grid; gap: 12px; margin-top: 12px; }
.private-media-item { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #f7fafb; }
.private-media-item audio, .private-media-item video { display: block; width: min(100%, 520px); margin-top: 8px; border-radius: 10px; }
.private-media-item video { max-height: 320px; background: #111; }
.form-status { min-height: 24px; margin-top: 14px; color: var(--muted); font-weight: 600; }
.form-status-success { color: #067647; }
.form-status-error { color: #b42318; }
.case-id-value { display: inline-block; padding: 3px 9px; border-radius: 7px; background: #dff4e8; color: #05603a; font-size: 1.12em; letter-spacing: .03em; }
.case-id-copy-btn { margin-left: 6px; padding: 5px 9px; border: 1px solid #a6d4bb; border-radius: 7px; background: #fff; color: #05603a; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.search-case-id { width: fit-content; padding: 5px 9px; border-radius: 8px; background: #e7f5ee; color: #05603a; font-weight: 700; }

.search-page { width: min(1120px, 100%); min-height: 80vh; margin: 0 auto; padding: 44px 20px 84px; }
.page-header { margin-bottom: 26px; }
.page-header h1 { color: var(--ink); font-size: clamp(32px, 5vw, 46px); letter-spacing: -.04em; }
.page-header p { color: var(--muted); }
.search-box { display: grid; grid-template-columns: minmax(220px, 1.4fr) minmax(180px, .8fr) auto; align-items: end; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 8px 24px rgba(23,43,77,.06); }
.search-box .form-group { margin: 0; }
.search-box .btn { min-width: 140px; }
.search-result-card, .smart-match-panel { max-width: none; border-color: var(--line); border-radius: 18px; box-shadow: 0 8px 24px rgba(23,43,77,.06); }
.search-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: 22px; }
.search-result-card { display: block; width: auto; margin: 0; vertical-align: top; }
.search-result-card img { display: block; width: 100%; max-height: 230px; margin-bottom: 14px; border-radius: 12px; object-fit: cover; }
.search-message { color: var(--muted); }
.smart-match-panel { margin: 22px 0; padding: clamp(20px, 4vw, 30px); }
.match-result-card { border-color: var(--line); border-radius: 14px; background: #f7fafb; }
.match-result-card h3 { color: var(--brand-deep); }

.auth-page { background: radial-gradient(circle at 12% 10%, #d8efec, transparent 33%), linear-gradient(180deg,#edf4f7,#f8fafc); }
.auth-card { margin: 0 auto; border-color: var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.auth-card h1 { color: var(--ink); letter-spacing: -.04em; }
.auth-card .tagline { color: var(--brand); }
.dashboard-page { max-width: 1180px; min-height: 80vh; }
.dashboard-page .page-header { padding: 26px 30px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(120deg,#e5f2f3,#fff); }
.dashboard-reports { grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); }
.dashboard-report-card { border-color: var(--line); border-radius: 16px; box-shadow: 0 6px 18px rgba(23,43,77,.05); }
.dashboard-report-card h3 { color: var(--brand-deep); }
.admin-page { display: grid; gap: 22px; }
.admin-page .page-header { margin-bottom: 0; }
.admin-section { padding: clamp(20px, 4vw, 30px); border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 8px 24px rgba(23,43,77,.06); }
.admin-section h2 { margin-bottom: 8px; color: var(--brand-deep); }
.admin-help { margin-bottom: 18px; color: var(--muted); }
.admin-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); align-items: end; gap: 16px; }
.admin-form .form-group { margin: 0; }
.admin-form .form-group small { display: block; margin-top: 6px; color: var(--muted); }
.admin-form .btn { min-height: 44px; }
.admin-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-list-heading .admin-help { margin-bottom: 0; }
.admin-account-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-top: 18px; color: var(--muted); }
.admin-account-card { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #f7fafb; }
.admin-account-card h3 { margin-bottom: 6px; color: var(--brand-deep); }
.admin-account-card p { color: var(--muted); overflow-wrap: anywhere; }
.admin-reset-password-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; margin-top: 12px; }
.admin-reset-password-form label { display: grid; gap: 6px; color: #263d59; font-size: 13px; font-weight: 650; }
.admin-reset-password-form input { min-height: 42px; width: 100%; padding: 9px 11px; border: 1px solid #ccd9e2; border-radius: 9px; background: white; color: var(--ink); }
.admin-reset-password-form .form-status { grid-column: 1 / -1; margin: 0; }
@media (max-width: 600px) { .admin-reset-password-form { grid-template-columns: 1fr; } }
.admin-page .form-status { margin-bottom: 0; }
.admin-page .form-status:empty { display: none; }
.nav-button { border: 0; background: transparent; color: #172033; font: inherit; font-weight: 600; cursor: pointer; }

/* Home page refresh */
.home-page { background: #f5f8f8; color: #142d3c; }
.home-header { position: relative; z-index: 2; background: #fff; }
.home-navbar { height: 78px; padding-inline: max(5vw, calc((100vw - 1240px) / 2)); }
.home-logo { color: #123e4d; text-decoration: none; letter-spacing: -.04em; }
.home-nav-links { align-items: center; gap: clamp(13px, 2vw, 28px); }
.home-nav-links a { color: #385363; font-size: 14px; transition: color .18s ease; }
.home-nav-links a:hover, .home-nav-links a[aria-current="page"] { color: #147c76; }
.home-nav-links .home-login-link { padding: 10px 15px; border: 1px solid #d6e5e5; border-radius: 999px; color: #124a55; }
.home-nav-links .home-login-link:hover { border-color: #147c76; background: #eff9f7; }
.home-hero { position: relative; min-height: 580px; padding: clamp(58px, 8vw, 100px) max(5vw, calc((100vw - 1240px) / 2)); overflow: hidden; color: #fff; background: radial-gradient(ellipse at 83% 95%, rgba(39, 179, 162, .48), transparent 37%), linear-gradient(118deg, #103b4a 2%, #145d68 61%, #177e79 100%); }
.home-hero::before, .home-hero::after { position: absolute; right: -8%; bottom: -72%; width: min(760px, 68vw); aspect-ratio: 1; border: 1px solid rgba(211, 255, 246, .15); border-radius: 50%; content: ""; pointer-events: none; }
.home-hero::after { right: 4%; bottom: -85%; width: min(620px, 56vw); border-color: rgba(211, 255, 246, .11); }
.home-hero-content, .home-search-card { position: relative; z-index: 1; }
.home-hero-content { max-width: 640px; }
.home-tagline { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; color: #9ee7d8; font-size: 12px; letter-spacing: .16em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #72e0bd; box-shadow: 0 0 0 5px rgba(114, 224, 189, .15); }
.home-hero h1 { margin-bottom: 20px; color: #fff; font-size: clamp(46px, 6vw, 76px); line-height: 1.08; letter-spacing: -.055em; }
.home-hero h1 span { color: #9de9d9; }
.home-hero .hero-text { max-width: 580px; margin-bottom: 28px; color: rgba(245, 255, 253, .82); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.8; }
.home-hero-buttons { align-items: center; flex-wrap: wrap; gap: 12px; }
.home-hero-buttons .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 13px 19px; border-radius: 11px; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.home-hero-buttons .btn:hover { transform: translateY(-2px); }
.home-primary-btn { background: #a5eddd; color: #103e49; }
.home-primary-btn:hover { background: #c2f6e9; }
.home-secondary-btn { border: 1px solid rgba(224, 255, 249, .55); background: rgba(255, 255, 255, .08); color: #fff; }
.home-secondary-btn:hover { background: rgba(255, 255, 255, .16); }
.home-privacy-note { display: flex; align-items: center; gap: 8px; margin-top: 21px; color: rgba(241, 255, 251, .7); font-size: 12px; }
.home-privacy-note span { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: rgba(157, 233, 217, .18); color: #a5eddd; }
.home-search-card { width: min(370px, 35vw); min-width: 320px; padding: 24px; border: 1px solid rgba(232, 246, 245, .8); border-radius: 23px; background: #fff; box-shadow: 0 28px 80px rgba(4, 33, 41, .25); text-align: left; }
.search-card-topline { display: flex; align-items: center; gap: 9px; color: #66818a; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.search-card-mark { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: #eaf7f4; color: #15766e; font-size: 20px; }
.search-illustration { position: relative; display: grid; height: 175px; margin: 18px 0 14px; place-items: center; overflow: hidden; border-radius: 16px; background: radial-gradient(ellipse at center, #e5f6f2, #f1f7fa 68%); }
.orbit { position: absolute; width: 185px; height: 88px; border: 1px solid #b8ded9; border-radius: 50%; transform: rotate(-25deg); }
.orbit-two { width: 145px; height: 68px; border-color: #c6e5e1; transform: rotate(25deg); }
.search-illustration-icon { z-index: 1; display: grid; width: 76px; height: 76px; place-items: center; border: 1px solid #c9e6e1; border-radius: 50%; background: #fff; box-shadow: 0 12px 30px rgba(26, 106, 106, .15); font-size: 43px; }
.map-dot { position: absolute; z-index: 1; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; background: #197b73; box-shadow: 0 0 0 4px rgba(25, 123, 115, .15); }
.dot-one { top: 35px; left: 24%; }.dot-two { right: 21%; bottom: 35px; background: #e99854; box-shadow: 0 0 0 4px rgba(233, 152, 84, .15); }.dot-three { top: 43px; right: 27%; width: 6px; height: 6px; background: #4a9dc0; }
.search-card-kicker { margin: 0 0 5px !important; color: #168075 !important; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.home-search-card h2 { margin: 0 0 8px; color: #143c4b; font-size: 25px; letter-spacing: -.03em; }
.home-search-card > p:not(.search-card-kicker) { margin: 0 0 17px; color: #617580; font-size: 14px; line-height: 1.65; }
.home-search-btn { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-radius: 10px; background: #123f50; color: #fff; text-decoration: none; }
.home-search-btn:hover { background: #176275; }
.search-card-foot { margin-top: 13px; color: #80949b; font-size: 11px; }
.search-card-foot span { margin-right: 5px; color: #35a887; font-size: 9px; }
.emergency-strip { display: flex; align-items: center; gap: 18px; width: min(1120px, calc(100% - 40px)); margin: -1px auto 0; padding: 22px clamp(18px, 4vw, 34px); border: 1px solid #f0d9d5; border-top: 0; border-radius: 0 0 18px 18px; background: #fff9f8; box-shadow: 0 13px 34px rgba(68, 39, 35, .06); }
.emergency-icon { display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border: 1px solid #f2c6c0; border-radius: 14px; background: #fff0ed; color: #bc3b32; font-size: 25px; font-weight: 800; }
.emergency-copy { flex: 1; }
.emergency-label { margin-bottom: 4px; color: #a74139; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.emergency-copy h2 { margin: 0 0 4px; color: #4b2d30; font-size: 18px; }
.emergency-copy p:last-child { color: #745f61; font-size: 13px; line-height: 1.55; }
.emergency-call-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 132px; padding: 13px 18px; border: 1px solid #b6312a; border-radius: 11px; background: #c63830; color: #fff; font-size: 15px; font-weight: 800; text-decoration: none; box-shadow: 0 7px 16px rgba(198, 56, 48, .18); transition: background .18s ease, transform .18s ease; }
.emergency-call-btn:hover { transform: translateY(-1px); background: #a92f29; }
.home-features { padding: clamp(62px, 8vw, 94px) max(5vw, calc((100vw - 1240px) / 2)); background: #f5f8f8; }
.home-section-heading { margin-bottom: 37px; }
.home-section-heading > p { margin-bottom: 11px; color: #168075; font-size: 11px; letter-spacing: .16em; }
.home-section-heading h2 { margin-bottom: 10px; color: #143c4b; font-size: clamp(29px, 4vw, 39px); letter-spacing: -.045em; }
.home-section-heading > span { color: #6b7e85; font-size: 15px; }
.home-feature-container { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-feature-card { position: relative; min-height: 255px; padding: 24px 21px 20px; overflow: hidden; border: 1px solid #dfebea; border-radius: 17px; background: #fff; box-shadow: 0 10px 26px rgba(22, 56, 67, .045); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.home-feature-card:hover { transform: translateY(-5px); border-color: #b7d9d5; box-shadow: 0 17px 36px rgba(22, 56, 67, .1); }
.feature-number { position: absolute; top: 16px; right: 17px; color: #a7b8bb; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.home-feature-icon { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 23px; border-radius: 14px; font-size: 25px; font-weight: 700; }
.icon-missing { background: #fdf0ed; color: #c35a4e; }.icon-found { background: #e9f7f1; color: #288965; }.icon-match { background: #eaf3fb; color: #387aa4; }.icon-verify { background: #f1edfb; color: #7754a4; }
.home-feature-card h3 { margin-bottom: 9px; color: #183f4c; font-size: 17px; }
.home-feature-card p { min-height: 61px; margin-bottom: 17px; color: #657981; font-size: 13px; line-height: 1.6; }
.home-feature-card a { display: inline-flex; align-items: center; gap: 8px; color: #16776e; font-size: 12px; font-weight: 800; text-decoration: none; }
.home-feature-card a:hover { color: #0d504d; }
.home-safety-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; color: #75868b; font-size: 12px; text-align: center; }
.home-safety-note span { color: #168075; font-size: 16px; }
.home-footer { padding: 31px 20px; background: #103946; }
.home-footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; width: min(1120px, 100%); margin: 0 auto; }
.home-footer-logo { color: #fff; font-size: 18px; font-weight: 800; text-decoration: none; }
.home-footer-inner p { color: #b9d2d4; font-size: 13px; }
.home-footer-inner small { color: #93b1b4; font-size: 11px; }
@media (max-width: 960px) {
    .home-navbar { height: auto; min-height: 74px; padding: 13px 5vw; flex-wrap: wrap; gap: 10px; }
    .home-nav-links { display: flex; width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 9px 18px; }
    .home-nav-links a { font-size: 13px; }
    .home-hero { flex-direction: row; padding-top: 62px; padding-bottom: 62px; gap: 28px; }
    .home-search-card { min-width: 290px; }
    .home-feature-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    .home-hero { align-items: stretch; flex-direction: column; padding: 48px 22px 38px; text-align: left; }
    .home-hero-content { max-width: 100%; }
    .home-hero h1 { font-size: clamp(43px, 12vw, 60px); }
    .home-hero .hero-text { font-size: 16px; }
    .home-hero-buttons { align-items: stretch; flex-direction: column; }
    .home-hero-buttons .btn { width: 100%; }
    .home-privacy-note { align-items: flex-start; line-height: 1.5; }
    .home-search-card { width: 100%; min-width: 0; padding: 20px; }
    .search-illustration { height: 148px; }
    .emergency-strip { align-items: flex-start; flex-wrap: wrap; width: calc(100% - 28px); margin-top: 14px; border: 1px solid #f0d9d5; border-radius: 17px; }
    .emergency-icon { flex-basis: 40px; width: 40px; height: 40px; }
    .emergency-copy { flex-basis: calc(100% - 60px); }
    .emergency-copy h2 { font-size: 16px; line-height: 1.45; }
    .emergency-copy p:last-child { font-size: 12px; }
    .emergency-call-btn { width: 100%; margin-left: 0; }
    .home-features { padding: 58px 18px 64px; }
    .home-section-heading { margin-bottom: 27px; text-align: left; }
    .home-feature-container { grid-template-columns: 1fr; gap: 12px; }
    .home-feature-card { min-height: 0; padding: 20px; }
    .home-feature-icon { margin-bottom: 16px; }
    .home-feature-card p { min-height: 0; }
    .home-safety-note { align-items: flex-start; justify-content: flex-start; text-align: left; line-height: 1.55; }
    .home-footer-inner { align-items: flex-start; flex-direction: column; }
}
.case-timeline { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #f7fafb; }
.case-timeline h4 { margin: 0 0 12px; color: var(--brand-deep); font-size: 16px; }
.case-timeline-list { display: grid; gap: 0; margin: 0; padding: 0 0 0 18px; border-left: 2px solid #cfe3e4; list-style: none; }
.case-timeline-event { position: relative; padding: 0 0 16px 14px; }
.case-timeline-event:last-child { padding-bottom: 0; }
.case-timeline-event::before { content: ""; position: absolute; top: 5px; left: -24px; width: 9px; height: 9px; border: 2px solid #fff; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1px #a8cdd0; }
.case-timeline-event.event-sighting_verified::before { background: #16805d; }
.case-timeline-event.event-sighting_not_match::before { background: #b54736; }
.case-timeline-event p { margin: 4px 0; color: var(--muted); overflow-wrap: anywhere; }
.case-timeline-event small, .case-timeline-empty { color: var(--muted); font-size: 12px; }
.sighting-review-form { padding: 14px; border: 1px solid #d8e9e8; border-radius: 12px; background: #f3faf8; }
.public-sightings-panel { display: grid; gap: 12px; margin-top: 16px; }
.public-sightings-content { display: grid; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f7fafb; }
.public-sightings-content[hidden] { display: none; }
.public-sighting-form { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.public-sighting-form h4, .public-sightings-content h4 { margin: 0; color: var(--brand-deep); }
.public-sighting-form label { display: grid; gap: 6px; color: #263d59; font-size: 14px; font-weight: 600; }
.public-sighting-form input, .public-sighting-form textarea, .sighting-review-controls textarea { width: 100%; padding: 10px 12px; border: 1px solid #ccd9e2; border-radius: 10px; background: white; color: var(--ink); }
.sighting-location-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sighting-status { display: inline-flex; width: fit-content; padding: 4px 8px; border-radius: 99px; background: #fff4cc; color: #854d0e; font-weight: 700; }
.sighting-status-verified { background: #dff4e8; color: #067647; }
.sighting-status-not_match { background: #fee4e2; color: #b42318; }
.sighting-review-controls { display: grid; gap: 8px; margin-top: 10px; }
.sighting-review-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.voice-input-settings { display: flex; align-items: center; justify-content: flex-end; gap: 10px; max-width: 900px; margin: 0 auto 14px; color: var(--muted); font-size: 13px; }
.voice-input-settings select { min-height: 38px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); }
.voice-input-wrap { width: 100%; }
.voice-input-wrap > input, .voice-input-wrap > textarea { display: block; width: 100%; }
.voice-input-actions { display: flex; align-items: center; gap: 8px; min-height: 34px; margin-top: 5px; }
.voice-input-button { padding: 5px 10px; border: 1px solid #b9d9df; border-radius: 9px; background: #edf7f6; color: var(--brand-deep); font-size: 13px; font-weight: 650; cursor: pointer; }
.voice-input-button:hover, .voice-input-button.is-listening { background: #d8f1e9; }
.voice-input-button:disabled { cursor: wait; opacity: .75; }
.voice-input-status { color: var(--muted); font-size: 12px; }

footer { padding: 25px 18px; background: #113d55; color: rgba(255,255,255,.85); }

@media (max-width: 900px) {
    .nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 16px; }
    .hero { min-height: 0; }
    .search-box { grid-template-columns: 1fr 1fr; }
    .search-box .btn { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .navbar { align-items: flex-start; flex-direction: column; gap: 10px; padding: 12px 18px; }
    .logo { font-size: 21px; }
    .nav-links { width: 100%; justify-content: flex-start; gap: 8px 15px; }
    .nav-links a, .nav-button { font-size: 13px; }
    .hero { padding: 48px 22px; text-align: left; align-items: stretch; }
    .hero-buttons { justify-content: flex-start; }
    .hero-card { align-self: center; }
    .features { padding: 54px 20px; }
    .section-heading { margin-bottom: 30px; }
    .feature-container { grid-template-columns: 1fr; }
    .search-box { grid-template-columns: 1fr; padding: 17px; }
    .search-box .btn { grid-column: auto; width: 100%; }
    .form-page { padding-inline: 14px; }
    .missing-form { padding: 20px 16px; }
    .auth-card { padding: 25px 20px; }
    .voice-input-settings { justify-content: flex-start; flex-wrap: wrap; }
}
