:root {
    --mz-ink: #070b14;
    --mz-ink-2: #0a0f1d;
    --mz-slate: #111827;
    --mz-crimson: #dc2626;
    --mz-crimson-bright: #ff3150;
    --mz-crimson-soft: #ff8b98;
    --mz-rose: #f43f5e;
    --mz-amber: #f59e0b;
    --mz-emerald: #10b981;
    --mz-gold: #f4c458;
    --mz-white: #fff7f8;
    --mz-muted: #aeb8c8;
    --mz-glass: rgba(15, 23, 42, 0.66);
    --mz-glass-strong: rgba(15, 23, 42, 0.86);
    --mz-border: rgba(255, 255, 255, 0.13);
    --mz-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --mz-out: cubic-bezier(0.16, 1, 0.3, 1);
    --mz-section-bg: #0a0f1d;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
    background: var(--mz-ink);
    scroll-behavior: auto;
}

body {
    min-height: 100vh;
    background: var(--mz-section-bg);
    color: var(--mz-white);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 12% 10%, rgba(220, 38, 38, 0.16), transparent 31rem),
        radial-gradient(circle at 88% 28%, rgba(180, 18, 48, 0.11), transparent 28rem),
        linear-gradient(145deg, #070b14 0%, #0a0f1d 48%, #101322 100%);
    content: "";
    pointer-events: none;
}

body::after {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 72%);
    mask-image: linear-gradient(to bottom, black, transparent 72%);
    content: "";
    opacity: 0.42;
    pointer-events: none;
}

body.modal-is-open {
    overflow: hidden;
}

.mz-cinematic-root {
    color-scheme: dark;
}

.mz-home-page,
.mz-register-page {
    --section-bg: #0a0f1d;
}

.mz-home-page main,
.mz-register-page main {
    position: relative;
    z-index: 1;
}

.app-main {
    isolation: isolate;
}

.app-splash {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 38%, rgba(255, 49, 80, 0.2), transparent 25rem),
        linear-gradient(145deg, #070b14, #110812 68%, #070b14);
    overflow: hidden;
}

.app-splash::before,
.app-splash::after {
    position: absolute;
    width: 34rem;
    height: 34rem;
    border: 1px solid rgba(255, 97, 116, 0.13);
    border-radius: 50%;
    content: "";
    animation: splashOrbit 2.8s var(--mz-spring) infinite;
}

.app-splash::before {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.app-splash::after {
    width: 24rem;
    height: 24rem;
    border-color: rgba(255, 255, 255, 0.1);
    animation-delay: -1.2s;
}

.splash-core {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateZ(0);
}

.splash-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 13rem;
    height: 13rem;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    filter: blur(16px);
    opacity: 0.62;
    animation: heartbeat 1.18s var(--mz-spring) infinite;
}

.splash-halo-one {
    background: rgba(255, 49, 80, 0.42);
}

.splash-halo-two {
    width: 8rem;
    height: 8rem;
    background: rgba(255, 214, 220, 0.34);
    animation-delay: -0.54s;
}

.splash-droplet {
    width: 7.2rem;
    height: 9rem;
    filter: drop-shadow(0 18px 32px rgba(255, 49, 80, 0.34));
    animation: splashDrop 1.18s var(--mz-spring) infinite;
}

.splash-wordmark {
    margin-top: 1.25rem;
    color: rgba(255, 247, 248, 0.94);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.splash-wordmark span {
    color: var(--mz-crimson-bright);
}

.splash-line {
    width: 5.5rem;
    height: 2px;
    margin-top: 0.8rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.splash-line i {
    display: block;
    width: 45%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, var(--mz-crimson-bright), #fff);
    animation: splashFill 1.18s var(--mz-out) infinite;
}

body.splash-booting .app-splash {
    animation: splashHold 1.2s var(--mz-out) forwards;
}

body.splash-complete .app-splash {
    pointer-events: none;
    animation: splashExit 0.72s var(--mz-out) forwards;
}

.navbar {
    z-index: 1000;
    border-color: rgba(255, 255, 255, 0.08) !important;
    background: rgba(7, 11, 20, 0.72) !important;
    backdrop-filter: blur(22px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(145%) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
}

.navbar .logo {
    color: var(--mz-white) !important;
}

.navbar .nav-links a,
.navbar .nav-icon,
.navbar .lang-pill {
    color: #cbd5e1 !important;
}

.navbar .nav-links a.active,
.navbar .nav-links a:hover,
.navbar .nav-icon:hover,
.navbar .lang-pill:hover {
    color: var(--mz-crimson-soft) !important;
}

.navbar .btn-outline {
    color: var(--mz-white) !important;
}

.navbar.navbar-scrolled {
    background: rgba(7, 11, 20, 0.94) !important;
}

.hero-section {
    min-height: 76rem;
    padding: calc(7.5rem + var(--safe-top)) 1.25rem 6.5rem;
    isolation: isolate;
    overflow: hidden;
    background: radial-gradient(circle at 50% 24%, rgba(220, 38, 38, 0.2), transparent 34rem), linear-gradient(155deg, #090d18 0%, #120b16 52%, #070b14 100%);
}

.hero-section::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(7, 11, 20, 0.14) 52%, #0a0f1d 100%);
    content: "";
    pointer-events: none;
}

.hero-deep-layer,
.hero-mid-layer,
.hero-foreground,
.hero-webgl-canvas {
    position: absolute;
    inset: 0;
}

.hero-deep-layer {
    z-index: 0;
    perspective: 900px;
}

.deep-grid {
    position: absolute;
    inset: -18% -12%;
    background-image: linear-gradient(rgba(255, 79, 99, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 79, 99, 0.08) 1px, transparent 1px);
    background-size: 64px 64px;
    transform: rotateX(62deg) scale(1.2);
    transform-origin: 50% 20%;
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 78%);
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.deep-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 45%, transparent 0%, rgba(7, 11, 20, 0.18) 44%, rgba(7, 11, 20, 0.92) 100%);
}

.hero-mid-layer {
    z-index: 1;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.hero-fluid-mesh {
    width: min(48rem, 82vw);
    height: min(48rem, 82vw);
    transform: translateZ(0);
    filter: drop-shadow(0 24px 50px rgba(220, 38, 38, 0.2));
    will-change: transform, filter, opacity;
}

.hero-foreground {
    z-index: 3;
    display: grid;
    place-items: center;
    align-content: center;
    padding-top: var(--safe-top);
    pointer-events: none;
}

.hero-foreground a,
.hero-foreground button,
.hero-foreground .hero-stats-grid {
    pointer-events: auto;
}

.hero-glass-container {
    width: min(68rem, 100%);
    margin: 0 auto;
    text-align: center;
    transform-style: preserve-3d;
}

.hero-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.52rem 0.86rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 24px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: rgba(255, 247, 248, 0.86);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pulse-dot {
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 50%;
    background: var(--mz-emerald);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.58);
    animation: pulseDot 1.8s var(--mz-out) infinite;
}

.hero-title {
    max-width: 13rem;
    margin: 1.35rem auto 1.15rem;
    color: #fff;
    font-size: clamp(3.25rem, 9vw, 7.2rem);
    font-weight: 850;
    letter-spacing: -0.075em;
    line-height: 0.92;
    text-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
}

.hero-title-line {
    display: block;
    overflow: hidden;
    padding: 0.05em 0;
}

.hero-title-word {
    display: inline-block;
    will-change: transform, opacity;
}

.hero-subtitle {
    max-width: 36rem;
    margin: 0 auto;
    color: rgba(238, 242, 248, 0.76);
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 2rem auto 3.4rem;
}

.btn {
    position: relative;
    display: inline-flex;
    min-height: 3.1rem;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 1rem;
    padding: 0.78rem 1.15rem;
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0.01em;
    text-transform: none;
    transform: translateZ(0);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #ff405d, #b4162d 72%);
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -8px 16px rgba(93, 5, 17, 0.24);
}

.btn-glass {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 28px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.btn-urgent {
    color: #fff;
    border-color: rgba(255, 180, 190, 0.24);
    background: linear-gradient(135deg, #f59e0b, #c63b12);
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-outline {
    color: var(--mz-crimson-soft);
    border-color: rgba(255, 113, 131, 0.28);
    background: rgba(255, 255, 255, 0.04);
}

.btn-lg {
    min-height: 3.35rem;
    padding: 0.9rem 1.35rem;
    font-size: 0.88rem;
}

.btn-sm {
    min-height: 2.55rem;
    padding: 0.62rem 0.9rem;
    font-size: 0.75rem;
}

.btn-shine {
    position: absolute;
    top: -30%;
    left: -35%;
    width: 28%;
    height: 160%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.34), transparent);
    transform: rotate(20deg) translateX(-180%);
}

.btn-primary:hover .btn-shine,
.btn-urgent:hover .btn-shine {
    animation: buttonShine 1.1s var(--mz-out);
}

.btn-icon-wrap {
    display: inline-grid;
    width: 1.25rem;
    height: 1.25rem;
    place-items: center;
}

.btn-icon-wrap svg,
.text-link svg,
.feature-box-cta svg,
.reaction-icon svg,
.verified-badge svg,
.location-mark svg,
.modal-close svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.pulse-glow {
    animation: pulseGlow 2.4s var(--mz-out) infinite;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 58rem;
    margin: 0 auto;
}

.stat-card-3d {
    position: relative;
    min-height: 9.2rem;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 1.25rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 38px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform-style: preserve-3d;
}

.stat-card-3d::before {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), transparent 30%, transparent 70%, rgba(255, 49, 80, 0.08));
    content: "";
    opacity: 0.7;
    pointer-events: none;
}

.stat-ring-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6.8rem;
    height: 6.8rem;
    transform: translate(-50%, -50%);
    opacity: 0.92;
    pointer-events: none;
}

.stat-ring-track,
.stat-ring-progress {
    fill: none;
    stroke-width: 3.5;
}

.stat-ring-track {
    stroke: rgba(255, 255, 255, 0.1);
}

.stat-ring-progress {
    stroke: var(--mz-crimson-bright);
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(255, 49, 80, 0.52));
    transform: rotate(-90deg);
    transform-origin: center;
}

.stat-number,
.stat-label {
    position: relative;
    z-index: 1;
    display: block;
}

.stat-number {
    margin-top: 3.55rem;
    color: #fff;
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    font-weight: 850;
    letter-spacing: -0.04em;
}

.stat-label {
    margin-top: 0.25rem;
    color: rgba(238, 242, 248, 0.62);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.25;
    text-transform: uppercase;
}

.scroll-cue {
    position: absolute;
    bottom: 1.35rem;
    left: 50%;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transform: translateX(-50%);
}

.scroll-cue span {
    width: 0.28rem;
    height: 0.28rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    animation: cueBreathe 1.8s var(--mz-out) infinite;
}

.scroll-cue span:nth-child(2) { animation-delay: 0.16s; }
.scroll-cue span:nth-child(3) { animation-delay: 0.32s; }

.cinematic-container {
    position: relative;
    z-index: 2;
    max-width: 76rem;
    padding-right: 1.25rem;
    padding-left: 1.25rem;
}

.cinematic-section {
    position: relative;
    margin: 7rem 0 0;
    padding: 3.5rem 0;
}

.section-heading {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-heading-center {
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 820;
    letter-spacing: -0.055em;
    line-height: 1.05;
}

.section-heading p {
    max-width: 34rem;
    margin: 0;
    color: var(--mz-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.section-index {
    flex: 0 0 auto;
    color: var(--mz-crimson-soft);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.section-heading > i {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(255, 79, 99, 0.55), transparent);
}

.section-heading-center > i {
    width: 4rem;
    height: 2px;
    margin-top: 0.35rem;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--mz-crimson-bright), transparent);
}

.text-link {
    color: var(--mz-crimson-soft);
    font-size: 0.78rem;
    font-weight: 750;
    text-decoration: none;
}

.stories-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.35rem 0.5rem 1rem;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

.stories-container::-webkit-scrollbar { display: none; }

.story-item {
    position: relative;
    flex: 0 0 8.2rem;
    height: 13.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.2rem;
    background: #111827;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
    scroll-snap-align: start;
    transform-style: preserve-3d;
}

.story-item > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--mz-out), filter 0.7s var(--mz-out);
}

.story-item:hover > img {
    transform: scale(1.08);
    filter: saturate(1.2);
}

.story-ring {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    width: 2.35rem;
    height: 2.35rem;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: #263244;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

.story-ring img { width: 100%; height: 100%; object-fit: cover; }
.story-overlay { position: absolute; right: 0; bottom: 0; left: 0; padding: 2rem 0.7rem 0.7rem; background: linear-gradient(transparent, rgba(4, 7, 14, 0.9)); color: #fff; font-size: 0.72rem; font-weight: 700; }

.feature-boxes-section {
    margin-top: 8rem;
}

.feature-boxes-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
}

.feature-box-card,
.action-card {
    position: relative;
    display: flex;
    min-height: 27rem;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.45rem;
    padding: 1.25rem;
    color: var(--mz-white);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-decoration: none !important;
    transform-style: preserve-3d;
    transition: border-color 0.45s var(--mz-out), box-shadow 0.45s var(--mz-out);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.feature-box-card::before,
.action-card::before {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.11), transparent 42%);
    content: "";
    opacity: 0.7;
    pointer-events: none;
}

.feature-box-card:hover,
.action-card:hover {
    border-color: rgba(255, 113, 131, 0.42);
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 79, 99, 0.08);
}

.card-aurora {
    position: absolute;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.22;
    pointer-events: none;
}

.card-aurora-red { top: -3rem; right: -3rem; background: #ff3150; }
.card-aurora-emerald { bottom: -3rem; left: -3rem; background: #10b981; }
.card-aurora-amber { top: 35%; right: -4rem; background: #f59e0b; }
.card-aurora-gold { bottom: -3rem; right: -2rem; background: #f4c458; }

.feature-box-badge {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 113, 131, 0.22);
    border-radius: 999px;
    padding: 0.34rem 0.58rem;
    color: var(--mz-crimson-soft);
    background: rgba(220, 38, 38, 0.09);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.badge-directory { color: #7ce8bd; border-color: rgba(16, 185, 129, 0.25); background: rgba(16, 185, 129, 0.09); }
.badge-lifeline { color: #ffd479; border-color: rgba(245, 158, 11, 0.26); background: rgba(245, 158, 11, 0.09); }
.badge-sos { color: #ff8b98; border-color: rgba(255, 49, 80, 0.34); background: rgba(255, 49, 80, 0.12); }

.procedural-art {
    position: relative;
    z-index: 1;
    display: grid;
    height: 8.7rem;
    place-items: center;
    margin-bottom: 1.15rem;
    transform-style: preserve-3d;
}

.procedural-art svg { width: 8.2rem; height: 8.2rem; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.24)); }
.feature-box-title { position: relative; z-index: 1; margin: 0 0 0.55rem; color: #fff; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.15; }
.feature-box-desc { position: relative; z-index: 1; flex: 1; margin: 0; color: rgba(219, 228, 240, 0.68); font-size: 0.78rem; line-height: 1.55; }
.feature-box-cta { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 1.1rem; color: var(--mz-crimson-soft); font-size: 0.72rem; font-weight: 800; }
.feature-box-cta svg { width: 1rem; height: 1rem; transition: transform 0.35s var(--mz-spring); }
.feature-box-card:hover .feature-box-cta svg { transform: translateX(0.28rem); }

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.post-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 1.2rem;
    padding: 1.1rem;
    color: #dbe4ef;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.post-card.emergency-post {
    border-color: rgba(255, 49, 80, 0.42);
    box-shadow: 0 18px 44px rgba(127, 11, 28, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.post-header { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.85rem; }
.post-user-info { min-width: 0; flex: 1; }
.post-user-name { overflow: hidden; color: #fff; font-size: 0.86rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.post-meta { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.2rem; color: var(--mz-muted); font-size: 0.68rem; }
.user-avatar { width: 2.5rem; height: 2.5rem; flex: 0 0 auto; object-fit: cover; border: 2px solid rgba(255, 113, 131, 0.55); border-radius: 50%; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1); }
.blood-group-badge { display: inline-grid; width: 2.45rem; height: 2.45rem; flex: 0 0 auto; place-items: center; border-radius: 0.75rem; color: #fff; background: linear-gradient(145deg, #ff405d, #9f1239); box-shadow: 0 6px 16px rgba(220, 38, 38, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28); font-size: 0.78rem; font-weight: 850; }
.blood-group-badge.mini { width: 1.45rem; height: 1.45rem; border-radius: 50%; font-size: 0.52rem; }
.urgency-badge { flex: 0 0 auto; border: 1px solid rgba(255, 113, 131, 0.26); border-radius: 999px; padding: 0.28rem 0.45rem; color: #ff9aa6; background: rgba(220, 38, 38, 0.1); font-size: 0.55rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.urgency-critical { color: #ffd2d8; background: rgba(220, 38, 38, 0.24); }
.urgency-high { color: #ffd479; border-color: rgba(245, 158, 11, 0.28); background: rgba(245, 158, 11, 0.1); }
.post-card p { margin: 0 0 0.85rem; color: rgba(219, 228, 240, 0.74); font-size: 0.78rem; line-height: 1.55; }
.request-contact { display: flex; align-items: center; gap: 0.45rem; margin: 0.7rem 0; color: var(--mz-muted); font-size: 0.7rem; }
.request-contact strong { color: #fff; font-size: 0.82rem; }
.verified-badge { display: inline-grid; width: 0.9rem; height: 0.9rem; margin-left: 0.25rem; vertical-align: -0.12rem; place-items: center; border-radius: 50%; color: #7ce8bd; background: rgba(16, 185, 129, 0.14); }
.location-mark { display: inline-grid; width: 0.85rem; height: 0.85rem; place-items: center; color: var(--mz-crimson-soft); }
.location-mark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; }
.post-media { overflow: hidden; margin: 0.8rem 0; border-radius: 0.8rem; background: #0b111e; }
.post-media img, .post-media video { display: block; width: 100%; max-height: 22rem; object-fit: cover; }
.post-actions { display: flex; gap: 0.25rem; margin-top: 0.85rem; padding-top: 0.75rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.action-btn { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: center; gap: 0.3rem; border: 0; padding: 0.4rem 0.15rem; color: var(--mz-muted); background: transparent; font-size: 0.62rem; cursor: pointer; }
.action-btn:hover { color: var(--mz-crimson-soft); }
.reaction-icon { display: grid; width: 1rem; height: 1rem; place-items: center; }
.reaction-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.composer-card { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; }
.composer-trigger { flex: 1; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px; padding: 0.8rem 1rem; color: var(--mz-muted); background: rgba(255, 255, 255, 0.05); text-align: left; }
.composer-orb { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--mz-crimson-bright); box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.1); }
.feed-filters { display: flex; gap: 0.65rem; margin: -0.5rem 0 1.5rem; }
.feed-filters label { display: flex; flex: 1; flex-direction: column; gap: 0.3rem; color: var(--mz-muted); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.feed-filters .form-select { min-height: 2.6rem; border-color: rgba(255, 255, 255, 0.12); color: #dbe4ef; background: rgba(255, 255, 255, 0.055); font-size: 0.72rem; }

.form-label { display: block; margin-bottom: 0.4rem; color: #dbe4ef; font-size: 0.72rem; font-weight: 750; }
.form-input, .form-select, .form-textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 0.75rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.065);
    outline: none;
    transition: border-color 0.25s var(--mz-out), box-shadow 0.25s var(--mz-out), background 0.25s var(--mz-out);
}
.form-input, .form-select { min-height: 2.75rem; padding: 0.65rem 0.8rem; font-size: 0.76rem; }
.form-textarea { min-height: 7rem; padding: 0.7rem 0.8rem; font-size: 0.76rem; resize: vertical; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: rgba(255, 79, 99, 0.78); background: rgba(255, 255, 255, 0.09); box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16); }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(174, 184, 200, 0.55); }
.form-select option { color: #0f172a; background: #fff; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; color: var(--mz-muted); font-size: 0.74rem; cursor: pointer; }
.checkbox-label input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox-ui { position: relative; width: 1rem; height: 1rem; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 0.3rem; background: rgba(255, 255, 255, 0.06); }
.checkbox-ui::after { position: absolute; top: 0.12rem; left: 0.3rem; width: 0.28rem; height: 0.5rem; border-right: 2px solid #fff; border-bottom: 2px solid #fff; content: ""; opacity: 0; transform: rotate(45deg) scale(0.6); }
.checkbox-label input:checked + .checkbox-ui { border-color: var(--mz-crimson-bright); background: var(--mz-crimson-bright); }
.checkbox-label input:checked + .checkbox-ui::after { opacity: 1; transform: rotate(45deg) scale(1); }

.modal-overlay { position: fixed; inset: 0; z-index: 5000; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(3, 6, 12, 0.76); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal-overlay.active, .modal-overlay.sheet-open { display: flex; }
.modal-content { position: relative; width: min(34rem, 100%); max-height: min(88vh, 52rem); overflow: auto; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 1.5rem; background: linear-gradient(145deg, #151d2e, #0c1220); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.modal-handle { position: absolute; top: 0.62rem; left: 50%; z-index: 3; display: none; width: 3rem; height: 0.28rem; transform: translateX(-50%); border: 0; border-radius: 999px; padding: 0; background: rgba(255, 255, 255, 0.24); cursor: grab; }
.modal-handle span { display: none; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.35rem 1.35rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.09); }
.modal-kicker { display: block; margin-bottom: 0.25rem; color: var(--mz-crimson-soft); font-size: 0.58rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.modal-title { margin: 0; color: #fff; font-size: 1.2rem; font-weight: 820; letter-spacing: -0.035em; }
.modal-close { display: grid; width: 2rem; height: 2rem; flex: 0 0 auto; place-items: center; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 50%; color: var(--mz-muted); background: rgba(255, 255, 255, 0.05); cursor: pointer; }
.modal-close svg { width: 0.85rem; height: 0.85rem; }
.modal-body { padding: 1.1rem 1.35rem; }
.modal-footer { display: flex; justify-content: flex-end; gap: 0.55rem; padding: 1rem 1.35rem calc(1rem + var(--safe-bottom)); border-top: 1px solid rgba(255, 255, 255, 0.09); }
.modal-sheet .modal-content { border-radius: 1.75rem; }
@media (max-width: 768px) { .modal-sheet .modal-content { border-radius: 1.75rem 1.75rem 0 0; } }

.toast-container { position: fixed; top: calc(1rem + var(--safe-top)); right: 1rem; z-index: 7000; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; }
.toast { min-width: min(20rem, calc(100vw - 2rem)); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 0.85rem; padding: 0.8rem 0.95rem; color: #fff; background: rgba(15, 23, 42, 0.94); box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 0.76rem; }
.toast-success { border-left: 3px solid var(--mz-emerald); }
.toast-error { border-left: 3px solid var(--mz-crimson-bright); }
.toast-warning { border-left: 3px solid var(--mz-amber); }
.toast-info { border-left: 3px solid #60a5fa; }

.bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 4000; display: flex; height: calc(4.7rem + var(--safe-bottom)); align-items: stretch; justify-content: center; gap: 0.15rem; padding: 0.45rem 0.65rem calc(0.55rem + var(--safe-bottom)); border-top: 1px solid rgba(255, 255, 255, 0.12); background: rgba(15, 23, 42, 0.78); box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); }
.bottom-nav::before { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent); content: ""; pointer-events: none; }
.bottom-nav-indicator { position: absolute; bottom: calc(0.48rem + var(--safe-bottom)); left: 0; z-index: 0; height: 0.28rem; border-radius: 999px; background: linear-gradient(90deg, #ff405d, #ff8b98); box-shadow: 0 0 14px rgba(255, 49, 80, 0.62); transition: transform 0.48s var(--mz-spring), width 0.48s var(--mz-spring); }
.bottom-nav-item { position: relative; z-index: 1; display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 0.22rem; border-radius: 0.8rem; color: rgba(203, 213, 225, 0.62); font-size: 0.56rem; font-weight: 700; text-align: center; text-decoration: none; transition: color 0.3s var(--mz-out), transform 0.3s var(--mz-spring); }
.bottom-nav-item:active { transform: scale(0.94); }
.bottom-nav-item.active { color: #fff; }
.bottom-nav-icon { position: relative; display: grid; width: 1.42rem; height: 1.42rem; place-items: center; }
.bottom-nav-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transition: transform 0.35s var(--mz-spring), filter 0.35s var(--mz-out); }
.bottom-nav-item.active .bottom-nav-icon svg, .bottom-nav-item:active .bottom-nav-icon svg { transform: scale(1.18) translateY(-2px); filter: drop-shadow(0 0 7px rgba(255, 49, 80, 0.6)); }
.request-nav-item.active { color: #ff8b98; }
.emergency-fab { position: absolute; top: -1.35rem; right: 0.8rem; z-index: 2; display: grid; width: 3.25rem; height: 3.25rem; place-items: center; border: 1px solid rgba(255, 255, 255, 0.32); border-radius: 50%; padding: 0; color: #fff; background: linear-gradient(145deg, #ff405d, #9f1239); box-shadow: 0 12px 26px rgba(220, 38, 38, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.36); transform: translateZ(0); }
.emergency-fab:active { transform: scale(0.92); }
.fab-core { position: relative; z-index: 2; display: grid; width: 1.55rem; height: 1.55rem; place-items: center; }
.fab-core svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.fab-sonar { position: absolute; inset: 0; border: 1px solid rgba(255, 97, 116, 0.58); border-radius: 50%; animation: sonar 2.1s var(--mz-out) infinite; }
.fab-sonar-two { animation-delay: 1.05s; }

.site-footer { position: relative; z-index: 2; margin-top: 7rem; border-color: rgba(255, 255, 255, 0.08) !important; color: var(--mz-muted) !important; background: rgba(7, 11, 20, 0.5) !important; }
.site-footer a { color: #cbd5e1 !important; }
.site-footer strong { color: #fff !important; }

.mz-register-page { min-height: 100vh; padding-top: 0; }
.mz-register-page .navbar { position: relative; margin-bottom: 2rem; }
.auth-wrapper { position: relative; display: grid; min-height: calc(100vh - 5rem); place-items: center; padding: 3rem 1rem calc(6rem + var(--safe-bottom)); overflow: hidden; }
.auth-wrapper::before { position: absolute; inset: 0; background: radial-gradient(circle at 20% 15%, rgba(255, 49, 80, 0.18), transparent 26rem), radial-gradient(circle at 82% 76%, rgba(244, 196, 88, 0.1), transparent 24rem); content: ""; pointer-events: none; }
.auth-card-wrapper { position: relative; z-index: 1; width: min(60rem, 100%); }
.auth-card { position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 1.8rem; padding: clamp(1.4rem, 4vw, 2.8rem); background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045) 45%, rgba(220, 38, 38, 0.06)); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.15); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); transform-style: preserve-3d; }
.auth-card::before { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255, 255, 255, 0.13), transparent 24%, transparent 70%, rgba(255, 49, 80, 0.09)); content: ""; pointer-events: none; }
.auth-card::after { position: absolute; top: -8rem; right: -7rem; width: 18rem; height: 18rem; border-radius: 50%; background: rgba(255, 49, 80, 0.16); filter: blur(45px); content: ""; pointer-events: none; }
.auth-header { position: relative; z-index: 1; text-align: center; }
.logo-badge { display: grid; width: 4.25rem; height: 4.25rem; margin: 0 auto 1rem; place-items: center; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 1.25rem; color: #fff; background: linear-gradient(145deg, #ff405d, #8f1228); box-shadow: 0 14px 32px rgba(220, 38, 38, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.logo-badge svg { width: 2.25rem; height: 2.25rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.auth-header h1 { margin: 0; color: #fff; font-size: clamp(1.65rem, 4vw, 2.5rem); font-weight: 850; letter-spacing: -0.055em; line-height: 1.05; }
.auth-header p { max-width: 32rem; margin: 0.65rem auto 0; color: var(--mz-muted); font-size: 0.82rem; line-height: 1.6; }
.trust-badges-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin: 1.4rem 0; }
.trust-badge-item { display: flex; align-items: center; gap: 0.6rem; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 0.9rem; padding: 0.65rem; background: rgba(255, 255, 255, 0.055); }
.trust-badge-icon { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; border-radius: 0.55rem; color: #fff; background: linear-gradient(145deg, #10b981, #047857); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22); font-size: 0; }
.trust-badge-item:last-child .trust-badge-icon { background: linear-gradient(145deg, #ff405d, #9f1239); }
.trust-badge-icon svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-badge-text strong { display: block; color: #fff; font-size: 0.68rem; }
.trust-badge-text small { display: block; margin-top: 0.1rem; color: var(--mz-muted); font-size: 0.6rem; line-height: 1.25; }
.alert { position: relative; z-index: 1; border-radius: 0.8rem; padding: 0.75rem 0.85rem; font-size: 0.72rem; line-height: 1.45; }
.alert-success { border: 1px solid rgba(16, 185, 129, 0.3); color: #a7f3d0; background: rgba(16, 185, 129, 0.1); }
.alert-error { border: 1px solid rgba(255, 79, 99, 0.34); color: #ffd2d8; background: rgba(220, 38, 38, 0.12); }
.auth-form { position: relative; z-index: 1; display: grid; gap: 0.95rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.95rem; }
.field-shell { position: relative; }
.field-icon { position: absolute; top: 50%; left: 0.82rem; z-index: 1; display: grid; width: 1rem; height: 1rem; transform: translateY(-50%); color: var(--mz-muted); pointer-events: none; transition: color 0.25s var(--mz-out); }
.field-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.field-shell .form-floating-input, .field-shell .form-floating-select { min-height: 3.35rem; padding: 1.05rem 0.8rem 0.4rem 2.35rem; border-radius: 0.85rem; background: rgba(7, 11, 20, 0.34); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 22px rgba(0, 0, 0, 0.08); }
.field-shell .form-floating-label { top: 1.08rem; left: 2.35rem; color: var(--mz-muted); font-size: 0.72rem; transition: transform 0.28s var(--mz-out), color 0.28s var(--mz-out), top 0.28s var(--mz-out); }
.field-shell .form-floating-input:focus, .field-shell .form-floating-select:focus { border-color: rgba(255, 79, 99, 0.8); background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15), 0 0 22px rgba(220, 38, 38, 0.13); }
.field-shell .form-floating-input:focus ~ .form-floating-label, .field-shell .form-floating-input:not(:placeholder-shown) ~ .form-floating-label, .field-shell .form-floating-select:focus ~ .form-floating-label, .field-shell .form-floating-select:valid ~ .form-floating-label { top: 0.38rem; color: var(--mz-crimson-soft); font-size: 0.58rem; font-weight: 800; transform: scale(0.92); transform-origin: left top; }
.field-shell .form-floating-input:focus + .field-icon, .field-shell .form-floating-select:focus + .field-icon { color: var(--mz-crimson-soft); }
.password-toggle { position: absolute; top: 50%; right: 0.55rem; z-index: 2; display: grid; width: 1.7rem; height: 1.7rem; transform: translateY(-50%); place-items: center; border: 0; border-radius: 0.45rem; color: var(--mz-muted); background: transparent; cursor: pointer; }
.password-toggle svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.password-toggle.is-visible { color: var(--mz-crimson-soft); }
.field-hint { display: block; margin-top: 0.3rem; color: var(--mz-muted); font-size: 0.6rem; line-height: 1.35; }
.blood-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0.15rem 0 0.55rem; color: #fff; font-size: 0.72rem; font-weight: 800; }
.blood-group-heading small { color: var(--mz-muted); font-size: 0.58rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.blood-pills-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.45rem; }
.blood-pill-label { position: relative; display: block; min-width: 0; cursor: pointer; }
.blood-pill-label input { position: absolute; opacity: 0; pointer-events: none; }
.blood-pill-badge { display: grid; min-height: 2.45rem; place-items: center; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 0.7rem; color: #dbe4ef; background: rgba(255, 255, 255, 0.055); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 16px rgba(0, 0, 0, 0.1); font-size: 0.68rem; font-weight: 800; transition: transform 0.22s var(--mz-spring), border-color 0.22s var(--mz-out), background 0.22s var(--mz-out), box-shadow 0.22s var(--mz-out); }
.blood-pill-label:hover .blood-pill-badge { border-color: rgba(255, 113, 131, 0.45); transform: translateY(-2px); }
.blood-pill-label:active .blood-pill-badge { transform: scale(0.94); }
.blood-pill-label input:checked + .blood-pill-badge { border-color: rgba(255, 97, 116, 0.8); color: #fff; background: linear-gradient(145deg, #ff405d, #9f1239); box-shadow: 0 8px 20px rgba(220, 38, 38, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.blood-pill-label input:focus-visible + .blood-pill-badge { outline: 2px solid rgba(255, 113, 131, 0.7); outline-offset: 2px; }
.auth-submit { position: relative; z-index: 1; min-height: 3.45rem; margin-top: 0.35rem; border: 0; border-radius: 0.95rem; color: #fff; background: linear-gradient(135deg, #ff405d, #9f1239); box-shadow: 0 16px 34px rgba(220, 38, 38, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -8px 16px rgba(93, 5, 17, 0.2); font-size: 0.82rem; font-weight: 850; cursor: pointer; }
.auth-submit:active { transform: scale(0.96); }
.auth-submit.is-loading { pointer-events: none; opacity: 0.82; }
.auth-submit.is-loading::after { position: absolute; top: 50%; right: 1rem; width: 0.9rem; height: 0.9rem; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; content: ""; animation: spin 0.8s linear infinite; transform: translateY(-50%); }
.auth-footer { position: relative; z-index: 1; margin-top: 1.35rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, 0.09); color: var(--mz-muted); font-size: 0.72rem; text-align: center; }
.auth-footer a { color: var(--mz-crimson-soft); font-weight: 800; text-decoration: none; }

.auth-ambient { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.auth-ambient-cell { position: absolute; opacity: 0.35; animation: ambientFloat 8s ease-in-out infinite alternate; }
.auth-ambient-cell-one { top: 8%; left: -6%; width: 14rem; height: 14rem; animation-duration: 9s; }
.auth-ambient-cell-two { bottom: 12%; right: -4%; width: 11rem; height: 11rem; animation-duration: 7s; animation-delay: -3s; }
@keyframes ambientFloat { 0% { transform: translateY(0) rotate(0deg); } 100% { transform: translateY(-18px) rotate(8deg); } }

.field-group { position: relative; }
.field-group.is-filled .form-floating-label,
.field-group.is-focused .form-floating-label,
.field-group .form-floating-input:focus ~ .form-floating-label,
.field-group .form-floating-input:not(:placeholder-shown) ~ .form-floating-label,
.field-group .form-floating-select:focus ~ .form-floating-label {
  top: 0.38rem;
  color: var(--mz-crimson-soft);
  font-size: 0.58rem;
  font-weight: 800;
  transform: scale(0.92);
  transform-origin: left top;
}

body.keyboard-is-open .auth-card { transition: transform 0.28s var(--mz-out); }

body.app-shell-switching { opacity: 0.72; transition: opacity 0.22s var(--mz-out); }
.webgl-fallback .hero-webgl-canvas { display: none; }
.motion-reduced .app-splash, .motion-reduced .ambient-blob, .motion-reduced .floating-blood-drop, .motion-reduced .fab-sonar, .motion-reduced .pulse-glow, .motion-reduced .pulse-dot { animation: none !important; }
.motion-reduced .app-splash { display: none; }
.motion-reduced *, .motion-reduced *::before, .motion-reduced *::after { scroll-behavior: auto !important; }
.sr-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

@keyframes splashOrbit { 0%, 100% { transform: translate(-50%, -50%) scale(0.92) rotate(0deg); } 50% { transform: translate(-50%, -50%) scale(1.08) rotate(18deg); } }
@keyframes heartbeat { 0%, 100% { transform: translate(-50%, -50%) scale(0.82); opacity: 0.34; } 42% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.78; } 58% { transform: translate(-50%, -50%) scale(0.96); opacity: 0.5; } }
@keyframes splashDrop { 0%, 100% { transform: translateY(0) scale(0.96); } 50% { transform: translateY(-0.45rem) scale(1.05); } }
@keyframes splashFill { 0% { transform: translateX(-130%); } 62%, 100% { transform: translateX(250%); } }
@keyframes splashHold { 0%, 100% { opacity: 1; } }
@keyframes splashExit { to { opacity: 0; visibility: hidden; transform: scale(1.08); filter: blur(8px); } }
@keyframes pulseDot { 0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.58); } 70% { box-shadow: 0 0 0 0.5rem rgba(16, 185, 129, 0); } }
@keyframes pulseGlow { 0%, 100% { box-shadow: 0 12px 30px rgba(217, 119, 6, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28); } 50% { box-shadow: 0 12px 38px rgba(255, 49, 80, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.34); } }
@keyframes buttonShine { from { transform: rotate(20deg) translateX(-180%); } to { transform: rotate(20deg) translateX(520%); } }
@keyframes cueBreathe { 0%, 100% { opacity: 0.28; transform: scale(0.72); } 50% { opacity: 0.9; transform: scale(1.15); } }
@keyframes sonar { 0% { opacity: 0.75; transform: scale(0.82); } 78%, 100% { opacity: 0; transform: scale(1.7); } }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

@media (max-width: 900px) {
    .hero-section { min-height: 68rem; }
    .feature-boxes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-box-card, .action-card { min-height: 25rem; }
}

@media (max-width: 768px) {
    body { padding-bottom: calc(4.7rem + var(--safe-bottom)); }
    .navbar { padding-top: calc(0.65rem + var(--safe-top)) !important; padding-bottom: 0.65rem !important; }
    .nav-links, .nav-icons { display: none !important; }
    .navbar-content { padding-right: 0.8rem !important; padding-left: 0.8rem !important; }
    .hero-section { min-height: 100svh; padding: calc(5.8rem + var(--safe-top)) 0.9rem 5rem; }
    .hero-fluid-mesh { width: 88vw; height: 88vw; opacity: 0.72; }
    .hero-glass-container { width: 100%; }
    .hero-title { max-width: 15rem; font-size: clamp(2.65rem, 14vw, 4.25rem); line-height: 0.96; }
    .hero-live-pill { max-width: 100%; font-size: 0.58rem; letter-spacing: 0.05em; }
    .hero-subtitle { font-size: 0.84rem; line-height: 1.55; }
    .hero-cta-group { flex-direction: column; align-items: stretch; gap: 0.55rem; margin: 1.4rem auto 2.2rem; }
    .hero-cta-group .btn { width: 100%; }
    .hero-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
    .stat-card-3d { min-height: 8.1rem; border-radius: 1rem; }
    .stat-ring-svg { width: 5.4rem; height: 5.4rem; }
    .stat-number { margin-top: 2.8rem; font-size: 1.35rem; }
    .stat-label { font-size: 0.5rem; }
    .scroll-cue { bottom: 4.95rem; }
    .cinematic-container { padding-right: 0.8rem; padding-left: 0.8rem; }
    .cinematic-section { margin-top: 4.5rem; padding: 2.5rem 0; }
    .section-heading { align-items: flex-start; gap: 0.55rem; }
    .section-heading h2 { font-size: 1.75rem; }
    .section-index { font-size: 0.52rem; }
    .stories-container { margin-right: -0.8rem; margin-left: -0.8rem; padding-right: 0.8rem; padding-left: 0.8rem; }
    .feature-boxes-section { margin-top: 5rem; }
    .feature-boxes-grid { grid-template-columns: 1fr; gap: 0.85rem; margin-top: 1.5rem; }
    .feature-box-card, .action-card { min-height: 0; border-radius: 1.2rem; padding: 1rem; box-shadow: 0 20px 40px -15px rgba(220, 38, 38, 0.25), 0 14px 30px rgba(0, 0, 0, 0.24); }
    .procedural-art { height: 7.2rem; }
    .procedural-art svg { width: 7rem; height: 7rem; }
    .feature-box-desc { font-size: 0.74rem; }
    .emergency-grid { grid-template-columns: 1fr; }
    .feed-filters { flex-direction: column; margin-top: 0; }
    .post-card { border-radius: 1rem; padding: 0.9rem; }
    .post-actions { gap: 0; }
    .action-btn { font-size: 0.56rem; }
    .modal-overlay { align-items: flex-end; justify-content: stretch; padding: 0; }
    .modal-content { width: 100%; max-height: 92svh; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 1.75rem 1.75rem 0 0; }
    .modal-handle { display: block; top: 0.55rem; }
    .modal-header { padding-top: 1.55rem; }
    .modal-footer { padding-right: 1rem; padding-left: 1rem; }
    .auth-wrapper { min-height: calc(100svh - 4rem); padding: 1rem 0.7rem calc(6rem + var(--safe-bottom)); place-items: stretch end; }
    .auth-card-wrapper { width: 100%; }
    .auth-card { border-radius: 1.35rem; padding: 1.25rem 0.9rem calc(1.25rem + var(--safe-bottom)); }
    .logo-badge { width: 3.5rem; height: 3.5rem; border-radius: 1rem; }
    .logo-badge svg { width: 1.8rem; height: 1.8rem; }
    .auth-header h1 { font-size: 1.65rem; }
    .auth-header p { font-size: 0.72rem; }
    .trust-badges-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; gap: 0.95rem; }
    .blood-pills-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.32rem; }
    .blood-pill-badge { min-height: 2.25rem; padding: 0.35rem 0.15rem; font-size: 0.58rem; }
    .auth-submit { min-height: 3.25rem; }
    .toast-container { right: 0.7rem; left: 0.7rem; }
    .toast { min-width: 0; }
}

@media (max-width: 420px) {
    .hero-title { max-width: 13rem; font-size: 2.55rem; }
    .hero-live-pill { font-size: 0.52rem; }
    .stat-ring-svg { width: 4.8rem; height: 4.8rem; }
    .stat-number { font-size: 1.15rem; }
    .stat-label { font-size: 0.45rem; }
    .section-heading { gap: 0.4rem; }
    .section-heading h2 { font-size: 1.55rem; }
    .blood-pills-grid { gap: 0.25rem; }
    .blood-pill-badge { font-size: 0.52rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .app-splash { display: none; }
    .sr-hidden { opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; }
    .hero-title-line, .hero-title-word { transform: none !important; opacity: 1 !important; }
    .stat-ring-progress { stroke-dashoffset: 0 !important; }
}
