*{box-sizing:border-box}body{margin:0;font-family:Arial,sans-serif;background:#07111f;color:#eef2ff}body:before{content:"";position:fixed;inset:0;z-index:-2;background:linear-gradient(rgba(3,10,24,.74),rgba(3,10,24,.9)),url('car-chat-bg.png') center/cover no-repeat}.hidden{display:none!important}.screen{min-height:100vh;display:grid;place-items:center;padding:20px}.card{background:rgba(17,24,39,.88);backdrop-filter:blur(8px);border:1px solid #273449;border-radius:20px;box-shadow:0 15px 40px #0005}.auth-card{width:min(420px,100%);padding:30px;text-align:center}.logo{width:64px;height:64px;border-radius:18px;background:#2563eb;display:grid;place-items:center;font-weight:900;font-size:20px;margin:auto}.small-logo{width:38px;height:38px;border-radius:11px;font-size:13px;margin:0}.auth-card h1{margin:15px 0 5px}.muted{color:#94a3b8}.small{font-size:12px}input{width:100%;background:#0b1220;border:1px solid #334155;color:white;border-radius:12px;padding:14px;margin:6px 0;outline:none}button{border:0;border-radius:12px;padding:12px 15px;background:#2563eb;color:white;font-weight:700;cursor:pointer;margin:4px}button.secondary{background:#1e293b}.auth-card button{width:100%}.topbar{height:70px;border-bottom:1px solid #273449;display:flex;align-items:center;justify-content:space-between;padding:0 22px}.brand{display:flex;align-items:center;gap:10px}.ghost{background:transparent;color:#94a3b8}.layout{display:grid;grid-template-columns:290px 1fr;gap:18px;max-width:1180px;margin:20px auto;padding:0 18px}.friends{padding:18px}.friends h2{margin-top:0}.friends button{width:100%}.friend{display:flex;align-items:center;gap:10px;padding:12px;border-radius:12px;margin-top:5px;cursor:pointer}.friend:hover,.friend.active{background:#1e293b}.avatar{width:40px;height:40px;border-radius:50%;background:#334155;display:grid;place-items:center;font-weight:700}.online{width:8px;height:8px;border-radius:50%;background:#22c55e;margin-left:auto}.chat{min-height:650px;display:grid;grid-template-rows:auto 1fr auto}.chat-title{padding:18px 20px;border-bottom:1px solid #273449;display:flex;justify-content:space-between;align-items:center;gap:12px}.chat-title h2{margin:0 0 3px}.chat-title p{margin:0}.call-actions{display:flex;flex-wrap:wrap;justify-content:flex-end}.call-btn{background:#0f766e}.messages{padding:20px;overflow:auto}.msg{max-width:75%;margin:12px 0}.msg.mine{margin-left:auto;text-align:right}.bubble{display:inline-block;background:#1e293b;padding:11px 14px;border-radius:14px}.mine .bubble{background:#2563eb}.sender{font-size:11px;color:#93c5fd;margin-bottom:4px}.composer{display:grid;grid-template-columns:1fr auto;gap:8px;padding:16px;border-top:1px solid #273449}.composer input{margin:0}.composer button{margin:0}.modal{position:fixed;inset:0;background:#000b;display:grid;place-items:center;padding:20px;z-index:10}.call-card{width:min(980px,96vw);background:#0b1220;border:1px solid #334155;border-radius:20px;padding:16px}.call-head{display:flex;justify-content:space-between;align-items:center}.video-stage{position:relative;min-height:460px;background:#030712;border-radius:16px;overflow:hidden;display:grid;place-items:center}.video-stage video{background:#020617}.video-stage #remoteVideo{width:100%;height:100%;object-fit:cover;min-height:460px}.video-stage #localVideo{position:absolute;right:14px;bottom:14px;width:220px;max-width:34%;border:2px solid #60a5fa;border-radius:14px;box-shadow:0 8px 30px #0008}.screen-badge{position:absolute;left:14px;top:14px;background:#111827dd;padding:8px 10px;border-radius:999px;font-size:12px}.call-controls{display:flex;justify-content:center;flex-wrap:wrap;padding-top:12px}.danger{background:#dc2626}@media(max-width:760px){.layout{grid-template-columns:1fr}.chat{min-height:70vh}.friends{order:2}.chat-title{align-items:flex-start;flex-direction:column}.call-actions{justify-content:flex-start}.video-stage{min-height:320px}.video-stage #remoteVideo{min-height:320px}.video-stage #localVideo{width:130px}}
.incoming-call{position:fixed;top:18px;left:50%;transform:translateX(-50%);z-index:30;
display:flex;align-items:center;justify-content:space-between;gap:22px;width:min(520px,calc(100vw - 30px));
padding:14px 16px;border-radius:16px;background:#111827;border:1px solid #3b82f6;box-shadow:0 18px 50px #0009}
.incoming-actions{display:flex;gap:8px}.incoming-actions button{margin:0}

.tool-btn{background:#334155}
.chat{overflow:hidden}
.content-panel{min-height:0;display:grid;grid-template-rows:1fr auto}
#chatPanel{min-height:0}
#chatPanel .messages{min-height:0}
.watch-panel{display:block;padding:18px;overflow:auto;background:linear-gradient(145deg,rgba(7,17,31,.96),rgba(18,24,46,.94))}
.watch-hero{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:14px}
.watch-hero h3{margin:0 0 4px;font-size:22px}
.provider-grid{display:grid;grid-template-columns:repeat(5,minmax(110px,1fr));gap:9px;margin-bottom:14px}
.provider-btn{background:#1e293b;border:1px solid #334155}
.watch-card,.sync-card,.direct-video{background:rgba(15,23,42,.86);border:1px solid #334155;border-radius:16px;padding:14px;margin-top:12px}
.watch-card input{margin:5px 0}
.watch-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.watch-actions button{margin:0}
.sync-card{display:flex;align-items:center;justify-content:space-between;gap:18px}
.direct-video video{width:100%;max-height:440px;background:#000;border-radius:12px}
.messages.wallpaper-road{background-image:linear-gradient(rgba(4,10,22,.55),rgba(4,10,22,.7)),url('car-chat-bg.png');background-size:cover;background-position:center}
.messages.wallpaper-midnight{background:radial-gradient(circle at 25% 20%,rgba(37,99,235,.22),transparent 30%),linear-gradient(145deg,#020617,#111827 50%,#0f172a)}
.messages.wallpaper-aurora{background:radial-gradient(circle at 15% 20%,rgba(16,185,129,.35),transparent 28%),radial-gradient(circle at 85% 30%,rgba(99,102,241,.35),transparent 30%),linear-gradient(145deg,#07111f,#0f172a)}
.messages.wallpaper-sunset{background:radial-gradient(circle at 80% 15%,rgba(249,115,22,.38),transparent 30%),radial-gradient(circle at 20% 70%,rgba(124,58,237,.35),transparent 35%),linear-gradient(145deg,#111827,#24133b)}
.messages.wallpaper-carbon{background-color:#101318;background-image:linear-gradient(45deg,#171b21 25%,transparent 25%),linear-gradient(-45deg,#171b21 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#171b21 75%),linear-gradient(-45deg,transparent 75%,#171b21 75%);background-size:28px 28px;background-position:0 0,0 14px,14px -14px,-14px 0}
.messages.wallpaper-custom{background-size:cover;background-position:center;background-repeat:no-repeat}
.wallpaper-card{width:min(720px,96vw);background:#0b1220;border:1px solid #334155;border-radius:20px;padding:18px}
.wallpaper-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}
.wallpaper-option{height:130px;border:1px solid #475569;border-radius:16px;display:flex;align-items:flex-end;justify-content:flex-start;padding:12px;overflow:hidden;cursor:pointer;color:white;font-weight:800;text-shadow:0 2px 8px #000;background-size:cover;background-position:center}
.wallpaper-option span{background:#0008;border-radius:999px;padding:6px 9px}
.wp-road{background-image:linear-gradient(#0004,#0007),url('car-chat-bg.png')}
.wp-midnight{background:radial-gradient(circle at 30% 20%,#2563eb88,transparent 35%),linear-gradient(145deg,#020617,#111827)}
.wp-aurora{background:radial-gradient(circle at 20% 20%,#10b981aa,transparent 32%),radial-gradient(circle at 80% 30%,#6366f1aa,transparent 32%),#07111f}
.wp-sunset{background:radial-gradient(circle at 75% 20%,#f97316aa,transparent 35%),radial-gradient(circle at 25% 75%,#7c3aed99,transparent 35%),#111827}
.wp-carbon{background:repeating-linear-gradient(45deg,#111827,#111827 10px,#1f2937 10px,#1f2937 20px)}
.wp-custom{background:linear-gradient(145deg,#1e293b,#334155)}
@media(max-width:760px){
  .provider-grid{grid-template-columns:repeat(2,1fr)}
  .wallpaper-grid{grid-template-columns:repeat(2,1fr)}
  .wallpaper-option{height:105px}
  .sync-card{align-items:flex-start;flex-direction:column}
  .call-actions{width:100%}
  .call-actions button{flex:1 1 auto}
}

#youtubePlayer{width:100%;aspect-ratio:16/9;background:#000;border-radius:12px;overflow:hidden}
#youtubePlayer iframe{width:100%!important;height:100%!important;border:0}

.top-actions{display:flex;align-items:center;gap:8px}
#notifyBtn{white-space:nowrap}
@media(max-width:640px){
  #notifyBtn{font-size:0;padding:10px 12px}
  #notifyBtn:after{content:"🔔";font-size:18px}
}

.splash-screen{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;overflow:hidden;background:linear-gradient(rgba(2,6,23,.35),rgba(2,6,23,.85)),radial-gradient(circle at 20% 20%,rgba(37,99,235,.35),transparent 30%),radial-gradient(circle at 80% 80%,rgba(14,165,233,.25),transparent 28%),linear-gradient(160deg,#06111f,#0b1830 55%,#020617);transition:opacity .65s ease,visibility .65s ease}.splash-screen.hide{opacity:0;visibility:hidden;pointer-events:none}.splash-content{text-align:center;animation:splashRise .8s ease both}.splash-logo-wrap{position:relative;width:120px;height:120px;margin:auto}.splash-ring{position:absolute;inset:0;border:3px solid rgba(96,165,250,.25);border-top-color:#38bdf8;border-right-color:#2563eb;border-radius:50%;animation:spinRing 2.2s linear infinite;box-shadow:0 0 35px rgba(37,99,235,.35)}.splash-logo{position:absolute;inset:15px;border-radius:28px;background:linear-gradient(145deg,#2563eb,#0ea5e9);display:grid;place-items:center;font-size:30px;font-weight:900;box-shadow:0 18px 45px rgba(14,165,233,.35);animation:logoPulse 1.8s ease-in-out infinite}.splash-title{font-size:44px;margin:22px 0 8px;letter-spacing:-1px}.splash-subtitle{margin:0;color:#cbd5e1;letter-spacing:1px}.splash-road{position:relative;width:220px;height:80px;margin:28px auto 0;overflow:hidden}.splash-road:before{content:"";position:absolute;left:50%;bottom:-12px;width:190px;height:110px;transform:translateX(-50%) perspective(140px) rotateX(62deg);background:linear-gradient(rgba(30,41,59,.1),rgba(15,23,42,.95));border-left:1px solid rgba(148,163,184,.15);border-right:1px solid rgba(148,163,184,.15)}.road-line{position:absolute;left:50%;width:5px;height:26px;background:white;bottom:2px;transform:translateX(-50%);animation:roadMove 1.1s linear infinite}.road-line:nth-child(2){animation-delay:.35s}.road-line:nth-child(3){animation-delay:.7s}.splash-loader{display:flex;justify-content:center;gap:8px;margin-top:12px}.splash-loader span{width:8px;height:8px;border-radius:50%;background:#60a5fa;animation:bounceDot 1.2s infinite}.splash-loader span:nth-child(2){animation-delay:.15s}.splash-loader span:nth-child(3){animation-delay:.3s}@keyframes spinRing{to{transform:rotate(360deg)}}@keyframes logoPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}@keyframes splashRise{from{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:none}}@keyframes roadMove{0%{transform:translate(-50%,-35px) scale(.3);opacity:0}30%{opacity:1}100%{transform:translate(-50%,48px) scale(1.5);opacity:0}}@keyframes bounceDot{0%,80%,100%{transform:translateY(0);opacity:.45}40%{transform:translateY(-8px);opacity:1}}

/* v5.2 premium calls */
.premium-incoming{inset:0!important;top:0!important;left:0!important;transform:none!important;width:100%!important;border:0!important;border-radius:0!important;display:flex!important;flex-direction:column;justify-content:center!important;gap:0!important;text-align:center;background:radial-gradient(circle at 50% 28%,#2563eb55,transparent 30%),linear-gradient(160deg,#071426,#020617 72%)!important}
.premium-incoming.hidden{display:none!important}.incoming-brand,.call-brand{font-size:12px;letter-spacing:3px;color:#94a3b8}.incoming-avatar-wrap,.call-avatar-wrap{position:relative;width:140px;height:140px;margin:34px auto 20px}.incoming-pulse,.call-pulse{position:absolute;inset:0;border:2px solid #38bdf888;border-radius:50%;animation:callPulse 1.8s infinite}.incoming-avatar,.call-avatar{position:absolute;inset:14px;border-radius:50%;display:grid;place-items:center;font-size:38px;font-weight:900;background:linear-gradient(145deg,#1d4ed8,#0891b2);box-shadow:0 15px 50px #0008}.premium-incoming h1{font-size:32px;margin:0 0 8px}.incoming-type{color:#cbd5e1;font-size:17px}.premium-incoming .incoming-actions{margin-top:80px;gap:70px}.premium-incoming .incoming-actions>div{display:flex;flex-direction:column;gap:10px;align-items:center}.round-call{width:78px;height:78px;border-radius:50%;font-size:30px;margin:0}.decline-call{background:#ef4444}.answer-call{background:#22c55e;animation:answerPulse 1.4s infinite}
.premium-call{padding:0;background:#020617}.premium-call-card{width:100vw;height:100vh;position:relative;overflow:auto;display:flex;flex-direction:column;align-items:center;padding:30px 20px;background:radial-gradient(ellipse at 50% 100%,#172554 0 18%,transparent 42%),radial-gradient(circle at 15% 28%,#06b6d444,transparent 22%),radial-gradient(circle at 88% 32%,#2563eb44,transparent 22%),linear-gradient(165deg,#07111f,#020617 68%)}.call-ambient{position:absolute;width:320px;height:320px;border-radius:50%;filter:blur(80px);background:#0ea5e933;animation:ambientDrift 5s ease-in-out infinite alternate}.call-ambient.one{left:-120px;top:-120px}.call-ambient.two{right:-130px;bottom:40px;background:#2563eb33}.call-close{position:absolute;right:20px;top:18px;z-index:5;background:#ffffff10;border-radius:50%;width:44px;height:44px}.premium-call-info{text-align:center;z-index:2}.premium-call-info .call-avatar-wrap{width:115px;height:115px;margin:14px auto 10px}.premium-call-info h1{margin:8px 0 4px;font-size:28px}.premium-call-info p{margin:0;color:#cbd5e1}.call-timer{color:#67e8f9;margin-top:6px;font-size:14px}.premium-video-stage{z-index:2;width:min(900px,94vw);min-height:260px;max-height:48vh;margin:16px auto;background:#030712aa;border:1px solid #ffffff14}.premium-video-stage:has(#remoteVideo[src=""]) {display:none}.premium-controls{z-index:3;width:min(500px,96vw);display:grid;grid-template-columns:repeat(4,1fr);gap:14px 8px;margin-top:auto;padding:18px;border:1px solid #ffffff18;border-radius:28px;background:#0f172a99;backdrop-filter:blur(20px)}.premium-controls button{background:transparent;padding:0;margin:0;display:flex;flex-direction:column;align-items:center;gap:7px;font-size:11px;color:#cbd5e1}.premium-controls button b{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#ffffff12;border:1px solid #ffffff18;font-size:22px}.premium-controls .end-control b{background:#ef4444}.ringtone-card{width:min(440px,94vw);padding:20px;background:#0b1220;border:1px solid #334155;border-radius:22px}.ringtone-choice{display:block;width:100%;text-align:left;background:#1e293b;margin:8px 0}.ringtone-choice.selected{outline:2px solid #38bdf8}.ringtone-choice small{float:right;color:#94a3b8}
@keyframes callPulse{0%{transform:scale(.9);opacity:1;box-shadow:0 0 0 0 #38bdf833}70%{transform:scale(1.08);opacity:.45;box-shadow:0 0 0 22px transparent}100%{transform:scale(.9);opacity:1}}@keyframes answerPulse{50%{transform:scale(1.08);box-shadow:0 0 0 12px #22c55e22}}@keyframes ambientDrift{to{transform:translate(45px,30px) scale(1.12)}}
@media(max-width:600px){.premium-incoming .incoming-actions{margin-top:65px}.premium-controls{grid-template-columns:repeat(4,1fr)}.premium-controls button b{width:54px;height:54px}.premium-video-stage{min-height:220px}}


/* v5.4 — corrected mobile empty-space fix */
@media(max-width:760px){
  .chat.no-friend-selected{
    min-height:auto !important;
    display:block !important;
  }

  .chat.no-friend-selected #chatPanel{
    display:none !important;
  }

  .chat.no-friend-selected .chat-title{
    border-bottom:0 !important;
  }

  .chat.no-friend-selected + *{
    margin-top:0;
  }

  .friends{
    margin-top:0;
  }
}

/* v5.5 — back out of a conversation */
.chat-back{width:42px;height:42px;min-width:42px;padding:0;margin:0 10px 0 0;border-radius:50%;font-size:34px;line-height:34px;place-items:center;background:#172235;border:1px solid #334155;color:#fff}
.chat-back.hidden{display:none!important}
@media(max-width:760px){.chat-title{align-items:center}.chat-back:not(.hidden){display:grid}}


/* Car Chat v6 — Profiles */
.profile-top-btn{
  display:flex;align-items:center;gap:8px;background:#111c2e;border:1px solid #334155;
  padding:6px 10px 6px 6px;margin:0;border-radius:999px;max-width:180px
}
.top-avatar,.profile-avatar{
  width:34px;height:34px;border-radius:50%;display:grid;place-items:center;overflow:hidden;
  background:linear-gradient(145deg,#2563eb,#0891b2);font-weight:900;flex:0 0 auto
}
.top-avatar img,.profile-avatar img,.friend-avatar-img{width:100%;height:100%;object-fit:cover;display:block}
#myTopName{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-card{
  width:min(470px,96vw);background:#0b1220;border:1px solid #334155;border-radius:22px;
  padding:20px;box-shadow:0 24px 70px #000a
}
.profile-card h2{margin:0 0 4px}
.profile-card p{margin:0}
.profile-preview{display:flex;align-items:center;gap:18px;margin:22px 0}
.profile-avatar.large{width:92px;height:92px;font-size:30px;border:2px solid #475569}
.profile-photo-button{
  display:inline-flex;align-items:center;justify-content:center;padding:11px 14px;
  border-radius:12px;font-weight:700;cursor:pointer
}
.profile-label{display:block;margin:12px 2px 2px;color:#cbd5e1;font-size:13px;font-weight:700}
.profile-save{width:100%;margin:14px 0 6px}
.friend .avatar.has-photo{padding:0;overflow:hidden;background:#0f172a}
.friend-profile-status{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-person{display:flex;align-items:center;gap:10px}
.chat-profile-avatar{width:42px;height:42px;border-radius:50%;overflow:hidden;background:#334155;display:grid;place-items:center;font-weight:800;flex:0 0 auto}
.chat-profile-avatar img{width:100%;height:100%;object-fit:cover}
@media(max-width:760px){
  #myTopName{display:none}
  .profile-top-btn{padding:5px}
  .topbar{padding:0 12px}
  .top-actions{gap:3px}
}


/* Car Chat v6.1 — Photo sharing */
#composer{display:flex;align-items:center;gap:8px}
#composer #message{flex:1;min-width:0}
.photo-send-btn{
  width:44px;height:44px;min-width:44px;border-radius:13px;display:grid;place-items:center;
  background:#172235;border:1px solid #334155;cursor:pointer;font-size:20px;
}
.photo-send-btn:active{transform:scale(.96)}
.photo-preview-card{
  width:min(520px,95vw);background:#0b1220;border:1px solid #334155;border-radius:22px;
  padding:18px;box-shadow:0 24px 70px #000a
}
.photo-preview-image{
  display:block;width:100%;max-height:62vh;object-fit:contain;border-radius:16px;
  background:#020617;margin:14px 0
}
.photo-preview-actions{display:flex;gap:10px;justify-content:flex-end}
.chat-photo{
  display:block;max-width:min(330px,72vw);max-height:420px;object-fit:cover;
  border-radius:16px;cursor:pointer;background:#111827
}
.msg.mine .chat-photo{margin-left:auto}
.photo-loading{
  min-width:170px;min-height:110px;border-radius:16px;background:#ffffff0b;
  display:grid;place-items:center;color:#94a3b8;font-size:13px
}
.photo-caption{margin-top:7px}
@media(max-width:760px){
  .chat-photo{max-width:72vw;max-height:360px}
  .photo-send-btn{width:42px;height:42px;min-width:42px}
}

/* Car Chat v6.2 — Voice messages */
.voice-send-btn{width:44px;height:44px;min-width:44px;padding:0;margin:0;border-radius:13px;background:#172235;border:1px solid #334155;font-size:20px}
.voice-send-btn.recording{background:#7f1d1d;border-color:#ef4444;animation:voicePulse 1s infinite}
.voice-recorder{display:flex;align-items:center;gap:10px;margin-top:10px;padding:10px 12px;border:1px solid #334155;border-radius:15px;background:#101827}
.voice-recorder.hidden{display:none!important}
.record-dot{width:10px;height:10px;border-radius:50%;background:#ef4444;animation:voicePulse 1s infinite}
.voice-record-label{color:#cbd5e1;flex:1;font-size:13px}
.voice-recorder button{margin:0}
.voice-note{display:flex;align-items:center;gap:9px;min-width:min(280px,68vw);padding:3px 0}
.voice-note audio{width:min(280px,62vw);height:38px}
.voice-icon{font-size:20px}
@keyframes voicePulse{50%{opacity:.45;transform:scale(.94)}}
@media(max-width:760px){
  .voice-send-btn{width:42px;height:42px;min-width:42px}
  .voice-record-label{display:none}
  .voice-recorder{gap:7px}
  .voice-recorder button{padding:8px 10px}
}

/* Car Chat v7 — Drive Rooms + Navigation */
.drive-top-btn{margin-right:8px}
.drive-hub{margin:16px 0 22px;padding:18px;border:1px solid #27364d;border-radius:22px;background:linear-gradient(145deg,#0b1320,#101c2e)}
.drive-hub.hidden{display:none!important}
.drive-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px}
.drive-hero h2{margin:3px 0 4px;font-size:27px}
.eyebrow,.route-label{font-size:11px;letter-spacing:.16em;font-weight:800;color:#7dd3fc}
.drive-mode-switch{display:flex;background:#08111e;border:1px solid #26364d;border-radius:14px;padding:4px}
.drive-mode-switch button{margin:0;background:transparent}
.drive-mode-switch button.active{background:#1e3a5f}
.drive-search{display:flex;gap:9px;margin-bottom:10px}
.drive-search input{flex:1;font-size:16px}
.destination-results{position:relative;z-index:1001;background:#111c2d;border:1px solid #334155;border-radius:14px;overflow:hidden;margin:-3px 0 12px}
.destination-results.hidden{display:none!important}
.destination-result{display:block;width:100%;text-align:left;background:transparent;border:0;border-bottom:1px solid #253247;border-radius:0;padding:12px 14px;margin:0}
.destination-result:last-child{border-bottom:0}
.destination-result small{display:block;color:#94a3b8;margin-top:3px}
.drive-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:14px}
.map-card{position:relative;border-radius:18px;overflow:hidden;border:1px solid #2b3b52;background:#0a1220}
#driveMap{height:430px;width:100%;z-index:1}
.map-float{position:absolute;right:12px;bottom:12px;z-index:500;width:45px;height:45px;padding:0;border-radius:50%;font-size:24px}
.route-card{padding:18px;border:1px solid #2b3b52;border-radius:18px;background:#0b1422}
.route-card h3{margin:8px 0 17px;font-size:20px}
.trip-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}
.trip-stats div{padding:12px;background:#111d2e;border-radius:13px}
.trip-stats strong,.trip-stats span{display:block}
.trip-stats strong{font-size:20px}
.trip-stats span{font-size:11px;color:#94a3b8;margin-top:3px}
.next-turn{padding:14px;border-radius:13px;background:#111d2e;margin-bottom:12px;line-height:1.4}
.nav-primary{width:100%;font-size:16px;padding:13px}
#endDriveBtn{width:100%;margin-top:8px}
.drive-safety{font-size:11px;color:#94a3b8;line-height:1.4;margin:12px 2px 0}
body.cruise-mode #watchPanel{display:none!important}
body.cruise-mode .drive-hub button,body.cruise-mode .drive-hub input{min-height:48px}
@media(max-width:760px){
 .drive-hub{padding:12px;margin:10px 0 16px;border-radius:18px}
 .drive-hero{align-items:flex-start;flex-direction:column}
 .drive-mode-switch{width:100%}.drive-mode-switch button{flex:1}
 .drive-search{display:grid;grid-template-columns:1fr auto}
 .drive-grid{grid-template-columns:1fr}
 #driveMap{height:48vh;min-height:320px}
 .route-card{padding:14px}
}

/* Car Chat v7.1 — Live Navigation */
.live-nav-panel{display:flex;align-items:center;gap:14px;padding:16px;border-radius:16px;background:#111d2e;margin-bottom:10px}
.turn-icon{font-size:36px;min-width:45px;text-align:center}
.turn-copy{min-width:0;flex:1}
.turn-distance{font-size:13px;color:#7dd3fc;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.live-nav-panel .next-turn{padding:0;margin:4px 0 0;background:transparent;font-size:17px;font-weight:750}
.nav-progress{height:6px;background:#172235;border-radius:99px;overflow:hidden;margin:0 2px 12px}
#navProgressBar{height:100%;width:0%;background:currentColor;border-radius:99px;transition:width .4s}
.nav-actions{display:grid;grid-template-columns:1fr auto;gap:8px}
#externalNavBtn,#endDriveBtn{width:100%;margin-top:8px}
body.live-navigation .route-card{border-color:#3b82f6}
body.live-navigation #driveMap{height:48vh}
body.live-navigation .drive-search{display:none}
body.live-navigation .drive-mode-switch{display:none}
body.live-navigation .drive-hero p{font-size:13px}
@media(max-width:760px){
 body.live-navigation .drive-grid{display:flex;flex-direction:column}
 body.live-navigation .route-card{order:-1}
 body.live-navigation #driveMap{height:38vh;min-height:250px}
 body.live-navigation .route-card h3{margin-bottom:10px}
 body.live-navigation .trip-stats{margin-bottom:9px}
 .nav-actions{grid-template-columns:1fr}
 .turn-icon{font-size:32px}
}

/* v7.2 Drive Rooms */
.drive-room-social{padding:13px;margin-bottom:15px;border:1px solid #2b3b52;border-radius:15px;background:#0f1a2a}
.drive-room-social .route-label{margin-bottom:9px}
.join-room-row{display:grid;grid-template-columns:1fr auto;gap:7px;margin-top:7px}
.join-room-row input{text-transform:uppercase;letter-spacing:.12em}
.room-code-line{font-size:14px;margin-bottom:10px}.room-code-line strong{font-size:20px;letter-spacing:.15em;color:#7dd3fc}
.room-members{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.room-member{padding:6px 9px;border-radius:999px;background:#17263b;font-size:12px}
.share-location-line{display:flex;align-items:center;gap:8px;font-size:12px;color:#cbd5e1;margin:10px 0}
.share-location-line input{width:auto}
.friend-drive-marker{background:#2563eb;border:3px solid white;border-radius:50%;width:18px!important;height:18px!important;box-shadow:0 2px 8px #0008}

/* Car Chat v7.3 — premium car-first redesign */
:root{--v73-panel:#0b1626;--v73-panel2:#101e31;--v73-line:#263a55;--v73-blue:#2f6df6;--v73-soft:#91a4bd}
body{background:radial-gradient(circle at 50% -10%,#132541 0,#07101d 42%,#050b14 100%) fixed}
.v73-shell{margin:10px 0 14px;border:1px solid #20344e;border-radius:22px;overflow:hidden;background:rgba(7,16,29,.94);box-shadow:0 18px 55px #0005}
.v73-brand{display:flex;align-items:center;justify-content:center;padding:15px 18px 11px}
.brand-copy{text-align:center}.brand-copy strong{display:block;font-size:25px}.brand-copy span{display:block;color:#9fb0c5;font-size:11px;margin-top:2px}
.v73-nav{display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid #182a40}
.v73-nav button{display:flex;flex-direction:column;align-items:center;gap:5px;margin:0;padding:12px 5px;background:transparent;border:0;border-radius:0;font-size:18px;color:#cbd5e1}
.v73-nav button span{font-size:11px}.v73-nav button.active{background:linear-gradient(#16345c,#122b4b);color:#fff}
.drive-hub{border-radius:24px;background:linear-gradient(155deg,rgba(11,22,38,.98),rgba(7,15,27,.98));border-color:#253b58;box-shadow:0 20px 60px #0005}
.drive-hero{margin-bottom:12px}.drive-hero h2{font-size:31px;letter-spacing:-.03em}
.drive-search{background:#0c1829;border:1px solid #3269b8;border-radius:16px;padding:5px;margin-bottom:11px}
.drive-search input{border:0!important;background:transparent!important;box-shadow:none!important}
.drive-search button{border-radius:12px;background:linear-gradient(135deg,#3477ff,#2358d5)}
.quick-places{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:13px}
.quick-places button{display:flex;align-items:center;gap:8px;text-align:left;margin:0;padding:10px;background:#101d2f;border:1px solid #263b56;border-radius:14px;font-size:17px}
.quick-places button span,.quick-places button strong,.quick-places button small{display:block}.quick-places button strong{font-size:12px}.quick-places button small{font-size:9px;color:#8ea0b8;margin-top:2px}
.map-card{border-radius:21px;border-color:#28425f;box-shadow:inset 0 0 0 1px #ffffff08}
#driveMap{height:470px}
.route-card{background:linear-gradient(160deg,#0a1626,#091321);border-color:#28415e;border-radius:21px}
.trip-stats{grid-template-columns:repeat(3,1fr)}
.trip-stats div{text-align:center;background:#101e31;border:1px solid #1d3048}
.live-nav-panel{background:linear-gradient(135deg,#0f2037,#0d192a);border:1px solid #203b5c}
.turn-icon{color:#4c8cff}.turn-distance{font-size:22px;color:#fff;text-transform:none;letter-spacing:0}
.live-nav-panel .next-turn{font-size:14px;color:#dce8f7}
.trip-bottom-actions{display:grid;grid-template-columns:.75fr 1fr 1.25fr;gap:7px;margin-top:8px}
.trip-bottom-actions button{margin:0!important;min-height:44px}
#externalNavBtn{background:linear-gradient(135deg,#3477ff,#245be0)}
.drive-room-social{background:#0d1929;border-color:#263e5a}
.room-member{background:#152840}
.drive-safety{text-align:center}
@media(max-width:760px){
 .v73-shell{margin:5px 0 10px;border-radius:18px}
 .v73-brand{padding:12px 12px 8px}.brand-copy strong{font-size:22px}
 .v73-nav button{padding:10px 2px;font-size:17px}.v73-nav button span{font-size:10px}
 .drive-hub{padding:11px;border-radius:20px}
 .drive-hero h2{font-size:28px}
 .quick-places{gap:5px;overflow-x:auto;grid-template-columns:repeat(4,minmax(105px,1fr))}
 .quick-places button{padding:9px 8px}
 #driveMap{height:43vh;min-height:300px}
 .trip-stats{grid-template-columns:repeat(3,1fr);gap:5px}.trip-stats div{padding:9px 5px}.trip-stats strong{font-size:16px}
 .trip-bottom-actions{grid-template-columns:1fr 1fr}.trip-bottom-actions #externalNavBtn{grid-column:1/-1}
}
