:root {
    --navy: #0a1628;
    --deep: #0d2240;
    --water: #0e4d92;
    --tide: #1a6fbf;
    --foam: #5eb8ff;
    --sky: #a8d8ff;
    --white: #f0f6ff;
    --warning: #f5a623;
    --danger: #e8431a;
    --muted: #6b8aaa;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--navy);
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
    cursor: none;
}

/* ── CUSTOM CURSOR ── */
.cursor {
    width: 10px;
    height: 10px;
    background: var(--foam);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 100000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s, width 0.2s, height 0.2s, background 0.2s;
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--foam);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: transform 0.18s ease, width 0.2s, height 0.2s, opacity 0.2s;
    opacity: 0.5;
}

/* ── WATER BACKGROUND ── */
.bg-water {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(175deg, #07111f 0%, #0a1f3d 40%, #0c2f58 80%, #0e3d70 100%);
    overflow: hidden;
}

.bg-water::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 110%, rgba(14, 77, 146, 0.55) 0%, transparent 70%),
        radial-gradient(ellipse 40% 30% at 20% 80%, rgba(26, 111, 191, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 30% 25% at 80% 70%, rgba(5, 40, 90, 0.4) 0%, transparent 60%);
}

/* Animated wave lines */
.wave-lines {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    overflow: hidden;
}

.wave-lines svg {
    width: 200%;
    animation: waveScroll 12s linear infinite;
}

.wave-lines svg:nth-child(2) {
    animation-delay: -6s;
    opacity: 0.4;
    position: absolute;
    bottom: 0;
}

@keyframes waveScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Floating particles */
.particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--foam);
    border-radius: 50%;
    opacity: 0;
    animation: floatUp var(--dur, 8s) ease-in var(--delay, 0s) infinite;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0);
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.2;
    }

    100% {
        opacity: 0;
        transform: translateY(-60vh) translateX(var(--drift, 20px));
    }
}

/* Grain overlay */
.grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* ── LAYOUT ── */
.page {
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
    background: linear-gradient(to bottom, rgba(7, 17, 31, 0.9), transparent);
    backdrop-filter: blur(2px);
}

.nav-logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.7rem;
    letter-spacing: 0.05em;
    color: var(--white);
    transition: opacity 0.2s;
}

.nav-logo a:hover {
    opacity: 0.8;
}

.nav-logo img {
    height: 32px;
    width: auto;
    display: block;
}

.nav-tabs {
    display: flex;
    gap: 4px;
}

.nav-tab {
    padding: 7px 20px;
    border-radius: 40px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.nav-tab:hover {
    color: var(--white);
    border-color: rgba(94, 184, 255, 0.2);
}

.nav-tab.active {
    background: rgba(94, 184, 255, 0.12);
    color: var(--foam);
    border-color: rgba(94, 184, 255, 0.3);
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 140px 48px 130px;
    position: relative;
}

.hero-eyebrow {
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: var(--warning);
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeUp 0.6s 0.2s forwards;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--warning);
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 11vw, 9.5rem);
    line-height: 0.92;
    letter-spacing: 0.02em;
    color: var(--white);
    opacity: 0;
    animation: fadeUp 0.7s 0.35s forwards;
}

.hero-title .accent {
    color: var(--foam);
    display: block;
}

.hero-title .outline {
    -webkit-text-stroke: 2px var(--tide);
    color: transparent;
}

.hero-subtitle {
    margin-top: 28px;
    max-width: 480px;
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 300;
    color: var(--sky);
    opacity: 0;
    animation: fadeUp 0.7s 0.5s forwards;
}

.hero-cta {
    margin-top: 40px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.7s 0.65s forwards;
}

.btn-primary {
    padding: 14px 32px;
    background: var(--tide);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: none;
    transition: background 0.2s, transform 0.15s;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.4s;
}

.btn-primary:hover {
    background: var(--water);
    transform: translateY(-2px);
}

.btn-primary:hover::after {
    transform: translateX(100%);
}

.btn-ghost {
    padding: 14px 32px;
    background: transparent;
    color: var(--foam);
    border: 1px solid rgba(94, 184, 255, 0.35);
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: none;
    transition: all 0.2s;
}

.btn-ghost:hover {
    background: rgba(94, 184, 255, 0.08);
    border-color: var(--foam);
}

/* Alert ribbon */
.alert-ribbon {
    position: absolute;
    bottom: 20px;
    left: 48px;
    right: 48px;
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid rgba(245, 166, 35, 0.3);
    border-radius: 8px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.82rem;
    color: var(--warning);
    opacity: 0;
    animation: fadeUp 0.7s 0.8s forwards;
}

.alert-ribbon svg {
    flex-shrink: 0;
}

/* ── SECTION COMMON ── */
section {
    padding: 100px 48px;
    position: relative;
}

.section-label {
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(107, 138, 170, 0.3), transparent);
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.75;
    color: var(--sky);
    max-width: 520px;
    margin-bottom: 60px;
}

/* ── READINESS METER ── */
.meter-section {
    background: rgba(13, 34, 64, 0.6);
    border-top: 1px solid rgba(94, 184, 255, 0.08);
    border-bottom: 1px solid rgba(94, 184, 255, 0.08);
}

.meter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.meter-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meter-ring {
    width: 260px;
    height: 260px;
    position: relative;
}

.meter-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.meter-ring .track {
    fill: none;
    stroke: rgba(94, 184, 255, 0.08);
    stroke-width: 12;
}

.meter-ring .fill {
    fill: none;
    stroke: url(#meterGrad);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 691;
    stroke-dashoffset: 691;
    animation: fillMeter 1.8s 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fillMeter {
    to {
        stroke-dashoffset: 242;
    }

    /* ~65% */
}

.meter-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.meter-pct {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: var(--foam);
    line-height: 1;
}

.meter-label {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    color: var(--muted);
    text-transform: uppercase;
}

/* Checklist */
.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    cursor: none;
}

.check-item:hover {
    background: rgba(94, 184, 255, 0.05);
    border-color: rgba(94, 184, 255, 0.2);
    transform: translateX(4px);
}

.check-item.done {
    border-color: rgba(94, 184, 255, 0.25);
}

.check-box {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 1px;
    border-radius: 4px;
    border: 1.5px solid var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.check-item.done .check-box {
    background: var(--tide);
    border-color: var(--tide);
}

.check-item.done .check-box::after {
    content: '';
    width: 12px;
    height: 7px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg) translate(1px, -1px);
    display: block;
}

.check-text strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.check-text span {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 300;
}

/* ── SUPPLY KIT ── */
.kit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.kit-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 24px 20px;
    transition: all 0.25s;
    cursor: none;
    position: relative;
    overflow: hidden;
}

.kit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--water), var(--foam));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.kit-card:hover {
    background: rgba(94, 184, 255, 0.06);
    border-color: rgba(94, 184, 255, 0.2);
    transform: translateY(-4px);
}

.kit-card:hover::before {
    transform: scaleX(1);
}

.kit-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: block;
}

.kit-name {
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 5px;
}

.kit-detail {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.5;
}

.kit-qty {
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: 'Courier Prime', monospace;
    font-size: 0.7rem;
    color: var(--foam);
    background: rgba(94, 184, 255, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
}

/* ── RISK ZONES ── */
.zone-section {}

.zone-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.zone-card {
    border-radius: 12px;
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    cursor: none;
    transition: transform 0.2s;
}

.zone-card:hover {
    transform: translateY(-5px);
}

.zone-card.high {
    background: linear-gradient(135deg, rgba(232, 67, 26, 0.15), rgba(232, 67, 26, 0.05));
    border: 1px solid rgba(232, 67, 26, 0.3);
}

.zone-card.medium {
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.12), rgba(245, 166, 35, 0.04));
    border: 1px solid rgba(245, 166, 35, 0.25);
}

.zone-card.low {
    background: linear-gradient(135deg, rgba(94, 184, 255, 0.1), rgba(94, 184, 255, 0.03));
    border: 1px solid rgba(94, 184, 255, 0.2);
}

.zone-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Courier Prime', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.zone-card.high .zone-badge {
    background: rgba(232, 67, 26, 0.15);
    color: #ff7a5c;
}

.zone-card.medium .zone-badge {
    background: rgba(245, 166, 35, 0.15);
    color: var(--warning);
}

.zone-card.low .zone-badge {
    background: rgba(94, 184, 255, 0.1);
    color: var(--foam);
}

.zone-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: blink 1.8s infinite;
}

.zone-card.high .zone-badge::before {
    background: #ff7a5c;
}

.zone-card.medium .zone-badge::before {
    background: var(--warning);
}

.zone-card.low .zone-badge::before {
    background: var(--foam);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

.zone-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.zone-desc {
    font-size: 0.82rem;
    color: var(--sky);
    line-height: 1.65;
    font-weight: 300;
    margin-bottom: 20px;
}

.zone-actions {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zone-actions li {
    font-size: 0.8rem;
    color: var(--muted);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.zone-actions li::before {
    content: '→';
    color: var(--foam);
    flex-shrink: 0;
}

/* ── EMERGENCY PLAN BUILDER ── */
.plan-section {
    background: rgba(7, 17, 31, 0.5);
}

.plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.plan-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.plan-step {
    display: flex;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s;
}

.plan-step:first-child {
    padding-top: 0;
}

.plan-step:hover .step-num {
    background: var(--tide);
    color: white;
}

.step-num {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 8px;
    border: 1.5px solid rgba(94, 184, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
    color: var(--foam);
    transition: all 0.2s;
}

.step-content strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.step-content p {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 300;
    line-height: 1.6;
}

/* Form */
.plan-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}

.form-input,
.form-select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    padding: 12px 16px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    cursor: none;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--foam);
    background: rgba(94, 184, 255, 0.05);
}

.form-input::placeholder {
    color: rgba(107, 138, 170, 0.5);
}

.form-select option {
    background: var(--deep);
}

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

.form-note {
    font-size: 0.78rem;
    color: var(--muted);
    font-style: italic;
    margin-top: -8px;
}

/* ── BOTTOM STRIP ── */
.strip {
    background: rgba(14, 77, 146, 0.2);
    border-top: 1px solid rgba(94, 184, 255, 0.12);
    padding: 28px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.strip-text {
    font-size: 0.8rem;
    color: var(--muted);
}

.strip-text strong {
    color: var(--foam);
}

.strip-hotline {
    font-family: 'Courier Prime', monospace;
    font-size: 1.1rem;
    color: var(--warning);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Scroll progress */
.scroll-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--water), var(--foam));
    z-index: 200;
    width: 0%;
    transition: width 0.1s;
}

/* Floating SOS */
.sos-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 100;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--danger);
    border: none;
    color: white;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.1em;
    cursor: none;
    box-shadow: 0 0 0 0 rgba(232, 67, 26, 0.5);
    animation: sosPulse 2.5s ease-out infinite;
    transition: transform 0.15s;
}

.sos-btn:hover {
    transform: scale(1.1);
}

@keyframes sosPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(232, 67, 26, 0.5);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(232, 67, 26, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(232, 67, 26, 0);
    }
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(94, 184, 255, 0.15), transparent);
    margin: 0 48px;
}

/* Responsive */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--foam);
    transition: all 0.3s ease;
}

/* Hamburger to X animation */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-tabs {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 100;
        padding: 40px;
    }

    .nav-tabs.open {
        right: 0;
    }

    .nav-tab {
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
        padding: 15px;
    }

    nav {
        padding: 16px 24px;
    }

    .hero,
    section {
        padding-left: 24px;
        padding-right: 24px;
    }

    /* Responsive Grid */
    @media (max-width: 1100px) {
        .hub-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 700px) {
        .hub-grid {
            grid-template-columns: 1fr;
            gap: 20px;
        }
        
        .hub-header h1 {
            font-size: 3rem;
        }

        .app-tile {
            padding: 24px;
        }
    }

    .meter-grid,
    .plan-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .strip {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* --- Emergency SOS Modal --- */
.sos-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sos-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.sos-modal {
    background: #1a0a0a;
    border: 2px solid #ff4d4d;
    border-radius: 16px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 50px rgba(255, 77, 77, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sos-modal-overlay.active .sos-modal {
    transform: scale(1);
}

.sos-header {
    color: #ff4d4d;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.sos-sub {
    font-family: 'Courier Prime', monospace;
    color: var(--white);
    font-size: 0.9rem;
    margin-bottom: 30px;
    opacity: 0.8;
}

.sos-call-btn {
    display: block;
    width: 100%;
    background: #ff4d4d;
    color: white !important;
    text-decoration: none;
    padding: 20px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 15px;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.4);
}

.sos-call-btn:hover {
    background: #ff3333;
    transform: translateY(-2px);
}

.sos-dismiss {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--muted);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
}

.sos-dismiss:hover {
    background: rgba(255,255,255,0.05);
    color: var(--white);
}