.driver-product { background: linear-gradient(180deg, #dff6f2 0, #f5faf8 22rem, var(--paper) 42rem); padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
.driver-shell { width: min(100%, 760px); margin: auto; padding: max(18px, env(safe-area-inset-top)) 16px 28px; }
.driver-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.driver-header .brand-logo { width: 108px; }
.network-state { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 7px 11px; border: 1px solid rgba(0,127,115,.12); border-radius: 999px; background: rgba(255,255,255,.76); box-shadow: 0 8px 24px rgba(20,62,57,.08); color: var(--success); font-size: 12px; font-weight: 850; backdrop-filter: blur(14px); }
.network-state span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(43,182,115,.10); }
.network-state.offline { color: var(--danger); }
.network-state.offline span { box-shadow: 0 0 0 4px rgba(170,45,62,.08); }
.driver-auth { max-width: 500px; margin: 7vh auto 0; padding: 30px; border-radius: 28px; box-shadow: 0 22px 60px rgba(18,51,47,.12); }
.driver-auth h1 { margin-bottom: 10px; font-size: clamp(38px, 12vw, 56px); letter-spacing: -.035em; }
.driver-auth .lede { max-width: 36rem; margin-bottom: 0; }
.driver-auth-form { display: grid; gap: 10px; margin-top: 24px; }
.driver-auth-form label { font-size: 13px; font-weight: 850; }
.driver-auth-form input { width: 100%; min-height: 54px; padding: 13px 15px; border: 1px solid var(--line-strong); border-radius: 15px; background: white; font: inherit; transition: border-color .18s ease, box-shadow .18s ease; }
.driver-auth-form input:focus { outline: none; border-color: var(--turquoise); box-shadow: 0 0 0 4px rgba(0,127,115,.10); }
.driver-auth-mode { margin-top: 2px; }
.driver-auth-recovery { min-height: 44px; justify-self: end; margin: -2px 2px 2px; padding: 5px 0; border: 0; background: transparent; color: var(--green); font: inherit; font-size: 12px; font-weight: 850; }
.driver-auth-recovery:hover, .driver-auth-recovery:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.driver-onboarding-links { display: grid; gap: 10px; margin-top: 16px; }
.driver-onboarding-links .secondary { text-align: center; text-decoration: none; }
.driver-info-link { color: var(--green); font-size: 12px; font-weight: 800; line-height: 1.5; text-align: center; text-decoration: none; }
.driver-info-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.shift-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 24px; border: 1px solid rgba(255,255,255,.08); border-radius: 28px; background: linear-gradient(135deg, #183d38, var(--ink)); color: white; box-shadow: 0 24px 58px rgba(18,51,47,.24); }
.shift-card::after { position: absolute; top: -68px; right: -44px; width: 180px; height: 180px; border-radius: 50%; background: rgba(190,255,106,.08); content: ""; pointer-events: none; }
.shift-card .eyebrow { color: var(--lime); }
.shift-card h1 { max-width: none; margin: 0 0 7px; font-size: clamp(28px, 8vw, 42px); letter-spacing: -.03em; }
.shift-card p:last-child { margin: 0; color: #bdd2ce; }
.online-button { position: relative; z-index: 1; min-width: 142px; padding: 17px; border: 1px solid #45635e; border-radius: 20px; background: #284b45; color: white; text-align: left; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.online-button:not(:disabled):active { transform: scale(.985); }
.online-button span, .online-button small { display: block; }.online-button span { font-size: 19px; font-weight: 900; }.online-button small { margin-top: 4px; color: #c6d6d3; line-height: 1.35; }
.online-button.online { border-color: var(--lime); background: var(--lime); color: var(--ink); box-shadow: 0 12px 30px rgba(190,255,106,.18); }.online-button.online small { color: #36534e; }
.driver-panel { margin-top: 16px; padding: 22px; border: 1px solid rgba(22,77,70,.11); border-radius: 28px; background: rgba(255,255,255,.96); box-shadow: 0 16px 42px rgba(18,51,47,.08); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 14px; }.section-heading h2 { margin: 0; letter-spacing: -.02em; }.section-heading .eyebrow { margin-bottom: 5px; }
.live-pill, .status-tag { display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 999px; background: var(--turquoise-soft); color: var(--green); font-size: 11px; font-weight: 850; }
.live-pill::before { content: ""; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #2bb673; box-shadow: 0 0 0 4px rgba(43,182,115,.10); }
.icon-button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--green); font-size: 22px; box-shadow: 0 8px 20px rgba(18,51,47,.06); }
.offer-list { display: grid; gap: 12px; }
.ride-card { padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 8px 24px rgba(18,51,47,.05); }
.active-ride-card { border-color: rgba(0,127,115,.26); background: linear-gradient(180deg, #f1fbf8, white 60%); box-shadow: 0 18px 42px rgba(0,127,115,.12); }
.active-ride-card .status-tag { background: var(--ink); color: white; }
.ride-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.ride-card-top > strong { color: var(--ink); font-size: 21px; letter-spacing: -.02em; }
.ride-route { display: grid; grid-template-columns: 24px 1fr; gap: 11px; margin: 18px 0; padding: 16px; border: 1px solid rgba(22,77,70,.08); border-radius: 18px; background: rgba(245,250,248,.9); }.route-line { display: flex; flex-direction: column; align-items: center; color: var(--turquoise); line-height: 1; }.route-line i { width: 2px; height: 34px; margin: 4px 0; background: var(--line-strong); }
.ride-route p { margin: 0 0 15px; }.ride-route p:last-child { margin-bottom: 0; }.ride-route small, .ride-route strong { display: block; }.ride-route small { margin-bottom: 4px; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .09em; }.ride-route strong { color: var(--ink); line-height: 1.35; }
.ride-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 15px; }.ride-metrics span { min-width: 0; padding: 11px 8px; border-radius: 14px; background: #f5faf8; color: var(--muted); font-size: 11px; text-align: center; }.ride-metrics span + span { border-left: 0; }.ride-metrics strong { display: block; overflow: hidden; color: var(--ink); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.drive-action { min-height: 58px; border-radius: 17px; font-size: 16px; }
.ride-actions { display: grid; gap: 10px; }.ride-actions-paired { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.active-ride-card [data-navigate] { border-color: rgba(0,127,115,.22); background: #e4f8f3; color: var(--green); font-weight: 850; }
.empty-state { padding: 30px 18px; border: 1px dashed var(--line-strong); border-radius: 20px; background: rgba(245,250,248,.6); color: var(--muted); text-align: center; }
.blocked-card, .driver-alert { margin-top: 14px; padding: 16px; border-radius: 18px; }.blocked-card { border: 1px solid #e5c36c; background: var(--warning-soft); }.blocked-card p { margin: 5px 0 0; color: #725426; }.driver-alert { border: 1px solid #e7aab2; background: var(--danger-soft); color: var(--danger); font-weight: 700; }
.history-card { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: white; }.history-card div { display: grid; gap: 4px; }.history-card div:last-child { justify-items: end; }.history-card span, .history-card small { color: var(--muted); font-size: 12px; }
.profile-list { display: grid; gap: 0; margin: 18px 0; }.profile-list div { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }.profile-list dt { color: var(--muted); }.profile-list dd { margin: 0; font-weight: 800; text-align: right; }
.driver-branding-link { display: flex; align-items: center; justify-content: space-between; margin: 16px 0; text-decoration: none; }
.driver-branding-link small { color: var(--muted); }
.driver-danger-zone { margin-top: 24px; padding: 18px; border: 1px solid #e7aab2; border-radius: 18px; background: var(--danger-soft); }
.driver-danger-zone > strong { display: block; color: var(--danger); font-size: 16px; }
.driver-danger-zone > p { margin: 8px 0 14px; color: #6f2934; font-size: 13px; line-height: 1.55; }
.driver-delete-account { min-height: 52px; border: 1px solid var(--danger); border-radius: 14px; background: transparent; color: var(--danger); font-weight: 850; }
.driver-delete-account:hover:not(:disabled), .driver-delete-account:focus-visible { background: var(--danger); color: white; }
.driver-delete-account:disabled { opacity: .55; cursor: wait; }
.driver-danger-zone #delete-account-status { min-height: 18px; margin: 10px 0 0; color: #6f2934; }
.driver-tabs { position: fixed; z-index: 40; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); left: 12px; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 720px; margin: auto; padding: 7px; border: 1px solid rgba(22,77,70,.12); border-radius: 24px; background: rgba(255,255,255,.93); box-shadow: 0 18px 44px rgba(18,51,47,.18); backdrop-filter: blur(20px); }
.driver-tabs-four { grid-template-columns: repeat(4, 1fr); }
.driver-tabs button { display: grid; place-items: center; gap: 4px; min-height: 58px; padding: 7px 4px; border: 0; border-radius: 18px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; transition: background .18s ease, color .18s ease, transform .18s ease; }.driver-tabs button:active { transform: scale(.98); }.driver-tabs button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.driver-tabs button span { font-size: 11px; }.driver-tabs button.active { background: var(--turquoise-soft); color: var(--green); }
@media (max-width: 520px) { .driver-shell { padding-inline: 12px; }.driver-auth { margin-top: 4vh; padding: 24px 20px; }.shift-card { grid-template-columns: 1fr; padding: 21px; }.online-button { width: 100%; }.driver-panel { padding: 17px; border-radius: 24px; }.ride-card { padding: 15px; }.ride-actions-paired { grid-template-columns: 1fr; }.driver-danger-zone { padding: 15px; }.driver-tabs { right: 8px; left: 8px; } }


/* Driver native authentication viewport */
.driver-password-field { position: relative; width: 100%; }
.driver-password-field input { padding-right: 54px; }
.driver-password-visibility { position: absolute; top: 50%; right: 9px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 12px; background: rgba(18, 51, 47, .06); color: rgba(18, 51, 47, .54); transform: translateY(-50%); cursor: pointer; transition: background .18s ease, color .18s ease, opacity .18s ease; }
.driver-password-visibility:hover, .driver-password-visibility:focus-visible, .driver-password-visibility[aria-pressed="true"] { background: rgba(0, 127, 115, .11); color: var(--green); outline: none; }
.driver-password-visibility:disabled { opacity: .35; cursor: wait; }
.driver-password-visibility-icon, .driver-password-visibility-icon svg { display: block; width: 21px; height: 21px; }
.driver-password-visibility-icon svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

html[data-bistam-native-app="driver"],
html[data-bistam-native-app="driver"] body.driver-auth-active { min-height: 100%; }
html[data-bistam-native-app="driver"] body.driver-auth-active { min-height: 100dvh; padding-bottom: 0; overflow: hidden; }
html[data-bistam-native-app="driver"] body.driver-auth-active .driver-shell { display: grid; grid-template-rows: auto minmax(0, 1fr); width: 100%; height: 100dvh; min-height: 100dvh; padding: max(8px, env(safe-area-inset-top)) 12px max(8px, env(safe-area-inset-bottom)); overflow: hidden; }
html[data-bistam-native-app="driver"] body.driver-auth-active .driver-header { margin-bottom: 6px; }
html[data-bistam-native-app="driver"] body.driver-auth-active .driver-header .brand-logo { width: 94px; }
html[data-bistam-native-app="driver"] body.driver-auth-active .network-state { min-height: 28px; padding: 5px 9px; font-size: 10px; }
html[data-bistam-native-app="driver"] body.driver-auth-active .driver-auth { align-self: center; width: min(100%, 460px); max-height: calc(100dvh - 76px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); margin: 0 auto; padding: 18px; border-radius: 22px; overflow-y: auto; overscroll-behavior: contain; }
html[data-bistam-native-app="driver"] body.driver-auth-active .driver-auth h1 { margin-bottom: 6px; font-size: clamp(28px, 8vw, 38px); line-height: 1.02; }
html[data-bistam-native-app="driver"] body.driver-auth-active .driver-auth .lede { font-size: 13px; line-height: 1.38; }
html[data-bistam-native-app="driver"] body.driver-auth-active .driver-social-auth { gap: 7px; margin-top: 12px; }
html[data-bistam-native-app="driver"] body.driver-auth-active .driver-social-button { min-height: 44px; }
html[data-bistam-native-app="driver"] body.driver-auth-active .driver-auth-divider { margin: 10px 0; }
html[data-bistam-native-app="driver"] body.driver-auth-active .driver-auth-form { gap: 6px; margin-top: 12px; }
html[data-bistam-native-app="driver"] body.driver-auth-active .driver-auth-form input { min-height: 46px; padding-block: 10px; }
html[data-bistam-native-app="driver"] body.driver-auth-active .driver-auth-form > .primary { min-height: 48px; }
html[data-bistam-native-app="driver"] body.driver-auth-active .driver-onboarding-links { gap: 6px; margin-top: 10px; }
html[data-bistam-native-app="driver"] body.driver-auth-active .driver-onboarding-links .secondary { min-height: 46px; padding-block: 11px; }
html[data-bistam-native-app="driver"] body.driver-auth-active .driver-info-link { display: none; }

@media (max-height: 720px) {
  html[data-bistam-native-app="driver"] body.driver-auth-active .driver-shell { padding-top: max(5px, env(safe-area-inset-top)); }
  html[data-bistam-native-app="driver"] body.driver-auth-active .driver-header { margin-bottom: 2px; }
  html[data-bistam-native-app="driver"] body.driver-auth-active .driver-auth { max-height: calc(100dvh - 60px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); padding: 14px 16px; }
  html[data-bistam-native-app="driver"] body.driver-auth-active .driver-auth > .eyebrow,
  html[data-bistam-native-app="driver"] body.driver-auth-active .driver-auth .lede { display: none; }
  html[data-bistam-native-app="driver"] body.driver-auth-active .driver-auth h1 { margin-bottom: 2px; font-size: 26px; }
  html[data-bistam-native-app="driver"] body.driver-auth-active .driver-social-auth { margin-top: 8px; }
  html[data-bistam-native-app="driver"] body.driver-auth-active .driver-auth-form { margin-top: 8px; }
}
