:root {
  --panel: var(--rc-surface-1);
  --soft: var(--rc-surface-2);
  --line: var(--rc-line);
  --ink: var(--rc-text);
  --muted: var(--rc-text-secondary);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--rc-text);
  background: var(--rc-platform-gradient);
  font-family: var(--rc-font-body);
}

.phone-stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

body.driver-app.driver-logged-in {
  color: var(--rc-text);
  background: var(--rc-platform-gradient);
}

body.driver-app.driver-logged-in .phone-stage {
  padding: 28px 20px;
}

.phone-device {
  position: relative;
  width: min(100%, 390px);
}

.phone-dynamic-island {
  display: none;
}

body.driver-app.driver-logged-in .phone-device {
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(165deg, #454b57 0%, #2a2f38 38%, #171a20 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.28),
    0 28px 72px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

body.driver-app.driver-logged-in .phone-dynamic-island {
  display: block;
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 40;
  width: 96px;
  height: 28px;
  border-radius: 999px;
  background: #05070b;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

body.driver-app.driver-logged-in .phone-device .app-frame {
  background: var(--rc-void);
  border-radius: 36px;
  overflow: hidden;
  min-height: min(844px, calc(100vh - 56px));
  max-height: calc(100vh - 56px);
  height: min(844px, calc(100vh - 56px));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body.driver-app.driver-logged-in .app-main {
  padding-top: 8px;
}

body.driver-app.driver-logged-in .auth-header {
  display: none;
}

body.driver-app:not(.driver-logged-in) .phone-chrome {
  display: none !important;
}

body.driver-app.driver-logged-in .phone-chrome {
  display: block;
  padding-top: max(18px, env(safe-area-inset-top));
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

/* ── App intro splash (boot + logout aesthetic) ── */
.app-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: var(--rc-platform-gradient);
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.app-intro--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.app-intro-glow {
  display: none;
}

.app-intro-brand {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  animation: introBrandIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.app-intro-mark-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.app-intro-mark {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  color: #041012;
  background: linear-gradient(145deg, #00f0d8 0%, #00c9b7 45%, #00a896 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 12px 40px rgba(0, 201, 183, 0.35),
    0 0 60px rgba(0, 201, 183, 0.2);
  animation: introMarkPop 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.app-intro-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 201, 183, 0.45);
  animation: introRingExpand 1.8s ease-out infinite;
}

.app-intro-ring--delayed {
  animation-delay: 0.6s;
}

.app-intro-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f4f7fb;
  animation: introTextIn 0.7s ease 0.25s both;
}

.app-intro-tagline {
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.95);
  animation: introTextIn 0.7s ease 0.38s both;
}

.app-intro-loader {
  display: flex;
  gap: 7px;
  margin-top: 18px;
  animation: introTextIn 0.6s ease 0.5s both;
}

.app-intro-loader span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0, 201, 183, 0.85);
  animation: introDotBounce 1s ease-in-out infinite;
}

.app-intro-loader span:nth-child(2) {
  animation-delay: 0.15s;
}

.app-intro-loader span:nth-child(3) {
  animation-delay: 0.3s;
}

body:not(.app-ready) .phone-stage {
  opacity: 0;
  transform: scale(0.94) translateY(18px);
}

body.app-ready .phone-stage {
  animation: phoneStageReveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.app-ready .app-main.view-enter > .proofs-view,
body.app-ready .app-main.view-enter > .panel,
body.app-ready .app-main.view-enter > .stepper,
body.app-ready .app-main.view-enter > .drive-earnings,
body.app-ready .app-main.view-enter > .driver-checks,
body.app-ready .app-main.view-enter > .shift-card,
body.app-ready .app-main.view-enter > .drive-now-playing,
body.app-ready .app-main.view-enter > .drive-details,
body.app-ready .app-main.view-enter > .audio-route-card,
body.app-ready .app-main.view-enter > section {
  animation: viewBlockIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.app-ready .app-main.view-enter > :nth-child(1) { animation-delay: 0.04s; }
body.app-ready .app-main.view-enter > :nth-child(2) { animation-delay: 0.09s; }
body.app-ready .app-main.view-enter > :nth-child(3) { animation-delay: 0.14s; }
body.app-ready .app-main.view-enter > :nth-child(4) { animation-delay: 0.19s; }
body.app-ready .app-main.view-enter > :nth-child(5) { animation-delay: 0.24s; }
body.app-ready .app-main.view-enter > :nth-child(6) { animation-delay: 0.29s; }

body.app-ready .app-main:not(.view-enter) > * {
  opacity: 1;
  transform: none;
  animation: none;
}

body.app-ready .phone-chrome:not(.hidden) {
  animation: chromeSlideIn 0.5s ease 0.12s both;
}

body.app-ready .bottom-nav:not(:empty) {
  animation: navSlideUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.app-frame--exit {
  animation: frameExit 0.38s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes introGlowPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes introBrandIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes introMarkPop {
  from { opacity: 0; transform: scale(0.55) rotate(-10deg); }
  70% { transform: scale(1.06) rotate(0deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes introRingExpand {
  0% { transform: scale(0.75); opacity: 0.75; }
  100% { transform: scale(2.4); opacity: 0; }
}

@keyframes introTextIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes introDotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-6px); opacity: 1; }
}

@keyframes phoneStageReveal {
  from { opacity: 0; transform: scale(0.94) translateY(18px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes viewBlockIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes chromeSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes navSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes frameExit {
  to { opacity: 0; transform: scale(0.96) translateY(10px); filter: blur(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .app-intro,
  .app-intro-brand,
  .app-intro-mark,
  .app-intro-ring,
  .app-intro-glow,
  .app-intro-loader span,
  body.app-ready .phone-stage,
  body.app-ready .app-main.view-enter > *,
  body.app-ready .phone-chrome,
  body.app-ready .bottom-nav,
  .app-frame--exit {
    animation: none !important;
    transition: none !important;
  }

  body:not(.app-ready) .phone-stage {
    opacity: 1;
    transform: none;
  }

  .app-intro--hide {
    display: none;
  }
}

.app-frame {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--soft);
  position: relative;
  overflow: hidden;
}

body.driver-app:not(.driver-logged-in) {
  color: var(--rc-text);
  background: var(--rc-platform-gradient);
}

body.driver-app:not(.driver-logged-in) .phone-stage {
  padding: 28px 20px;
}

body.driver-app:not(.driver-logged-in) .phone-device {
  width: min(100%, 390px);
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(165deg, #454b57 0%, #2a2f38 38%, #171a20 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.28),
    0 28px 72px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
}

body.driver-app:not(.driver-logged-in) .app-frame {
  background: var(--rc-void);
  border-radius: 36px;
  overflow: hidden;
  min-height: min(844px, calc(100vh - 56px));
  max-height: calc(100vh - 56px);
  height: min(844px, calc(100vh - 56px));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body.driver-app:not(.driver-logged-in) .phone-home-bar {
  display: none;
}

body.driver-app:not(.driver-logged-in) .panel {
  background: var(--rc-surface-2);
  border-color: var(--rc-line);
  color: var(--rc-text);
}

body.driver-app:not(.driver-logged-in) .panel .muted,
body.driver-app:not(.driver-logged-in) .auth-hint {
  color: var(--rc-text-muted);
}

body.driver-app:not(.driver-logged-in) .panel code {
  color: var(--rc-brand);
  background: rgba(0, 201, 183, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
}

body.driver-app:not(.driver-logged-in) label {
  color: var(--rc-text-secondary);
}

body.driver-app:not(.driver-logged-in) input,
body.driver-app:not(.driver-logged-in) select,
body.driver-app:not(.driver-logged-in) textarea {
  color: var(--rc-text);
  background: var(--rc-surface-1);
  border-color: var(--rc-line);
}

body.driver-app:not(.driver-logged-in) .ghost-btn {
  border-color: var(--rc-line);
  color: var(--rc-text);
  background: transparent;
}

body.driver-app:not(.driver-logged-in) .app-main {
  padding: 12px 16px 20px;
}

.auth-panel {
  display: grid;
  gap: 14px;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-demo-card {
  margin-top: 4px;
}

.auth-demo-btn {
  width: 100%;
  margin-top: 10px;
}

.auth-hint {
  margin: 0;
  font-size: 0.82rem;
}

.text-link-btn {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: var(--rc-text-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  justify-self: center;
}

.text-link-btn:hover {
  color: var(--rc-brand);
}

.bottom-nav.hidden {
  display: none;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  background: linear-gradient(180deg, var(--rc-midnight) 0%, #0d131c 100%);
  color: var(--rc-text);
  border-bottom: 1px solid var(--rc-line);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--rc-brand-gradient);
  color: var(--rc-void);
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-brand);
}

.brand-row strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-row span {
  display: block;
  font-size: 0.78rem;
  color: var(--rc-text-secondary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-logout {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fbfa;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 700;
}

.sync-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(22, 140, 84, 0.2);
  color: #8ce9b8;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.auth-tab {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: var(--rc-surface-1);
  font-weight: 700;
  color: var(--muted);
}

.auth-tab.active {
  border-color: var(--rc-brand-border);
  color: var(--rc-brand);
  background: var(--rc-brand-soft);
}

.demo-otp-hint code {
  background: rgba(0, 201, 183, 0.1);
  color: var(--rc-brand);
  padding: 2px 6px;
  border-radius: 4px;
}

.otp-label {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.otp-input {
  width: 100%;
  padding: 14px;
  font-size: 1.6rem;
  letter-spacing: 0.35em;
  text-align: center;
  border-radius: 12px;
  border: 2px solid var(--line);
  font-family: ui-monospace, monospace;
}

.verified-badge {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(22, 140, 84, 0.12);
  color: var(--ok);
  font-weight: 700;
  font-size: 0.9rem;
}

.demo-otp-hint {
  margin-top: 8px;
}

.primary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sync-pill.warn {
  background: rgba(242, 183, 5, 0.2);
  color: #ffe08a;
}

.app-main {
  flex: 1 1 auto;
  padding: 14px 14px 12px;
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 0;
  min-width: 0;
  overflow-x: clip;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.driver-app.driver-logged-in .app-main {
  padding:
    8px
    max(14px, env(safe-area-inset-right))
    calc(16px + env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
  gap: var(--drive-stack-gap, 12px);
}

body.driver-app.driver-logged-in .phone-chrome,
body.driver-app.driver-logged-in .bottom-nav,
body.driver-app.driver-logged-in .platform-copyright,
body.driver-app.driver-logged-in .phone-home-bar {
  flex-shrink: 0;
}

.boot-panel code {
  display: inline-block;
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #10191d;
  color: #f2b705;
  font-size: 0.82rem;
}

.boot-steps {
  margin: 12px 0;
  padding-left: 20px;
  line-height: 1.6;
}

.boot-error {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(460px, calc(100% - 24px));
  padding: 12px 14px;
  border-radius: 12px;
  background: #cf4d3f;
  color: #fff;
  font-size: 0.88rem;
  z-index: 50;
}

.bottom-nav {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 4px;
  z-index: 20;
  padding: 8px 10px 6px;
  background: var(--rc-surface-1);
  border-top: 1px solid var(--line);
  backdrop-filter: none;
}

.phone-home-bar {
  display: none;
  justify-content: center;
  padding: 2px 0 10px;
  background: rgba(8, 12, 18, 0.92);
}

.phone-home-bar span {
  width: 118px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

body.driver-app.driver-logged-in .phone-home-bar {
  display: flex;
}

body.driver-app.driver-logged-in .bottom-nav {
  padding-bottom: 4px;
}

.nav-btn {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 8px 4px;
  border-radius: 10px;
  font-size: 0.68rem;
  font-weight: 700;
}

.nav-btn.active {
  color: var(--rc-brand);
  background: var(--rc-surface-3);
  box-shadow: none;
}

.nav-btn span.icon {
  font-size: 1.1rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rc-brand-deep);
}

.panel h2,
.panel h3 {
  margin: 0 0 8px;
}

.muted {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.form-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--rc-surface-2);
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.photo-upload {
  display: grid;
  gap: 10px;
}

.photo-preview {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.file-hint {
  font-size: 0.78rem;
  color: var(--muted);
}

.primary-btn,
.ghost-btn {
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 800;
  border: 1px solid var(--rc-line-strong);
  background: transparent;
  color: var(--rc-text-secondary);
  box-shadow: none;
  transition:
    border-color var(--rc-motion-base) var(--rc-ease),
    color var(--rc-motion-base) var(--rc-ease),
    background-color var(--rc-motion-base) var(--rc-ease);
}

.primary-btn:hover:not(:disabled),
.ghost-btn:hover:not(:disabled) {
  border-color: var(--rc-brand);
  color: var(--rc-brand);
  background: transparent;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.stepper span {
  height: 4px;
  border-radius: 999px;
  background: var(--line);
}

.stepper span.done {
  background: var(--brand);
}

.checklist {
  display: grid;
  gap: 10px;
}

.check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}

.check-item strong {
  color: var(--ink);
}

.check-item.active-step {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px rgba(15, 139, 141, 0.25);
}

.check-item.done {
  border-color: rgba(15, 139, 141, 0.35);
  background: rgba(15, 139, 141, 0.08);
}

.status-dot {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(22, 140, 84, 0.14);
  color: var(--ok);
}

.status-dot.pending {
  background: rgba(242, 183, 5, 0.18);
  color: #9a7200;
}

.earnings-card {
  display: grid;
  gap: 6px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--rc-line);
  background: var(--rc-surface-1);
  color: #fff;
  box-shadow: none;
}

.earnings-card .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.earnings-card .money {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.shift-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--rc-surface-2);
}

.switch {
  position: relative;
  width: 52px;
  height: 30px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  background: #c5d2d6;
  border-radius: 999px;
  transition: 0.2s;
}

.switch span::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}

.switch input:checked + span {
  background: var(--brand);
}

.switch input:checked + span::after {
  transform: translateX(22px);
}

.now-playing {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--rc-surface-2);
}

.play-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  font-weight: 900;
}

.audio-route-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed rgba(15, 139, 141, 0.45);
  background: rgba(15, 139, 141, 0.06);
}

.earn-campaign-panel {
  display: grid;
  gap: 14px;
}

.now-playing-panel {
  display: grid;
  gap: 10px;
}

.now-playing-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.now-playing-head h2 {
  margin: 4px 0 0;
}

.now-playing-subtitle {
  margin: 6px 0 0;
}

.now-playing-status {
  margin: 0;
  font-size: 0.88rem;
}

.earn-campaign-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.earn-campaign-head h2 {
  margin: 4px 0 0;
}

.earn-campaign-subtitle {
  margin: 6px 0 0;
}

.earn-campaign-rate {
  text-align: right;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
  white-space: nowrap;
}

.earn-campaign-rate span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 4px;
}

.field-label {
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.feed-status-row {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.feed-status-row .muted {
  margin: 0;
}

.feed-refresh-btn {
  justify-self: start;
}

.range-field .range-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.range-field input[type="range"] {
  width: 100%;
}

.media-devices-panel .media-share-pair-card {
  margin-top: 12px;
}

.earn-output-line {
  margin: 0;
  padding-top: 4px;
  font-size: 0.84rem;
}

.route-options {
  display: grid;
  gap: 8px;
}

.route-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--rc-surface-2);
}

.route-option.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(15, 139, 141, 0.15);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  min-height: 72px;
  align-content: center;
}

.metric span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.metric strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.drive-health-grid .metric--wide {
  grid-column: 1 / -1;
}

.device-health-panel {
  display: grid;
  gap: 12px;
}

.device-health-sync {
  width: 100%;
  margin-top: 2px;
}

.display-health-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.display-health-grid {
  margin-top: 10px;
}

.demo-controls-dock {
  position: fixed;
  left: max(14px, calc(50% + 220px));
  bottom: 24px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.demo-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  min-width: 176px;
  border: 1px solid var(--rc-brand-border);
  border-radius: 12px;
  padding: 0 16px;
  background: var(--rc-surface-glass);
  color: var(--rc-text);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(12px);
}

.demo-menu-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.demo-menu-button:not(:disabled):active {
  transform: scale(0.98);
}

.demo-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--rc-brand-border);
  border-radius: 12px;
  background: var(--rc-surface-glass);
  color: var(--rc-text);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.demo-mode-toggle input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #ff7849;
}

.demo-mode-banner {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 16px 38px rgba(220, 38, 38, 0.4);
  pointer-events: none;
}

.demo-mode-banner.hidden {
  display: none;
}

.demo-mode-banner__pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  animation: rc-demo-pulse 1.4s infinite;
}

.demo-mode-banner__copy {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.95;
}

@keyframes rc-demo-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

body.demo-mode .driver-app::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  border: 3px solid rgba(249, 115, 22, 0.7);
  border-radius: 16px;
  z-index: 49;
}

.proofs-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.proofs-view-head {
  padding: 2px 2px 0;
}

.proofs-view-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.proofs-view-actions {
  padding: 0 2px;
}

.proofs-empty {
  margin: 0;
  padding: 18px 14px;
  border-radius: 14px;
  border: 1px dashed var(--rc-line-strong, rgba(255, 255, 255, 0.14));
  background: var(--rc-surface-2, #182028);
  text-align: center;
}

.proof-list {
  display: grid;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.proof-row {
  display: grid;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid var(--rc-line-strong, rgba(255, 255, 255, 0.12));
  background: var(--rc-surface-2, #182028);
  box-shadow: none;
  font-size: 0.84rem;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.proof-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.proof-row-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.proof-row-title strong {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--rc-text);
}

.proof-row-payout {
  flex: 0 0 auto;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--rc-brand, #5fc482);
  white-space: nowrap;
}

.proof-row--pending .proof-row-payout,
.proof-row--red .proof-row-payout {
  color: var(--rc-text-secondary);
}

.proof-badge {
  flex: 0 0 auto;
  margin-top: 2px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
}

.proof-badge--green {
  background: rgba(34, 197, 94, 0.2);
  color: rgb(134, 239, 172);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.proof-badge--amber {
  background: rgba(245, 158, 11, 0.2);
  color: rgb(253, 211, 77);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.proof-badge--red {
  background: rgba(248, 113, 113, 0.16);
  color: rgb(252, 165, 165);
  border: 1px solid rgba(248, 113, 113, 0.32);
}

.proof-badge--pending {
  background: rgba(96, 165, 250, 0.16);
  color: rgb(147, 197, 253);
  border: 1px solid rgba(96, 165, 250, 0.32);
}

.proof-row-meta,
.proof-row-status,
.proof-row-id {
  margin: 0;
  line-height: 1.45;
  min-width: 0;
}

.proof-row-meta {
  font-size: 0.8rem;
}

.proof-row-status {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--rc-text-secondary);
}

.proof-row--green .proof-row-status {
  color: rgb(134, 239, 172);
}

.proof-row--amber .proof-row-status {
  color: rgb(253, 211, 77);
}

.proof-row--red .proof-row-status {
  color: rgb(252, 165, 165);
}

.proof-row--pending .proof-row-status {
  color: rgb(147, 197, 253);
}

.proof-row-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.proof-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--rc-text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.proof-chip--ok {
  color: rgb(134, 239, 172);
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.1);
}

.proof-chip--warn {
  color: rgb(253, 211, 77);
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.1);
}

.proof-chip--earn {
  color: var(--rc-text);
  font-weight: 600;
}

.proof-chip--demo {
  color: rgb(253, 186, 116);
  border-color: rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.12);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.proof-row-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  color: var(--rc-text-muted, rgba(255, 255, 255, 0.42));
  letter-spacing: 0.02em;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.proof-row--pending {
  background: #172231;
  border-color: rgba(96, 165, 250, 0.42);
}

.proof-row--green {
  background: #15251c;
  border-color: rgba(34, 197, 94, 0.38);
}

.proof-row--amber {
  background: #2a2214;
  border-color: rgba(245, 158, 11, 0.42);
}

.proof-row--red {
  background: #2a1717;
  border-color: rgba(248, 113, 113, 0.38);
}

.mic-listening-panel {
  border-color: rgba(15, 139, 141, 0.55);
  text-align: center;
}

.mic-pulse {
  width: 14px;
  height: 14px;
  margin: 12px auto 0;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  animation: micPulse 1.4s ease-out infinite;
}

@keyframes micPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.confidence-progress {
  margin: 12px 0 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.confidence-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #19c58a, #0f8b8d);
  transition: width 0.45s ease;
}

.weekly-confidence-row {
  gap: 8px;
}

.weekly-confidence-progress {
  margin: 0;
  height: 8px;
}

@keyframes weeklyConfidencePulse {
  0%,
  100% {
    transform: scale(1);
    border-color: var(--rc-line);
  }

  40% {
    transform: scale(1.015);
    border-color: rgba(15, 139, 141, 0.55);
  }
}

.weekly-confidence-card--pulse {
  animation: weeklyConfidencePulse 480ms cubic-bezier(0.34, 1.2, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {
  .weekly-confidence-card--pulse {
    animation: none;
  }

  .confidence-progress span {
    transition: none;
  }
}

.confidence-panel h2 {
  margin-bottom: 10px;
}

.confidence-meter-row {
  display: grid;
  gap: 12px;
}

.confidence-meter {
  width: 100%;
}

.confidence-meter-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.confidence-meter-zones {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 35fr 20fr 45fr;
}

.confidence-meter-zones .zone-red {
  background: rgba(239, 68, 68, 0.18);
}

.confidence-meter-zones .zone-amber {
  background: rgba(245, 158, 11, 0.16);
}

.confidence-meter-zones .zone-green {
  background: rgba(34, 197, 94, 0.14);
}

.confidence-meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #ef4444 0%, #f59e0b 42%, #22c55e 100%);
  opacity: 0.92;
  transition: width 0.35s ease;
}

.confidence-meter--green .confidence-meter-fill {
  background: linear-gradient(90deg, #16a34a, #22c55e);
}

.confidence-meter--amber .confidence-meter-fill {
  background: linear-gradient(90deg, #d97706, #f59e0b);
}

.confidence-meter--red .confidence-meter-fill {
  background: linear-gradient(90deg, #b91c1c, #ef4444);
}

.confidence-meter--checking .confidence-meter-fill {
  background: linear-gradient(90deg, #0f8b8d, #19c58a);
  animation: confidencePulse 1.2s ease-in-out infinite;
}

.confidence-meter-marker {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(15, 139, 141, 0.55), 0 0 10px rgba(255, 255, 255, 0.45);
  transform: translateY(-50%);
  transition: left 0.35s ease;
}

.confidence-meter-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.68rem;
  color: var(--rc-text-muted);
}

.confidence-meter-copy strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

@keyframes confidencePulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.mic-listening-panel .confidence-meter {
  margin-top: 10px;
}

.confidence-proof-line.traffic-green {
  color: #15803d;
}

.confidence-proof-line.traffic-amber {
  color: #b45309;
}

.confidence-proof-line.traffic-red {
  color: #b91c1c;
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%) translateY(12px);
  width: min(calc(100% - 24px), 340px);
  padding: 12px 14px;
  border-radius: 12px;
  background: #10191d;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 30;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.pair-code {
  font-size: 2.4rem;
  letter-spacing: 0.35em;
  font-weight: 900;
  margin: 16px 0;
  color: var(--accent);
}

.sound-ring {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid rgba(242, 183, 5, 0.5);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.route-pill {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 139, 141, 0.25);
  font-size: 0.82rem;
}

.media-share-pair-card .pair-steps,
.media-share-instructions {
  margin: 10px 0 0;
  padding-left: 20px;
  line-height: 1.55;
  font-size: 0.88rem;
}

.qr-wrap {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

@media (min-width: 420px) {
  .qr-wrap {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
}

.pair-qr {
  border-radius: 12px;
  background: var(--rc-surface-2);
  padding: 8px;
}

.media-share-link {
  word-break: break-all;
  font-size: 0.78rem;
}

.media-share-link a {
  color: var(--brand-dark);
}

.pair-status-line {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.pairing-error {
  margin: 8px 0 0;
  color: #ffb4a8;
  font-size: 0.88rem;
  line-height: 1.45;
}

.pairing-notice {
  margin: 8px 0 0;
  color: #ffc966;
  font-size: 0.88rem;
  line-height: 1.45;
}

.media-player-meta--notice {
  border-color: rgba(255, 201, 102, 0.35);
  background: rgba(255, 201, 102, 0.06);
}

.server-error-panel {
  border-color: rgba(207, 77, 63, 0.45);
  background: rgba(207, 77, 63, 0.08);
}

.server-cmd {
  display: block;
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #10191d;
  color: #f2b705;
  font-size: 0.78rem;
  word-break: break-all;
}

.pair-code-display {
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 0.35em;
  text-align: center;
  margin: 16px 0;
  padding: 16px;
  border-radius: 14px;
  background: #10191d;
  color: #f2b705;
  font-family: ui-monospace, monospace;
}

@media (min-width: 520px) {
  body.driver-app:not(.driver-logged-in) .phone-device .app-frame {
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
}

@media (max-width: 480px) {
  .phone-stage {
    padding: 0;
    align-items: stretch;
  }

  body.driver-app.driver-logged-in .phone-stage {
    padding: 0;
  }

  body.driver-app:not(.driver-logged-in) .phone-stage {
    padding: 0;
  }

  .phone-device {
    width: 100%;
  }

  body.driver-app.driver-logged-in .phone-device,
  body.driver-app:not(.driver-logged-in) .phone-device {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.driver-app.driver-logged-in .phone-dynamic-island {
    display: none;
  }

  body.driver-app.driver-logged-in .phone-device .app-frame,
  body.driver-app:not(.driver-logged-in) .app-frame {
    border-radius: 0;
    min-height: 100vh;
    max-height: none;
    height: 100vh;
    height: 100dvh;
    box-shadow: none;
  }

  body.driver-app.driver-logged-in .bottom-nav {
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
  }

  body.driver-app.driver-logged-in .platform-copyright {
    display: none;
  }

  body.driver-app.driver-logged-in .phone-home-bar {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  body.driver-app.driver-logged-in .app-main {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  body.driver-app.driver-logged-in .panel {
    padding: 14px;
  }

  .demo-controls-dock {
    left: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
  }
}

/* ── Phone shell (Drive tab mockup) ── */
.phone-chrome {
  padding: max(12px, env(safe-area-inset-top)) 18px 0;
  position: relative;
  z-index: 2;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--rc-text-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.status-trailing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-signal {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}

.status-signal i {
  display: block;
  width: 3px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.status-signal i.on {
  background: var(--rc-text);
}

.status-signal i:nth-child(1) {
  height: 4px;
}

.status-signal i:nth-child(2) {
  height: 7px;
}

.status-signal i:nth-child(3) {
  height: 10px;
}

.status-battery {
  --battery-level: 72%;
  position: relative;
  width: 24px;
  height: 11px;
  border: 1.5px solid var(--rc-text-secondary);
  border-radius: 3px;
  box-sizing: border-box;
}

.status-battery::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 2px;
  width: 2px;
  height: 5px;
  border-radius: 0 1px 1px 0;
  background: var(--rc-text-secondary);
}

.status-battery-fill {
  display: block;
  height: 100%;
  width: var(--battery-level);
  max-width: 100%;
  border-radius: 1px;
  background: var(--rc-text);
}

.status-battery.charging .status-battery-fill {
  background: var(--rc-brand);
}

.driver-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark-sm {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--rc-brand-gradient);
  color: var(--rc-void);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-brand);
}

.driver-header strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--rc-text);
}

.driver-login-card {
  border: 1px solid var(--rc-brand-border);
  border-radius: 14px;
  padding: 14px;
  margin: 0;
  background: var(--rc-brand-soft);
  backdrop-filter: blur(8px);
}

.driver-login-card .eyebrow {
  color: var(--rc-brand);
}

.driver-login-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--rc-text);
}

.driver-login-card small {
  display: block;
  margin-top: 4px;
  color: var(--rc-text-secondary);
  line-height: 1.45;
  font-size: 0.82rem;
}

.drive-earnings {
  text-align: center;
  padding: 0;
}

.drive-earnings .eyebrow {
  background: var(--rc-compensation-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--rc-brand);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .drive-earnings .eyebrow {
    color: transparent;
  }
}

.drive-earnings h3 {
  margin: 8px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rc-text-secondary);
}

.drive-earnings > p {
  margin: 6px 0 0;
  color: var(--rc-text-muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.drive-money {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
}

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

  45% {
    transform: translateY(-14px);
  }
}

.drive-money.drive-money--bounce {
  animation: walletBounce 480ms cubic-bezier(0.34, 1.45, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {
  .drive-money.drive-money--bounce {
    animation: none;
  }
}

.drive-money span,
.drive-money strong,
.drive-money em {
  background: var(--rc-compensation-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--rc-brand);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .drive-money span,
  .drive-money strong,
  .drive-money em {
    color: transparent;
  }
}

.drive-money span {
  font-size: 28px;
  font-weight: 800;
}

.drive-money strong {
  font-size: clamp(52px, 16vw, 68px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.drive-money em {
  font-size: clamp(28px, 8vw, 40px);
  font-style: normal;
  font-weight: 700;
}

.shift-card {
  width: 100%;
  min-height: 118px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 18px;
  margin: 0;
  border: 1px solid var(--rc-line);
  border-radius: 20px;
  background: var(--rc-surface-2);
  color: var(--rc-text);
  box-shadow: none;
  transition: background var(--ease, 0.2s ease), border-color var(--ease, 0.2s ease);
}

.shift-card span:first-child {
  font-size: 1.25rem;
  opacity: 0.85;
}

.shift-card.active {
  border-color: var(--rc-brand);
  background: transparent;
  color: var(--rc-brand);
  box-shadow: none;
}

.shift-card strong {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.shift-card small {
  display: block;
  color: inherit;
  opacity: 0.75;
  font-size: 0.78rem;
  line-height: 1.45;
}

.driver-checks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid var(--rc-line);
  border-radius: 10px;
  background: var(--rc-surface-2);
  white-space: nowrap;
}

.driver-checks span {
  text-align: center;
  color: var(--rc-text-muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.driver-checks span + span::before {
  content: "·";
  color: var(--rc-text-muted);
  margin: 0 8px;
}

.driver-checks span.ready {
  color: var(--rc-brand);
}

.drive-now-playing {
  display: none;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  padding: 12px;
  margin: 0;
  border: 1px solid var(--rc-brand-border);
  border-radius: 16px;
  background: var(--rc-surface-glass, rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(10px);
}

.drive-now-playing.show {
  display: grid;
  animation: driveNowPlayingIn 240ms ease;
}

@keyframes driveNowPlayingIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.drive-details {
  margin: 0;
  display: grid;
  gap: var(--drive-stack-gap, 12px);
}

.drive-now-playing .play-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--rc-brand-gradient);
  color: var(--rc-void);
  font-weight: 900;
  font-size: 0.72rem;
}

.drive-now-playing strong {
  display: block;
  font-size: 0.88rem;
  color: var(--rc-text);
}

.drive-now-playing small {
  color: var(--rc-text-muted);
  font-size: 0.75rem;
}

.drive-now-playing b {
  background: var(--rc-compensation-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--rc-brand);
  font-size: 0.95rem;
  white-space: nowrap;
}

body.driver-app.driver-logged-in .panel {
  background: var(--rc-surface-2);
  border-color: var(--rc-line);
  color: var(--rc-text);
  padding: 14px;
}

body.driver-app.driver-logged-in .panel .muted {
  color: var(--rc-text-muted);
}

body.driver-app.driver-logged-in .panel .eyebrow {
  color: var(--rc-brand);
}

body.driver-app.driver-logged-in .metric {
  background: var(--rc-surface-1);
  border-color: var(--rc-line);
}

body.driver-app.driver-logged-in .metric span {
  color: var(--rc-text-muted);
}

body.driver-app.driver-logged-in .metric strong {
  color: var(--rc-text);
  font-size: 0.92rem;
  font-weight: 700;
}

body.driver-app.driver-logged-in .ghost-btn {
  background: transparent;
  border-color: var(--rc-line-strong);
  color: var(--rc-text-secondary);
}

body.driver-app.driver-logged-in .ghost-btn:hover {
  border-color: var(--rc-brand);
  color: var(--rc-brand);
  background: transparent;
}

body.driver-app.driver-logged-in .check-item {
  background: var(--rc-surface-2);
  border-color: var(--rc-line);
  color: var(--rc-text);
}

body.driver-app.driver-logged-in .check-item strong {
  color: var(--rc-text);
}

body.driver-app.driver-logged-in .check-item.active-step {
  border-color: var(--rc-brand);
  box-shadow: none;
}

body.driver-app.driver-logged-in .check-item.done {
  border-color: var(--rc-brand-border);
  background: var(--rc-surface-3);
}

body.driver-app.driver-logged-in .status-dot.pending {
  color: #ffc966;
}

body.driver-app.driver-logged-in label {
  color: var(--rc-text-secondary);
}

body.driver-app.driver-logged-in input,
body.driver-app.driver-logged-in select,
body.driver-app.driver-logged-in textarea {
  color: var(--rc-text);
  background: var(--rc-surface-1);
  border-color: var(--rc-line);
}

body.driver-app.driver-logged-in .stepper span {
  background: var(--rc-line);
}

body.driver-app.driver-logged-in .stepper span.done {
  background: var(--rc-brand);
}

body.driver-app.driver-logged-in .bottom-nav {
  background: var(--rc-surface-1);
  border-top-color: var(--rc-line);
  backdrop-filter: none;
}

body.driver-app.driver-logged-in .nav-btn {
  color: var(--rc-text-muted);
  box-shadow: none;
}

body.driver-app.driver-logged-in .nav-btn.active {
  color: var(--rc-brand);
  background: transparent;
  border-color: var(--rc-brand);
  box-shadow: none;
}

.weekly-statement {
  display: grid;
  gap: 14px;
  border: 1px solid var(--rc-line);
  border-radius: 14px;
  padding: 16px;
  background: var(--rc-surface-2, rgba(255, 255, 255, 0.03));
}

.weekly-statement--live {
  border-color: rgba(95, 196, 130, 0.35);
  background: linear-gradient(180deg, rgba(95, 196, 130, 0.08), var(--rc-surface-2, rgba(255, 255, 255, 0.02)));
}

.weekly-statement-head {
  display: grid;
  gap: 10px;
}

.weekly-statement-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.weekly-statement-intro .eyebrow {
  margin: 0;
}

.weekly-statement-net {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}

.weekly-statement-net strong {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.weekly-statement-net .muted {
  font-size: 0.88rem;
}

.weekly-statement-status {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--rc-line);
  color: var(--rc-text-secondary);
  line-height: 1.35;
  text-align: center;
  flex: 0 1 auto;
  max-width: 100%;
}

.weekly-statement-status.is-open {
  border-color: rgba(95, 196, 130, 0.5);
  color: rgb(120, 220, 160);
  background: rgba(95, 196, 130, 0.08);
}

.weekly-statement-status.is-locked {
  border-color: rgba(255, 195, 80, 0.45);
  color: rgb(255, 205, 120);
  background: rgba(255, 195, 80, 0.08);
}

.weekly-statement-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.weekly-statement-totals li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-align: center;
}

.weekly-statement-totals strong {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.weekly-statement-totals span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.weekly-statement-kyc {
  display: grid;
  gap: 4px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgb(255, 196, 130);
  background: rgba(255, 160, 70, 0.1);
  border: 1px solid rgba(255, 180, 100, 0.28);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0;
}

.weekly-statement-kyc strong {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgb(255, 210, 150);
}

.weekly-statement-detail {
  display: grid;
  gap: 10px;
  padding-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.weekly-statement-empty,
.weekly-statement-top {
  margin: 0;
  font-size: 0.86rem;
}

.stmt-days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stmt-day {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  min-width: 78px;
}

.stmt-day-date {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rc-text-secondary);
}

.stmt-day-amount {
  font-weight: 700;
  font-size: 0.95rem;
}

.stmt-day-meta {
  font-size: 0.7rem;
}

.instant-cashout-panel {
  display: grid;
  gap: 12px;
  border: 1px solid var(--rc-line);
  border-radius: 14px;
  padding: 16px;
}
.instant-cashout-panel.is-open {
  border-color: rgba(95, 196, 130, 0.45);
  background: linear-gradient(180deg, rgba(95, 196, 130, 0.08), transparent);
}
.instant-cashout-panel.is-closed {
  opacity: 0.85;
}
.instant-cashout-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.instant-cashout-head h3 {
  margin: 4px 0 2px;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.instant-cashout-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--rc-line);
  color: var(--rc-text-secondary);
  white-space: nowrap;
}
.instant-cashout-pill.is-open {
  border-color: rgba(95, 196, 130, 0.5);
  color: rgb(120, 220, 160);
}
.instant-cashout-pill.is-closed {
  border-color: rgba(245, 158, 11, 0.45);
  color: rgb(255, 205, 120);
}
.instant-cashout-fees {
  font-size: 0.78rem;
}
.instant-cashout-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.instant-cashout-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  flex: 1 1 140px;
}
.instant-cashout-row label input {
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--rc-line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--rc-text);
}
.instant-cashout-row button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.instant-cashout-receipt {
  font-size: 0.78rem;
}
.instant-cashout-receipt code {
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
}
