/* ===== Variables ===== */
:root {
    --bg-dark: #0D0D14;
    --bg-card: #1A1A2E;
    --bg-elevated: #16213E;
    --accent: #00D9FF;
    --accent-dark: #0099CC;
    --success: #00C853;
    --error: #FF5252;
    --warning: #FFB300;
    --text: #FFFFFF;
    --text-muted: #A0AEC0;
    --text-dim: #718096;
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #0d0d14 100%);
    min-height: 100vh;
    color: var(--text);
}

/* ===== Layout ===== */
.prototype-container {
    display: flex;
    min-height: 100vh;
    padding: 20px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

/* ===== Navigation Panel ===== */
.nav-panel {
    width: 280px;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    flex-shrink: 0;
    position: sticky;
    top: 20px;
}

.nav-header {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.nav-logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.5));
}

.nav-logo svg {
    width: 100%;
    height: 100%;
}

.nav-header h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.nav-header p {
    font-size: 12px;
    color: var(--text-muted);
}

.nav-screens {
    flex: 1;
}

.nav-screens h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.screen-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    margin-bottom: 8px;
}

.screen-btn:hover {
    background: rgba(0, 217, 255, 0.05);
    border-color: rgba(0, 217, 255, 0.2);
}

.screen-btn.active {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--accent);
}

.screen-icon {
    width: 36px;
    height: 36px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.screen-icon svg {
    width: 18px;
    height: 18px;
}

.screen-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.screen-desc {
    display: block;
    font-size: 11px;
    color: var(--text-dim);
}

.nav-footer {
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.back-link {
    display: block;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

/* ===== Phone Wrapper ===== */
.phone-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.current-screen-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 16px;
    padding: 8px 20px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 100px;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.phone-frame {
    width: 375px;
    height: 780px;
    background: linear-gradient(145deg, #2D2D3A 0%, #1A1A2E 100%);
    border-radius: 50px;
    padding: 12px;
    position: relative;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 50px 100px rgba(0, 0, 0, 0.5);
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 100;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}

/* ===== Screens Base ===== */
.screen {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.screen.active {
    opacity: 1;
    visibility: visible;
}

/* ===== Splash Screen ===== */
.splash-screen {
    background: linear-gradient(180deg, #0D0D14 0%, #1A1A2E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.splash-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.3) 0%, transparent 70%);
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

.circuit-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: circuit-move 20s linear infinite;
}

@keyframes circuit-move {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 30px 30px;
    }
}

.splash-content {
    position: relative;
    text-align: center;
    z-index: 10;
}

.splash-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    animation: logo-float 3s ease-in-out infinite;
}

.splash-logo svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px rgba(0, 217, 255, 0.6));
}

.logo-ring {
    stroke-dasharray: 220;
    stroke-dashoffset: 220;
    animation: ring-draw 2s ease forwards;
}

@keyframes ring-draw {
    to {
        stroke-dashoffset: 0;
    }
}

.bolt {
    opacity: 0;
    animation: bolt-appear 0.5s ease forwards 1s;
}

@keyframes bolt-appear {
    to {
        opacity: 1;
    }
}

@keyframes logo-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.splash-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.splash-tagline {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.splash-loader {
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0 auto 16px;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), #00FFE0);
    border-radius: 4px;
    animation: load 3s ease infinite;
}

@keyframes load {
    0% {
        width: 0;
    }

    50%,
    100% {
        width: 100%;
    }
}

.splash-status {
    font-size: 11px;
    color: var(--text-dim);
}

/* ===== HOME SCREEN ===== */
.home-screen {
    background: var(--bg-dark);
}

.status-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50;
}

.time {
    font-size: 14px;
    font-weight: 600;
}

.status-icons {
    display: flex;
    gap: 6px;
}

.signal,
.battery {
    display: block;
    width: 20px;
    height: 12px;
    background: var(--text);
    border-radius: 2px;
}

.search-bar {
    position: absolute;
    top: 50px;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 16px;
    z-index: 50;
}

.search-bar svg {
    width: 18px;
    height: 18px;
    color: var(--text-dim);
    flex-shrink: 0;
}

.search-bar input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text);
    font-size: 14px;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-dim);
}

/* Map View - Fixed Alignment */
.map-view {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    bottom: 200px;
    background: linear-gradient(180deg, #0a1628 0%, #0d1f38 100%);
    overflow: hidden;
}

.map-bg {
    position: absolute;
    inset: 0;
}

.map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

.map-roads {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.06) 49%, rgba(255, 255, 255, 0.06) 51%, transparent 52%),
        linear-gradient(0deg, transparent 48%, rgba(255, 255, 255, 0.06) 49%, rgba(255, 255, 255, 0.06) 51%, transparent 52%);
    background-size: 100px 100px;
}

.map-marker {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.map-marker:hover {
    transform: rotate(-45deg) scale(1.15);
}

.map-marker svg {
    width: 14px;
    height: 14px;
    transform: rotate(45deg);
    color: white;
}

.map-marker.available {
    background: var(--success);
    box-shadow: 0 3px 12px rgba(0, 200, 83, 0.5);
}

.map-marker.busy {
    background: var(--error);
    box-shadow: 0 3px 12px rgba(255, 82, 82, 0.5);
}

.marker-1 {
    top: 25%;
    left: 35%;
}

.marker-2 {
    top: 45%;
    left: 60%;
}

.marker-3 {
    top: 65%;
    left: 25%;
}

.marker-4 {
    top: 20%;
    left: 65%;
}

.user-location {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.location-dot {
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 15px var(--accent);
}

.location-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 35px;
    height: 35px;
    background: rgba(0, 217, 255, 0.25);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.location-btn {
    position: absolute;
    bottom: 215px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 40;
}

.location-btn svg {
    width: 20px;
    height: 20px;
}

.filter-btn {
    position: absolute;
    bottom: 215px;
    left: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    z-index: 40;
}

.filter-btn svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

/* Bottom Sheet */
.bottom-sheet {
    position: absolute;
    bottom: 70px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: 20px 20px 0 0;
    padding: 12px 16px 16px;
    z-index: 30;
}

.sheet-handle {
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 0 auto 12px;
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.sheet-header h2 {
    font-size: 15px;
    font-weight: 600;
}

.sheet-header span {
    font-size: 11px;
    color: var(--text-dim);
}

.stations-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 110px;
    overflow-y: auto;
}

.station-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.station-card:hover {
    border-color: var(--accent);
    transform: translateX(3px);
}

.station-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.station-icon.available {
    background: rgba(0, 200, 83, 0.15);
    color: var(--success);
}

.station-icon.busy {
    background: rgba(255, 82, 82, 0.15);
    color: var(--error);
}

.station-icon svg {
    width: 18px;
    height: 18px;
}

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

.station-info h3 {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.station-info p {
    font-size: 10px;
    color: var(--text-dim);
}

.station-status {
    text-align: right;
}

.badge {
    font-size: 9px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.badge.available {
    background: rgba(0, 200, 83, 0.15);
    color: var(--success);
}

.badge.busy {
    background: rgba(255, 82, 82, 0.15);
    color: var(--error);
}

/* Bottom Nav */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 10px;
    z-index: 50;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    padding: 6px;
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

.nav-item span {
    font-size: 9px;
}

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

/* ===== DETAILS SCREEN ===== */
.details-screen {
    background: var(--bg-dark);
}

.details-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 50;
    background: linear-gradient(180deg, var(--bg-dark) 0%, transparent 100%);
}

.back-btn,
.fav-btn,
.close-btn {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 10px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.back-btn svg,
.fav-btn svg,
.close-btn svg {
    width: 18px;
    height: 18px;
}

.details-header h1 {
    font-size: 15px;
    font-weight: 600;
}

.details-content {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    padding-bottom: 80px;
}

.station-hero {
    height: 160px;
    background: linear-gradient(135deg, #16213E 0%, #1A1A2E 100%);
    position: relative;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="60" x="50" text-anchor="middle" fill="%23ffffff08" font-size="50">EV</text></svg>') center/80px no-repeat;
}

.open-badge {
    position: absolute;
    top: 55px;
    right: 16px;
    background: rgba(0, 200, 83, 0.2);
    color: var(--success);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
}

.station-title {
    padding: 16px 16px 0;
}

.station-title h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.address {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.address svg {
    color: var(--accent);
    width: 12px;
    height: 12px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.stars {
    background: var(--warning);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
}

.reviews {
    color: var(--text-dim);
}

.section {
    padding: 16px;
}

.section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.section-desc {
    font-size: 10px;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.charger-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.charger-slot {
    aspect-ratio: 1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.charger-slot:hover {
    transform: scale(1.05);
}

.charger-slot.available {
    background: rgba(0, 200, 83, 0.15);
    border: 2px solid var(--success);
}

.charger-slot.busy {
    background: rgba(255, 82, 82, 0.15);
    border: 2px solid var(--error);
}

.charger-slot.reserved {
    background: rgba(255, 179, 0, 0.15);
    border: 2px solid var(--warning);
}

.slot-num {
    font-size: 16px;
    font-weight: 700;
}

.slot-status {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.charger-slot.available .slot-status {
    color: var(--success);
}

.charger-slot.busy .slot-status {
    color: var(--error);
}

.charger-slot.reserved .slot-status {
    color: var(--warning);
}

.legend {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    font-size: 10px;
    color: var(--text-dim);
}

.legend span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.dot.green {
    background: var(--success);
}

.dot.red {
    background: var(--error);
}

.dot.yellow {
    background: var(--warning);
}

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

.spec {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.spec-icon {
    width: 32px;
    height: 32px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: var(--accent);
}

.spec-icon svg {
    width: 16px;
    height: 16px;
}

.spec-value {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.spec-label {
    display: block;
    font-size: 9px;
    color: var(--text-dim);
}

.action-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, var(--bg-dark) 30%);
    display: flex;
    gap: 10px;
}

.btn-primary,
.btn-secondary {
    flex: 1;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-primary svg,
.btn-secondary svg {
    width: 16px;
    height: 16px;
}

.btn-primary.full {
    width: 100%;
}

/* ===== FILTER SCREEN ===== */
.filter-screen {
    background: var(--bg-dark);
}

.filter-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    z-index: 50;
}

.filter-header h1 {
    font-size: 15px;
    font-weight: 600;
}

.reset-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.filter-content {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 70px;
    overflow-y: auto;
    padding: 16px;
}

.filter-section {
    margin-bottom: 24px;
}

.filter-section h3 {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 8px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.chip:hover {
    border-color: var(--accent);
    color: var(--text);
}

.chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-dark);
}

.slider-wrap {
    padding: 0 8px;
}

.slider {
    width: 100%;
    height: 4px;
    background: var(--bg-elevated);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 10px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-dim);
}

.slider-labels .value {
    color: var(--accent);
    font-weight: 600;
}

.speed-cards {
    display: flex;
    gap: 8px;
}

.speed-card {
    flex: 1;
    padding: 14px 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.speed-card:hover {
    border-color: var(--accent);
}

.speed-card.active {
    border-color: var(--accent);
    background: rgba(0, 217, 255, 0.1);
}

.speed-card svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.speed-card span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    margin-top: 6px;
}

.speed-card small {
    display: block;
    font-size: 9px;
    color: var(--text-dim);
    margin-top: 2px;
}

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

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}

.toggle-row span:first-child {
    font-size: 13px;
}

.toggle-row input {
    display: none;
}

.toggle {
    width: 40px;
    height: 24px;
    background: var(--bg-card);
    border-radius: 12px;
    position: relative;
    transition: all 0.3s;
}

.toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-row input:checked+.toggle {
    background: var(--accent);
}

.toggle-row input:checked+.toggle::before {
    transform: translateX(16px);
}

.filter-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 16px;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
}

/* ===== NAVIGATION SCREEN ===== */
.navigation-screen {
    background: var(--bg-dark);
}

.nav-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 50;
    background: linear-gradient(180deg, var(--bg-dark) 60%, transparent 100%);
}

.eta-badge {
    background: var(--accent);
    color: var(--bg-dark);
    padding: 6px 14px;
    border-radius: 10px;
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.eta-num {
    font-size: 20px;
    font-weight: 700;
}

.eta-unit {
    font-size: 10px;
    font-weight: 600;
}

.route-info {
    display: flex;
    flex-direction: column;
}

.distance {
    font-size: 14px;
    font-weight: 600;
}

.arrival {
    font-size: 10px;
    color: var(--text-dim);
}

.nav-map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #0a1628 0%, #0d1f38 100%);
    overflow: hidden;
}

.nav-map .map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.route-line {
    position: absolute;
    top: 25%;
    left: 25%;
    width: 180px;
    height: 120px;
    border: 3px solid var(--accent);
    border-radius: 80px 0 0 0;
    border-right: none;
    border-bottom: none;
    opacity: 0.7;
}

.destination-marker {
    position: absolute;
    top: 22%;
    right: 28%;
    width: 36px;
    height: 36px;
    background: var(--success);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.5);
    animation: marker-pulse 2s ease-in-out infinite;
}

.destination-marker svg {
    width: 16px;
    height: 16px;
    transform: rotate(45deg);
    color: white;
}

@keyframes marker-pulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(0, 200, 83, 0.5);
    }

    50% {
        box-shadow: 0 4px 30px rgba(0, 200, 83, 0.8);
    }
}

.car-marker {
    position: absolute;
    bottom: 38%;
    left: 32%;
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-dark);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.5);
}

.car-marker svg {
    width: 14px;
    height: 14px;
}

.nav-instruction {
    position: absolute;
    bottom: 90px;
    left: 16px;
    right: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 50;
}

.instruction-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.instruction-icon svg {
    width: 20px;
    height: 20px;
}

.instruction-text {
    display: flex;
    flex-direction: column;
}

.direction {
    font-size: 16px;
    font-weight: 700;
}

.action {
    font-size: 12px;
    color: var(--text-muted);
}

.nav-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 50;
}

.dest-info h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
}

.live-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: var(--success);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.end-btn {
    background: var(--error);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* ===== ADMIN DASHBOARD ===== */
.admin-screen {
    background: var(--bg-dark);
}

.admin-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border);
    z-index: 50;
}

.admin-header h1 {
    font-size: 15px;
    font-weight: 700;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.admin-avatar {
    width: 28px;
    height: 28px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--bg-dark);
}

.admin-content {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 14px;
}

.stats-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.stat-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-card.highlight {
    border-color: rgba(0, 200, 83, 0.3);
    background: rgba(0, 200, 83, 0.05);
}

.stat-card.alert {
    border-color: rgba(255, 82, 82, 0.3);
    background: rgba(255, 82, 82, 0.05);
}

.admin-screen .stat-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    max-width: 36px;
    min-height: 36px;
    max-height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.admin-screen .stat-icon.stations {
    background: rgba(0, 217, 255, 0.15);
    color: var(--accent);
}

.admin-screen .stat-icon.chargers {
    background: rgba(168, 85, 247, 0.15);
    color: #A855F7;
}

.admin-screen .stat-icon.available {
    background: rgba(0, 200, 83, 0.15);
    color: var(--success);
}

.admin-screen .stat-icon.busy {
    background: rgba(255, 82, 82, 0.15);
    color: var(--error);
}

.admin-screen .stat-icon svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px;
    max-height: 18px;
}

.stat-data {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 2px;
}

.admin-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
}

.admin-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.admin-section h3 {
    font-size: 12px;
    font-weight: 600;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 600;
    color: var(--success);
    background: rgba(0, 200, 83, 0.15);
    padding: 3px 8px;
    border-radius: 100px;
}

.live-dot {
    width: 5px;
    height: 5px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.add-btn {
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.sensor-feed {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sensor-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-elevated);
    border-radius: 8px;
}

.sensor-station {
    flex: 1;
    font-size: 11px;
    font-weight: 500;
}

.sensor-status {
    font-size: 9px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.sensor-status.available {
    background: rgba(0, 200, 83, 0.15);
    color: var(--success);
}

.sensor-status.busy {
    background: rgba(255, 82, 82, 0.15);
    color: var(--error);
}

.sensor-time {
    font-size: 9px;
    color: var(--text-dim);
    min-width: 20px;
    text-align: right;
}

.station-list-admin {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-station {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s;
}

.admin-station:hover {
    border-color: var(--accent);
}

.station-icon-sm {
    width: 28px;
    height: 28px;
    min-width: 28px;
    max-width: 28px;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    overflow: hidden;
}

.station-icon-sm svg {
    width: 14px !important;
    height: 14px !important;
}

.station-data {
    flex: 1;
    min-width: 0;
}

.station-data .station-name {
    display: block;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.station-data .station-loc {
    display: block;
    font-size: 9px;
    color: var(--text-dim);
}

.station-chargers {
    font-size: 11px;
    color: var(--text-muted);
    text-align: right;
    min-width: 30px;
}

.station-chargers .online {
    color: var(--success);
    font-weight: 600;
}

.station-chargers .online.warning {
    color: var(--error);
}

.edit-btn {
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.edit-btn svg {
    width: 12px;
    height: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .prototype-container {
        flex-direction: column;
        align-items: center;
    }

    .nav-panel {
        width: 100%;
        max-width: 500px;
        order: 2;
        margin-top: 20px;
        position: static;
    }

    .nav-screens {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .screen-btn {
        flex: 1 1 calc(50% - 4px);
        min-width: 140px;
    }
}

@media (max-width: 420px) {
    body {
        padding: 10px;
    }

    .phone-frame {
        width: 100%;
        max-width: 375px;
        height: calc(100vh - 180px);
        min-height: 600px;
    }
}