:root{
    --primary-red:#DA2F25;
    --secondary-blue:#F7A31E;
    --secondary-blue-deep:#E58E00;
    --cream:#FAF0CD;
    --black:#111111;
    --white:#FFFFFF;
    --grey:#B8B8B8;
    --shadow:0 12px 28px rgba(0,0,0,0.12);
    --soft-shadow:0 10px 24px rgba(0,0,0,0.10);
    /* Contact form submit overlay opacity. Change 0.75 to 0.60, 0.80, etc. */
    --contact-submit-overlay-alpha:0.75;
}
*{box-sizing:border-box}
html,body{
    margin:0;
    padding:0;
    width:100%;
    height:100%;
    min-height:100%;
    font-family:'Inter',Arial,sans-serif;
    background:var(--cream);
    color:var(--black);
}

body{
    overflow:hidden;
}

button,input,textarea,select{font-family:inherit}
textarea.text-input{min-height:110px;resize:vertical}

.app-shell{
    min-height:100vh;
    min-height:100dvh;
    height:100dvh;
    display:flex;
    flex-direction:column;
}

.topbar{
    height:56px;
    background:#000;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 16px;
    position:relative;
    z-index:30;
    flex-shrink:0;
}

.burger-btn{
    width:42px;
    height:42px;
    border:none;
    background:transparent;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    cursor:pointer;
    padding:0;
}

.burger-btn span{
    display:block;
    height:3px;
    width:24px;
    background:#fff;
    border-radius:10px;
}

.topbar-spacer{width:42px}

.side-menu{
    position:fixed;
    top:0;
    left:-320px;
    width:320px;
    max-width:90vw;
    height:100vh;
    background:#fff;
    z-index:50;
    box-shadow:var(--shadow);
    transition:left .25s ease;
    display:flex;
    flex-direction:column;
}

.side-menu.open{left:0}

.side-menu-backdrop{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.35);
    z-index:40;
    display:none;
}

.side-menu-backdrop.show{display:block}

.side-menu-header{
    background:var(--secondary-blue);
    color:#fff;
    padding-top:40px;
    padding-Bottom:10px;
    padding-left:18px;
    padding-right:18px;
    display:flex;
    align-items:center;
    gap:12px;
}

.side-menu-logo{
    width:48px;
    height:48px;
    object-fit:contain;
    border-radius:12px;
    background:#fff;
    padding:4px;
}

.side-menu-title{
    font-size:22px;
    font-weight:800;
}

.side-menu-body{
    padding:18px;
    overflow-y:auto;
}

.menu-user-box{
    background:#f5f7fb;
    border:1px solid #dce4f3;
    border-radius:14px;
    padding:14px;
    margin-bottom:16px;
}

.menu-welcome{
    font-size:18px;
    font-weight:700;
    margin-bottom:8px;
}

.menu-last-login{
    font-size:13px;
    color:#333;
    line-height:1.5;
}

.menu-links{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.menu-link{
    width:100%;
    text-align:left;
    padding:13px 14px;
    border-radius:12px;
    border:1px solid #ddd;
    background:#fff;
    color:#111;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    text-decoration:none;
}

.logout-link{color:var(--primary-red)}
/*
.main-content{
    flex:1;
    position:relative;
}

.map-section{
    min-height:calc(100vh - 64px - 110px);
    padding:14px;
    position:relative;
}

.map-canvas{
    width:100%;
    min-height:calc(100vh - 64px - 138px);
    border-radius:24px;
    border:1px solid rgba(0,0,0,.06);
    background:linear-gradient(135deg,#eef4ff 0%,#fff8df 100%);
    box-shadow:var(--soft-shadow);
    overflow:hidden;
}

.map-canvas.map-disabled{
    pointer-events:none;
    filter:grayscale(.05);
}
*/
.main-content{
    flex:1;
    position:relative;
    min-height:0;
    display:flex;
    flex-direction:column;
}

.map-section{
    flex:1;
    min-height:0;
    padding:8px 8px 6px;
    position:relative;
    display:flex;
    flex-direction:column;
}

.map-canvas{
    width:100%;
    flex:1;
    min-height:0;
    height:100%;
    border-radius:20px;
    border:1px solid rgba(0,0,0,.06);
    background:linear-gradient(135deg,#eef4ff 0%,#fff8df 100%);
    box-shadow:var(--soft-shadow);
    overflow:hidden;
}



.active-map{
    background:#e9eef6;
}

.map-locked-overlay{
    position:absolute;
    inset:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.68);
    border-radius:24px;
    z-index:8;
    backdrop-filter:blur(4px);
    -webkit-backdrop-filter:blur(4px);
}

.map-locked-card{
    max-width:700px;
    text-align:center;
    background:#F7A31E;
    border-radius:22px;
    padding:24px;
    box-shadow:var(--shadow);
}

.center-logo{
    width:80px;
    height:80px;
    object-fit:contain;
    margin-bottom:14px;
}

.hero-title{
    margin:0 0 10px;
    font-size:32px;
    font-weight:800;
    color:var(--secondary-blue);
}

.hero-copy{
    margin:0 auto 18px;
    font-size:16px;
    line-height:1.6;
    max-width:620px;
}

/* floating live state */
.map-live-chip{
    position:absolute;
    top:14px;
    left:14px;
    z-index:9;
    width:188px;
    height:52px;
    border-radius:18px;
    background:rgba(255,255,255,.96);
    border:1px solid rgba(255,255,255,.72);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    box-shadow:0 10px 24px rgba(0,0,0,.12);
    overflow:hidden;
    transform-style:preserve-3d;
}

.live-chip-flip{
    position:relative;
    width:100%;
    height:100%;
    transform-style:preserve-3d;
    transition:transform .68s cubic-bezier(.22,.61,.36,1);
}

.live-chip-flip.show-back{
    transform:rotateX(180deg);
}

.live-chip-face{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    gap:10px;
    padding:0 12px;
    backface-visibility:hidden;
    -webkit-backface-visibility:hidden;
}

.live-chip-face.is-back{
    transform:rotateX(180deg);
}

.live-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    background:#1A5ABE;
    box-shadow:0 0 0 0 rgba(26,90,190,.45);
    animation:liveIdlePulse 2s infinite;
    flex:0 0 10px;
}

.live-dot-green{
    background:#1a9b47;
    box-shadow:0 0 0 0 rgba(26,155,71,.38);
    animation:liveGreenPulse 1.8s infinite;
}

.map-live-chip.active .live-dot{
    background:#DA2F25;
    box-shadow:0 0 0 0 rgba(218,47,37,.48);
    animation:liveSosPulse 1.2s infinite;
}

.live-text{
    min-width:0;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:2px;
    color:#111;
}

.live-text-title{
    display:block;
    font-size:13px;
    font-weight:800;
    line-height:1.05;
    white-space:nowrap;
}

.live-text-sub{
    display:block;
    font-size:10px;
    font-weight:600;
    line-height:1;
    color:#5e6470;
    white-space:nowrap;
}

.live-text-active .live-text-title,
.live-text-active .live-text-sub{
    color:#0f5132;
}

/* bottom bar */
.bottom-cta-bar{
    min-height:84px;
    background:#F7A31E;
/*    border-top:1px solid #e9e9e9;*/
    display:flex;
    align-items:center;
    justify-content:center;
    padding:10px 12px calc(10px + env(safe-area-inset-bottom));
    position:sticky;
    bottom:0;
    z-index:20;
    backdrop-filter:blur(8px);
    -webkit-backdrop-filter:blur(8px);
    flex-shrink:0;
}

.cta-btn{
    border:none;
    border-radius:14px;
    min-height:48px;
    padding:0 18px;
    font-size:16px;
    font-weight:700;
    cursor:pointer;
    transition:all .22s ease;
}

.cta-primary{
    background:linear-gradient(135deg,#DA2F25 0%, #F04A3D 52%, #A91313 100%);
    color:#fff;
}

.cta-primary:disabled{
    background:var(--grey);
    color:#fff;
    cursor:not-allowed;
}

.cta-secondary{
    background:var(--secondary-blue);
    color:#fff;
}

.cta-secondary:disabled{
    background:var(--grey);
    color:#fff;
    cursor:not-allowed;
}

.small-btn{
    min-height:42px;
    font-size:14px;
    padding:0 16px;
}

/* hero sos button */
#sosBtn{
    min-height:40px;
    min-width:320px;
    width:min(520px, 92vw);
    padding:0 30px;
    font-size:22px;
    font-weight:800;
    border-radius:20px;
    letter-spacing:.2px;
    box-shadow:0 16px 30px rgba(218,47,37,.28);
    position:relative;
}

#sosBtn.sos-idle{
    animation:sosIdlePulse 2.6s ease-in-out infinite;
}

#sosBtn.sos-active{
    background:var(--secondary-blue);
    box-shadow:0 16px 30px rgba(26,90,190,.30);
    animation:sosActivePulse 1.15s ease-in-out infinite;
}

#sosBtn:hover:not(:disabled){
    transform:translateY(-1px);
}

.overlay-backdrop,
.popup-backdrop{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.45);
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px;
    z-index:100;
}

.overlay-backdrop.active,
.popup-backdrop.active{
    display:flex;
}

.overlay-card,
.popup-card{
    width:100%;
    max-width:520px;
    background:#fff;
    border-radius:22px;
    box-shadow:var(--shadow);
    overflow:hidden;
}

.auth-card,
.terms-card,
.emergency-card,
.pin-card,
.utility-card{
    max-height:90vh;
    overflow-y:auto;
}

.overlay-header{
    padding:22px 22px 10px;
    text-align:center;
    border-bottom:1px solid #ececec;
}

.overlay-logo{
    width:64px;
    height:64px;
    object-fit:contain;
    margin-bottom:10px;
}

.overlay-title{
    font-size:24px;
    font-weight:800;
    color:var(--secondary-blue);
}

.overlay-subtitle{
    margin-top:6px;
    color:#555;
    font-size:14px;
}

.tab-switcher{
    display:flex;
    gap:10px;
    padding:18px 18px 0;
}

.tab-btn{
    flex:1;
    height:46px;
    border:none;
    border-radius:12px;
    background:#eef2f8;
    color:#333;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
}

.tab-btn.active{
    background:var(--secondary-blue);
    color:#fff;
}

.tab-panel{
    display:none;
    padding:18px;
}

.tab-panel.active{display:block}

.form-grid{
    display:grid;
    gap:12px;
}

.field-label{
    font-size:14px;
    font-weight:700;
    color:#111;
}

.disabled-label{color:#8a8a8a}

.text-input{
    width:100%;
    min-height:48px;
    border:1px solid #cfcfcf;
    border-radius:12px;
    padding:12px 14px;
    font-size:15px;
    outline:none;
    background:#fff;
}

.text-input:focus{
    border-color:var(--secondary-blue);
    box-shadow:0 0 0 3px rgba(26,90,190,.12);
}

.text-input:disabled{
    background:#f1f1f1;
    color:#777;
    cursor:not-allowed;
}

.inline-action-row{
    display:flex;
    justify-content:flex-end;
}

.form-action-row,
.popup-action-row{
    display:flex;
    gap:12px;
    justify-content:space-between;
    margin-top:8px;
}

.form-action-row .cta-btn,
.popup-action-row .cta-btn{
    flex:1;
}

.single-action-row{
    justify-content:flex-end;
}

.single-action-row .cta-btn{
    flex:unset;
    min-width:160px;
}

.error-box{
    min-height:24px;
    color:var(--primary-red);
    font-size:13px;
    line-height:1.5;
}

.terms-body{padding:18px}

.terms-scroll-box{
    width:100%;
    height:320px;
    overflow-y:auto;
    border:1px solid #d9d9d9;
    border-radius:14px;
    background:#fbfbfb;
    padding:16px;
    line-height:1.7;
}

.popup-card{
    max-width:420px;
    padding:22px;
    text-align:center;
}

.popup-title{
    font-size:22px;
    font-weight:800;
    color:var(--secondary-blue);
    margin-bottom:10px;
}

.popup-subtitle{
    font-size:14px;
    color:#555;
    margin-bottom:18px;
}

@keyframes sosIdlePulse{
    0%,100%{transform:scale(1); box-shadow:0 16px 30px rgba(218,47,37,.24)}
    50%{transform:scale(1.02); box-shadow:0 18px 34px rgba(218,47,37,.34)}
}

@keyframes sosActivePulse{
    0%,100%{transform:scale(1); box-shadow:0 16px 30px rgba(26,90,190,.22)}
    50%{transform:scale(1.025); box-shadow:0 18px 36px rgba(26,90,190,.36)}
}

@keyframes liveIdlePulse{
    0%{box-shadow:0 0 0 0 rgba(26,90,190,.40)}
    70%{box-shadow:0 0 0 10px rgba(26,90,190,0)}
    100%{box-shadow:0 0 0 0 rgba(26,90,190,0)}
}

@keyframes liveSosPulse{
    0%{box-shadow:0 0 0 0 rgba(218,47,37,.45)}
    70%{box-shadow:0 0 0 12px rgba(218,47,37,0)}
    100%{box-shadow:0 0 0 0 rgba(218,47,37,0)}
}

@media (max-width:768px){
    .hero-title{font-size:26px}
    .hero-copy{font-size:15px}
    .overlay-card{max-width:100%}
    .map-section{padding:12px}
    .map-canvas{
        min-height:calc(100vh - 64px - 136px);
        border-radius:18px;
    }
    .map-locked-overlay{
        inset:12px;
        border-radius:18px;
    }
    .bottom-cta-bar{
        height:auto;
        padding:10px 10px 16px;
    }
    .terms-scroll-box{height:260px}
    .popup-card{max-width:100%}
    #sosBtn{
        width:100%;
        min-width:0;
        font-size:21px;
        min-height:62px;
    }
    .map-live-chip{
        top:12px;
        left:12px;
        width:180px;
        height:50px;
    }
}

.menu-user-box.profile-summary-box{
    position:relative;
    padding:14px 14px 16px;
}

.menu-welcome-label{
    font-size:18px;
    font-weight:700;
    color:#20242c;
    margin-bottom:4px;
    line-height:1.2;
}

.menu-user-name{
    font-size:16px;
    font-weight:600;
    color:#20242c;
    line-height:1.35;
    padding-right:48px;
    margin-bottom:8px;
    word-break:break-word;
}

.profile-edit-corner-btn,
.icon-action-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    border:1px solid rgba(247,163,30,.28);
    border-radius:12px;
    background:linear-gradient(180deg,#fff8ea 0%,#ffe0ab 100%);
    color:#F7A31E;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    box-shadow:0 4px 12px rgba(247,163,30,.18);
    transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.profile-edit-corner-btn{
    position:absolute;
    top:12px;
    right:12px;
}

.profile-edit-corner-btn:hover,
.icon-action-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 6px 16px rgba(247,163,30,.22);
    background:linear-gradient(180deg,#fff9ef 0%,#ffd892 100%);
}

.profile-edit-corner-btn:focus-visible,
.icon-action-btn:focus-visible{
    outline:2px solid rgba(247,163,30,.42);
    outline-offset:2px;
}


.topbar-title{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%, -50%);
    font-size:22px;
    font-weight:800;
    color:#fff;
    line-height:1;
    letter-spacing:.01em;
    pointer-events:none;
}

.footer-powered-by{
    margin-top:12px;
    text-align:center;
    font-size:12px;
    line-height:1.35;
    color:#4b5563;
}

.footer-powered-by span{
    display:block;
    margin-bottom:2px;
}

.footer-powered-by a{
    color:var(--secondary-blue);
    font-weight:700;
    text-decoration:none;
}

.footer-powered-by a:hover,
.footer-powered-by a:focus-visible{
    text-decoration:underline;
}

#editNameOverlay .cta-btn,
#editNameOverlay .cta-primary,
#editNameOverlay .cta-primary:disabled{
    background:var(--secondary-blue);
    color:#fff;
}

#editNameOverlay .cta-primary:hover:not(:disabled),
#editNameOverlay .cta-btn:hover:not(:disabled){
    filter:brightness(1.03);
}

#editNameOverlay .cta-primary:disabled,
#editNameOverlay .cta-btn:disabled{
    opacity:.55;
    cursor:not-allowed;
}



.menu-footer-powered {
    margin-top:auto;
    padding:18px 12px 25px;
    text-align:center;
    border-top:1px solid #e5e5e5;
    vertical-align: bottom;
}

.powered-label {
    font-size:12px;
    color:#777;
}

.powered-link {
    display:block;
    font-weight:600;
    color:#F7A31E;
    text-decoration:none;
    margin-top:4px;
}

.info-strip{
    background:#fff;
    color:#333;
    border:1px solid #e8e8e8;
    border-radius:14px;
    padding:12px 14px;
    font-size:13px;
    line-height:1.6;
    box-shadow:0 6px 18px rgba(0,0,0,.05);
    margin-bottom:4px;
}

.map-user-bubble{
    min-width:168px;
    max-width:220px;
    padding:0;
    color:#111;
    font-family:'Inter',Arial,sans-serif;
}
.map-user-bubble.live-view-bubble{
    min-width:150px;
    max-width:190px;
}
.map-user-bubble-name{
    font-size:13px;
    font-weight:800;
    color:#F7A31E;
    margin-bottom:6px;
    line-height:1.2;
}
.map-user-bubble-row{
    display:flex;
    align-items:center;
    gap:6px;
    font-size:11px;
    line-height:1.35;
    color:#555;
    margin-bottom:4px;
}
.map-user-bubble-row:last-child{
    margin-bottom:0;
}
.map-user-bubble-row strong{
    color:#111;
    font-weight:700;
    min-width:26px;
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.gm-style .gm-style-iw-c{
    border-radius:16px !important;
    padding:10px 12px !important;
}
.gm-style .gm-style-iw-d{
    overflow:hidden !important;
}


.stop-sos-card{
    max-width:520px;
}

.gm-style .gm-ui-hover-effect{
    display:none !important;
}


/* FTUE */
.ftue-overlay {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: none;
    pointer-events: auto;
}
.ftue-overlay.active { display: block; }
.ftue-screen-dim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.84);
}
.ftue-mascot {
    position: absolute;
    left: 8px;
    bottom: 0;
    width: 154px;
    max-width: 36vw;
    z-index: 12;
    pointer-events: none;
    filter: drop-shadow(0 16px 28px rgba(0,0,0,0.36));
}
.ftue-speech {
    position: absolute;
    left: 54px;
    right: 18px;
    bottom: 132px;
    min-height: 170px;
    max-height: min(52vh, 420px);
    overflow: visible;
    background: #ffffff;
    border-radius: 34px;
    padding: 34px 28px 24px;
    z-index: 10;
    box-shadow: 0 24px 48px rgba(0,0,0,0.30);
}
.ftue-speech::before {
    content: '';
    position: absolute;
    left: 34px;
    bottom: -18px;
    width: 34px;
    height: 34px;
    background: #ffffff;
    transform: rotate(45deg);
    border-bottom-left-radius: 10px;
    z-index: -1;
}
.ftue-text {
    min-height: 96px;
    color: #101010;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    white-space: pre-wrap;
}
.ftue-hint {
    min-height: 22px;
    margin-top: 14px;
    color: #1a5abe;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}
.ftue-action-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}
.ftue-next-btn {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    border: 0;
    border-radius: 999px;
    padding: 13px 22px;
    background: #1a5abe;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(26,90,190,0.34);
    transform: scale(0.96);
    opacity: 0;
}
.ftue-next-btn.show {
    opacity: 1;
    transform: scale(1);
    animation: ftuePulse 1.2s infinite;
}
.ftue-highlight-ring,
.ftue-map-focus {
    position: fixed;
    z-index: 2;
    display: none !important;
    border: 0;
    border-radius: 24px;
    box-shadow: none;
    pointer-events: none;
}
.ftue-highlight-ring.active,
.ftue-map-focus.active { display: none !important; }
.ftue-map-focus { border-radius: 50%; }
body.ftue-sos-highlight #sosBtn,
body.ftue-menu-highlight #burgerBtn {
    position: relative;
    z-index: 6001;
}
body.ftue-sos-highlight #sosBtn {
    box-shadow: 0 0 28px rgba(255, 196, 77, 0.52), 0 0 54px rgba(255, 107, 61, 0.34), 0 18px 40px rgba(210,28,28,0.28);
}
@keyframes ftuePulse {
    0% { box-shadow: 0 10px 24px rgba(26,90,190,0.34); transform: scale(1); }
    50% { box-shadow: 0 14px 28px rgba(26,90,190,0.48); transform: scale(1.05); }
    100% { box-shadow: 0 10px 24px rgba(26,90,190,0.34); transform: scale(1); }
}
@media (max-width: 640px) {
    .ftue-mascot {
        width: 136px;
        left: 2px;
        bottom: -2px;
    }
    .ftue-speech {
        left: 71px;
        right: 12px;
        bottom: 217px;
        min-height: 160px;
        max-height: min(50vh, 380px);
        padding: 28px 18px 18px;
        border-radius: 28px;
    }
    .ftue-speech::before {
        left: 37px;
        bottom: -12px;
        width: 28px;
        height: 28px;
    }
    .ftue-text {
        font-size: 14px;
        line-height: 1.4;
        min-height: 84px;
    }
    .ftue-action-row {
        margin-top: 16px;
    }
    .ftue-next-btn {
        min-width: 106px;
        padding: 12px 20px;
    }
}



/* Nearby Help fixed header + scrollable content */
.nearby-help-card {
    width: min(92vw, 440px);
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.nearby-help-card .utility-header {
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}

.nearby-help-card .nearby-help-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.nearby-help-card .nearby-help-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px 18px;
}

.nearby-help-card .nearby-help-scroll::-webkit-scrollbar {
    width: 8px;
}

.nearby-help-card .nearby-help-scroll::-webkit-scrollbar-thumb {
    background: rgba(26, 90, 190, 0.35);
    border-radius: 999px;
}

.nearby-help-card .nearby-help-scroll::-webkit-scrollbar-track {
    background: transparent;
}

/* Professional dropdown for Edit Emergency Contact */
.select-field-wrap {
    position: relative;
    display: block;
}

.select-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 44px;
    background: #fff;
    border: 1.5px solid #d6deeb;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(19, 40, 74, 0.06);
    font-weight: 500;
    color: #1f2a37;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.select-input:hover {
    border-color: #b9c8df;
}

.select-input:focus {
    outline: none;
    border-color: #1A5ABE;
    box-shadow: 0 0 0 4px rgba(26, 90, 190, 0.14);
}

.select-field-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 18px;
    color: #1A5ABE;
    line-height: 1;
}


/* Nearby Help overlay */
.nearby-help-card {
    width: min(92vw, 440px);
    height: min(82vh, 620px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border-radius: 22px;
}

.nearby-help-card .utility-header {
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}

.nearby-help-card .nearby-help-body {
    flex: 1 1 auto;
    min-height: 220px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.nearby-help-card .nearby-help-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px 18px;
    background: #ffffff;
}

.nearby-help-card .nearby-help-scroll::-webkit-scrollbar {
    width: 8px;
}

.nearby-help-card .nearby-help-scroll::-webkit-scrollbar-thumb {
    background: rgba(26, 90, 190, 0.35);
    border-radius: 999px;
}

.nearby-help-card .nearby-help-scroll::-webkit-scrollbar-track {
    background: transparent;
}

/* Nearby Header with Location */
.nearby-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.nearby-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nearby-location-text {
    font-size: 12px;
    font-weight: 500;
    color: #e6ecff;
    opacity: 0.9;
    line-height: 1.4;
}

/* Android WebView / Samsung safe area fixes */
html, body {
    min-height: 100%;
    min-height: -webkit-fill-available;
    overflow-x: hidden;
}

body {
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.app-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    position: relative;
    padding-bottom: 0;
}

.map-section {
    position: relative;
    padding: 14px;
    min-height: calc(100dvh - 64px - 110px);
}

.map-canvas {
    position: relative;
    width: 100%;
    min-height: calc(100dvh - 64px - 138px);
    border-radius: 24px;
    overflow: hidden;
}

.bottom-cta-bar {
    height: auto;
    min-height: 80px;
    padding: 1px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    position: sticky;
    bottom: 0;
    z-index: 20;
}

.protecu-center-bubble {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, calc(-100% - 16px));
    z-index: 12;
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s ease;
    width: min(72vw, 220px);
    max-width: 220px;
}

.protecu-center-bubble.active {
    opacity: 1;
}

.protecu-center-bubble .map-user-bubble {
    min-width: unset;
    max-width: none;
    width: 100%;
    background: rgba(255,255,255,.96);
    border-radius: 16px;
    padding: 10px 12px 9px;
    box-shadow: 0 10px 22px rgba(0,0,0,.16);
    border: 1px solid rgba(17,17,17,.06);
    position: relative;
    backdrop-filter: blur(4px);
}

.protecu-center-bubble .map-user-bubble::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 14px;
    height: 14px;
    background: rgba(255,255,255,.96);
    border-right: 1px solid rgba(17,17,17,.06);
    border-bottom: 1px solid rgba(17,17,17,.06);
    transform: translateX(-50%) rotate(45deg);
}

@media (max-width: 768px) {
    .map-section {
        padding: 0px;
        min-height: calc(100dvh - 64px - 110px);
    }

    .map-canvas {
        min-height: calc(100dvh - 64px - 136px);
        border-radius: 10px;
    }

    .bottom-cta-bar {
        min-height: 100px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .map-user-bubble{
        min-width: 168px;
        max-width: 214px;
        background: rgba(255,255,255,.96);
        border-radius: 16px;
        padding: 10px 12px 9px;
        color: #111;
        font-family: 'Inter', Arial, sans-serif;
        box-shadow: 0 10px 22px rgba(0,0,0,.16);
        border: 1px solid rgba(17,17,17,.06);
        backdrop-filter: blur(4px);
    }

.map-user-bubble-name{
    font-size: 13px;
    font-weight: 800;
    color: #F7A31E;
    margin-bottom: 6px;
    line-height: 1.2;
}

.map-user-bubble-row{
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    line-height: 1.35;
    color: #555;
    margin-bottom: 4px;
}

.map-user-bubble-row:last-child{
    margin-bottom: 0;
}

.map-user-bubble-row strong{
    color: #111;
    font-weight: 700;
    min-width: 26px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.gm-style .gm-style-iw-c{
    border-radius: 16px !important;
    padding: 10px 12px !important;
}

.gm-style .gm-style-iw-d{
    overflow: hidden !important;
}

.gm-style .gm-ui-hover-effect{
    display: none !important;
}
}

html, body {
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    background: #F7A31E;
}

body {
    position: fixed;
    inset: 0;
}

#app,
.page-shell,
.main-screen,
.map-screen {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden !important;
    box-sizing: border-box;
    background: #FAF0CD;
}

.map-area-wrap,
.map-card-wrap,
.map-holder-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

#map,
.map-frame,
.map-container {
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.sos-footer,
.bottom-sos-wrap,
.sos-button-wrap {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: #F7A31E;
    padding-bottom: 2px;
}

/* ===== UAT Marquee Strip ===== */
.uat-marquee-wrap{
    height: 32px;
    overflow: hidden;
    background: #232323;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 25;
}

.uat-marquee-track{
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    min-width: 200%;
    height: 100%;
    animation: protecuUatMarquee 22s linear infinite;
}

.uat-marquee-track span{
    display: inline-block;
    padding-right: 80px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: 0.1px;
}

@keyframes protecuUatMarquee{
    0%{
        transform: translateX(0);
    }
    100%{
        transform: translateX(-50%);
    }
}

@supports (padding: max(0px)) {
    .bottom-cta-bar{
        padding-bottom:max(10px, env(safe-area-inset-bottom));
    }
}

/* Android WebView / Samsung safe area fixes */
html, body {
    height: 100%;
    min-height: 100%;
    min-height: -webkit-fill-available;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.app-shell {
    height: 100dvh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 56px;
    min-height: 56px;
    flex-shrink: 0;
}

.uat-marquee-wrap {
    height: 28px;
    min-height: 28px;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.map-section {
    flex: 1;
    min-height: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 4px 8px 4px !important;
    margin: 0;
}

.map-canvas {
    flex: 1;
    width: 100%;
    min-height: 0;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
}

.bottom-cta-bar {
    min-height: 74px;
    height: auto;
    position: sticky;
    bottom: 0;
    z-index: 20;
    flex-shrink: 0;
    padding: 6px 12px max(6px, env(safe-area-inset-bottom, 0px));
}

@media (max-width: 768px) {
    .map-section {
        padding: 2px 6px 4px !important;
    }

    .map-canvas {
        border-radius: 10px;
    }

    .bottom-cta-bar {
    min-height: 76px;
    padding: 6px 10px max(6px, env(safe-area-inset-bottom, 0px));
    }
}

/* Emergency contact picker */
.contact-input-wrap {
    position: relative;
    display: block;
}

.has-contact-icon {
    padding-right: 50px;
}

.contact-picker-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: rgba(247, 163, 30, 0.14);
    color: #b86a00;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

/* Nearby help tabs and cards */
.nearby-location-note {
    margin-bottom: 12px;
    color: #223b66;
    font-size: 13px;
    line-height: 1.45;
}

.nearby-tab-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.nearby-tab-btn {
    border: 1px solid #d5dfef;
    background: #fff;
    color: #27406a;
    border-radius: 14px;
    padding: 11px 14px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(20, 42, 74, 0.06);
}

.nearby-tab-btn.active {
    background: linear-gradient(135deg, #f7a31e 0%, #ffc04d 100%);
    color: #fff;
    border-color: transparent;
}

.nearby-tab-subtext {
    font-size: 12px;
    color: #5b6f92;
    margin-bottom: 14px;
    line-height: 1.45;
}

.help-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.help-item {
    border: 1px solid #e1e7f0;
    border-radius: 18px;
    background: #fff;
    padding: 14px;
    box-shadow: 0 8px 18px rgba(20, 42, 74, 0.06);
}

.help-title {
    font-size: 15px;
    font-weight: 800;
    color: #1d3557;
    line-height: 1.35;
}

.help-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 8px;
}

.help-meta-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: #eef4ff;
    color: #27406a;
}

.help-group-chip {
    background: rgba(247, 163, 30, 0.14);
    color: #a66300;
}

.help-meta-chip.is-open {
    background: rgba(16, 154, 79, 0.12);
    color: #0f7c42;
}

.help-meta-chip.is-closed {
    background: rgba(218, 47, 37, 0.10);
    color: #b3231a;
}

.help-address {
    font-size: 12px;
    color: #5f6f88;
    line-height: 1.55;
}

.help-priority-note {
    margin-top: 8px;
    font-size: 11px;
    color: #7c5a18;
    background: rgba(247, 163, 30, 0.10);
    padding: 8px 10px;
    border-radius: 12px;
}

.help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.help-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #f7a31e 0%, #f38d00 100%);
}

.help-action-btn.help-link {
    background: linear-gradient(135deg, #1a5abe 0%, #2d7dff 100%);
}

.map-recenter-btn {
    position: absolute;
    bottom: 90px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-size: 20px;
    cursor: pointer;
    z-index: 5;
}
.map-recenter-btn:active {
    transform: scale(0.95);
}

.icon-action-btn,
.profile-edit-corner-btn,
.select-field-icon,
.contact-pick-btn{
    font-family:'Inter', Arial, sans-serif;
}

.select-field-wrap{
    position:relative;
}

.contact-pick-btn{
    color:#1A5ABE;
    font-size:18px;
}

.map-user-bubble.compact-bubble,
.protecu-center-bubble .map-user-bubble.compact-bubble{
    min-width:unset;
    max-width:none;
    width:auto;
    min-width:148px;
    padding:10px 12px 9px;
    border-radius:14px;
}

.map-user-bubble.compact-bubble .map-user-bubble-name{
    margin-bottom:2px;
    font-size:14px;
    color:#F7A31E;
}

.map-user-bubble.compact-bubble .map-user-bubble-city{
    font-size:11px;
    line-height:1.15;
    color:#5b6470;
    font-weight:700;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:170px;
}

.survey-backdrop{
    z-index:9000;
    background:rgba(5,10,24,0.82);
}
.survey-backdrop.active{
    display:flex;
    pointer-events:auto;
}
.survey-card{
    position:relative;
    z-index:9001;
}
.survey-backdrop,
.survey-backdrop.active,
.survey-card,
.survey-card *{
    pointer-events:auto !important;
}
body.survey-lock #burgerBtn,
body.survey-lock .side-menu,
body.survey-lock .side-menu *,
body.survey-lock .side-menu-backdrop,
body.survey-lock .map-recenter-btn,
body.survey-lock #sosBtn,
body.survey-lock #mapCanvas,
body.survey-lock .map-live-chip,
body.survey-lock .center-bubble,
body.survey-lock .gm-style,
body.survey-lock .gm-style *{
    pointer-events:none !important;
}

.survey-card{
    max-width:560px;
    border-radius:24px;
}

.survey-header{
    background:#000;
}

.survey-body{
    padding:18px 20px 20px;
}

.survey-progress-wrap{
    margin-bottom:18px;
}

.survey-progress-bar{
    width:100%;
    height:8px;
    border-radius:999px;
    background:#eceff4;
    overflow:hidden;
}

.survey-progress-fill{
    width:0%;
    height:100%;
    border-radius:999px;
    background:linear-gradient(90deg,#F7A31E 0%,#DA2F25 100%);
    transition:width .25s ease;
}

.survey-progress-text{
    margin-top:8px;
    font-size:12px;
    font-weight:700;
    color:#4b5563;
}

.survey-intro-screen{
    text-align:center;
    padding:12px 4px 8px;
}

.survey-intro-icon{
    font-size:34px;
    margin-bottom:10px;
}

.survey-intro-heading{
    font-size:24px;
    font-weight:800;
    color:#111827;
    margin-bottom:10px;
}

.survey-intro-copy{
    font-size:15px;
    line-height:1.6;
    color:#4b5563;
    margin-bottom:20px;
}

.survey-question-title{
    font-size:20px;
    font-weight:800;
    color:#111827;
    line-height:1.4;
    margin-bottom:14px;
}

.survey-option-list{
    display:grid;
    gap:10px;
}

.survey-option{
    width:100%;
    text-align:left;
    border:1px solid #d7dce5;
    border-radius:16px;
    padding:14px 16px;
    background:#fff;
    color:#111827;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    transition:all .2s ease;
}

.survey-option.selected{
    border-color:#F7A31E;
    background:#fff7ea;
    box-shadow:0 0 0 3px rgba(247,163,30,.12);
}

.survey-option:hover{
    border-color:#f0b253;
}

.survey-textarea{
    min-height:160px;
    resize:none;
}

.survey-char-count{
    margin-top:8px;
    text-align:right;
    font-size:12px;
    color:#6b7280;
}

.survey-nav-row{
    display:flex;
    gap:12px;
    justify-content:space-between;
    margin-top:18px;
}

.survey-nav-row .cta-btn{
    min-width:120px;
}

@keyframes liveGreenPulse{
    0%{box-shadow:0 0 0 0 rgba(26,155,71,.38)}
    70%{box-shadow:0 0 0 10px rgba(26,155,71,0)}
    100%{box-shadow:0 0 0 0 rgba(26,155,71,0)}
}

@media (max-width:768px){
    .map-live-chip{top:12px;left:12px;width:180px;height:50px}
    .survey-card{max-width:100%}
    .survey-body{padding:16px 14px 18px}
    .survey-question-title{font-size:18px}
    .survey-nav-row{gap:10px}
    .survey-nav-row .cta-btn{min-width:0;flex:1}
}


/* ===== Map top widget polish: weather aligned with live chip ===== */
.weather-widget{
    position:absolute;
    top:14px;
    right:14px;
    z-index:9;
    width:188px;
    height:52px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:10px 12px;
    border-radius:18px;
    background:linear-gradient(135deg, rgba(32,40,58,.94) 0%, rgba(18,25,40,.92) 100%);
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 10px 24px rgba(0,0,0,.16);
    backdrop-filter:blur(10px);
    -webkit-backdrop-filter:blur(10px);
    color:#fff;
    overflow:hidden;
}

.weather-header{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    order:2;
    flex:0 0 auto;
    min-width:34px;
    margin:0;
}

.weather-place{
    display:none !important;
}

.weather-anim{
    width:30px;
    height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0;
    filter:drop-shadow(0 3px 8px rgba(0,0,0,.22));
}

.weather-temp{
    order:1;
    margin:0;
    font-size:17px;
    font-weight:800;
    line-height:1;
    color:#fff;
    letter-spacing:-0.02em;
}

.weather-desc{
    order:1;
    margin:2px 0 0;
    font-size:11px;
    font-weight:700;
    line-height:1.05;
    color:rgba(255,255,255,.82);
    max-width:96px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.weather-widget .weather-temp,
.weather-widget .weather-desc{
    display:block;
}

.weather-widget::before{
    content:'';
    position:absolute;
    inset:0;
    background:radial-gradient(circle at top right, rgba(255,255,255,.08), transparent 44%);
    pointer-events:none;
}

.weather-widget > .weather-temp,
.weather-widget > .weather-desc{
    position:relative;
    z-index:1;
}

.weather-widget > .weather-header{
    position:relative;
    z-index:1;
}

/* Group temperature + condition as a vertical stack */
.weather-widget{
    grid-template-columns:none;
}
.weather-widget .weather-temp{
    align-self:flex-start;
}
.weather-widget .weather-stack{
    display:none;
}

/* Use flex and visual order so temp + desc read as one block */
.weather-temp{
    flex:1 1 auto;
}
.weather-desc{
    position:absolute;
    left:12px;
    bottom:10px;
}
.weather-widget .weather-temp{
    padding-bottom:12px;
}

/* ===== Cleaner compact map bubble ===== */
.protecu-center-bubble{
    transform:translate(-50%, calc(-100% - 12px));
    width:min(70vw, 188px);
    max-width:188px;
}

.protecu-center-bubble .map-user-bubble,
.map-user-bubble.compact-bubble,
.protecu-center-bubble .map-user-bubble.compact-bubble{
    min-width:unset;
    width:100%;
    max-width:none;
    padding:8px 10px 7px;
    border-radius:14px;
    background:rgba(255,255,255,.98);
    box-shadow:0 8px 18px rgba(0,0,0,.14);
    border:1px solid rgba(17,17,17,.05);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
}

.protecu-center-bubble .map-user-bubble::after{
    bottom:-6px;
    width:12px;
    height:12px;
}

.map-user-bubble-name,
.map-user-bubble.compact-bubble .map-user-bubble-name{
    margin:0 0 2px;
    font-size:12px;
    font-weight:800;
    line-height:1.2;
    color:#F7A31E;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.map-user-bubble-city,
.map-user-bubble.compact-bubble .map-user-bubble-city{
    display:block;
    margin:0;
    font-size:10px;
    font-weight:700;
    line-height:1.15;
    color:#5b6470;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:100%;
}

.map-user-bubble-row{
    display:none !important;
}

@media (max-width:768px){
    .map-live-chip{
        width:176px;
        height:50px;
    }

    .weather-widget{
        top:12px;
        right:12px;
        width:176px;
        height:50px;
        padding:9px 11px;
        border-radius:16px;
    }

    .weather-anim{
        width:28px;
        height:28px;
    }

    .weather-temp{
        font-size:16px;
    }

    .weather-desc{
        left:11px;
        bottom:9px;
        max-width:88px;
        font-size:10px;
    }

    .protecu-center-bubble{
        width:min(68vw, 176px);
        max-width:176px;
        transform:translate(-50%, calc(-100% - 10px));
    }

    .protecu-center-bubble .map-user-bubble,
    .map-user-bubble.compact-bubble,
    .protecu-center-bubble .map-user-bubble.compact-bubble{
        padding:8px 10px 7px;
        border-radius:13px;
    }

    .map-user-bubble-name,
    .map-user-bubble.compact-bubble .map-user-bubble-name{
        font-size:12px;
    }

    .map-user-bubble-city,
    .map-user-bubble.compact-bubble .map-user-bubble-city{
        font-size:10px;
    }
}



/* ===== Final production bubble fix ===== */
.protecu-center-bubble{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%, calc(-100% - 10px)) !important;
    z-index:12;
    pointer-events:none;
    opacity:0;
    transition:opacity .18s ease;
    width:min(68vw, 176px) !important;
    max-width:176px !important;
}

.protecu-center-bubble.active{
    opacity:1;
}

.protecu-center-bubble .map-user-bubble,
.protecu-center-bubble .map-user-bubble.compact-bubble{
    width:100% !important;
    min-width:unset !important;
    max-width:none !important;
    padding:8px 10px 7px !important;
    border-radius:14px !important;
    background:rgba(255,255,255,.96) !important;
    border:1px solid rgba(17,17,17,.05) !important;
    box-shadow:0 8px 18px rgba(0,0,0,.14) !important;
    position:relative;
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
}

.protecu-center-bubble .map-user-bubble::after{
    content:'';
    position:absolute;
    left:50%;
    bottom:-5px !important;
    width:10px !important;
    height:10px !important;
    background:rgba(255,255,255,.96) !important;
    border-right:1px solid rgba(17,17,17,.05);
    border-bottom:1px solid rgba(17,17,17,.05);
    transform:translateX(-50%) rotate(45deg);
}

.protecu-center-bubble .map-user-bubble-name{
    margin:0 0 2px !important;
    font-size:12px !important;
    font-weight:800;
    line-height:1.2;
    color:#F7A31E !important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.protecu-center-bubble .map-user-bubble-city{
    display:block;
    margin:0 !important;
    font-size:10px !important;
    font-weight:700;
    line-height:1.15;
    color:#5b6470 !important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.protecu-center-bubble .map-user-bubble-row{
    display:none !important;
}

.gm-style .gm-style-iw-c,
.gm-style .gm-style-iw-tc{
    display:none !important;
}


/* ===== Final April 11 map + weather polish ===== */
.weather-widget{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-rows:1fr 1fr !important;
    align-items:center !important;
    column-gap:8px !important;
    row-gap:1px !important;
}
.weather-widget .weather-header{
    grid-column:2;
    grid-row:1 / span 2;
    min-width:32px;
    justify-self:end;
}
.weather-widget .weather-temp{
    grid-column:1;
    grid-row:1;
    align-self:end;
    margin:0 !important;
    padding:0 !important;
    font-size:13px !important;
    line-height:1 !important;
}
.weather-widget .weather-desc{
    position:static !important;
    grid-column:1;
    grid-row:2;
    align-self:start;
    margin:1px 0 0 !important;
    max-width:82px !important;
    font-size:10px !important;
    line-height:1.05 !important;
}
.weather-widget .weather-anim{
    width:28px !important;
    height:28px !important;
}
.protecu-center-bubble{
    width:min(66vw, 172px) !important;
    max-width:172px !important;
    transform:translate(-50%, calc(-100% - 8px)) !important;
}
.protecu-center-bubble .map-user-bubble,
.protecu-center-bubble .map-user-bubble.compact-bubble{
    padding:7px 10px 6px !important;
    border-radius:13px !important;
}
.protecu-center-bubble .map-user-bubble::after{
    width:10px !important;
    height:10px !important;
    bottom:-5px !important;
}
.protecu-center-bubble .map-user-bubble-name{
    font-size:12px !important;
    margin:0 0 2px !important;
}
.protecu-center-bubble .map-user-bubble-city{
    font-size:10px !important;
}
.gm-style .gm-style-iw-c, .gm-style .gm-style-iw-tc{
    display:none !important;
}
@media (max-width:768px){
    .weather-widget .weather-temp{font-size:12px !important;}
    .weather-widget .weather-desc{max-width:78px !important;font-size:9px !important;}
    .weather-widget .weather-anim{width:26px !important;height:26px !important;}
    .protecu-center-bubble{width:min(68vw, 166px) !important;max-width:166px !important;}
}

/* ===== April 11 marker-linked bubble + centered weather icon ===== */
.weather-widget .weather-header{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}

.weather-widget .weather-anim{
    position:relative !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    overflow:visible;
}

.weather-widget .weather-anim .sun{
    top:50% !important;
    left:50% !important;
    transform:translate(-42%, -58%) scale(.82);
    transform-origin:center center;
}

.weather-widget .weather-anim .cloud.one{
    top:50% !important;
    left:50% !important;
    transform:translate(-58%, -2%) scale(.82);
    transform-origin:center center;
}

.weather-widget .weather-anim .cloud.two{
    top:50% !important;
    left:50% !important;
    transform:translate(-2%, 18%) scale(.82);
    transform-origin:center center;
}

.weather-widget .weather-anim .rain-drop.d1{left:50% !important; transform:translateX(-13px);}
.weather-widget .weather-anim .rain-drop.d2{left:50% !important; transform:translateX(-1px);}
.weather-widget .weather-anim .rain-drop.d3{left:50% !important; transform:translateX(11px);}
.weather-widget .weather-anim .fog-line.f1,
.weather-widget .weather-anim .fog-line.f2,
.weather-widget .weather-anim .fog-line.f3,
.weather-widget .weather-anim .storm-bolt,
.weather-widget .weather-anim .snow-dot.s1,
.weather-widget .weather-anim .snow-dot.s2,
.weather-widget .weather-anim .snow-dot.s3{
    left:50% !important;
}
.weather-widget .weather-anim .fog-line.f1{transform:translateX(-18px);}
.weather-widget .weather-anim .fog-line.f2{transform:translateX(-18px);}
.weather-widget .weather-anim .fog-line.f3{transform:translateX(-18px);}
.weather-widget .weather-anim .storm-bolt{transform:translateX(-3px);}
.weather-widget .weather-anim .snow-dot.s1{transform:translateX(-13px);}
.weather-widget .weather-anim .snow-dot.s2{transform:translateX(1px);}
.weather-widget .weather-anim .snow-dot.s3{transform:translateX(15px);}

.protecu-center-bubble{
    width:min(68vw, 174px) !important;
    max-width:174px !important;
    transform:translate(-50%, calc(-100% - 18px)) !important;
}

.protecu-center-bubble .map-user-bubble,
.protecu-center-bubble .map-user-bubble.compact-bubble{
    padding:7px 10px 6px !important;
    border-radius:13px !important;
}

.protecu-center-bubble .map-user-bubble::after{
    width:10px !important;
    height:10px !important;
    bottom:-5px !important;
}

@media (max-width:768px){
    .protecu-center-bubble{
        width:min(66vw, 166px) !important;
        max-width:166px !important;
        transform:translate(-50%, calc(-100% - 17px)) !important;
    }
}


.ftue-pointer-arrow {
    position: fixed;
    width: 86px;
    height: 86px;
    z-index: 10013;
    display: none;
    pointer-events: none;
}
.ftue-pointer-arrow::before,
.ftue-pointer-arrow::after {
    content: '';
    position: absolute;
    display: block;
}
.ftue-pointer-arrow::before {
    left: 35px;
    top: 10px;
    width: 16px;
    height: 46px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffe45c 0%, #f7b500 100%);
    box-shadow: 0 0 12px rgba(255, 228, 92, 0.72), 0 0 26px rgba(247, 181, 0, 0.38);
}
.ftue-pointer-arrow::after {
    left: 19px;
    top: 46px;
    width: 0;
    height: 0;
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    border-top: 30px solid #ffd400;
    filter: drop-shadow(0 0 10px rgba(255, 212, 0, 0.72)) drop-shadow(0 0 24px rgba(247, 181, 0, 0.30));
}
.ftue-pointer-arrow.active { display: block; }
.ftue-pointer-arrow.point-down { animation: ftueArrowBounceDown 1s ease-in-out infinite; }
.ftue-pointer-arrow.point-left { transform: rotate(-90deg); transform-origin: center; animation: ftueArrowBounceLeft 1s ease-in-out infinite; }
.ftue-pointer-arrow.point-right { transform: rotate(90deg); transform-origin: center; animation: ftueArrowBounceRight 1s ease-in-out infinite; }
.ftue-pointer-arrow.point-up { transform: rotate(180deg); transform-origin: center; animation: ftueArrowBounceUp 1s ease-in-out infinite; }
@keyframes ftueArrowBounceDown {
    0%, 100% { transform: translateY(-4px); }
    50% { transform: translateY(8px); }
}
@keyframes ftueArrowBounceLeft {
    0%, 100% { transform: rotate(-90deg) translateX(4px); }
    50% { transform: rotate(-90deg) translateX(-8px); }
}
@keyframes ftueArrowBounceRight {
    0%, 100% { transform: rotate(90deg) translateX(-4px); }
    50% { transform: rotate(90deg) translateX(8px); }
}
@keyframes ftueArrowBounceUp {
    0%, 100% { transform: rotate(180deg) translateY(4px); }
    50% { transform: rotate(180deg) translateY(-8px); }
}
.ftue-overlay.map-ftue-mode .ftue-screen-dim {
    background: transparent;
    backdrop-filter: none;
}
.ftue-overlay.map-ftue-mode .ftue-highlight-ring,
.ftue-overlay.map-ftue-mode .ftue-map-focus {
    border-color: transparent;
    box-shadow: none;
}
.ftue-overlay.map-ftue-mode .ftue-speech {
    background: rgba(255,255,255,0.98);
}
.ftue-overlay.map-ftue-mode .ftue-speech::before {
    background: rgba(255,255,255,0.98);
}
.ftue-overlay.map-ftue-mode .ftue-hint {
    display: none;
}

.ftue-overlay.map-ftue-mode {
    z-index: 6000;
}
.ftue-overlay.map-ftue-mode + .overlay-backdrop {
    pointer-events: none;
}
.ftue-overlay.map-ftue-mode ~ .side-menu,
body.ftue-menu-highlight .side-menu {
    z-index: 7004;
}
.ftue-overlay.map-ftue-mode ~ .side-menu-backdrop,
body.ftue-menu-highlight .side-menu-backdrop {
    z-index: 7003;
}
.ftue-overlay.map-ftue-mode ~ .topbar .burger-btn,
body.ftue-menu-highlight #burgerBtn {
    position: relative;
    z-index: 7005;
}
#mapCanvas.map-disabled,
.ftue-overlay.map-ftue-mode ~ .main-content #mapCanvas,
.ftue-overlay.map-ftue-mode ~ .map-section #mapCanvas {
    pointer-events: none;
}
body.ftue-menu-highlight .side-menu,
body.ftue-menu-highlight .side-menu *,
body.ftue-menu-highlight .side-menu-backdrop,
body.ftue-menu-highlight #burgerBtn {
    pointer-events: auto;
}


/* ===== April 16 utility updates ===== */
.profile-edit-corner-btn{transform:scaleX(-1);}
.powered-link{display:block;font-weight:600;color:#F7A31E;margin-top:4px;}
.char-count-text{margin-top:-4px;text-align:right;font-size:12px;color:#6b7280;}
.faq-web-card{width:min(94vw,520px);}
.faq-web-body{padding:0 !important;overflow:hidden;}
.faq-web-frame{display:block;width:100%;height:72vh;border:0;border-radius:0 0 20px 20px;background:#fff;}
.weather-widget .weather-header{align-self:center !important;}
.weather-widget .weather-anim{padding-bottom:3px !important;box-sizing:content-box;}


/* ===== 2026 cleanup fixes: status bar, widget spacing, bottom nav, split PIN ===== */
:root{
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* let the page use the full screen safely */
html{
    background:#000;
}
body{
    position:static !important;
    inset:auto !important;
    margin:0 !important;
    padding:0 !important;
    width:100%;
    min-height:100dvh;
    background:var(--cream) !important;
    overflow:hidden !important;
}
.app-shell,
#app,
.page-shell,
.main-screen,
.map-screen{
    min-height:100dvh !important;
    height:100dvh !important;
}

/* keep header clear of the phone status bar */
.topbar{
    padding-top:max(8px, var(--safe-top)) !important;
    height:calc(56px + max(8px, var(--safe-top))) !important;
    min-height:calc(56px + max(8px, var(--safe-top))) !important;
}
.topbar-title{
    top:calc(50% + (max(8px, var(--safe-top)) / 2)) !important;
}

/* marquee should not crash into the header */
.uat-marquee-wrap{
    flex-shrink:0;
}

/* tighter but cleaner map sizing */
.main-content{
    min-height:0 !important;
    padding:0 !important;
}
.map-section{
    padding:10px 12px 8px !important;
    gap:0 !important;
}
.map-canvas{
    border-radius:18px !important;
    min-height:0 !important;
    height:100% !important;
}

/* prevent top chips from colliding and keep both aligned */
.map-live-chip{
    top:14px !important;
    left:14px !important;
    width:170px !important;
    height:56px !important;
    border-radius:18px !important;
}
.weather-widget{
    top:14px !important;
    right:14px !important;
    width:170px !important;
    min-height:56px !important;
    height:56px !important;
    border-radius:18px !important;
    padding:10px 12px !important;
}
.weather-widget .weather-header{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    align-self:center !important;
}
.weather-widget .weather-anim{
    width:28px !important;
    height:28px !important;
    margin:0 !important;
    padding:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
}
.weather-widget .weather-temp{
    font-size:15px !important;
    line-height:1 !important;
    margin:0 !important;
    padding:0 !important;
}
.weather-widget .weather-desc{
    position:static !important;
    margin:2px 0 0 !important;
    font-size:10px !important;
    line-height:1.1 !important;
    max-width:86px !important;
}

/* leave proper room above Android navigation */
.bottom-cta-bar,
.sos-footer,
.bottom-sos-wrap,
.sos-button-wrap{
    padding-bottom:max(14px, calc(var(--safe-bottom) + 10px)) !important;
}
.bottom-cta-bar{
    min-height:92px !important;
    padding-top:8px !important;
}
#sosBtn{
    min-height:64px !important;
    border-radius:22px !important;
    margin:0 auto !important;
}

/* responsive tuning */
@media (max-width: 768px){
    .topbar{
        padding-top:max(6px, var(--safe-top)) !important;
    }
    .map-section{
        padding:8px 10px 6px !important;
    }
    .map-live-chip{
        top:10px !important;
        left:10px !important;
        width:156px !important;
        height:52px !important;
    }
    .weather-widget{
        top:10px !important;
        right:10px !important;
        width:156px !important;
        min-height:52px !important;
        height:52px !important;
        padding:9px 10px !important;
    }
    .weather-widget .weather-temp{
        font-size:14px !important;
    }
    .weather-widget .weather-desc{
        max-width:78px !important;
        font-size:9px !important;
    }
    .bottom-cta-bar{
        min-height:96px !important;
        padding:8px 10px max(14px, calc(var(--safe-bottom) + 10px)) !important;
    }
    #sosBtn{
        width:min(100%, 520px) !important;
        min-height:62px !important;
        font-size:20px !important;
    }
}

/* split PIN field */
.text-input.pin-source{
    position:absolute !important;
    opacity:0 !important;
    pointer-events:none !important;
    width:1px !important;
    height:1px !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
}
.pin-split-wrap{
    display:flex;
    gap:8px;
    width:100%;
    margin-top:2px;
    margin-bottom:2px;
}
.pin-digit{
    width:calc((100% - 40px) / 6);
    min-width:0;
    height:52px;
    border:1.5px solid #cfcfcf;
    border-radius:12px;
    background:#fff;
    text-align:center;
    font-size:20px;
    font-weight:800;
    outline:none;
    color:#111;
    -webkit-text-security:disc;
}
.pin-digit:focus{
    border-color:var(--secondary-blue);
    box-shadow:0 0 0 3px rgba(26,90,190,.12);
}
.pin-digit.is-filled{
    border-color:#d9a13b;
}
@media (max-width: 480px){
    .pin-split-wrap{
        gap:6px;
    }
    .pin-digit{
        height:50px;
        font-size:18px;
    }
}


.pin-label-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
}
.pin-match-status{
    min-width:98px;
    text-align:right;
    font-size:13px;
    font-weight:700;
    line-height:1.2;
}
.pin-match-status.is-match{color:#0a7a28;}
.pin-match-status.is-mismatch{color:#DA2F25;}
.success-box{
    min-height:22px;
    margin-top:4px;
    color:#0a7a28;
    font-size:13px;
    font-weight:700;
    line-height:1.5;
}
.pin-split-wrap.is-disabled{
    opacity:.55;
}
.pin-split-wrap.is-disabled .pin-digit{
    background:#f3f3f3;
    color:#9a9a9a;
    border-color:#dddddd;
    cursor:not-allowed;
}
.pin-digit{
    transition:transform .16s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.pin-digit::-ms-reveal,
.pin-digit::-ms-clear{
    display:none;
}
.pin-shake{
    animation:pinShake .36s ease;
}
@keyframes pinShake{
    0%,100%{transform:translateX(0);}
    20%{transform:translateX(-6px);}
    40%{transform:translateX(6px);}
    60%{transform:translateX(-4px);}
    80%{transform:translateX(4px);}
}


/* Contact Us sending loader */
.contact-submit-loader{
    display:none;
    align-items:center;
    gap:10px;
    margin:12px 0 6px;
    padding:10px 12px;
    border-radius:14px;
    background:rgba(26,90,190,0.08);
    color:#1A5ABE;
    font-size:13px;
    font-weight:700;
}
.contact-submit-loader.active{
    display:flex;
}
.contact-loader-spinner{
    width:18px;
    height:18px;
    border-radius:50%;
    border:3px solid rgba(26,90,190,0.22);
    border-top-color:#1A5ABE;
    animation:contactLoaderSpin .85s linear infinite;
    flex:0 0 auto;
}
.cta-btn.is-loading{
    opacity:.78;
    cursor:wait;
}
@keyframes contactLoaderSpin{
    to{transform:rotate(360deg);}
}

.ftue-next-btn.disabled-wait{
    opacity:.62;
    cursor:not-allowed;
    box-shadow:none;
    animation:none;
}

/* Contact Us full form blocker while submitting */
.contact-us-card{
    position:relative;
}
.contact-form-blocker{
    display:none;
    position:absolute;
    inset:64px 0 0 0;
    z-index:60;
    align-items:center;
    justify-content:center;
    border-bottom-left-radius:22px;
    border-bottom-right-radius:22px;
    background:rgba(0,0,0,var(--contact-submit-overlay-alpha));
    pointer-events:all;
}
.contact-form-blocker.active{
    display:flex;
}
.contact-blocker-content{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:14px;
    color:#fff;
    font-size:15px;
    font-weight:800;
    text-align:center;
    padding:20px;
}
.contact-loader-spinner-white{
    width:34px;
    height:34px;
    border-color:rgba(255,255,255,0.35);
    border-top-color:#ffffff;
}
.contact-blocker-text{
    color:#ffffff;
    animation:contactBlinkText 1s ease-in-out infinite;
}
@keyframes contactBlinkText{
    0%,100%{opacity:1;}
    50%{opacity:.35;}
}

/* Localization support: allows longer CTA labels to fit inside the SOS button */
#sosBtn{
    white-space:normal;
    line-height:1.15;
    text-align:center;
    overflow-wrap:anywhere;
}

/* iOS-specific overrides are loaded separately from assets/css/style-ios.css */
