/* iPhone-style device frame for the mobile apps (customer, driver).
   Desktop: device mock centred with an info panel. Phone (<600px): real full-screen app. */
body.phone-app { min-height: 100vh; background: radial-gradient(1200px 600px at 80% -10%, #DDF2E7 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, #E6EFEA 0%, transparent 60%), #EEF3F0; overflow: hidden; }
.stage { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 56px; padding: 24px; }
.stage-info { width: 320px; flex: none; }
.stage-info h1 { font-size: 26px; margin: 10px 0 6px; }
.stage-info p { color: var(--mute); font-size: 14.5px; }
.stage-info .links { display: grid; gap: 8px; margin-top: 18px; }
.stage-info .links a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: #fff; border-radius: 14px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; transition: transform .15s, box-shadow .15s; }
.stage-info .links a:hover { transform: translateY(-1px); box-shadow: var(--sh-2); }
.stage-info .tips { margin-top: 18px; background: #fff; border: 1px dashed #BFD9CB; border-radius: 14px; padding: 12px 14px; font-size: 13px; color: var(--ink-2); }
.stage-info .tips li { margin: 4px 0; }
.stage-info .tips ul { margin: 6px 0 0; padding-inline-start: 18px; }

.device { position: relative; width: 393px; height: 852px; max-height: calc(100vh - 48px); aspect-ratio: 393 / 852; border-radius: 58px; background: #0E1512; padding: 12px; box-shadow: 0 0 0 2px #2A332F, 0 0 0 5px #0B100E, 0 40px 90px -20px rgba(10, 40, 25, .45), inset 0 0 0 1px #3A4540; flex: none; }
.device::before { /* side buttons */ content: ''; position: absolute; inset-inline-start: -4px; top: 180px; width: 4px; height: 64px; border-radius: 3px 0 0 3px; background: #1B2320; box-shadow: 0 84px 0 #1B2320; }
.device::after { content: ''; position: absolute; inset-inline-end: -4px; top: 230px; width: 4px; height: 96px; border-radius: 0 3px 3px 0; background: #1B2320; }
.device-screen { position: relative; width: 100%; height: 100%; border-radius: 46px; overflow: hidden; background: var(--bg); isolation: isolate; transform: translateZ(0); }
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 122px; height: 35px; border-radius: 20px; background: #000; z-index: 60; transition: width .35s cubic-bezier(.3,1.3,.5,1), height .35s; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; gap: 8px; overflow: hidden; }
.island.expand { width: 300px; height: 64px; border-radius: 30px; padding: 0 16px; justify-content: flex-start; }
.island .isl-ic { font-size: 20px; }
.island .isl-t { display: none; line-height: 1.25; text-align: start; }
.island.expand .isl-t { display: block; }
.island .isl-t b { display: block; font-size: 13px; }
.island .isl-t small { opacity: .75; font-size: 11.5px; }
.statusbar { position: absolute; top: 0; left: 0; right: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0; z-index: 55; font-family: var(--font-lat); font-weight: 600; font-size: 16px; pointer-events: none; direction: ltr; color: var(--sb-color, #0E1512); transition: color .2s; }
.statusbar .sb-icons { display: flex; gap: 6px; align-items: center; }
.home-ind { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 136px; height: 5px; border-radius: 3px; background: #0E1512; z-index: 60; opacity: .85; pointer-events: none; }
#app { position: absolute; inset: 0; overflow: hidden; }
:root { --safe-top: 54px; --safe-bottom: 22px; }

/* inside-device overlays */
.device-screen .toast-host { position: absolute; top: 56px; width: calc(100% - 20px); }

@media (max-width: 980px) { .stage-info { display: none; } }
@media (max-width: 600px) {
  body.phone-app { background: var(--bg); overflow: hidden; }
  .stage { padding: 0; min-height: 100dvh; display: block; }
  .device { width: 100%; height: 100dvh; max-height: none; border-radius: 0; padding: 0; box-shadow: none; background: var(--bg); aspect-ratio: auto; }
  .device::before, .device::after, .island, .statusbar, .home-ind { display: none; }
  .device-screen { border-radius: 0; }
  :root { --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px); }
  .device-screen .toast-host { top: calc(env(safe-area-inset-top, 0px) + 8px); }
}
@media (min-width: 601px) and (max-height: 880px) { .device { height: calc(100vh - 32px); width: auto; } .stage { padding: 16px; } }
