/* --- MODULES & GRIDS --- */
.nearby-header { font-size: 12px; text-transform: uppercase; color: var(--text-soft); margin-bottom: 10px; letter-spacing: 0.5px; display: flex; align-items: center; gap: 6px; } 
.nearby-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } 
@media(max-width: 600px) { .nearby-list { grid-template-columns: 1fr; } } 
.nearby-item { background: rgba(255,255,255,0.03); border: 1px solid var(--border); padding: 12px; border-radius: 12px; } 
.nearby-type { font-size: 9px; color: var(--accent); font-weight: 800; text-transform: uppercase; margin-bottom: 4px; } 
.nearby-name { font-size: 13px; font-weight: 600; color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } 
.nearby-dist { font-size: 11px; color: var(--neon-blue); }

.btn-stack { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; } 
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } 
.btn { border: none; border-radius: 14px; padding: 16px; font-weight: 700; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform 0.1s; } 
.btn-sos { background: var(--sos-red); color: white; width: 100%; font-size: 16px; box-shadow: 0 0 20px rgba(239, 68, 68, 0.2); } 
.btn-primary { background: linear-gradient(135deg, #ff0055, #ff4d7d); color: white; } 
.btn-ghost { background: rgba(255,255,255,0.05); color: white; border: 1px solid var(--border); } 
.btn:active { transform: scale(0.98); } 
.icon { width: 18px; height: 18px; stroke-width: 2.5; }

.trust-badge { font-size: 12px; color: #94a3b8; text-align: center; margin-top: 25px; line-height: 1.6; background: rgba(15, 23, 42, 0.5); padding: 15px; border-radius: 12px; border: 1px dashed var(--border); }
footer { margin-top: 40px; text-align: center; font-size: 12px; color: var(--text-soft); padding-bottom: 30px; border-top: 1px solid var(--border); width: 100%; padding-top: 20px;} 
footer a { color: var(--text-soft); text-decoration: none; margin: 0 8px; transition: color 0.2s; } 
footer a:hover { color: white; }

/* --- PREMIUM UI COMPONENTS --- */
.premium-upgrade-container { animation: fadeIn 1.2s ease-out; } 
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.qr-section { text-align: center; margin-bottom: 25px; background: rgba(255,255,255,0.02); padding: 20px; border-radius: 20px; border: 1px solid var(--border); } 
.qr-label { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--neon-blue); margin-bottom: 10px; font-weight: 800; } 
#qrcode { display: inline-block; padding: 10px; background: white; border-radius: 12px; box-shadow: 0 0 20px rgba(56, 189, 248, 0.3); }

.premium-dashboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; margin: 20px 0; } 
.p-card { background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)); border: 1px solid var(--border); padding: 20px; border-radius: 20px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: default; } 
.p-card:hover { border-color: var(--neon-blue); transform: scale(1.05); box-shadow: 0 10px 30px rgba(56,189,248,0.1); } 
.p-icon { font-size: 20px; margin-bottom: 10px; display: block; opacity: 0.8; } 
.p-label { font-size: 10px; text-transform: uppercase; color: var(--text-soft); } 
.p-value { font-size: 18px; font-weight: 800; color: white; display: block; margin-top: 5px; }

/* --- HIDDEN MODULES --- */
.new-module-container { display: none; margin-top: 20px; padding: 20px; border-radius: 16px; background: rgba(0,0,0,0.3); border: 1px solid var(--border); text-align: left; } 
.new-module-container.active-mod { display: block; animation: slideDown 0.3s ease-out; } 
@keyframes slideDown { from {opacity:0; transform:translateY(-10px);} to {opacity:1; transform:translateY(0);} }
.mod-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid var(--border); padding-bottom: 10px; } 
.mod-title { font-size: 16px; font-weight: 700; color: var(--neon-blue); text-transform: uppercase; letter-spacing: 1px; } 
.mod-close { cursor: pointer; color: var(--text-soft); font-size: 18px; background: none; border: none; }
.mod-grid-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; } 
.mod-btn { padding: 12px; border-radius: 8px; border: 1px solid var(--border); background: rgba(255,255,255,0.05); color: white; cursor: pointer; font-size: 13px; transition: 0.2s; } 
.mod-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--neon-blue); } 
.mod-btn-primary { background: var(--neon-blue); color: #0f172a; border: none; font-weight: 700; } 
.mod-input { width: 100%; padding: 12px; background: rgba(0,0,0,0.2); border: 1px solid var(--border); color: white; border-radius: 8px; margin-bottom: 10px; outline: none; } 
.mod-input:focus { border-color: var(--neon-blue); }

.sos-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(30, 0, 0, 0.95); z-index: 9999; display: none; flex-direction: column; align-items: center; justify-content: center; } 
.sos-msg { font-size: 24px; font-weight: 900; color: white; margin-bottom: 30px; text-align: center; padding: 20px; }
.driver-hud { display: flex; justify-content: space-around; margin: 15px 0; background: rgba(0,0,0,0.4); padding: 15px; border-radius: 12px; } 
.hud-item { text-align: center; } 
.hud-val { font-size: 24px; font-weight: 800; color: white; display: block; } 
.hud-lbl { font-size: 10px; text-transform: uppercase; color: var(--text-soft); }
.pin-list { margin-top: 10px; max-height: 150px; overflow-y: auto; } 
.pin-item { padding: 8px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 12px; } 

/* --- ADSENSE DENSITY & SAFETY ARMOR --- */
.ad-wrapper {
    width: 100%;
    margin: 40px auto; /* 40px buffer completely prevents accidental clicks */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 5;
}
.ad-label {
    font-size: 9px;
    color: #64748b;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 700;
    opacity: 0.7;
}
.ad-safe-zone {
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

/* Mobile specific ad constraints (Policy compliance) */
@media(max-width: 600px) {
    /* Top slot MUST NOT push content off-screen */
    .ad-top-mobile-safe { 
        max-height: 100px !important; 
        min-height: 50px;
    }
    /* Deep scroll allows high-paying square ads */
    .ad-mid-depth { 
        min-height: 250px; 
    }
}
@media(min-width: 601px) {
    .ad-top-mobile-safe { min-height: 90px; }
    .ad-mid-depth { min-height: 280px; }
}

/* --- CONTENT BLOCKS --- */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 40px 0; }
.feature-box { background: rgba(255,255,255,0.03); padding: 20px; border-radius: 16px; border: 1px solid var(--border); text-align: left; }
.f-icon { font-size: 24px; margin-bottom: 10px; display: block; }
.f-title { font-weight: 700; color: white; margin-bottom: 5px; display: block; }
.f-desc { font-size: 13px; color: var(--text-soft); line-height: 1.5; }
@media(max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

.specs-table { width: 100%; border-collapse: collapse; margin-top: 30px; font-size: 13px; }
.specs-table td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); color: #cbd5e1; }
.specs-table tr:last-child td { border-bottom: none; }
.spec-label { font-weight: 700; color: var(--accent); width: 40%; }

.content-section { margin: 40px 0; border-top: 1px solid var(--border); padding-top: 40px; } 
.content-section h2 { font-size: 24px; color: #ffffff; margin-bottom: 20px; } 
.content-section h3 { font-size: 18px; color: var(--accent); margin-top: 25px; margin-bottom: 10px; } 
.content-section p { color: #cbd5e1; line-height: 1.7; margin-bottom: 15px; font-size: 15px; } 
.faq-item { background: rgba(255,255,255,0.03); border: 1px solid var(--border); padding: 20px; border-radius: 12px; margin-bottom: 15px; } 
.faq-q { font-weight: 700; color: var(--neon-blue); margin-bottom: 8px; font-size: 16px; } 
.faq-a { color: #94a3b8; font-size: 14px; line-height: 1.6; }

/* --- DEADLY SCENARIO GRID --- */
.scenario-showcase { margin-top: 60px; }
.scenario-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 25px; margin-top: 30px; }
.scenario-card { background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; overflow: hidden; transition: all 0.3s ease; display: flex; flex-direction: column; }
.scenario-card:hover { border-color: var(--neon-blue); transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 20px rgba(56, 189, 248, 0.1); }
.scenario-img { width: 100%; height: 200px; object-fit: cover; border-bottom: 2px solid var(--neon-blue); background: #1e293b; }
.scenario-body { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.scenario-title { font-size: 18px; font-weight: 900; color: white; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.scenario-desc { font-size: 14px; color: #cbd5e1; line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }
.scenario-steps { background: rgba(0,0,0,0.3); padding: 15px 20px; border-radius: 10px; border-left: 4px solid var(--accent); }
.scenario-steps h4 { font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; font-weight: 800; }
.scenario-steps ol { margin: 0; padding-left: 15px; color: #94a3b8; font-size: 13px; line-height: 1.6; }
.scenario-steps li { margin-bottom: 5px; }
.scenario-steps strong { color: white; }

/* --- PREMIUM SOCIAL SHARE HUB --- */
.social-hub { position: fixed; left: 20px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; z-index: 9999; background: rgba(15, 23, 42, 0.85); padding: 15px 12px; border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(12px); box-shadow: 0 15px 35px rgba(0,0,0,0.5); transition: all 0.3s ease; }
.share-btn { width: 42px; height: 42px; border-radius: 50%; display: flex; justify-content: center; align-items: center; cursor: pointer; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); text-decoration: none; border: none; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.share-btn svg { width: 22px; height: 22px; fill: white; }
.share-btn:hover { transform: scale(1.15) translateX(5px); }
.btn-x { background: #000000; border: 1px solid #333; }
.btn-fb { background: #1877F2; }
.btn-reddit { background: #FF4500; }
.btn-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.btn-wa { background: #25D366; }
.btn-sms { background: #38bdf8; }
.btn-email { background: #ea4335; }
@media(max-width: 900px) {
    .social-hub { left: 50%; top: auto; bottom: 20px; transform: translateX(-50%); flex-direction: row; padding: 10px 15px; width: max-content; max-width: 95vw; overflow-x: auto; }
    .share-btn { width: 38px; height: 38px; flex-shrink: 0; }
    .share-btn svg { width: 18px; height: 18px; }
    .share-btn:hover { transform: scale(1.15) translateY(-5px); }
    body { padding-bottom: 80px; }
}

/* --- STREET VIEW PORTAL --- */
.sv-card { background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(15, 23, 42, 0.8)); border: 1px solid var(--neon-blue); padding: 20px; border-radius: 16px; margin-top: 15px; text-align: center; position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.sv-card h3 { color: white; font-size: 16px; margin-bottom: 5px; display: flex; align-items: center; gap: 8px; z-index: 1; }
.sv-desc { font-size: 12px; color: #94a3b8; margin-bottom: 15px; z-index: 1; max-width: 90%; }
.btn-sv { background: var(--neon-blue); color: #0f172a; padding: 12px 25px; border-radius: 50px; font-weight: 800; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; z-index: 1; transition: 0.2s; text-decoration: none; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.btn-sv:hover { background: white; transform: scale(1.05); }
.sv-bg-icon { position: absolute; right: -20px; bottom: -20px; opacity: 0.05; width: 120px; height: 120px; z-index: 0; pointer-events: none; }

/* --- TRUST BADGES --- */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin: 40px 0; }
.trust-item { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); padding: 25px 15px; border-radius: 16px; text-align: center; transition: 0.3s; }
.trust-item:hover { background: rgba(56, 189, 248, 0.05); border-color: rgba(56, 189, 248, 0.3); transform: translateY(-3px); }
.trust-icon { width: 40px; height: 40px; margin: 0 auto 15px; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, 0.8); border-radius: 50%; border: 1px solid var(--neon-blue); color: var(--neon-blue); box-shadow: 0 0 15px rgba(56,189,248,0.2); }
.trust-icon svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trust-title { font-size: 13px; font-weight: 800; color: white; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.trust-desc { font-size: 11px; color: #94a3b8; line-height: 1.5; }

/* --- COOKIE BANNER --- */
#cookie-banner { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(15, 23, 42, 0.98); border-top: 1px solid var(--border); box-shadow: 0 -10px 40px rgba(0,0,0,0.8); z-index: 10000; padding: 20px; text-align: center; backdrop-filter: blur(10px); } 
.cookie-content { max-width: 600px; margin: 0 auto; } 
#cookie-text { margin-bottom: 15px; font-size: 13px; color: #cbd5e1; line-height: 1.5; } 
.cookie-buttons { display: flex; gap: 10px; justify-content: center; } 
.cookie-btn { border: none; padding: 10px 24px; border-radius: 50px; font-weight: 700; cursor: pointer; font-size: 13px; transition: 0.2s; } 
.btn-accept { background: var(--neon-blue); color: #0f172a; } 
.btn-accept:hover { background: white; } 
.btn-reject { background: transparent; border: 1px solid var(--text-soft); color: var(--text-soft); } 
.btn-reject:hover { border-color: white; color: white; }
