:root {
  --midnight: #0b1220;
  --midnight-soft: #111b31;
  --purple: #7b61ff;
  --cyan: #00d8ff;
  --white: #ffffff;
  --light: #f5f7fa;
  --gray: #aab3c5;
  --line: rgba(255, 255, 255, 0.13);
  --panel: rgba(17, 27, 49, 0.72);
  --panel-bright: rgba(31, 45, 77, 0.78);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  background: var(--midnight);
}

body {
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  margin: 0;
  color: var(--white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 18% 8%, rgba(123, 97, 255, 0.22), transparent 28rem),
    radial-gradient(circle at 85% 18%, rgba(0, 216, 255, 0.18), transparent 26rem),
    linear-gradient(180deg, #0b1220 0%, #090e19 100%);
}

body > div[data-netlify-deploy-id],
body > div[data-netlify-site-id] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.aurora {
  position: fixed;
  z-index: 0;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.22;
  pointer-events: none;
  animation: floatGlow 8s ease-in-out infinite alternate;
}

.aurora-one {
  top: 7rem;
  left: -8rem;
  background: var(--purple);
}

.aurora-two {
  right: -7rem;
  bottom: 9rem;
  background: var(--cyan);
  animation-delay: -3s;
}

#app,
.site-footer {
  position: relative;
  z-index: 1;
}

.page {
  width: min(1180px, calc(100% - 32px));
  min-width: 0;
  max-width: 100%;
  margin: 0 auto;
  padding: 18px 0 34px;
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  max-width: calc(100% - 180px);
}

.brand-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 32px rgba(0, 216, 255, 0.2);
}

.brand-text {
  display: grid;
  justify-items: center;
  gap: 4px;
  line-height: 1.05;
  min-width: 0;
  width: max-content;
  text-align: center;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  display: block;
}

.brand-tagline {
  color: var(--gray);
  font-size: 0.44rem;
  font-weight: 600;
  line-height: 1.15;
  display: block;
  white-space: nowrap;
  text-align: center;
  max-width: 100%;
}

.nav-pills {
  display: flex;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--gray);
  font-size: 0.87rem;
  font-weight: 700;
  transition: 180ms ease;
}

.nav-pill.active,
.nav-pill:hover {
  color: var(--white);
  background: linear-gradient(135deg, rgba(123, 97, 255, 0.95), rgba(0, 216, 255, 0.58));
  box-shadow: 0 10px 28px rgba(0, 216, 255, 0.16);
}

.view-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(0, 216, 255, 0.34);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 28px rgba(0, 216, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.view-switch strong {
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(123, 97, 255, 0.95), rgba(0, 216, 255, 0.62));
}

.view-switch:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 216, 255, 0.68);
}

.home-chip {
  display: inline-grid;
  place-items: center;
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid rgba(123, 97, 255, 0.36);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.profile-chip {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 216, 255, 0.34);
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 26px rgba(0, 216, 255, 0.13);
  transition: transform 180ms ease, border-color 180ms ease;
}

.profile-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 216, 255, 0.68);
}

.profile-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-icon {
  width: 72%;
  height: 72%;
  stroke: rgba(245, 247, 250, 0.74);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(0, 216, 255, 0.14));
}

.photo-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.photo-upload-button {
  cursor: pointer;
}

.photo-preview {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(0, 216, 255, 0.34);
  border-radius: 999px;
  color: var(--gray);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 0 26px rgba(0, 216, 255, 0.1);
  font-size: 0.68rem;
  font-weight: 800;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(14px);
}

.profile-photo-modal {
  width: min(520px, 100%);
}

.profile-photo-large {
  display: grid;
  place-items: center;
  width: min(280px, 80vw);
  aspect-ratio: 1;
  margin: 18px auto;
  overflow: hidden;
  border: 1px solid rgba(0, 216, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 42px rgba(0, 216, 255, 0.18);
}

.profile-photo-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-large .profile-avatar-icon {
  width: 58%;
  height: 58%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding: 34px 0 24px;
}

.hero-copy {
  display: grid;
  gap: 14px;
}

.eyebrow {
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(0, 216, 255, 0.28);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(0, 216, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.6rem, 10vw, 6.4rem);
  line-height: 0.93;
  font-weight: 800;
}

.gradient-text {
  background: linear-gradient(135deg, var(--white) 0%, #dfe7ff 36%, var(--cyan) 72%, #a897ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subheadline {
  max-width: 660px;
  color: #c7d0e6;
  font-size: clamp(1.05rem, 3.8vw, 1.32rem);
  line-height: 1.55;
}

.hero-copy .subheadline {
  white-space: nowrap;
  font-size: clamp(0.86rem, 3.55vw, 1.32rem);
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-logo {
  width: min(100%, 310px);
  margin: 0 auto;
  border-radius: 8px;
  object-fit: cover;
  filter: drop-shadow(0 0 36px rgba(0, 216, 255, 0.18));
}

.pulse-row {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  align-items: end;
  gap: 4px;
  height: 58px;
  padding: 0 4px;
}

.pulse-row span {
  display: block;
  min-height: 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--cyan), var(--purple));
  box-shadow: 0 0 18px rgba(0, 216, 255, 0.32);
  animation: equalize 1.7s ease-in-out infinite;
}

.pulse-row span:nth-child(3n) {
  animation-delay: -0.45s;
}

.pulse-row span:nth-child(4n) {
  animation-delay: -0.8s;
}

.pulse-row span:nth-child(5n) {
  animation-delay: -1.15s;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 16px;
}

.section-heading h2 {
  font-size: clamp(1.45rem, 5vw, 2.2rem);
}

.section-heading p {
  max-width: 420px;
  color: var(--gray);
  line-height: 1.5;
}

.vibe-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.vibe-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--white);
  text-align: left;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.vibe-card:hover,
.vibe-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 216, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.vibe-card.selected {
  border-color: rgba(0, 216, 255, 0.88);
  background:
    linear-gradient(135deg, rgba(123, 97, 255, 0.26), rgba(0, 216, 255, 0.14)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 52px rgba(0, 216, 255, 0.18);
}

.vibe-icon,
.history-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.45rem;
}

.vibe-card h3,
.request-main h3 {
  font-size: 1.05rem;
}

.vibe-card p,
.request-main p,
.history-item p,
.muted {
  color: var(--gray);
  line-height: 1.45;
}

.check-dot {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}

.vibe-card.selected .check-dot {
  border-color: var(--cyan);
  background: radial-gradient(circle, var(--cyan) 38%, transparent 42%);
  box-shadow: 0 0 20px rgba(0, 216, 255, 0.5);
}

.action-band {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: 10px;
  margin: 20px -16px 0;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: rgba(11, 18, 32, 0.88);
  backdrop-filter: blur(18px);
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease, background 180ms ease;
}

.compact-pill-button {
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.utility-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 0.9rem;
  color: var(--cyan);
  font-weight: 800;
  text-decoration: none;
}

.utility-link:hover,
.utility-link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow: 0 18px 42px rgba(0, 216, 255, 0.2);
}

.secondary-button {
  color: var(--white);
  border: 1px solid rgba(0, 216, 255, 0.42);
  background: rgba(0, 216, 255, 0.11);
}

.ghost-button {
  color: var(--gray);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.safety-copy,
.fine-print {
  color: var(--gray);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-left: 8px;
  vertical-align: middle;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(0, 216, 255, 0.28);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  transition: 180ms ease;
}

.footer-links a:hover {
  color: var(--white);
  border-color: rgba(0, 216, 255, 0.58);
  background: linear-gradient(135deg, rgba(123, 97, 255, 0.34), rgba(0, 216, 255, 0.18));
  transform: translateY(-1px);
}

.setup-banner {
  display: grid;
  gap: 4px;
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(0, 216, 255, 0.28);
  border-radius: 8px;
  color: #dce7ff;
  background: rgba(0, 216, 255, 0.08);
}

.setup-banner code {
  color: var(--cyan);
}

.passenger-note {
  margin-top: 16px;
}

.mood-select-field,
.playlist-select-field {
  margin-top: 16px;
}

.mood-select {
  width: 100%;
  min-height: 78px;
  padding: 0 50px 0 18px;
  border: 1px solid rgba(0, 216, 255, 0.32);
  border-radius: 14px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(123, 97, 255, 0.18), rgba(0, 216, 255, 0.08)),
    rgba(255, 255, 255, 0.075);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
  font-size: 1.08rem;
  font-weight: 800;
  outline: none;
}

.feedback-select {
  width: 100%;
  min-height: 56px;
  padding: 0 42px 0 14px;
  border: 1px solid rgba(0, 216, 255, 0.32);
  border-radius: 14px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(123, 97, 255, 0.14), rgba(0, 216, 255, 0.08)),
    rgba(255, 255, 255, 0.075);
  outline: none;
  font-weight: 800;
}

.feedback-select option {
  color: #0b1220;
}

.mood-select:focus {
  border-color: rgba(0, 216, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(0, 216, 255, 0.1);
}

.mood-select option {
  color: #0b1220;
}

.error-copy,
.connection-copy {
  color: #ffb4b4;
  font-size: 0.86rem;
  line-height: 1.5;
}

.connection-copy {
  margin-top: 8px;
  color: var(--cyan);
}

.legal-document {
  gap: 14px;
  max-width: 920px;
  margin-inline: auto;
}

.legal-document h1 {
  font-size: clamp(2.2rem, 8vw, 4.4rem);
}

.legal-document h2 {
  margin-top: 14px;
  color: var(--white);
  font-size: clamp(1.2rem, 4vw, 1.75rem);
}

.legal-document h3 {
  margin-top: 8px;
  color: #dfe7ff;
}

.legal-document p {
  color: var(--gray);
  line-height: 1.65;
}

.legal-document a {
  color: var(--cyan);
  font-weight: 800;
}

.pin-gate-card {
  max-width: 560px;
  margin: 42px auto 0;
}

.success-panel,
.feedback-panel,
.dashboard-card,
.qr-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.dashboard-card h1 {
  font-size: clamp(2rem, 6vw, 3.35rem);
  line-height: 1.04;
}

.success-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
  margin-top: 28px;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 8px;
  background: rgba(0, 216, 255, 0.12);
  color: var(--cyan);
  font-size: 1.8rem;
  box-shadow: 0 0 34px rgba(0, 216, 255, 0.18);
}

.feedback-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  margin-top: 18px;
}

.stars {
  display: flex;
  gap: 7px;
}

.star-button {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.07);
  font-size: 1.45rem;
  cursor: pointer;
  transition: 160ms ease;
}

.star-button.active,
.star-button:hover {
  color: #ffd166;
  background: rgba(255, 209, 102, 0.12);
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--gray);
  font-size: 0.86rem;
  font-weight: 700;
}

textarea {
  width: 100%;
  min-height: 108px;
  resize: vertical;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

textarea:focus {
  border-color: rgba(0, 216, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(0, 216, 255, 0.08);
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-width: 0;
  max-width: 100%;
  gap: 16px;
  margin-top: 28px;
}

.home-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 24px;
}

.rider-hero {
  display: grid;
  gap: 16px;
  padding: 44px 0 22px;
}

.rider-hero h1 {
  font-size: clamp(2.4rem, 9vw, 5.6rem);
}

.rider-hero h1 .gradient-text {
  display: inline-block;
  white-space: nowrap;
}

.rider-driver-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, 620px);
  padding: 12px 14px;
  border: 1px solid rgba(0, 216, 255, 0.28);
  border-radius: 8px;
  background: rgba(0, 216, 255, 0.07);
}

.rider-driver-summary > div {
  display: grid;
  gap: 2px;
}

.rider-driver-summary small,
.rider-driver-summary span {
  color: var(--gray);
  font-size: 0.72rem;
}

.rider-driver-summary strong {
  color: var(--white);
  font-size: 0.95rem;
}

.playlist-toggle {
  margin-top: 14px;
}

.search-input {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid rgba(0, 216, 255, 0.32);
  border-radius: 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.075);
  outline: none;
}

.search-input:focus {
  border-color: rgba(0, 216, 255, 0.75);
  box-shadow: 0 0 0 4px rgba(0, 216, 255, 0.1);
}

.playlist-grid,
.search-results,
.metrics-grid {
  display: grid;
  gap: 12px;
}

.playlist-card,
.track-result {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.playlist-card {
  grid-template-columns: 88px 1fr;
}

.playlist-card img,
.playlist-cover,
.music-thumb {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(0, 216, 255, 0.12);
}

.playlist-cover,
.music-thumb {
  display: inline-grid;
  place-items: center;
  color: var(--cyan);
  font-weight: 900;
}

.track-result {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.track-actions {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
}

.rider-queue-card {
  gap: 14px;
}

.queue-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 0;
  border: 0;
  color: var(--white);
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.queue-accordion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(0, 216, 255, 0.36);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(0, 216, 255, 0.08);
  font-size: 0.82rem;
}

.compact-button {
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.metric-tile {
  display: grid;
  gap: 2px;
  padding: 14px;
  border: 1px solid rgba(0, 216, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.metric-tile strong {
  font-size: 1.7rem;
}

.metric-tile span {
  color: var(--gray);
  font-size: 0.82rem;
  font-weight: 800;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray);
  line-height: 1.4;
}

.dashboard-card,
.qr-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.dashboard-card > *,
.status-card > *,
.spotify-card > *,
.profile-qr-panel > * {
  min-width: 0;
  max-width: 100%;
}

.dashboard-card img,
.profile-qr-panel img {
  max-width: 100%;
}

.profile-qr-panel {
  display: grid;
  gap: 14px;
  margin: 18px 0 22px;
  padding: 16px;
  border: 1px solid rgba(0, 216, 255, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(123, 97, 255, 0.14), rgba(0, 216, 255, 0.08));
}

.profile-qr-heading {
  display: grid;
  gap: 12px;
}

.profile-qr-heading .eyebrow {
  width: fit-content;
  max-width: 100%;
  margin: 0;
}

.profile-qr-panel h3 {
  color: var(--white);
  font-size: 1.05rem;
}

.first-page-qr-card {
  align-content: start;
  border-color: rgba(0, 216, 255, 0.38);
}

.first-page-qr-card h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1.12;
}

.profile-qr-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.accordion-card {
  align-content: start;
}

.accordion-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  cursor: pointer;
  list-style: none;
}

.accordion-card summary::-webkit-details-marker {
  display: none;
}

.accordion-card summary span {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 800;
}

.accordion-card summary small {
  color: var(--gray);
  font-size: 0.76rem;
  font-weight: 800;
  text-align: right;
}

.accordion-card summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0, 216, 255, 0.28);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(0, 216, 255, 0.08);
}

.accordion-card[open] summary::after {
  content: "-";
}

.status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, rgba(0, 216, 255, 0.12), rgba(123, 97, 255, 0.12));
}

.driver-dashboard-header {
  min-height: 0;
  padding: 16px 18px;
}

.driver-dashboard-header h1 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.05;
}

.driver-dashboard-header .subheadline {
  margin: 4px 0 0;
  font-size: 0.92rem;
}

.driver-header-copy {
  display: grid;
  gap: 8px;
}

.driver-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.compact-live-status,
.compact-device-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(0, 216, 255, 0.25);
  border-radius: 999px;
  color: var(--gray);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.compact-live-status {
  color: #b8f7d5;
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
}

.status-light {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.8);
}

.request-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(0, 216, 255, 0.24);
  border-radius: 8px;
  background: var(--panel-bright);
}

.request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.spotify-card {
  align-content: start;
}

.spotify-status,
.spotify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.spotify-actions {
  flex-wrap: wrap;
  overflow: visible;
  padding-bottom: 2px;
}

.spotify-actions .compact-pill-button,
.request-actions .compact-pill-button {
  flex: 0 0 auto;
}

.music-control-button {
  width: 38px;
  min-width: 38px;
  padding: 0;
  font-size: 1rem;
}

.profile-qr-actions {
  flex-wrap: nowrap;
  width: 100%;
}

.qr-compact-button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 34px;
  padding-inline: 8px;
  font-size: 0.68rem;
  white-space: nowrap;
}

.dashboard-card .driver-login-title {
  font-size: 1.5rem;
  white-space: nowrap;
}

.driver-login-card {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  overflow: hidden;
}

.driver-login-card .registration-grid {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
}

.driver-login-card .field,
.driver-login-card .search-input,
.driver-login-card .action-band,
.driver-login-card .action-band > * {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.driver-login-card .action-band {
  position: static;
  margin: 8px 0 0;
  padding: 0;
  border-top: 0;
  background: transparent;
  backdrop-filter: none;
}

.driver-login-card .search-input {
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-auth-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.session-quick-actions,
.tip-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tip-options .secondary-button {
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.rider-session-controls {
  align-items: stretch;
  flex-wrap: nowrap;
  width: min(100%, 680px);
}

.rider-session-controls > [data-action="skip-track"] {
  flex: 0 0 auto;
}

.rider-tip-callout {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 8px 10px;
}

.rider-tip-callout p {
  font-size: 0.92rem;
  line-height: 1.5;
}

.tip-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(123, 97, 255, 0.28);
  border-radius: 8px;
  background: rgba(123, 97, 255, 0.08);
}

.tip-callout p {
  margin: 0;
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.5;
}

.tip-modal .section-heading p {
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--gray);
}

.tip-modal {
  width: min(92vw, 460px);
  max-height: 88vh;
  overflow-y: auto;
}

.tip-options .active {
  border-color: transparent;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow: 0 12px 30px rgba(0, 216, 255, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.support-card {
  width: min(100%, 760px);
  margin-inline: auto;
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  width: fit-content;
  max-width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gray);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  font-weight: 800;
}

.status-pill.connected {
  border-color: rgba(52, 211, 153, 0.45);
  color: #b8f7d5;
  background: rgba(52, 211, 153, 0.1);
}

.left-copy {
  text-align: left;
}

.playlist-link {
  color: var(--cyan);
  font-weight: 800;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.history-meta {
  color: var(--gray);
  font-size: 0.78rem;
}

.qr-box {
  display: grid;
  place-items: center;
  gap: 8px;
  width: min(100%, 320px);
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(0, 216, 255, 0.55);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 28px rgba(0, 216, 255, 0.16);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
}

.qr-box img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

.profile-qr-box {
  width: min(100%, 300px);
}

.profile-qr-box img {
  max-height: 380px;
  object-fit: contain;
}

.qr-box small {
  max-width: 90%;
  overflow-wrap: anywhere;
  color: var(--gray);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.qr-link {
  display: block;
  overflow-wrap: anywhere;
  color: var(--cyan);
  font-size: 0.82rem;
  line-height: 1.45;
}

.empty-state {
  padding: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--gray);
  text-align: center;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 30px;
  color: rgba(170, 179, 197, 0.86);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

@keyframes floatGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(22px, -18px, 0) scale(1.06);
  }
}

@keyframes equalize {
  0%,
  100% {
    height: 18%;
  }
  50% {
    height: 100%;
  }
}

@media (min-width: 640px) {
  .page {
    padding-top: 24px;
  }

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

  .action-band {
    position: static;
    margin-inline: 0;
    padding-inline: 0;
    border-top: 0;
    background: transparent;
    backdrop-filter: none;
  }

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

.metrics-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

  .track-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .dashboard-search,
  .qr-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

.registration-grid,
.dashboard-search,
.qr-actions {
  display: grid;
  gap: 12px;
}

.registration-card .mood-select {
  min-height: 56px;
}

.qr-management-card {
  align-items: start;
}

.qr-actions {
  grid-template-columns: 1fr;
}

.mini-chart {
  display: grid;
  gap: 10px;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.38fr) 1fr auto;
  align-items: center;
  gap: 10px;
  color: var(--gray);
  font-size: 0.86rem;
  font-weight: 800;
}

.chart-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.chart-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow: 0 0 18px rgba(0, 216, 255, 0.24);
}

.chart-width-0 { width: 0%; }
.chart-width-5 { width: 5%; }
.chart-width-10 { width: 10%; }
.chart-width-15 { width: 15%; }
.chart-width-20 { width: 20%; }
.chart-width-25 { width: 25%; }
.chart-width-30 { width: 30%; }
.chart-width-35 { width: 35%; }
.chart-width-40 { width: 40%; }
.chart-width-45 { width: 45%; }
.chart-width-50 { width: 50%; }
.chart-width-55 { width: 55%; }
.chart-width-60 { width: 60%; }
.chart-width-65 { width: 65%; }
.chart-width-70 { width: 70%; }
.chart-width-75 { width: 75%; }
.chart-width-80 { width: 80%; }
.chart-width-85 { width: 85%; }
.chart-width-90 { width: 90%; }
.chart-width-95 { width: 95%; }
.chart-width-100 { width: 100%; }

.chart-row strong {
  color: var(--white);
}

@media (min-width: 1100px) {
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.24fr) minmax(300px, 0.76fr);
    padding-top: 72px;
  }

  .vibe-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .vibe-card {
    grid-template-columns: 1fr;
    align-content: start;
    min-height: 188px;
  }

  .check-dot {
    position: absolute;
    right: 14px;
    top: 14px;
  }

  .dashboard-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    align-items: start;
  }

  .qr-management-card {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  }

  .qr-management-card .qr-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 440px) {
  .topbar {
    align-items: center;
    gap: 10px;
    min-height: 68px;
  }

  .brand-lockup {
    gap: 8px;
    max-width: calc(100% - 188px);
    align-items: center;
  }

  .view-switch {
    min-height: 38px;
    padding-inline: 8px;
  }

  .dashboard-switch {
    min-height: 34px;
    padding-inline: 6px;
    font-size: 0.68rem;
  }

  .dashboard-switch strong {
    padding: 5px 7px;
  }

  .topbar-actions {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }

  .home-chip {
    min-height: 34px;
    padding-inline: 8px;
    font-size: 0.66rem;
  }

  .topbar-actions .view-switch {
    position: static;
    min-height: 38px;
  }

  .profile-chip {
    width: 38px;
    height: 38px;
  }

  .brand-logo {
    width: 64px;
    height: 64px;
  }

  .brand-name {
    font-size: 0.96rem;
  }

  .brand-tagline {
    font-size: 0.39rem;
    white-space: nowrap;
    max-width: 100%;
  }

  .driver-login-card {
    padding: 18px 16px;
  }

  .dashboard-card .driver-login-title {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .driver-dashboard-header {
    padding: 13px 14px;
  }

  .driver-dashboard-header h1 {
    font-size: 1.45rem;
  }

  .driver-status-row {
    flex-wrap: wrap;
    gap: 5px;
  }

  .compact-live-status,
  .compact-device-status {
    max-width: 100%;
    min-height: 25px;
    padding-inline: 7px;
    font-size: 0.58rem;
    white-space: normal;
    text-align: center;
  }

  .spotify-status,
  .spotify-actions {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    overflow: visible;
  }

  .spotify-status .status-pill {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .spotify-actions .compact-pill-button:not(.music-control-button) {
    flex: 1 1 120px;
    min-width: 0;
    max-width: 100%;
  }

  .profile-qr-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .profile-qr-heading .fine-print,
  .profile-qr-heading p {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .rider-hero h1 {
    font-size: 1.55rem;
  }

  .rider-driver-summary {
    align-items: flex-start;
    padding: 10px 11px;
  }

  .rider-driver-summary .compact-device-status {
    white-space: normal;
    text-align: center;
  }

  .tip-callout {
    align-items: center;
    padding: 12px;
  }

  .tip-callout p {
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .rider-session-controls {
    gap: 7px;
  }

  .rider-tip-callout {
    gap: 7px;
  }

  .rider-tip-callout p {
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .hero {
    padding-top: 16px;
  }

  .hero-copy {
    gap: 10px;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.1rem);
  }

  .section-heading {
    margin-top: 18px;
  }

  .section-heading h2 {
    font-size: 1.72rem;
  }

  .hero-copy .subheadline {
    font-size: clamp(0.72rem, 3.35vw, 0.92rem);
    letter-spacing: 0;
  }

  .mood-select {
    min-height: 86px;
    border-radius: 18px;
    font-size: 1.14rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
