.icon { flex-shrink: 0; vertical-align: middle; }

/* ============ App Layout ============ */
.app-body {
  background: var(--bg-0);
  color: var(--text);
  height: 100dvh;
  overflow: hidden;
  padding-bottom: 72px;
  transition: background 0.2s, color 0.2s;
}
.scroll-container {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 0 100px;
  background: var(--bg-0);
  color: var(--text);
  -webkit-overflow-scrolling: touch;
}

/* ============ Bottom Nav ============ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  background: var(--card-solid);
  opacity: 0.98;
  backdrop-filter: blur(24px) saturate(1.5);
  border-top: 1px solid var(--border);
  transition: transform 0.28s cubic-bezier(.2,.9,.3,1);
}
.bottom-nav.hidden { transform: translateY(120%); }
.nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  color: var(--text-3);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: color 0.15s;
}
.nav-tab:active { transform: scale(0.94); }
.nav-tab.active { color: #7c3aff; }
.nav-tab.driver-tab.active { color: #34c759; }

/* ============ App Top Bar ============ */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg-0);
  padding: max(16px, env(safe-area-inset-top)) 20px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.app-topbar h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
}
.tb-actions { display: flex; gap: 8px; }
.tb-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface-1);
  border: 0;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s, background 0.15s;
}
.tb-btn:active { transform: scale(0.94); }

/* ============ Content Area ============ */
.content { padding: 16px 20px 40px; }
.content h2 {
  font-size: 13px;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 24px 0 12px;
  font-weight: 700;
}
.content h2:first-child { margin-top: 8px; }

/* ============ Cards + Lists ============ */
.card {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 10px;
  color: var(--text);
}
.list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.12s, transform 0.08s;
  color: var(--text);
  text-decoration: none;
}
.list-item:active { transform: scale(0.99); background: var(--surface-1); }
.list-item .li-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(124, 58, 255, 0.15);
  color: #b28dff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.list-item .li-body { flex: 1; min-width: 0; }
.list-item .li-title {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.list-item .li-sub {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
}
.list-item .li-value {
  font-weight: 700;
  color: var(--text);
}
.list-item .li-value.gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.list-item .li-chevron { color: var(--text-3); flex-shrink: 0; }

/* ============ Empty State ============ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-2);
}
.empty-state .icon-wrap {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--surface-0);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  margin: 0 auto 16px;
}
.empty-state h3 { color: var(--text); font-size: 18px; margin: 0 0 6px; }
.empty-state p { font-size: 14px; margin: 0 0 20px; }

/* ============ FluxCash Balance Card ============ */
.balance-card {
  background: linear-gradient(135deg, #4fb3ff 0%, #7c3aff 100%);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(124, 58, 255, 0.35);
}
.balance-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
  pointer-events: none;
}
.balance-label {
  font-size: 12px;
  opacity: 0.85;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}
.balance-value {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 6px 0 4px;
}
.balance-hint {
  font-size: 12px;
  opacity: 0.85;
  line-height: 1.5;
}

/* ============ Forms ============ */
.field-group {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 10px;
}
.field {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.field:last-child { border-bottom: 0; }
.field-label {
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 15px;
  outline: none;
  padding: 0;
  font-family: inherit;
}
.field input::placeholder { color: var(--text-3); }

button, a.list-item, .card, .list-item {
  -webkit-tap-highlight-color: transparent;
}

/* ============ Payment Method Row ============ */
.pm-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text);
}
.pm-row.selected {
  border-color: rgba(124, 58, 255, 0.5);
  background: rgba(124, 58, 255, 0.08);
}
.pm-row:active { transform: scale(0.99); }
.pm-row.disabled { opacity: 0.4; cursor: not-allowed; }
.pm-row.locked { opacity: 0.85; }
.pm-brand {
  width: 44px; height: 30px;
  flex-shrink: 0;
}
.pm-brand svg { width: 100%; height: 100%; display: block; }
.pm-body { flex: 1; min-width: 0; }
.pm-title { font-size: 15px; font-weight: 600; }
.pm-sub { font-size: 12px; color: var(--text-2); margin-top: 1px; }
.pm-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(124, 58, 255, 0.2);
  color: #b28dff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pm-check {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.pm-row.selected .pm-check {
  background: var(--grad);
  border-color: transparent;
}

/* ============ Theme Toggle ============ */
.theme-toggle {
  display: flex;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
}
.theme-toggle button {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: 0;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}
.theme-toggle button.active {
  background: var(--card-solid);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
[data-theme="light"] .theme-toggle button.active {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ============ Stars ============ */
.stars { display: inline-flex; gap: 2px; color: #ffb43c; }
.stars svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.stars svg.empty { color: var(--text-3); fill: none; stroke: currentColor; stroke-width: 2; }

/* ============ Driver Rider Card ============ */
.assigned-driver {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
}
.assigned-driver .ad-photo {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--grad);
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}
.assigned-driver .ad-photo img { width: 100%; height: 100%; object-fit: cover; }
.assigned-driver .ad-info { flex: 1; min-width: 0; }
.assigned-driver .ad-name { font-size: 15px; font-weight: 700; }
.assigned-driver .ad-meta { font-size: 12px; color: var(--text-2); margin-top: 2px; display: flex; align-items: center; gap: 8px; }

/* ============ Driver Apply Onboarding ============ */
.apply-step { padding: 8px 4px 40px; }
.apply-badge {
  display: inline-block;
  padding: 5px 12px;
  background: var(--surface-1);
  color: var(--text-2);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.apply-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.2;
}
.apply-sub { color: var(--text-2); font-size: 14px; margin: 0 0 20px; line-height: 1.5; }

.apply-choices { display: flex; flex-direction: column; gap: 10px; }
.apply-choice {
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
}
.apply-choice:hover { border-color: var(--grad-purple); background: var(--surface-1); }
.apply-choice:active { transform: scale(0.99); }
.apply-choice-title { font-weight: 700; font-size: 15px; }
.apply-choice-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }

.apply-input {
  width: 100%;
  padding: 16px;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-size: 15px;
  outline: none;
  font-family: inherit;
}
.apply-input:focus { border-color: var(--grad-purple); }

.apply-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  margin: 20px 0;
}
.apply-check-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.apc-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

/* Upload */
.apply-upload {
  background: var(--surface-0);
  border: 2px dashed var(--border-strong);
  border-radius: 16px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s;
  position: relative;
  overflow: hidden;
}
.apply-upload:hover { border-color: var(--grad-purple); }
.apply-upload-inner {
  color: var(--text-2);
  text-align: center;
  padding: 20px;
}
.apply-upload.has-image { border-style: solid; padding: 0; }
.apply-upload img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.apply-retake {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: 0;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* Bottom-Nav bei Scroll ausblenden */
.bottom-nav {
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.bottom-nav.nav-hidden {
  transform: translateY(120%);
}

/* ============ Flux+ Page ============ */
.fp-hero {
  background: linear-gradient(135deg, #4fb3ff 0%, #7c3aff 100%);
  color: #fff;
  border: 0;
  padding: 24px;
  text-align: center;
}
.fp-hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.fp-hero h1 { color: #fff !important; }
.fp-hero p { color: rgba(255,255,255,0.9) !important; }

.fp-features { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fp-feat {
  padding: 12px;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.fp-feat-icon { font-size: 22px; flex-shrink: 0; }
.fp-feat-body { min-width: 0; }
.fp-feat-title { font-weight: 700; font-size: 13px; color: var(--text); line-height: 1.2; }
.fp-feat-sub { font-size: 11px; color: var(--text-2); margin-top: 3px; line-height: 1.3; }

.fp-plans { display: flex; flex-direction: column; gap: 10px; }
.fp-plan {
  padding: 18px;
  background: var(--surface-0);
  border: 2px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.fp-plan:hover, .fp-plan:active { border-color: var(--grad-purple); background: var(--surface-1); }
.fp-plan.featured {
  border-color: var(--grad-purple);
  background: linear-gradient(135deg, rgba(79,179,255,0.06), rgba(124,58,255,0.06));
}
.fp-plan-badge {
  position: absolute; top: -10px; right: 14px;
  background: var(--grad); color: #fff;
  padding: 3px 10px; border-radius: 10px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.fp-plan-name { font-weight: 700; color: var(--text); font-size: 15px; }
.fp-plan-price { font-size: 28px; font-weight: 800; color: var(--text); margin-top: 4px; }
.fp-plan-price span { font-size: 14px; color: var(--text-2); font-weight: 500; }
.fp-plan-sub { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.fp-plan-trial {
  margin-top: 10px; padding: 6px 10px;
  background: rgba(52,199,89,0.15); color: #34c759;
  border-radius: 8px; font-size: 12px; font-weight: 700;
  display: inline-block;
}

.fp-active {
  background: linear-gradient(135deg, rgba(255,180,60,0.15), rgba(255,140,60,0.15));
  border-color: rgba(255,180,60,0.4);
}
.fp-active-badge { font-weight: 800; color: #ffb43c; font-size: 15px; }

.fp-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fp-stat {
  padding: 14px;
  background: var(--surface-0);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.fp-stat-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; }
.fp-stat-val { font-size: 22px; font-weight: 800; color: var(--text); margin-top: 4px; }
.fp-stat-val.gradient { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Flux+ Badge im Profil */
.fluxplus-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #ffb43c, #ff8c3c);
  color: #fff; padding: 2px 8px; border-radius: 8px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.05em;
}
.avatar-fluxplus {
  box-shadow: 0 0 0 3px #ffb43c;
}
