/* BikerCommunity Premium Dark-Mode Glassmorphism Design System */
@import "fonts.css";

:root {
    --bg-main: #0c0c0e;
    --bg-panel: rgba(20, 20, 25, 0.75);
    --border-glass: rgba(255, 255, 255, 0.08);
    --shadow-main: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --primary: #ff9800; /* Neon Amber */
    --primary-hover: #e08600;
    --primary-glow: rgba(255, 152, 0, 0.35);
    
    --success: #10b981; /* Emerald Green */
    --danger: #ef4444; /* Crimson Red */
    --warning: #f59e0b;
    
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
}

/* MapLibre Container */
#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Schwebendes Steuerungs-Dashboard (Glassmorphismus) */
.dashboard {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 380px;
    max-height: calc(100% - 40px);
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-main);
    z-index: 10;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-glass);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
}

.logo svg {
    filter: drop-shadow(0 0 4px var(--primary-glow));
}

.logo h1 {
    font-family: var(--font-header);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.user-status {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 20px;
}

.user-status .dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
}

.user-status.logged-in .dot {
    background-color: var(--success);
    box-shadow: 0 0 6px var(--success);
}

/* Panels */
.panel {
    display: none;
    flex-direction: column;
    padding: 20px 20px 76px 20px; /* Erhöhtes Padding unten für die Bottom-Navigation */
    overflow-y: auto;
    max-height: 100%;
}

.panel.active {
    display: flex;
}

/* Panel Header */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.panel-header h2 {
    font-family: var(--font-header);
    font-size: 18px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 8px;
}

/* Tabs */
.tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: var(--primary);
    color: var(--bg-main);
    font-weight: 600;
}

/* Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="password"],
.input-group input[type="datetime-local"] {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-glass);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.radio-group {
    display: flex;
    gap: 16px;
    padding: 4px 0;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.radio-label input {
    accent-color: var(--primary);
}

/* Buttons (Für Biker-Handschuhe optimiert!) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    padding: 12px 20px;
    min-height: 48px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-main);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 12px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.35);
}

.btn-success {
    background: var(--success);
    color: var(--bg-main);
}

.btn-success:hover {
    background: #059669;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.btn-sm {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
}

.btn-icon {
    min-width: 36px;
    padding: 8px;
    border-radius: var(--radius-sm);
}

.btn-full {
    width: 100%;
}

/* Pulsierender Live-Standort-Button */
.btn-large {
    min-height: 58px;
    font-size: 16px;
    font-family: var(--font-header);
    letter-spacing: 0.5px;
    margin-top: 10px;
    position: relative;
    overflow: visible;
}

.pulse-ring {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid var(--success);
    border-radius: var(--radius-md);
    animation: pulsate 2s infinite ease-out;
    opacity: 0;
    pointer-events: none;
}

@keyframes pulsate {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.15); opacity: 0; }
}

/* Ride List */
.rides-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.ride-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ride-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-glow);
}

.ride-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.ride-card-title {
    font-family: var(--font-header);
    font-size: 16px;
    font-weight: 600;
}

.badge {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
}

.badge-live {
    background-color: var(--danger);
    color: white;
    animation: flash 1.5s infinite;
}

.badge-active {
    background-color: var(--success);
    color: var(--bg-main);
}

.badge-scheduled {
    background-color: var(--warning);
    color: var(--bg-main);
}

.badge-joined {
    background-color: rgba(255, 152, 0, 0.15);
    color: var(--primary);
    border: 1px solid var(--primary);
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.ride-card-details {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

.ride-card-details span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Detail Card & Meta */
.back-link {
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--primary);
}

.ride-detail-card h2 {
    font-family: var(--font-header);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
}

.detail-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, 0.15);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.meta-item .label {
    color: var(--text-secondary);
}

.meta-item .value {
    font-weight: 500;
}

.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Route Planner Section */
.route-planner-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border-glass);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 16px;
}

.help-text {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: 4px;
    margin-bottom: 10px;
}

.route-planner-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-msg {
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}

/* Active Tracking Panel */
.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 14px;
    margin-bottom: 16px;
}

.tracking-header .title-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tracking-header h2 {
    font-family: var(--font-header);
    font-size: 18px;
}

.grid-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.stat-value {
    font-family: var(--font-header);
    font-size: 16px;
    font-weight: 700;
}

.text-red { color: var(--danger); }
.text-green { color: var(--success); }
.text-orange { color: var(--warning); }

.dot-flash {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dot-flash::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    animation: flash 1s infinite;
}

.active-riders h3 {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.riders-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.rider-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.rider-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rider-arrow {
    font-size: 10px;
    color: var(--primary);
    transition: transform 0.2s ease;
}

.rider-age {
    font-size: 11px;
    color: var(--text-muted);
}

/* Toast Messages */
.toast {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 25, 0.9);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-main);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    z-index: 100;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 1;
}

.toast.hidden {
    opacity: 0;
    bottom: 10px;
    pointer-events: none;
}

/* Custom Marker Styling */
.user-marker {
    width: 20px;
    height: 20px;
    background-color: var(--primary);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(0,0,0,0.5);
}

.other-marker {
    position: relative;
    width: 24px;
    height: 24px;
    background-color: var(--bg-main);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 800;
    font-size: 12px;
    box-shadow: 0 0 10px var(--primary-glow);
}

.other-marker-arrow {
    position: absolute;
    top: -8px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 8px solid var(--primary);
}

.marker-label {
    position: absolute;
    bottom: -22px;
    background-color: rgba(12, 12, 14, 0.85);
    border: 1px solid var(--border-glass);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    color: white;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Helper Utility */
.hidden {
    display: none !important;
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.loading-spinner::before {
    content: "";
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Admin Panel Cards */
.admin-user-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.admin-user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.admin-user-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-user-controls input[type="number"] {
    width: 65px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-glass);
    color: white;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
}

.admin-tab-content {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

/* Health Check Warning Box */
.health-check-warning {
    background: rgba(255, 152, 0, 0.08);
    border: 1px solid rgba(255, 152, 0, 0.25);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-top: 10px;
    margin-bottom: 12px;
}

/* Hazard Warning Banner */
.hazard-warning-banner {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(239, 68, 68, 0.95);
    border: 2px solid var(--danger);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
    border-radius: 30px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    animation: slideDownAlert 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), pulseWarning 1.5s infinite;
}

.warning-icon {
    font-size: 24px;
}

.warning-text {
    display: flex;
    flex-direction: column;
    color: white;
}

.warning-text strong {
    font-family: var(--font-header);
    font-size: 15px;
    font-weight: 700;
}

.warning-text span {
    font-size: 11px;
    opacity: 0.9;
}

@keyframes slideDownAlert {
    from { transform: translate(-50%, -100px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes pulseWarning {
    0%, 100% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.6); }
    50% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.9); }
}

/* Floating Report Button */
.btn-report-hazard {
    position: fixed;
    bottom: 110px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-panel);
    border: 2px solid var(--danger);
    color: var(--danger);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-report-hazard:hover {
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.7);
}

/* Hazard Selection Menu */
.hazard-report-menu {
    position: fixed;
    bottom: 180px;
    right: 20px;
    width: 320px;
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-main);
    border-radius: var(--radius-lg);
    padding: 20px;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hazard-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.btn-hazard {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    min-height: 72px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-hazard:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-hazard.splitt:hover { border-color: #9ca3af; color: #ff9800; }
.btn-hazard.oil:hover { border-color: #111; color: #374151; }
.btn-hazard.construction:hover { border-color: var(--primary); color: var(--primary); }
.btn-hazard.accident:hover { border-color: var(--danger); color: var(--danger); }
.btn-hazard.animals:hover { border-color: var(--success); color: var(--success); }

.h-icon {
    font-size: 18px;
}

/* Battery Saver Overlay */
.battery-saver-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000; /* Pure black for OLED power savings */
    color: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.saver-content {
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.battery-icon {
    font-size: 48px;
    color: var(--danger);
    animation: flash 1s infinite;
    margin-bottom: 15px;
}

.saver-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    margin-top: 20px;
}

.saver-stat-card {
    background: #111111;
    border: 1px solid #333333;
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* MapLibre Hazard Marker Styling */
.hazard-marker {
    font-size: 24px;
    cursor: pointer;
    text-shadow: 0 0 6px black;
    transition: transform 0.2s ease;
}

.hazard-marker:hover {
    transform: scale(1.2);
}

/* Heatmap Pulse Overlay (k-Anonymity Circles) */
.heatmap-pulse-marker {
    width: 80px;
    height: 80px;
    background: rgba(255, 152, 0, 0.12);
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: heatmapWave 3s infinite ease-out;
    pointer-events: none;
}

@keyframes heatmapWave {
    0% { transform: scale(0.3); opacity: 0.9; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* RESPONSIVE LAYOUT (Speziell für Handys am Lenker) */
@media (max-width: 480px) {
    .dashboard {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 45vh;
        max-height: 100vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        transition: height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    
    .dashboard-drag-handle {
        display: block;
    }
    
    /* PWA Safe-Area Handling für iPhones */
    .dashboard {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    /* Ermöglicht das Hochziehen / Erweitern auf dem Handy */
    .dashboard.expanded {
        height: 100vh !important;
        max-height: 100vh !important;
        top: 0 !important;
        border-radius: 0 !important;
    }

    .btn-report-hazard {
        bottom: 80px;
        right: 15px;
    }

    .hazard-report-menu {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
}

/* ============================================================================
   COMMUNITY FEATURES STYLING (FUNK, CREWS, CHATS)
   ============================================================================ */

/* Bottom Navigation Bar (Glassmorphic) */
.dashboard-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(12, 12, 14, 0.9);
    border-top: 1px solid var(--border-glass);
    padding: 8px 0;
    min-height: 62px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.nav-item {
    background: none;
    border: none;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    flex: 1;
    padding: 6px 0;
    transition: all 0.2s ease;
    border-radius: var(--radius-sm);
    min-height: 48px; /* Glove-friendly target */
}

.nav-item:hover {
    color: var(--text-primary);
}

.nav-item.active {
    color: var(--primary);
}

.nav-item .nav-icon {
    font-size: 20px;
    margin-bottom: 2px;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.5));
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 4px var(--primary-glow));
}

/* Newsfeed / Funk Styles */
.funk-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 12px;
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.funk-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
}

.funk-author {
    font-weight: 600;
    color: var(--primary);
    font-family: var(--font-header);
}

.funk-time {
    color: var(--text-muted);
}

.funk-content {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
}

.funk-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.02);
    padding-top: 6px;
}

/* Funk Replies/Antworten Styles */
.btn-funk-reply-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-family: inherit;
    transition: color 0.2s, transform 0.1s;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

.btn-funk-reply-toggle:hover {
    color: var(--primary);
    background: rgba(255, 152, 0, 0.05);
}

.btn-funk-reply-toggle:active {
    transform: scale(0.95);
}

.funk-replies-section {
    margin-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.05);
    padding-top: 10px;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.funk-replies-list {
    margin-left: 6px;
    border-left: 2px solid rgba(255, 152, 0, 0.15);
    padding-left: 12px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.funk-reply-item {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
}

.funk-reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10.5px;
    margin-bottom: 4px;
}

.funk-reply-author {
    font-weight: 600;
    color: var(--text-primary);
}

.funk-reply-time {
    color: var(--text-muted);
}

.funk-reply-content {
    font-size: 12px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
    white-space: pre-wrap;
    word-break: break-word;
}

.funk-reply-form {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.funk-reply-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 12px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.funk-reply-input:focus {
    border-color: var(--primary);
}

.btn-funk-reply-submit {
    background: var(--primary);
    color: #0c0c0e;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-funk-reply-submit:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.3);
}

.funk-reply-login-prompt {
    font-size: 11.5px;
    color: var(--text-muted);
    text-align: center;
    padding: 6px;
    background: rgba(255,255,255,0.01);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
}


/* Chat Styles */
.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    overflow-y: auto;
    max-height: 180px;
}

.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    line-height: 1.4;
    position: relative;
    animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.chat-msg-self {
    align-self: flex-end;
    background: rgba(255, 152, 0, 0.15);
    border: 1px solid var(--primary-glow);
    border-bottom-right-radius: 2px;
}

.chat-msg-other {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-bottom-left-radius: 2px;
}

.chat-msg-author {
    font-size: 10px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2px;
    font-family: var(--font-header);
}

.chat-msg-text {
    color: var(--text-primary);
    word-break: break-word;
}

.chat-msg-time {
    font-size: 9px;
    color: var(--text-muted);
    align-self: flex-end;
    margin-top: 4px;
}

/* Crew List Cards */
.crew-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.crew-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-glow);
}

.crew-card-title {
    font-family: var(--font-header);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.crew-card-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.crew-card-meta {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.02);
    padding-top: 8px;
}

.crew-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Pace Badges */
.badge-gemuetlich {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid var(--success);
}

.badge-flott {
    background-color: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.badge-sportlich {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.crew-create-container input[type="text"] {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-glass);
    padding: 12px 14px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-body);
    width: 100%;
}

.crew-create-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* User Settings & Profile Panel Styles */
.avatar-preview-container img, .bike-preview-container img {
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.bike-preview-container img {
    border-radius: var(--radius-sm);
}

.section-divider {
    border-top: 1px solid var(--border-glass);
    margin: 15px 0;
}

/* Modal Overlay & Visitenkarten Styles */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 12, 14, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 110;
    animation: fadeIn 0.25s ease-out;
}

.user-card-content {
    width: 90%;
    max-width: 380px;
    background: rgba(20, 20, 25, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    position: relative;
    animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: var(--danger);
}

.user-card-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 20px;
}

.user-card-avatar-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.25);
    background: rgba(0,0,0,0.2);
}

.user-card-avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-card-title h2 {
    font-family: var(--font-header);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.user-card-title span {
    font-size: 12px;
    color: var(--text-muted);
}

.user-card-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.user-card-badge {
    font-size: 11.5px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.user-card-garage {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px;
}

.user-card-garage h3 {
    font-family: var(--font-header);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.garage-bike-info {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.garage-bike-image-wrapper {
    width: 100%;
    height: 140px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    background: rgba(0,0,0,0.3);
}

.garage-bike-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* User Names Clickable Links */
.user-link {
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    transition: color 0.15s, text-decoration 0.15s;
}

.user-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Map Marker for Crew Homebase */
.crew-homebase-marker {
    width: 32px;
    height: 32px;
    background-color: var(--bg-main);
    border: 2.5px solid var(--primary);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: all 0.2s ease;
}

.crew-homebase-marker:hover {
    transform: rotate(-45deg) scale(1.15);
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(255, 152, 0, 0.6);
}

.crew-homebase-marker-inner {
    transform: rotate(45deg);
    font-size: 15px;
    line-height: 1;
    margin-top: -2px;
    margin-left: -2px;
}

/* Globale Filter-Leiste (Radius-Slider) */
.filter-bar {
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-title {
    font-family: var(--font-header);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
}

.filter-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(255, 152, 0, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

/* Slider Styling */
.filter-bar input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    outline: none;
    margin: 8px 0;
}

.filter-bar input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 8px var(--primary-glow);
    transition: background 0.15s ease, transform 0.15s ease;
}

.filter-bar input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--primary-hover);
    transform: scale(1.15);
}

.filter-bar input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 8px var(--primary-glow);
    transition: background 0.15s ease, transform 0.15s ease;
}

/* ============================================================================
   NEUE FEATURES: Fullscreen Admin, Map Recenter, Newsfeed, Private Chats
   ============================================================================ */

/* Fullscreen Dashboard (für Admin) */
.dashboard.dashboard-fullscreen {
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    max-height: 90vh;
    top: 5vh;
    left: 5%;
    z-index: 1000;
}
@media (max-width: 768px) {
    .dashboard.dashboard-fullscreen {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        top: 0;
        left: 0;
        border-radius: 0;
    }
}

/* Map Recenter Button */
.map-btn-recenter {
    position: absolute;
    bottom: 180px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-main);
    z-index: 500;
    transition: transform 0.2s ease, background 0.2s ease;
    backdrop-filter: blur(8px);
}
.map-btn-recenter:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Newsfeed Styles */
.newsfeed-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.newsfeed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}
.newsfeed-type {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
}
.type-ride { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.type-funk { background: rgba(255, 152, 0, 0.2); color: var(--primary); }
.type-crew { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }

/* Tour DB Styles */
.tour-db-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tour-db-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

/* Private Chats / Inbox */
.inbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.inbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.2s ease;
}
.inbox-item:hover {
    background: rgba(255, 255, 255, 0.08);
}
.inbox-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #333;
}
.inbox-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.inbox-name {
    font-weight: bold;
    font-size: 14px;
}
.inbox-msg {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}
.inbox-time {
    font-size: 10px;
    color: var(--text-muted);
}
.inbox-unread {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

/* Chat Bubbles (Private) */
.private-chat-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding-bottom: 20px;
}
.bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
    position: relative;
    word-wrap: break-word;
}
.bubble-self {
    align-self: flex-end;
    background: var(--primary);
    color: var(--bg-main);
    border-bottom-right-radius: 4px;
}
.bubble-other {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}
.bubble-time {
    display: block;
    font-size: 9px;
    margin-top: 4px;
    opacity: 0.7;
    text-align: right;
}



.nav-badge { position: absolute; top: 4px; right: 25%; background: var(--danger); color: white; border-radius: 50%; font-size: 10px; min-width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; font-weight: bold; pointer-events: none; border: 2px solid var(--surface); transform: translateX(50%); z-index: 10; } .nav-item { position: relative; }


.hazard-report-menu { z-index: 1000 !important; }


/* Waypoints */
.marker-start, .marker-end { width: 18px; height: 18px; border: 3px solid white; border-radius: 50%; box-shadow: 0 0 6px rgba(0,0,0,0.8); z-index: 1000 !important; position: absolute; }
.marker-start { background-color: #10b981; }
.marker-end { background-color: #ef4444; }


/* --- POI & User Discovery Layers & Controls --- */
.map-layer-toggle {
    transition: all 0.2s ease;
}
.map-layer-toggle label {
    user-select: none;
    transition: color 0.15s ease;
}
.map-layer-toggle label:hover {
    color: var(--primary);
}

/* User marker styled differently from default */
.user-marker {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    background-color: #2563eb;
    position: relative;
}
.user-marker::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    pointer-events: none;
}

/* Map Markers for Users and POIs */
.biker-map-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    position: relative;
    cursor: pointer;
    box-sizing: border-box;
}
.biker-map-marker.offline {
    border-color: var(--text-muted);
    filter: grayscale(60%);
}
.biker-map-marker .biker-marker-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid black;
    box-sizing: border-box;
}
.biker-map-marker.online .biker-marker-dot {
    background-color: var(--success);
}
.biker-map-marker.offline .biker-marker-dot {
    background-color: var(--text-muted);
}

/* POI Marker styling */
.poi-marker {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-sizing: border-box;
}
.poi-marker:hover {
    transform: scale(1.15);
}
.poi-marker.bikertreff { background-color: #ff9800; }
.poi-marker.sightseeing { background-color: #9c27b0; }
.poi-marker.viewpoint { background-color: #4caf50; }
.poi-marker.route { background-color: #03a9f4; }
.poi-marker.cafe { background-color: #e91e63; }
.poi-marker.gas_station { background-color: #607d8b; }

/* Custom Context Menu */
.map-context-menu {
    background: var(--bg-panel);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 140px;
}
.map-context-item {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}
.map-context-item:hover {
    background: rgba(255,255,255,0.06);
    color: var(--primary);
}

/* POI Image Gallery styles */
.poi-gallery img {
    height: 80px;
    width: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
    transition: transform 0.15s ease;
    cursor: zoom-in;
    flex-shrink: 0;
}
.poi-gallery img:hover {
    transform: scale(1.04);
}

/* Rating Star selection styles */
.star-rating .star {
    transition: color 0.15s ease;
}
.star-rating .star.active {
    color: var(--primary) !important;
}

/* Entdecken Panel Styles */
.discover-tab-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}
.discover-tab-content.hidden {
    display: none !important;
}

/* Banner für Kartenauswahl */
.map-selection-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 18, 24, 0.9);
    border: 1px solid var(--primary);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 13.5px;
    font-weight: 600;
    z-index: 11000;
    text-align: center;
    pointer-events: none;
    animation: slideDownIn 0.3s ease-out;
}

@keyframes slideDownIn {
    from {
        top: -50px;
        opacity: 0;
    }
    to {
        top: 20px;
        opacity: 1;
    }
}

/* Offline-Banner & Glassmorphism Modals */
.offline-banner {
    position: fixed;
    top: 75px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 152, 0, 0.2);
    border: 1px solid rgba(255, 152, 0, 0.4);
    color: #ffb74d;
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: opacity 0.3s ease, top 0.3s ease;
}
.offline-banner.hidden {
    display: none !important;
}

.modal-content.glass {
    background: rgba(20, 20, 25, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid var(--border-glass);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.7);
}

/* ============================================================================
   HUD & GAMIFICATION ADDITIONS (V9)
   ============================================================================ */

.dashboard-drag-handle {
    width: 40px;
    height: 5px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    margin: 8px auto;
    cursor: grab;
    display: none; /* Nur mobil sichtbar */
}

/* HUD Modus Dashboard-Transparenz */
.dashboard.hud-active {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
}
.dashboard.hud-active .app-header,
.dashboard.hud-active .dashboard-nav,
.dashboard.hud-active #global-filter-bar {
    display: none !important;
}

#panel-hud {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    padding: 20px;
    background: rgba(15, 23, 42, 0.45); /* Dim and contrast overlay */
    backdrop-filter: contrast(1.3) brightness(0.85);
    -webkit-backdrop-filter: contrast(1.3) brightness(0.85);
    color: #fff;
    box-sizing: border-box;
}
#panel-hud.active {
    display: flex !important;
}

/* Map dimmed state when HUD is active */
.hud-map-dimmed {
    filter: brightness(0.6) contrast(1.2);
}

.hud-warning-zone {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    color: #fff;
    padding: 15px;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    border-radius: var(--radius-md);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
    animation: pulseWarning 1s infinite alternate;
    margin-bottom: 10px;
}

@keyframes pulseWarning {
    0% { transform: scale(1); opacity: 0.9; }
    100% { transform: scale(1.03); opacity: 1; }
}

.hud-main-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    margin: 20px 0;
}

.hud-speed-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.hud-speed-value {
    font-size: 110px;
    font-weight: 900;
    line-height: 1;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.hud-speed-unit {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.hud-side-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 140px;
}

.hud-compass-wrapper {
    background: rgba(0,0,0,0.3);
    border-radius: 50%;
    padding: 5px;
    border: 1px solid var(--border-glass);
}

.hud-leader-box {
    text-align: center;
    background: rgba(0,0,0,0.3);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
    width: 100%;
}

.hud-label {
    font-size: 10px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 2px;
}

.hud-value {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.hud-actions-grid {
    display: flex;
    gap: 15px;
}

.btn-hud-tile {
    flex: 1;
    min-height: 75px;
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-main);
    transition: transform 0.1s;
}

.btn-hud-tile:active {
    transform: scale(0.95);
}

.btn-hud-warn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.btn-hud-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Fullscreen overlays inside HUD */
.hud-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.hud-overlay-content {
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 25px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.hud-overlay-content h3 {
    margin-bottom: 20px;
    font-size: 22px;
    color: white;
}

.hud-hazard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.hud-hazard-grid .btn-hud-tile {
    min-height: 65px;
    font-size: 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
}

.hud-hazard-grid .btn-hud-tile:hover {
    background: rgba(255,255,255,0.1);
}

/* Trophy animation */
@keyframes trophyBounce {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-10px) scale(1.1); }
}

/* Tab Segmented Control */
.tab-control {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    padding: 4px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--bg-panel);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-glass);
}

/* Pulsierender Highlight-Marker für angeklickte POIs */
.poi-highlight-marker {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 500;
}

.poi-highlight-dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
    z-index: 2;
}

.poi-highlight-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: 50%;
    animation: poiPulseHighlight 1.5s infinite ease-out;
    opacity: 0;
    z-index: 1;
}

@keyframes poiPulseHighlight {
    0% {
        transform: scale(0.2);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ============================================================================
   MOBILE UI/UX OPTIMISIERUNGEN (BOTTOM SHEET & FLIEGENDE CONTROLS)
   ============================================================================ */
/* Sanfte Animationen für das Auf- und Zuklappen des Dashboards */
.dashboard {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease, 
                height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Zieh-Griff (Drag Handle) für Mobilgeräte */
.dashboard-drag-handle {
    display: none;
    width: 40px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    margin: 8px auto 0 auto;
    cursor: pointer;
    z-index: 101;
    transition: background 0.2s;
    flex-shrink: 0;
}
.dashboard-drag-handle:hover {
    background: rgba(255, 255, 255, 0.4);
}
/* Karten-Ebenen-Button & -Menü */
.map-btn-layers {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-main);
    z-index: 500;
    transition: transform 0.2s ease, background 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.map-btn-layers:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}
.map-layers-menu {
    position: absolute;
    top: 74px;
    right: 20px;
    width: 200px;
    background: var(--bg-panel);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-main);
    padding: 14px;
    z-index: 500;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.2s ease-out;
}
/* Kachelelemente Hover Effekte */
.more-grid-btn:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary-glow) !important;
    transform: translateY(-2px);
}
/* Responsives Layout für Smartphones bis 576px */
@media (max-width: 576px) {
    .dashboard-drag-handle {
        display: block;
    }
    
    .dashboard {
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-height: 45vh !important;
        height: auto !important;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
        border: 1px solid var(--border-glass) !important;
        border-bottom: none !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
    }
    
    /* Eingeklapptes Dashboard */
    .dashboard.collapsed {
        height: 64px !important;
        max-height: 64px !important;
        overflow: hidden !important;
    }
    
    .dashboard.collapsed .panel {
        display: none !important;
    }
    
    .dashboard.collapsed .app-header {
        border-bottom: none !important;
    }
    
    /* Vollbild-Dashboard für Menüs */
    .dashboard.expanded {
        height: 100vh !important;
        max-height: 100vh !important;
        top: 0 !important;
        border-radius: 0 !important;
    }
    /* Verschlankte Navigationsleiste auf iOS/Android Safe Areas anpassen */
    .dashboard-nav {
        padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
        min-height: calc(62px + env(safe-area-inset-bottom)) !important;
    }
    /* Schwebende Buttons dynamisch über dem Bottom-Sheet platzieren */
    .map-btn-recenter {
        bottom: calc(45vh + 20px) !important;
        right: 16px !important;
        transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .btn-report-hazard {
        bottom: calc(45vh + 80px) !important;
        right: 16px !important;
        transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    /* Wenn das Dashboard eingeklappt ist, rutschen die Tasten nach unten */
    body:has(.dashboard.collapsed) .map-btn-recenter {
        bottom: 84px !important;
    }
    
    body:has(.dashboard.collapsed) .btn-report-hazard {
        bottom: 144px !important;
    }
}
/* Intelligentes Verstecken der Karten-Steuerelemente im Vollbildmodus */
body:has(.dashboard.expanded) .map-style-toggle,
body:has(.dashboard.expanded) .map-layer-toggle,
body:has(.dashboard.expanded) .map-btn-layers,
body:has(.dashboard.expanded) .map-layers-menu,
body:has(.dashboard.expanded) .map-btn-recenter,
body:has(.dashboard.dashboard-fullscreen) .map-style-toggle,
body:has(.dashboard.dashboard-fullscreen) .map-layer-toggle,
body:has(.dashboard.dashboard-fullscreen) .map-btn-layers,
body:has(.dashboard.dashboard-fullscreen) .map-layers-menu,
body:has(.dashboard.dashboard-fullscreen) .map-btn-recenter {
    display: none !important;
}

/* --- PRELOADER SYSTEM --- */
.preloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0c0c0e;
    z-index: 999999; /* Maximaler z-index, um alles zu überlagern */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), 
                visibility 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 1;
    visibility: visible;
}
.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}
.loader-wrapper {
    position: relative;
    width: 130px;
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* Pulsierendes Logo in der Mitte */
.loader-logo {
    color: var(--primary, #ff9800);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: logo-pulse 2s infinite ease-in-out;
}
.loader-logo svg {
    filter: drop-shadow(0 0 10px rgba(255, 152, 0, 0.4));
}
/* Rotierendes Neon-Lichtband */
.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.03);
    border-top: 3px solid var(--primary, #ff9800);
    border-radius: 50%;
    animation: spin-glow 1.4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}
/* Ladetext unter dem Spinner */
.loader-status {
    font-family: var(--font-header, 'Outfit', sans-serif);
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-secondary, #9ca3af);
    letter-spacing: 0.5px;
    min-height: 24px;
    text-align: center;
    transition: opacity 0.2s ease-in-out;
    opacity: 1;
}
/* --- ANIMATIONS --- */
@keyframes spin-glow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@keyframes logo-pulse {
    0%, 100% {
        transform: scale(0.96);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.04);
        opacity: 1;
        filter: drop-shadow(0 0 18px rgba(255, 152, 0, 0.6));
    }
}

/* Support & Ticketsystem Styles */
.support-ticket-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 15px;
    box-shadow: var(--shadow-main);
}
.ticket-status-open {
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid var(--danger);
}
.ticket-status-answered {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid var(--success);
}
.ticket-status-closed {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
}
.ticket-reply-textarea {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 10px;
    font-size: 13px;
    transition: border-color 0.2s;
}
.ticket-reply-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* ============================================================================
   MARKETPLACE, EVENTS & BIKERHILFE STYLING
   ============================================================================ */

/* Marketplace Cards */
.marketplace-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.marketplace-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-glow);
}

.marketplace-card-img-wrapper {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.marketplace-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.marketplace-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.marketplace-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.marketplace-card-title {
    font-family: var(--font-header);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.marketplace-card-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.marketplace-card-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.marketplace-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10.5px;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.02);
    padding-top: 6px;
    margin-top: 4px;
}

.marketplace-card-badge {
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    font-size: 9.5px;
}

/* Event List Styling */
.event-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid var(--border-glass);
}

.event-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-glow);
}

.event-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.event-card-title {
    font-family: var(--font-header);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.event-card-type-badge {
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.event-type-stammtisch { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid #60a5fa; }
.event-type-treffen { background: rgba(245, 158, 11, 0.15); color: var(--primary); border: 1px solid var(--primary); }
.event-type-messe { background: rgba(139, 92, 246, 0.15); color: #a78bfa; border: 1px solid #a78bfa; }
.event-type-party { background: rgba(239, 68, 68, 0.15); color: var(--danger); border: 1px solid var(--danger); }

.event-card-desc {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin: 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.02);
}

.event-card-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Bikerhilfe Hold Button */
.btn-bikerhilfe-hold {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, #b91c1c 0%, #7f1d1d 100%);
    border: 4px solid rgba(239, 68, 68, 0.3);
    color: white;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    outline: none;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.1s ease, box-shadow 0.2s;
    padding: 0;
}

.btn-bikerhilfe-hold:active {
    transform: scale(0.95);
    box-shadow: 0 0 35px rgba(239, 68, 68, 0.7);
}

.progress-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    pointer-events: none;
}

.progress-ring__circle {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.progress-ring__circle-progress {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    stroke-dasharray: 314.16;
    stroke-dashoffset: 314.16;
    transition: stroke-dashoffset 0.1s linear;
}

.btn-hold-text {
    font-family: var(--font-header);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.matching-tab-content {
    animation: fadeIn 0.25s ease-out;
}

.bikerhilfe-alert-item {
    border: 1px solid var(--danger) !important;
    background: rgba(239, 68, 68, 0.05) !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.15) !important;
    animation: pulseBikerhilfe 2s infinite ease-in-out;
}

@keyframes pulseBikerhilfe {
    0%, 100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.15); }
    50% { box-shadow: 0 0 22px rgba(239, 68, 68, 0.4); border-color: rgba(239, 68, 68, 0.6) !important; }
}

/* Previews in Create Inserat */
.img-upload-preview {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
    overflow: hidden;
}

.img-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-upload-preview-delete {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
}

/* ============================================================================
   USABILITY BLUEPRINT ADDITIONS (V10)
   ============================================================================ */

/* 1. Daylight Contrast & Dark HUD modes */
#panel-hud {
    background: #000000 !important;
    color: #10b981 !important;
    position: relative;
}
#panel-hud .hud-speed-value {
    color: #10b981 !important;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.3) !important;
}
#panel-hud .hud-speed-unit {
    color: #10b981 !important;
}
#panel-hud .hud-value {
    color: #10b981 !important;
}
#panel-hud .hud-label {
    color: #0d9488 !important;
}
#panel-hud .hud-compass-wrapper,
#panel-hud .hud-leader-box,
#panel-hud .hud-nav-instruction,
#panel-hud .hud-junction-popup-box {
    background: rgba(0, 0, 0, 0.6) !important;
    border-color: #10b981 !important;
}
#panel-hud svg#hud-compass circle {
    stroke: rgba(16, 185, 129, 0.3) !important;
}
#panel-hud svg#hud-compass text {
    fill: #10b981 !important;
}
#panel-hud svg#hud-compass polygon[fill="rgba(255,255,255,0.6)"] {
    fill: rgba(16, 185, 129, 0.6) !important;
}
#panel-hud svg#hud-compass circle[fill="#fff"] {
    fill: #10b981 !important;
}
#panel-hud .btn-hud-control {
    background: rgba(0, 0, 0, 0.6) !important;
    border-color: #10b981 !important;
    color: #10b981 !important;
}

/* Daylight High-Contrast Mode */
#panel-hud.daylight-contrast {
    background: #ffffff !important;
    color: #000000 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
#panel-hud.daylight-contrast .hud-speed-value {
    color: #000000 !important;
    text-shadow: none !important;
}
#panel-hud.daylight-contrast .hud-speed-unit {
    color: #333333 !important;
}
#panel-hud.daylight-contrast .hud-value {
    color: #000000 !important;
}
#panel-hud.daylight-contrast .hud-label {
    color: #4b5563 !important;
}
#panel-hud.daylight-contrast .hud-compass-wrapper,
#panel-hud.daylight-contrast .hud-leader-box,
#panel-hud.daylight-contrast .hud-nav-instruction,
#panel-hud.daylight-contrast .hud-junction-popup-box {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
}
#panel-hud.daylight-contrast svg#hud-compass circle {
    stroke: rgba(0, 0, 0, 0.2) !important;
}
#panel-hud.daylight-contrast svg#hud-compass text {
    fill: #000000 !important;
}
#panel-hud.daylight-contrast svg#hud-compass polygon[fill="rgba(255,255,255,0.6)"] {
    fill: rgba(0, 0, 0, 0.4) !important;
}
#panel-hud.daylight-contrast svg#hud-compass circle[fill="#fff"] {
    fill: #000000 !important;
}
#panel-hud.daylight-contrast .btn-hud-control {
    background: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
    color: #000000 !important;
}

/* 2. Turn-by-Turn junction drawings inside SVG */
svg#hud-junction-svg path.inactive-road {
    stroke: #4b5563;
    stroke-width: 8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
svg#hud-junction-svg path.active-route {
    stroke: #10b981;
    stroke-width: 14;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
#panel-hud.daylight-contrast svg#hud-junction-svg path.active-route {
    stroke: #000000 !important;
}
#panel-hud.daylight-contrast svg#hud-junction-svg path.inactive-road {
    stroke: #9ca3af !important;
}

/* 3. Sensoric Rerouting pulsate keyframe */
.hud-nav-rerouting {
    color: #f59e0b !important;
    animation: reroutingPulse 0.5s infinite alternate !important;
}
@keyframes reroutingPulse {
    0% {
        transform: scale(1);
        color: #f59e0b;
        text-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
    }
    100% {
        transform: scale(1.1);
        color: #3b82f6;
        text-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
    }
}

/* 4. GPX Recording Pulsing Dot */
.recording-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 8px #ef4444;
    animation: recordingPulse 1.2s infinite ease-in-out;
    display: inline-block;
}
@keyframes recordingPulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}



