* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background-color: #0b1121;
    overflow: hidden;
    color: white;
}

#screen-5.active, #screen-6.active {
    background: transparent;
    background-color: transparent;
    overflow: hidden;
    padding: 0;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
    pointer-events: none; /* allow map interactions through */
}

#screen-5.active .back-nav,
#screen-5.active .map-details-card,
#screen-6.active .back-nav,
#screen-6.active .nav-stats-card {
    pointer-events: auto;
}

#map-area-screen6 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#nav-alert-container {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2200;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    width: 90%;
    max-width: 420px;
}

.nav-alert {
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.35);
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.25s ease;
}

.nav-alert.fade-out {
    opacity: 0;
    transform: translateY(-8px);
}

.nav-marker-wrapper .glowing-marker {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #2ecc71;
    background-color: rgba(2, 180, 110, 0.96);
    box-shadow: 0 0 10px rgba(46,204,113,0.7), 0 0 20px rgba(46,204,113,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s linear;
}

.nav-marker-wrapper .glowing-marker-inner {
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-radius: 50%;
}

.map-details-card {
    width: 100%;
    background: rgba(9, 13, 22, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding: 35px 30px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
    border-top: 2px solid rgba(78, 217, 193, 0.4);
    position: relative;
    z-index: 1000;
    margin-top: auto;
    transform: translateZ(0);
    will-change: auto;
}

#app-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 300;
    pointer-events: none;
}

/* Form/UI screens: receive all interactions */
#screen-1.active,
#screen-2.active,
#screen-3.active,
#screen-4.active,
#screen-loading.active,
#screen-7.active {
    pointer-events: auto;
}

/* Map screens: let events pass to map, but controls override */
#screen-5.active,
#screen-6.active {
    pointer-events: none;
    transform: translateZ(0);
    will-change: auto;
}

.screen {
    display: none !important;
    height: 100vh;
    width: 100vw;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 300;
    visibility: hidden;
    /* Each screen sets own pointer-events state above */
}

.screen.active {
    display: flex !important;
    visibility: visible;
    pointer-events: auto;
}

.screen:not(.active) {
    display: none !important;
}


.top-nav {
    position: absolute;
    top: 40px;
    right: 40px;
}

.login-link {
    color: #4ed9c1;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    pointer-events: auto;
}

.hero-circle {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(78, 217, 193, 0.12) 0%, rgba(11, 17, 33, 0) 70%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 4.5rem;
    letter-spacing: 10px;
    font-weight: 800;
    background: linear-gradient(to right, #4ed9c1, #5ca9e6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    margin-top: 20px;
    font-size: 1.2rem;
    opacity: 0.9;
}

.back-nav {
    position: absolute;
    top: 20px;
    left: 45px;
    width: 45px;
    height: 45px;
    background: rgba(50, 144, 129, 0.795);
    border: 1.5px solid rgba(78, 217, 193, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2000;
    pointer-events: auto;
    transform: translateZ(0);
    will-change: background, transform;
}

.back-nav i {
    color: #5ccdbae4;
    font-size: 1.2rem;
}

.back-nav:hover {
    background: rgba(78, 217, 193, 0.95);
    box-shadow: 0 0 20px rgba(78, 217, 193, 0.6);
    transform: translateX(-3px) translateZ(0);
}

.main-card-container {
    perspective: 1000px;
    width: 800px;
    height: 450px;
}

.inner-card {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flipped {
    transform: rotateY(180deg);
}

.card-side {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    border: 2px solid #4ed9c1;
    box-shadow: 0 0 20px rgba(78, 217, 193, 0.4);
    background: rgba(11, 17, 33, 0.9);
    border-radius: 5px;
    overflow: hidden;
}

.back {
    transform: rotateY(180deg);
}

.form-section {
    flex: 1.5;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-section {
    flex: 1;
    background: linear-gradient(135deg, #08121a 50%, #4ed9c1 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.info-section h1 {
    font-size: 2rem;
    text-align: center;
}

.input-group {
    margin-bottom: 20px;
}

.input-field {
    border-bottom: 1px solid white;
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.input-field input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    padding: 5px;
    outline: none;
}

.action-btn {
    background: linear-gradient(to right, #4ed9c1, #5ca9e6);
    border: none;
    padding: 12px;
    border-radius: 25px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    margin: 20px 0;
    pointer-events: auto;
}

.switch-text span {
    color: #4ed9c1;
    cursor: pointer;
    text-decoration: underline;
    pointer-events: auto;
}

#screen-3 {
    background: radial-gradient(circle at center, #0d2b26 0%, #0b1121 100%);
}

.search-container {
    width: 100%;
    max-width: 380px; 
    text-align: center;
    padding: 20px;
}

.search-header h1 {
    font-size: 2.2rem;
    letter-spacing: 5px;
    margin-bottom: 2px;
}

.search-header p {
    font-size: 0.9rem;
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.search-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 30px 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.input-block {
    text-align: left;
    margin-bottom: 5px;
}

.input-block label, .mode-selection label {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: block;
    color: rgba(255, 255, 255, 0.6);
    padding-left: 5px;
}

.glass-input {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 15px;
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glass-input input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    outline: none;
    font-size: 0.95rem;
}

.swap-icon {
    color: #4ed9c1;
    margin: 10px 0;
    font-size: 1.1rem;
    opacity: 0.8;
}

.mode-selection {
    text-align: left;
    margin: 25px 0;
}

.mode-options {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    display: flex;
    padding: 6px;
    gap: 5px;
}

.mode-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 12px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    pointer-events: auto;
}

.mode-btn.active {
    background: #1abc9c;
    color: white;
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.3);
}

.search-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 18px;
    border-radius: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
    pointer-events: auto;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #4ed9c1;
}
/* --- Screen 4: Route Results Design --- */
#screen-loading {
    background: radial-gradient(circle at center, #0d2b26 0%, #0b1121 100%);
}

.loading-card {
    width: 320px;
    padding: 30px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top-color: #1abc9c;
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.route-result-container {
    width: 100%;
    max-width: 460px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    position: relative;
    z-index: 10;
    overflow: visible;
}

.route-card {
    overflow: visible;
}

.route-comparison-row {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.85);
}

.route-comparison-row > div {
    flex: 1 1 30%;
    min-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.view-map-btn {
    position: relative;
    z-index: 20;
}

.route-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 30px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
}

.route-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.route-header h2 {
    font-size: 1.8rem;
    letter-spacing: 2px;
    margin: 0;
}

.badge {
    background: #1abc9c;
    color: #0b1121;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 12px;
    letter-spacing: 1px;
}

.safety-score {
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 30px;
}

/* Dynamic Colors */
.text-green { color: #1abc9c; }
.text-yellow { color: #f1c40f; }
.text-red { color: #e74c3c; }

.factors-list {
    margin-bottom: 30px;
}

.factor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.factor-label i {
    width: 25px;
    text-align: center;
    margin-right: 10px;
}

/* ETA and Distance Row */
.stats-row {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.stat-box {
    text-align: center;
    width: 50%;
}

.stat-box:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stat-val {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    min-height: 25px; 
}

.view-map-btn {
    width: 100%;
    background: #1abc9c;
    border: none;
    color: white;
    padding: 18px;
    border-radius: 15px;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(26, 188, 156, 0.3);
    transition: 0.3s;
    pointer-events: auto;
}

.view-map-btn:hover {
    background: #16a085;
    transform: translateY(-2px);
}
/* --- Screen 5: Map Overview Design --- */
#map-root {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    pointer-events: auto;
    display: none;
    transform: translateZ(0);
    will-change: display;
}
#map-root.visible {
    display: block;
    pointer-events: auto;
}
#map {
    width: 100%;
    height: 100%;
    display: block;
}
#map-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.nav-alert-container {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.nav-alert {
    background: rgba(22, 160, 133, 0.92);
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
    transition: opacity 0.6s ease;
    opacity: 1;
}

.nav-alert.warning { background: rgba(231, 76, 60, 0.92); }
.nav-alert.success { background: rgba(39, 174, 96, 0.92); }
.nav-alert.fade { opacity: 0; }

.nav-arrow-icon {
    font-size: 26px;
    color: #0576a3e6;
    text-shadow: 0 0 10px rgba(71, 156, 196, 0.8);
    pointer-events: none;
}

/* Circular glowing navigation marker */
.glowing-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.glowing-marker-inner {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #4ed9c1, #1abc9c);
    box-shadow: 0 0 12px rgba(16, 93, 138, 0.959);
    animation: pulseGlow 2s ease-in-out infinite;
}

.glowing-marker-inner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 12px rgb(19, 118, 171), 0 0 24px rgba(19, 118, 171);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 16px rgba(19, 118, 171), 0 0 32px rgba(19, 118, 171);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 12px rgba(19, 118, 171), 0 0 24px rgba(19, 118, 171);
        transform: scale(1);
    }
}

.nav-arrow {
    transition: transform 0.2s ease;
}

/* Custom route markers using DivIcon */
.route-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
}

.route-marker-inner {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: pulseMarker 2.5s ease-in-out infinite;
}

/* Red marker for start point */
.route-marker-start .route-marker-inner {
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #ef4444);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.route-marker-start .route-marker-inner::before {
    content: 'S';
    position: absolute;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Blue marker for destination */
.route-marker-dest .route-marker-inner {
    background: radial-gradient(circle at 30% 30%, #60a5fa, #3498db);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.route-marker-dest .route-marker-inner::before {
    content: '✓';
    position: absolute;
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes pulseMarker {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

#screen-5, #screen-6 {
    background: rgba(0,0,0,0.15);
}

.screen {
    background: transparent;
}

.pin {
    width: 15px;
    height: 15px;
    background-color: #1abc9c;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 10px #1abc9c;
}

.pulse-circle {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(26, 188, 156, 0.2);
    border-radius: 50%;
    animation: pulseMap 2s infinite;
}

@keyframes pulseMap {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(3.5); opacity: 0; }
}

.placeholder-text {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-weight: 600;
}

.map-details-card {
    width: 100%;
    background: rgba(9, 13, 22, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding: 35px 30px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
    border-top: 1px solid rgba(78, 217, 193, 0.4);
    position: relative;
    z-index: 1000;
    margin-top: auto;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stat-col {
    flex: 1;
}

.stat-lbl {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stat-val {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
}

.stat-row {
    margin-bottom: 30px;
}

.start-nav-btn {
    width: 100%;
    background: linear-gradient(to right, #1abc9c, #16a085);
    border: none;
    color: white;
    padding: 20px;
    border-radius: 15px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(26, 188, 156, 0.3);
    transition: 0.3s;
    pointer-events: auto;
}

.start-nav-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(26, 188, 156, 0.4);
}

.start-nav-btn:active {
    transform: translateY(0);
}

.start-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(to right, #117a70, #0d5a50);
    box-shadow: none;
    pointer-events: none;
}

/* --- SCREEN 6 FINAL DESIGN --- */
.map-placeholder-area {
    flex: 1;
    width: 100%;
}

.nav-stats-card {
    width: 100%;
    background: rgba(9, 13, 22, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 25px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
    border-top: 2px solid rgba(78, 217, 193, 0.4);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 400;
    pointer-events: auto;
    transform: translateZ(0);
    will-change: auto;
}

.stats-top-row {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.stat-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-value {
    font-size: 18px;
    font-weight: 800;
    color: white;
}

.progress-container {
    width: 100%;
    height: 6px;
    background: #222;
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #00d2ff;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.6);
    transition: width 0.3s linear;
}

.progress-text-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #555;
    margin-bottom: 25px;
}

.end-nav-btn {
    width: 100%;
    background: #1abc9c;
    border: none;
    color: #000;
    padding: 16px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    letter-spacing: 1px;
    pointer-events: auto;
}

/* Mobile-only start navigation fixed button */
@media (max-width: 768px) {
    .start-nav-btn {
        position: fixed;
        bottom: 14px;
        left: 50%;
        transform: translateX(-50%);
        width: 90vw;
        max-width: 420px;
        min-width: 280px;
        z-index: 9999;
        border-radius: 999px;
        padding: 14px 18px;
        box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
        font-size: 1rem;
        letter-spacing: 1.2px;
    }

    .map-details-card,
    .nav-stats-card {
        padding-bottom: 110px;
        transform: translateY(-12px);
    }

    #screen-5 .map-details-card,
    #screen-6 .nav-stats-card {
        margin-bottom: 18px;
    }
}

/* =========================================
   SCREEN 7: JOURNEY COMPLETED STYLES 
   ========================================= */

#screen-7 {
    justify-content: center; 
}

.completion-content {
    text-align: center;
    margin-top: -60px; 
}

.glow-tick i {
    font-size: 90px;
    color: #1abc9c;
    filter: drop-shadow(0 0 25px rgba(26, 188, 156, 0.7)); 
    margin-bottom: 20px;
}

.completion-title {
    font-size: 26px;
    font-weight: 900;
    color: white;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.completion-subtitle {
    color: #888;
    font-size: 14px;
}

.done-glow-btn {
    position: absolute;
    bottom: 40px;
    width: 85%;
    left: 50%;
    transform: translateX(-50%); 
    background: transparent;
    border: 2px solid #1abc9c;
    color: #1abc9c;
    padding: 16px;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    letter-spacing: 2px;
    box-shadow: 0 0 15px rgba(26, 188, 156, 0.3), inset 0 0 10px rgba(26, 188, 156, 0.3);
    transition: all 0.3s ease;
}

.done-glow-btn:hover, .done-glow-btn:active {
    background: #1abc9c;
    color: #000;
    box-shadow: 0 0 30px rgba(26, 188, 156, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.5);
}

/* 3D Location Pin Markers */
.location-pin-icon {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.location-pin-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.location-pin {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.pin-body {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset -2px -2px 4px rgba(0, 0, 0, 0.15),
        inset 2px 2px 4px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pin-body i {
    font-size: 22px;
}

.pin-shadow {
    position: absolute;
    width: 42px;
    height: 8px;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.05));
    border-radius: 50%;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(2px);
}

/* Start Pin (Red) */
.start-pin .pin-body {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.start-pin .pin-body::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    z-index: 1;
}

/* Red Location Pin with White Center (Destination) */
.red-location-pin {
    position: relative;
    width: 50px;
    height: 65px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pin-head {
    position: relative;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-center-hole {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pin-pointer {
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid #c0392b;
    bottom: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hover effect for 3D pins */
.location-pin-wrapper:hover .pin-body {
    transform: scale(1.15);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.25),
        inset -2px -2px 6px rgba(0, 0, 0, 0.2),
        inset 2px 2px 6px rgba(255, 255, 255, 0.15);
}

#screen-5{
    padding-top:60px;
}