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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    min-height: 100vh;
    color: #fff;
}


.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3em;
    font-weight: 600;
}

.logo .fire-icon {
    font-size: 1.5em;
    color: #ff6b35;
}

.nav-menu {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-link {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-link:hover {
    color: #fff;
}

.nav-link.user-name {
    color: #fff;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 6px;
}

.nav-link.user-name:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-link.admin-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    font-weight: 700;
}

.nav-link.admin-badge:hover {
    background: linear-gradient(135deg, #ffed4e, #ffd700);
}

.signup-btn {
    padding: 8px 20px;
    border: 1.5px solid #ff6b35;
    border-radius: 6px;
    color: #ff6b35;
    background: transparent;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.signup-btn:hover {
    background: #ff6b35;
    color: #fff;
}


.dashboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 40px 20px;
}

.welcome-text {
    text-align: center;
    margin-bottom: 60px;
}

.welcome-text h1 {
    font-size: 2em;
    font-weight: 400;
    margin-bottom: 8px;
    color: #e0e0e0;
}

.welcome-text p {
    font-size: 0.95em;
    color: #888;
}


.emergency-container {
    position: relative;
    margin-bottom: 80px;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 780px;
    height: 780px;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.4) 0%, rgba(255, 0, 0, 0.2) 30%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

.emergency-button {
    position: relative;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff4444, #cc0000);
    border: none;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
    box-shadow: 
        0 0 40px rgba(255, 0, 0, 0.5),
        0 0 80px rgba(255, 0, 0, 0.3),
        inset 0 -5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.emergency-button:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 60px rgba(255, 0, 0, 0.7),
        0 0 100px rgba(255, 0, 0, 0.4),
        inset 0 -5px 20px rgba(0, 0, 0, 0.3);
}

.emergency-button:active {
    transform: scale(0.98);
}

.flame-icon {
    font-size: 5.5em;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.emergency-text {
    font-size: 2.8em;
    font-weight: 800;
    letter-spacing: 3px;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}


.action-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.action-btn {
    padding: 15px 30px;
    border-radius: 8px;
    border: none;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.btn-emergency-contacts {
    background: #4a90e2;
    color: #fff;
}

.btn-emergency-contacts:hover {
    background: #357abd;
}

.btn-safety-tips {
    background: #f5a623;
    color: #fff;
}

.btn-safety-tips:hover {
    background: #d68910;
}

.btn-contact-us {
    background: #5a6c7d;
    color: #fff;
}

.btn-contact-us:hover {
    background: #4a5a68;
}

.btn-icon {
    font-size: 1.2em;
}


@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 15px;
    }
    
    .emergency-button {
        width: 220px;
        height: 220px;
    }
    
    .flame-icon {
        font-size: 3em;
    }
    
    .emergency-text {
        font-size: 1.4em;
    }
    
    .glow-effect {
        width: 300px;
        height: 300px;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .action-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ═══════════════════════════════════
   FIRE EFFECTS INSIDE BUTTON
═══════════════════════════════════ */

.fire-effects {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 50%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* ── Flame licks: tall wavy tongues rising from bottom ── */
.fire-lick {
    position: absolute;
    bottom: -10px;
    border-radius: 50% 50% 20% 20% / 60% 60% 40% 40%;
    transform-origin: bottom center;
    mix-blend-mode: screen;
    animation: lick-rise var(--dur, 2s) ease-in-out infinite var(--delay, 0s);
}

.fl1 { left: 10%;  width: 90px;  height: 200px; background: linear-gradient(to top, #ff6000, #ff2200, transparent); --dur:2.1s; --delay:0s; }
.fl2 { left: 22%;  width: 70px;  height: 260px; background: linear-gradient(to top, #ff8800, #ff4400, transparent); --dur:1.8s; --delay:0.3s; }
.fl3 { left: 40%;  width: 110px; height: 300px; background: linear-gradient(to top, #ffaa00, #ff3300, transparent); --dur:2.4s; --delay:0.1s; }
.fl4 { left: 60%;  width: 80px;  height: 240px; background: linear-gradient(to top, #ff7000, #ff2200, transparent); --dur:1.9s; --delay:0.5s; }
.fl5 { left: 78%;  width: 60px;  height: 180px; background: linear-gradient(to top, #ff5500, #ff1100, transparent); --dur:2.2s; --delay:0.2s; }

@keyframes lick-rise {
    0%   { transform: scaleX(1)   skewX(0deg)   translateY(0);    opacity: 0.7; }
    25%  { transform: scaleX(0.8) skewX(-8deg)  translateY(-20px); opacity: 0.9; }
    50%  { transform: scaleX(1.1) skewX(6deg)   translateY(-40px); opacity: 0.8; }
    75%  { transform: scaleX(0.9) skewX(-4deg)  translateY(-20px); opacity: 0.9; }
    100% { transform: scaleX(1)   skewX(0deg)   translateY(0);    opacity: 0.7; }
}

/* ── Heat shimmer orbs: large glowing blobs ── */
.fire-particle {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
    animation: orb-float var(--dur, 3s) ease-in-out infinite var(--delay, 0s);
}

.fp1 { width:180px; height:180px; bottom:5%;  left:5%;   background:radial-gradient(circle, rgba(255,120,0,0.45), transparent 70%); --dur:3.2s; --delay:0s; }
.fp2 { width:140px; height:140px; bottom:15%; left:55%;  background:radial-gradient(circle, rgba(255,80,0,0.4),  transparent 70%); --dur:2.8s; --delay:0.4s; }
.fp3 { width:200px; height:200px; bottom:0%;  left:30%;  background:radial-gradient(circle, rgba(255,160,0,0.35),transparent 70%); --dur:3.5s; --delay:0.2s; }
.fp4 { width:100px; height:100px; bottom:30%; left:15%;  background:radial-gradient(circle, rgba(255,60,0,0.4),  transparent 70%); --dur:2.5s; --delay:0.7s; }
.fp5 { width:120px; height:120px; bottom:25%; left:65%;  background:radial-gradient(circle, rgba(255,100,0,0.38),transparent 70%); --dur:2.9s; --delay:0.3s; }
.fp6 { width:160px; height:160px; bottom:10%; left:70%;  background:radial-gradient(circle, rgba(255,140,0,0.32),transparent 70%); --dur:3.8s; --delay:0.6s; }
.fp7 { width: 90px; height: 90px; bottom:40%; left:40%;  background:radial-gradient(circle, rgba(255,200,50,0.3),transparent 70%); --dur:2.3s; --delay:0.9s; }
.fp8 { width:130px; height:130px; bottom:50%; left:5%;   background:radial-gradient(circle, rgba(255,80,20,0.25),transparent 70%); --dur:4s;   --delay:1.1s; }

@keyframes orb-float {
    0%,100% { transform: translate(0, 0)      scale(1);    opacity: 0.8; }
    33%      { transform: translate(15px,-20px) scale(1.1); opacity: 1;   }
    66%      { transform: translate(-10px,-10px) scale(0.95); opacity: 0.7; }
}

/* ── Embers: tiny sparks that fly upward ── */
.fire-ember {
    position: absolute;
    border-radius: 50%;
    animation: ember-fly var(--dur, 2s) ease-out infinite var(--delay, 0s);
    opacity: 0;
}

.fe1 { width:6px;  height:6px;  bottom:20%; left:20%; background:#ffdd00; box-shadow:0 0 6px #ff8800; --dur:2.4s; --delay:0.1s; }
.fe2 { width:4px;  height:4px;  bottom:30%; left:50%; background:#ffaa00; box-shadow:0 0 4px #ff6600; --dur:1.9s; --delay:0.6s; }
.fe3 { width:5px;  height:5px;  bottom:15%; left:70%; background:#ff8800; box-shadow:0 0 6px #ff4400; --dur:2.7s; --delay:0.3s; }
.fe4 { width:3px;  height:3px;  bottom:40%; left:35%; background:#ffcc00; box-shadow:0 0 4px #ffaa00; --dur:2.1s; --delay:0.8s; }
.fe5 { width:5px;  height:5px;  bottom:25%; left:60%; background:#ff6600; box-shadow:0 0 5px #ff3300; --dur:3.1s; --delay:0.4s; }
.fe6 { width:4px;  height:4px;  bottom:35%; left:80%; background:#ffee00; box-shadow:0 0 6px #ffaa00; --dur:2.6s; --delay:1.0s; }

@keyframes ember-fly {
    0%   { transform: translate(0, 0)          scale(1);   opacity: 0; }
    10%  { opacity: 1; }
    50%  { transform: translate(var(--ex, 20px), -120px) scale(0.8); opacity: 0.9; }
    100% { transform: translate(var(--ex, 30px), -240px) scale(0.4); opacity: 0; }
}

.fe1 { --ex: 15px; }
.fe2 { --ex: -20px; }
.fe3 { --ex: 10px; }
.fe4 { --ex: -15px; }
.fe5 { --ex: 25px; }
.fe6 { --ex: -10px; }

/* Keep flame-icon and text above fire effects */
.emergency-button .flame-icon,
.emergency-button .emergency-text {
    position: relative;
    z-index: 2;
}

