:root {
  --bg: #05070a;
  --panel: #0a0d12;
  --panel2: #10151c;
  --line: rgba(255,255,255,.09);
  --text: #f5f7fa;
  --muted: #7f8996;
  --cyan: #36f5c5;
  --blue: #45a8ff;
  --yellow: #ffd84d;
  --danger: #ff5d65;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button {
  font: inherit;
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -20%, rgba(42,90,110,.20), transparent 45%),
    #05070a;
}

/* TOP */

.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(4,6,9,.94);
  gap: 28px;
}

.brand {
  min-width: 180px;
}

.brand-name {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 9px;
}

.brand-sub {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 3px;
  margin-top: 4px;
}

.top-status {
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 2px;
}

.ready-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  margin-right: 7px;
  box-shadow: 0 0 12px var(--cyan);
}

.range-top {
  margin-left: auto;
  font-size: 20px;
  font-weight: 700;
}

.range-top small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
}

.menu-button {
  border: 0;
  background: transparent;
  font-size: 25px;
  cursor: pointer;
}

/* COCKPIT */

.cockpit {
  min-height: calc(100vh - 190px);
  display: grid;
  grid-template-columns: 25% 50% 25%;
  border-bottom: 1px solid var(--line);
}

.vehicle-zone,
.map-zone,
.info-zone {
  position: relative;
  min-height: 570px;
}

.vehicle-zone {
  padding: 32px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), transparent);
}

.drive-state {
  display: flex;
  align-items: center;
  gap: 25px;
}

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

.rpm span {
  font-size: 8px;
}

.gear {
  font-size: 26px;
  font-weight: 700;
}

.speed-block {
  margin-top: 15px;
}

.speed-block span {
  font-size: clamp(72px, 7vw, 115px);
  font-weight: 300;
  line-height: .9;
}

.speed-block small {
  color: var(--muted);
  font-size: 14px;
}

.ready {
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 2px;
  margin-top: 20px;
}

.ready span {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  margin-right: 7px;
}

.soc-big {
  margin-top: 55px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.soc-ring {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  box-shadow: inset 0 0 25px rgba(54,245,197,.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.soc-ring div {
  font-size: 35px;
  font-weight: 600;
}

.soc-ring small {
  color: var(--muted);
  margin-top: 18px;
}

.soc-label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 2px;
}

.soc-label strong {
  display: block;
  color: var(--text);
  font-size: 20px;
  margin-top: 8px;
}

.vehicle-spec-mini {
  position: absolute;
  bottom: 28px;
  left: 32px;
  right: 32px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
}

.vehicle-spec-mini div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.vehicle-spec-mini small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1px;
}

.vehicle-spec-mini strong {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}

/* MAP */

.map-zone {
  background: #080c10;
}

.map-header {
  height: 68px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: linear-gradient(180deg, rgba(0,0,0,.82), transparent);
}

.eyebrow {
  display: block;
  color: var(--cyan);
  font-size: 8px;
  letter-spacing: 2px;
}

.map-header strong {
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

.map-actions button {
  border: 1px solid var(--line);
  background: rgba(0,0,0,.55);
  padding: 8px 11px;
  border-radius: 8px;
  margin-left: 5px;
}

#map {
  width: 100%;
  height: 100%;
  min-height: 570px;
  filter: grayscale(.65) brightness(.68) contrast(1.1);
}

.route-card {
  position: absolute;
  z-index: 600;
  bottom: 18px;
  left: 18px;
  right: 18px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(5,7,10,.90);
  backdrop-filter: blur(16px);
}

.route-icon {
  color: var(--cyan);
  font-size: 22px;
}

.route-card small {
  display: block;
  color: var(--cyan);
  font-size: 8px;
  letter-spacing: 1px;
}

.route-card strong {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.route-arrow {
  margin-left: auto;
  font-size: 25px;
  color: var(--muted);
}

/* RIGHT */

.info-zone {
  padding: 18px;
  border-left: 1px solid var(--line);
}

.now-playing {
  height: 70px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.music-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #151b24;
  color: var(--cyan);
  font-size: 23px;
}

.now-playing small,
.info-card small {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 1px;
}

.now-playing strong {
  display: block;
  font-size: 11px;
  margin-top: 5px;
}

.info-card {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.card-title {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 2px;
}

.card-title span {
  color: var(--cyan);
  margin-right: 7px;
}

.energy-number {
  margin: 16px 0 5px;
}

.energy-number strong {
  font-size: 45px;
  font-weight: 300;
}

.energy-number span {
  color: var(--muted);
}

.climate {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 18px 0 5px;
}

.climate button {
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.climate strong {
  font-size: 30px;
  font-weight: 300;
}

.charging-main {
  margin: 17px 0 5px;
}

.charging-main strong {
  font-size: 32px;
}

.charging-main span {
  color: var(--muted);
  font-size: 10px;
}

/* VEHICLE NAV */

.vehicle-nav {
  height: 78px;
  display: flex;
  justify-content: center;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  background: #080b0f;
}

.vehicle-nav button {
  width: 105px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  position: relative;
}

.vehicle-nav button span {
  display: block;
  font-size: 21px;
}

.vehicle-nav button small {
  display: block;
  margin-top: 5px;
  font-size: 7px;
  letter-spacing: 1px;
}

.vehicle-nav button.active {
  color: var(--cyan);
}

.vehicle-nav button.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 27px;
  right: 27px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

/* ANDROID DOCK */

.android-dock {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(4,6,8,.98);
}

.android-dock button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #11161d;
  color: #dce4ec;
  cursor: pointer;
  font-size: 14px;
}

.android-dock button:last-child {
  color: var(--cyan);
}

/* SIDE MENU */

.side-menu {
  position: fixed;
  z-index: 2000;
  top: 0;
  right: -380px;
  width: 360px;
  height: 100vh;
  background: #080b0f;
  border-left: 1px solid var(--line);
  transition: right .28s ease;
  padding: 25px;
  overflow-y: auto;
}

.side-menu.open {
  right: 0;
}

.side-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.side-head button {
  background: transparent;
  border: 0;
  font-size: 28px;
}

.side-section {
  margin-top: 25px;
}

.side-section > small {
  color: var(--cyan);
  font-size: 8px;
  letter-spacing: 2px;
}

.side-section button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 8px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.side-footer {
  color: var(--muted);
  font-size: 9px;
  margin-top: 35px;
  line-height: 1.8;
}

.side-footer span {
  color: var(--danger);
}

/* MODAL */

.modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  place-items: center;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(10px);
  padding: 20px;
}

.modal.open {
  display: grid;
}

.modal-inner {
  width: min(850px,100%);
  max-height: 90vh;
  overflow: auto;
  background: #0a0e13;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 15px;
  border: 0;
  background: transparent;
  font-size: 28px;
}

.modal-title span {
  display: block;
  letter-spacing: 8px;
  font-size: 20px;
}

.modal-title strong {
  display: block;
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 2px;
  margin-top: 8px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  margin-top: 30px;
  background: var(--line);
}

.spec-grid div {
  background: #0d1218;
  padding: 18px;
}

.spec-grid small {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.spec-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 14px;
}

.data-note {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
  margin-top: 20px;
}

/* MOBILE */

@media (max-width: 1000px) {

  .cockpit {
    grid-template-columns: 1fr;
  }

  .vehicle-zone,
  .map-zone,
  .info-zone {
    border: 0;
  }

  .vehicle-zone {
    min-height: 430px;
  }

  .map-zone {
    min-height: 480px;
  }

  #map {
    min-height: 480px;
  }

  .info-zone {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 15px;
  }

  .now-playing {
    display: none;
  }

  .spec-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 650px) {

  .topbar {
    padding: 0 15px;
    gap: 12px;
  }

  .brand-name {
    font-size: 17px;
    letter-spacing: 5px;
  }

  .brand-sub,
  .top-status {
    display: none;
  }

  .range-top {
    font-size: 16px;
  }

  .vehicle-nav {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .vehicle-nav button {
    min-width: 88px;
  }

  .info-zone {
    grid-template-columns: 1fr;
  }

  .side-menu {
    width: 100%;
    right: -100%;
  }
}
/* =====================================================
   EVZOOM OS — CARPLAYAIR / ANDROID BOX FULLSCREEN MODE
   Mevcut PyMind servislerine dokunmaz
   ===================================================== */

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.app-shell {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

/* Tarayıcı ekranında mümkün olan alanı kullan */
.topbar {
  height: clamp(42px, 7vh, 68px);
  padding: 0 clamp(14px, 2vw, 28px);
}

.brand-name {
  font-size: clamp(14px, 1.8vw, 23px);
}

.cockpit {
  height: calc(100vh - 130px);
  min-height: 0;
  grid-template-columns: 23% 52% 25%;
}

.vehicle-zone,
.map-zone,
.info-zone {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

/* SOL ARAÇ PANELİ */

.vehicle-zone {
  padding: clamp(14px, 2vw, 28px);
}

.speed-block span {
  font-size: clamp(56px, 8vw, 105px);
}

.soc-big {
  margin-top: clamp(22px, 5vh, 55px);
}

.soc-ring {
  width: clamp(78px, 8vw, 105px);
  height: clamp(78px, 8vw, 105px);
}

.vehicle-spec-mini {
  bottom: clamp(12px, 2vh, 28px);
  left: clamp(14px, 2vw, 28px);
  right: clamp(14px, 2vw, 28px);
}

/* ORTA HARİTA */

.map-zone {
  min-height: 0;
}

#map {
  height: 100%;
  min-height: 0;
}

/* SAĞ PANEL */

.info-zone {
  padding: clamp(12px, 1.5vw, 18px);
}

.now-playing {
  height: clamp(48px, 8vh, 70px);
}

.info-card {
  padding: clamp(10px, 2vh, 22px) 0;
}

.energy-number strong {
  font-size: clamp(32px, 4vw, 45px);
}

/* ALT ARAÇ MENÜSÜ */

.vehicle-nav {
  height: clamp(54px, 9vh, 78px);
  flex-wrap: nowrap;
  overflow: hidden;
}

.vehicle-nav button {
  width: min(105px, 13vw);
  min-width: 70px;
}

/* ALT ANDROID DOCK */

.android-dock {
  height: clamp(38px, 6vh, 54px);
}

.android-dock button {
  width: clamp(28px, 3vw, 34px);
  height: clamp(28px, 3vw, 34px);
}

/* KÜÇÜK GENİŞLİKLİ ARAÇ EKRANLARI */

@media (max-height: 650px) and (orientation: landscape) {

  .topbar {
    height: 46px;
  }

  .brand-sub,
  .range-top small {
    display: none;
  }

  .cockpit {
    height: calc(100vh - 96px);
  }

  .drive-state,
  .ready {
    margin-top: 0;
  }

  .soc-big {
    margin-top: 18px;
  }

  .now-playing {
    display: none;
  }

  .info-card {
    padding: 10px 0;
  }

  .route-card {
    bottom: 10px;
    padding: 10px 12px;
  }
}
