* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body {
    background-color: #202124;
    color: #202124;
    height: 100dvh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.app-shell {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 100dvh;
    background: #F1F3F4;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);
}

/* Google Maps Turn-by-Turn Green Top Banner */
.gmaps-nav-banner {
    position: absolute;
    top: calc(10px + env(safe-area-inset-top));
    left: 12px;
    right: 12px;
    z-index: 20;
    background: #0F9D58;
    color: #FFFFFF;
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 14px rgba(15, 157, 88, 0.35), 0 2px 6px rgba(0, 0, 0, 0.18);
}

.nav-turn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-turn-info {
    flex: 1;
    min-width: 0;
}

.nav-distance {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.nav-street {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.gmaps-balance-chip {
    background: #FFFFFF;
    color: #202124;
    padding: 6px 12px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gmaps-balance-chip.pulse {
    transform: scale(1.12);
}

.chip-label {
    font-size: 10px;
    font-weight: 600;
    color: #5F6368;
    text-transform: uppercase;
}

.chip-value {
    font-size: 15px;
    font-weight: 800;
    color: #0F9D58;
}

/* Map Viewport */
.map-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #AADAFF;
}

.map-camera {
    width: 100%;
    height: 100%;
    transform-origin: center center;
    transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.israel-map-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Floating Controls (Right Side) */
.gmaps-floating-controls {
    position: absolute;
    top: calc(88px + env(safe-area-inset-top));
    right: 12px;
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.gmaps-fab {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gmaps-speed-limit {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3.5px solid #EA4335;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.speed-num {
    font-size: 13px;
    font-weight: 800;
    color: #202124;
    line-height: 1;
}

.speed-unit {
    font-size: 8px;
    font-weight: 600;
    color: #5F6368;
}

/* Bonus Toast */
.bonus-toast {
    position: absolute;
    top: 34%;
    left: 50%;
    transform: translate(-50%, 10px) scale(0.8);
    background: #0F9D58;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 24px;
    box-shadow: 0 6px 20px rgba(15, 157, 88, 0.45);
    opacity: 0;
    pointer-events: none;
    z-index: 25;
    transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.bonus-toast.show {
    opacity: 1;
    transform: translate(-50%, -28px) scale(1);
}

/* Google Maps Bottom Sheet */
.gmaps-bottom-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: #FFFFFF;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
    padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.16);
}

.sheet-drag-handle {
    width: 36px;
    height: 4px;
    background: #DADCE0;
    border-radius: 2px;
    margin: 0 auto 10px;
}

.sheet-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.eta-badge {
    background: #E8F0FE;
    color: #1967D2;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
}

.eta-sub {
    font-size: 12px;
    font-weight: 600;
    color: #137333;
}

.sheet-question {
    font-size: 17px;
    font-weight: 700;
    color: #202124;
    line-height: 1.3;
    margin-bottom: 12px;
}

.options-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.route-option-btn {
    width: 100%;
    text-align: left;
    background: #F8F9FA;
    border: 1.5px solid #DADCE0;
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.18s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.route-option-btn:active {
    transform: scale(0.985);
}

.route-option-btn.recommended {
    background: #F4FBF7;
    border-color: #34A853;
}

.route-option-btn:hover {
    border-color: #1A73E8;
    background: #F1F6FE;
}

.opt-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.opt-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #202124;
    display: flex;
    align-items: center;
    gap: 6px;
}

.opt-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-grey {
    background: #80868B;
}

.dot-blue {
    background: #1A73E8;
}

.opt-reward {
    font-size: 13px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 8px;
    flex-shrink: 0;
}

.reward-standard {
    background: #E8EAED;
    color: #5F6368;
}

.reward-boost {
    background: #CEEAD6;
    color: #137333;
}

.opt-desc {
    font-size: 12.5px;
    color: #5F6368;
    line-height: 1.35;
    padding-left: 16px;
}

/* Modal Pop-up (Destination Reached) */
.gmaps-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(32, 33, 36, 0.65);
    backdrop-filter: blur(4px);
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gmaps-modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.gmaps-modal-card {
    width: 100%;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    transform: translateY(18px);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.gmaps-modal-backdrop.active .gmaps-modal-card {
    transform: translateY(0);
}

.modal-top-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.dest-pin-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #FCE8E6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dest-status {
    font-size: 12px;
    font-weight: 700;
    color: #137333;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dest-title {
    font-size: 20px;
    font-weight: 800;
    color: #202124;
}

.summary-box {
    background: #F8F9FA;
    border: 1px solid #E8EAED;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    color: #5F6368;
}

.summary-amount {
    font-size: 18px;
    font-weight: 800;
    color: #1A73E8;
}

.summary-green {
    font-weight: 700;
    color: #137333;
}

.modal-desc {
    font-size: 13px;
    color: #5F6368;
    line-height: 1.4;
    margin-bottom: 14px;
}

.gmaps-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.input-field label {
    font-size: 12px;
    font-weight: 600;
    color: #3C4043;
}

.input-field input {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid #DADCE0;
    border-radius: 10px;
    font-size: 15px;
    color: #202124;
    outline: none;
    transition: border-color 0.2s;
}

.input-field input:focus {
    border-color: #1A73E8;
}

.gmaps-primary-btn {
    margin-top: 4px;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 24px;
    background: #1A73E8;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.35);
    transition: background 0.2s;
}

.gmaps-primary-btn:hover {
    background: #1557B0;
}

.success-state {
    text-align: center;
    padding: 14px 4px;
}

.check-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #CEEAD6;
    color: #137333;
    font-size: 26px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.success-state h3 {
    font-size: 18px;
    font-weight: 800;
    color: #202124;
    margin-bottom: 6px;
}

.success-state p {
    font-size: 13.5px;
    color: #5F6368;
    line-height: 1.4;
}
