:root {
  --rider-primary: #f97316;
  --rider-primary-dark: #ea580c;
  --rider-primary-light: #fff7ed;
  --rider-primary-subtle: #ffedd5;
  --rider-secondary: #059669;
  --rider-secondary-dark: #047857;
  --rider-secondary-light: #ecfdf5;
  --rider-secondary-subtle: #d1fae5;
  --rider-dark: #0f172a;
  --rider-slate: #1e293b;
  --rider-gray-dark: #334155;
  --rider-gray: #64748b;
  --rider-gray-light: #f1f5f9;
  --rider-gray-subtle: #f8fafc;
  --rider-border: #e2e8f0;
  --rider-card: #ffffff;
  --rider-danger: #ef4444;
  --rider-danger-light: #fef2f2;
  --rider-danger-subtle: #fee2e2;
  --rider-warning: #f59e0b;
  --rider-warning-light: #fffbeb;
  --rider-warning-subtle: #fef3c7;
  --rider-info: #0284c7;
  --rider-info-light: #f0f9ff;
  --rider-info-subtle: #e0f2fe;
  
  --rider-radius-sm: 8px;
  --rider-radius: 14px;
  --rider-radius-lg: 20px;
  --rider-radius-full: 9999px;
  
  --rider-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --rider-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --rider-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --rider-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-top: env(safe-area-inset-top, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #f8fafc;
  color: var(--rider-dark);
  min-height: 100vh;
  line-height: 1.5;
  padding-bottom: calc(var(--safe-area-bottom) + 20px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App Header / Navigation */
.rider-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rider-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.rider-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (max-width: 640px) {
  .rider-container {
    padding: 0 10px;
  }
}

.rider-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
}

.rider-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  min-width: 0;
}

.rider-logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.rider-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 9px;
  display: block;
}

.rider-brand-text {
  font-size: 14px;
  font-weight: 800;
  color: var(--rider-dark);
  letter-spacing: -0.3px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.rider-brand-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--rider-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.rider-nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Touch-Optimized Colored Buttons */
.btn-rider-outline {
  min-height: 40px;
  padding: 8px 16px;
  border: 1.5px solid #fed7aa;
  background: var(--rider-primary-light);
  color: var(--rider-primary-dark);
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  touch-action: manipulation;
}

.btn-rider-outline:hover,
.btn-rider-outline:active {
  background: var(--rider-primary-subtle);
  border-color: var(--rider-primary);
  color: var(--rider-primary-dark);
  transform: scale(0.97);
}

.btn-rider-primary {
  min-height: 48px;
  padding: 12px 22px;
  border: none;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.35);
  touch-action: manipulation;
}

.btn-rider-primary:hover {
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  box-shadow: 0 8px 22px rgba(249, 115, 22, 0.45);
}

.btn-rider-primary:active {
  transform: scale(0.98);
  box-shadow: 0 3px 8px rgba(249, 115, 22, 0.3);
}

.btn-rider-dark {
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid #334155;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
  touch-action: manipulation;
}

.btn-rider-dark:hover {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.3);
}

.btn-rider-dark:active {
  transform: scale(0.98);
}

.btn-rider-secondary {
  min-height: 44px;
  padding: 10px 18px;
  border: none;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  touch-action: manipulation;
}

.btn-rider-primary:disabled,
.btn-rider-outline:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Hero Section */
.rider-hero {
  padding: 30px 0 24px;
  text-align: center;
  background: radial-gradient(circle at top, #fff7ed 0%, #f8fafc 75%);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--rider-primary-subtle);
  color: var(--rider-primary-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--rider-radius-full);
  margin-bottom: 14px;
  line-height: 1.3;
}

.rider-hero h1 {
  font-size: 26px;
  font-weight: 900;
  color: var(--rider-dark);
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.rider-hero h1 span {
  color: var(--rider-primary);
  background: linear-gradient(135deg, var(--rider-primary), #ea580c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rider-hero p {
  font-size: 14px;
  color: var(--rider-gray);
  max-width: 580px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.hero-cta-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-direction: column;
  padding: 0 8px;
}

@media (min-width: 600px) {
  .rider-hero { padding: 50px 0 36px; }
  .rider-hero h1 { font-size: 38px; }
  .rider-hero p { font-size: 16px; margin-bottom: 26px; }
  .hero-cta-group { flex-direction: row; }
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 24px 0;
}

@media (min-width: 600px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 900px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.benefit-card {
  background: #ffffff;
  padding: 20px;
  border-radius: var(--rider-radius);
  border: 1px solid var(--rider-border);
  box-shadow: var(--rider-shadow-sm);
  display: flex;
  flex-direction: column;
}

.benefit-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--rider-primary-subtle);
  color: var(--rider-primary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.benefit-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--rider-dark);
  margin-bottom: 6px;
}

.benefit-card p {
  font-size: 13px;
  color: var(--rider-gray);
  line-height: 1.5;
}

/* Steps Cards */
.steps-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 20px 0;
}

@media (min-width: 600px) {
  .steps-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.step-box {
  background: #ffffff;
  padding: 18px;
  border-radius: var(--rider-radius);
  border: 1px solid var(--rider-border);
}

.step-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--rider-primary);
  background: var(--rider-primary-subtle);
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

/* Multi-Step Wizard Card */
.wizard-card {
  background: #ffffff;
  border-radius: var(--rider-radius-lg);
  border: 1px solid var(--rider-border);
  box-shadow: var(--rider-shadow);
  padding: 20px 16px;
  max-width: 580px;
  margin: 16px auto 40px;
}

@media (min-width: 600px) {
  .wizard-card {
    padding: 32px 28px;
    margin: 24px auto 60px;
  }
}

/* Stepper Indicator */
.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
  padding: 0 4px;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--rider-border);
  z-index: 1;
}

.wizard-step-node {
  position: relative;
  z-index: 2;
  text-align: center;
  background: #ffffff;
  padding: 0 4px;
}

.wizard-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rider-gray-light);
  color: var(--rider-gray);
  border: 2px solid var(--rider-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  margin: 0 auto 4px;
  transition: all 0.25s ease;
}

.wizard-step-node.active .wizard-circle {
  background: var(--rider-primary);
  color: #ffffff;
  border-color: var(--rider-primary);
  box-shadow: 0 0 0 4px var(--rider-primary-subtle);
}

.wizard-step-node.completed .wizard-circle {
  background: var(--rider-secondary);
  color: #ffffff;
  border-color: var(--rider-secondary);
}

.wizard-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--rider-gray);
  white-space: nowrap;
}

.wizard-step-node.active .wizard-label {
  color: var(--rider-dark);
}

/* Mobile Friendly Form Inputs */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--rider-dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--rider-border);
  border-radius: 12px;
  font-size: 16px; /* Prevents auto-zoom on iOS */
  color: var(--rider-dark);
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

select.form-control {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 36px;
}

.form-control:focus {
  outline: none;
  border-color: var(--rider-primary);
  box-shadow: 0 0 0 3px var(--rider-primary-subtle);
}

.input-with-action {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.input-with-action .form-control {
  flex: 1;
}

.btn-input-action {
  min-height: 48px;
  padding: 0 14px;
  background: var(--rider-gray-light);
  border: 1.5px solid var(--rider-border);
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  color: var(--rider-dark);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s ease;
  touch-action: manipulation;
}

.btn-input-action:active {
  background: var(--rider-primary-subtle);
  color: var(--rider-primary-dark);
  border-color: var(--rider-primary);
}

/* Verification Badges */
.verify-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
}

.verify-badge-success {
  background: var(--rider-secondary-subtle);
  color: var(--rider-secondary-dark);
}

.verify-badge-pending {
  background: var(--rider-warning-subtle);
  color: #92400e;
}

.verify-badge-danger {
  background: var(--rider-danger-subtle);
  color: #991b1b;
}

/* Kitchen Presence Alert Box */
.kitchen-alert-box {
  padding: 14px;
  border-radius: 12px;
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.4;
}

.kitchen-alert-found {
  background: var(--rider-secondary-light);
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.kitchen-alert-none {
  background: var(--rider-warning-light);
  border: 1px solid #fde68a;
  color: #92400e;
}

/* Online / Offline Big Switch Panel */
.online-toggle-panel {
  background: #ffffff;
  border: 1px solid var(--rider-border);
  border-radius: var(--rider-radius-lg);
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--rider-shadow);
  margin-bottom: 16px;
  gap: 12px;
}

.status-indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  flex-shrink: 0;
}

.status-dot-online {
  background: var(--rider-secondary);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.25);
  animation: pulse 2s infinite;
}

.status-dot-offline {
  background: var(--rider-gray);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(5, 150, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}

/* Big Mobile Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  flex-shrink: 0;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .25s ease;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .25s ease;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .slider {
  background-color: var(--rider-secondary);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Card Section in Dashboard */
.dash-card {
  background: #ffffff;
  border: 1px solid var(--rider-border);
  border-radius: var(--rider-radius);
  padding: 16px;
  box-shadow: var(--rider-shadow-sm);
  margin-bottom: 16px;
}

@media (min-width: 600px) {
  .dash-card {
    padding: 20px;
  }
}

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

.dash-card-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--rider-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Mobile Responsive Activity Cards / Timeline */
.activity-card-item {
  background: var(--rider-gray-light);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

/* Bottom Sheet / Modal for Mobile */
.mobile-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 600px) {
  .mobile-modal-overlay {
    align-items: center;
    padding: 20px;
  }
}

.mobile-modal-content {
  background: #ffffff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px 16px calc(var(--safe-area-bottom) + 20px);
  box-shadow: var(--rider-shadow-xl);
  animation: slideUp 0.25s ease-out;
}

@media (min-width: 600px) {
  .mobile-modal-content {
    border-radius: 20px;
    max-width: 520px;
    padding: 24px;
    animation: fadeIn 0.2s ease-out;
  }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Modern Mobile Toast */
.rider-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: var(--rider-slate);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--rider-radius-full);
  font-size: 13px;
  font-weight: 700;
  z-index: 9999;
  box-shadow: var(--rider-shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 90%;
  text-align: center;
}

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

.rider-toast.toast-success {
  background: #065f46;
  border: 1px solid #10b981;
}

.rider-toast.toast-error {
  background: #991b1b;
  border: 1px solid #ef4444;
}

/* ============================================================ */
/* ENHANCED PROFESSIONAL LANDING PAGE COMPONENTS */
/* ============================================================ */

/* Hero Stat Chips Row */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  max-width: 720px;
  margin: 22px auto 0;
  text-align: left;
}

@media (min-width: 600px) {
  .hero-stats-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

.hero-stat-chip {
  background: #ffffff;
  border: 1px solid var(--rider-border);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: var(--rider-shadow-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.15s ease;
}

.hero-stat-chip:active {
  transform: scale(0.98);
}

.hero-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--rider-primary-subtle);
  color: var(--rider-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.hero-stat-val {
  font-size: 13.5px;
  font-weight: 900;
  color: var(--rider-dark);
  line-height: 1.15;
}

.hero-stat-lbl {
  font-size: 10.5px;
  color: var(--rider-gray);
  margin-top: 2px;
  font-weight: 600;
}

/* Strategic Feature Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0;
}

@media (min-width: 600px) {
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

.pillar-card {
  background: #ffffff;
  border: 1.5px solid var(--rider-border);
  border-radius: 18px;
  padding: 22px 18px;
  box-shadow: var(--rider-shadow-sm);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pillar-card:hover {
  border-color: #fed7aa;
  box-shadow: var(--rider-shadow);
  transform: translateY(-2px);
}

.pillar-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
  width: fit-content;
}

.pillar-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.pillar-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--rider-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.pillar-card p {
  font-size: 13.5px;
  color: var(--rider-gray);
  line-height: 1.6;
}

.pillar-points {
  list-style: none;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--rider-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar-points li {
  font-size: 13px;
  color: var(--rider-slate);
  margin: 0;
  position: relative;
  padding-left: 26px;
  line-height: 1.55;
  display: block;
  text-align: left;
}

.pillar-points li i {
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--rider-secondary);
  font-size: 14px;
  line-height: 1;
}

.pillar-points li strong {
  color: var(--rider-dark);
  font-weight: 700;
}

/* Comparison Table */
.compare-container {
  background: #ffffff;
  border: 1px solid var(--rider-border);
  border-radius: 20px;
  padding: 20px 14px;
  box-shadow: var(--rider-shadow);
  margin: 28px 0;
  overflow-x: auto;
}

@media (min-width: 600px) {
  .compare-container {
    padding: 30px;
  }
}

.compare-table {
  width: 100%;
  min-width: 520px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.compare-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 800;
  border-bottom: 2px solid var(--rider-border);
}

.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rider-border);
  vertical-align: middle;
}

.compare-bhoji-col {
  background: var(--rider-primary-light);
  color: var(--rider-dark);
  font-weight: 700;
  border-left: 2px solid var(--rider-primary-subtle);
  border-right: 2px solid var(--rider-primary-subtle);
}

.compare-bhoji-th {
  background: linear-gradient(135deg, var(--rider-primary), var(--rider-primary-dark));
  color: #ffffff !important;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* Interactive Calculator Box */
.calc-card-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 22px;
  padding: 24px 18px;
  color: #ffffff;
  box-shadow: var(--rider-shadow-xl);
  margin: 32px 0;
}

@media (min-width: 600px) {
  .calc-card-box {
    padding: 36px 32px;
  }
}

.calc-range-slider {
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #334155;
  outline: none;
  -webkit-appearance: none;
  margin: 10px 0 6px;
}

.calc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--rider-primary);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.7);
}

.calc-result-display {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  backdrop-filter: blur(10px);
}

/* FAQ Accordion */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 20px 0;
}

@media (min-width: 600px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

.faq-card {
  background: #ffffff;
  border: 1px solid var(--rider-border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--rider-shadow-sm);
}

.faq-question {
  font-size: 14px;
  font-weight: 800;
  color: var(--rider-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.faq-answer {
  font-size: 13px;
  color: var(--rider-gray);
  line-height: 1.55;
}

/* Payout Protection & Safe Settlement Section */
.protection-section {
  padding: 44px 0;
  background: linear-gradient(180deg, #ffffff 0%, #fffbf5 100%);
  border-top: 1px solid #fed7aa;
  border-bottom: 1px solid #fed7aa;
}

.protection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}

@media (min-width: 820px) {
  .protection-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.protection-card {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.07);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.protection-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.14);
  border-color: var(--rider-primary);
}

.protection-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.protection-rule-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 10px;
}

.dispute-callout-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 22px 26px;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .dispute-callout-banner {
    flex-direction: row;
    align-items: center;
  }
}

/* ============================================================ */
/* RIDER DASHBOARD STEPPER & MOBILE TAB CONTROLLER */
/* ============================================================ */

.rider-stepper-container {
  background: #ffffff;
  border: 1px solid var(--rider-border);
  border-radius: 18px;
  padding: 16px 14px 12px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.stepper-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.stepper-step-counter {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stepper-pill-badge {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--rider-primary-dark);
  background: var(--rider-primary-subtle);
  padding: 2px 8px;
  border-radius: 6px;
  width: fit-content;
}

.stepper-active-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--rider-dark);
  margin: 0;
  line-height: 1.25;
}

.stepper-completion-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: var(--rider-slate);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 800;
  border: 1px solid var(--rider-border);
}

.stepper-progress-track {
  background: #e2e8f0;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 14px;
}

.stepper-progress-fill {
  background: linear-gradient(90deg, #f97316 0%, #ea580c 100%);
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Horizontal Scrollable Tabs Nav */
.rider-tabs-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.rider-tabs-nav::-webkit-scrollbar {
  display: none;
}

.rider-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1.5px solid var(--rider-border);
  border-radius: 12px;
  color: var(--rider-gray);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.rider-tab-btn:hover {
  background: #f1f5f9;
  color: var(--rider-dark);
}

.rider-tab-btn.active {
  background: var(--rider-primary-light);
  border-color: var(--rider-primary);
  color: var(--rider-primary-dark);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.18);
  transform: translateY(-1px);
}

.rider-tab-btn .tab-step-num {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(0,0,0,0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.rider-tab-btn.active .tab-step-num {
  background: var(--rider-primary);
  color: #ffffff;
}

.rider-tab-btn.is-complete .tab-check-icon {
  color: #059669;
  font-size: 11px;
}

/* Step Panes */
.step-pane {
  display: none;
  animation: fadeInPane 0.22s ease-out;
}

.step-pane.active {
  display: block;
}

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

/* Stepper Bottom Navigation Footer */
.stepper-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid var(--rider-border);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.stepper-btn-back {
  min-height: 44px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 12px;
}

.stepper-btn-next {
  min-height: 44px;
  padding: 0 20px;
  font-size: 13.5px;
  font-weight: 800;
  border-radius: 12px;
}

.stepper-step-indicator-text {
  font-size: 12px;
  font-weight: 800;
  color: var(--rider-gray);
  text-align: center;
}

/* =========================================================
   MOBILE RIDER OPERATIONS APP SHELL & BOTTOM NAVIGATION
   ========================================================= */

.rider-app-shell {
  padding-bottom: 90px;
}

body.rider-app-active {
  padding-bottom: 90px !important;
}

/* App Header Profile Avatar & Dropdown Menu */
.rider-avatar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  padding: 3px 8px 3px 3px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.rider-avatar-btn:hover {
  border-color: var(--rider-primary);
  background: #fff7ed;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15);
}

.rider-nav-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--rider-primary);
  display: block;
}

.rider-nav-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rider-primary), #ea580c);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.rider-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 8px;
  z-index: 10000;
  animation: dropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.dropdown-header-user {
  padding: 8px 10px 6px;
}

.dropdown-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 6px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.15s ease;
  cursor: pointer;
}

.dropdown-item i {
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.dropdown-item:hover {
  background: #f8fafc;
  color: var(--rider-primary);
  transform: translateX(2px);
}

.dropdown-item.text-danger:hover {
  background: #fef2f2;
  color: #ef4444;
}

/* App Bottom Navigation Bar */
.rider-bottom-nav {
  display: none;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  background: #ffffff !important;
  border-top: 1.5px solid #cbd5e1 !important;
  justify-content: space-around;
  align-items: center;
  padding: 6px 12px calc(6px + var(--safe-area-bottom)) !important;
  z-index: 999999 !important;
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.15) !important;
}

body.rider-app-active .rider-bottom-nav {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.rider-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #64748b;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 11px;
  font-weight: 700;
  position: relative;
  flex: 1;
  max-width: 100px;
}

.rider-nav-item i {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.rider-nav-item.active {
  color: var(--rider-primary);
  font-weight: 800;
}

.rider-nav-item.active i {
  transform: translateY(-2px);
  color: var(--rider-primary);
}

.rider-nav-badge {
  position: absolute;
  top: 3px;
  right: 22px;
  background: #ef4444;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 9999px;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
  animation: pulseAlarm 1.2s infinite;
}

/* App Main Views */
.app-view-pane {
  display: none;
  animation: fadeInAppView 0.25s ease-out;
}

.app-view-pane.active {
  display: block;
}

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

/* KPI Summary Cards */
.rider-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

@media (min-width: 768px) {
  .rider-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

.rider-kpi-card {
  background: #ffffff;
  border: 1px solid var(--rider-border);
  border-radius: 16px;
  padding: 14px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rider-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--rider-primary);
}

.rider-kpi-card.kpi-success::before {
  background: #10b981;
}

.rider-kpi-card.kpi-info::before {
  background: #0284c7;
}

.rider-kpi-card.kpi-purple::before {
  background: #8b5cf6;
}

.kpi-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.kpi-title {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.kpi-icon-pill {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  background: #f8fafc;
  color: #475569;
}

.kpi-primary-val {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
}

.kpi-sub-text {
  font-size: 11px;
  color: #059669;
  font-weight: 700;
  margin-top: 2px;
}

/* Incoming Order Card & Alarm Modal */
.incoming-order-banner {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 2px solid #f97316;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.25);
  position: relative;
  animation: pulseIncoming 1.8s infinite;
}

@keyframes pulseIncoming {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(249, 115, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.incoming-order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #fed7aa;
}

.incoming-tag {
  background: #ea580c;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.incoming-earning-badge {
  background: #10b981;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.incoming-route-info {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}

.route-step-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  position: relative;
}

.route-step-row:first-child {
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed #f1f5f9;
}

.route-step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
  margin-top: 1px;
}

.route-dot-kitchen {
  background: #fed7aa;
  color: #c2410c;
}

.route-dot-customer {
  background: #d1fae5;
  color: #065f46;
}

/* Active Order Delivery Screen */
.active-order-card {
  background: #ffffff;
  border: 2px solid #3b82f6;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.15);
}

.active-phase-badge {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.active-action-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  margin-top: 14px;
}

.otp-digit-input {
  width: 100%;
  max-width: 200px;
  height: 48px;
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 6px;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  margin: 0 auto 10px;
  display: block;
}

.otp-digit-input:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* Radar Animation for Waiting State */
.radar-idle-box {
  background: #ffffff;
  border: 1px solid var(--rider-border);
  border-radius: 18px;
  padding: 30px 16px;
  text-align: center;
  margin-bottom: 16px;
}

.radar-spinner-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #f97316;
  opacity: 0;
  animation: radarRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.radar-ring:nth-child(2) {
  animation-delay: 0.6s;
}

.radar-ring:nth-child(3) {
  animation-delay: 1.2s;
}

.radar-center-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
  z-index: 2;
}

@keyframes radarRing {
  0% { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* History List Item */
.history-order-item {
  background: #ffffff;
  border: 1px solid var(--rider-border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.02);
  transition: transform 0.15s ease;
}

.history-order-item:active {
  transform: scale(0.99);
}

.history-order-item.status-delivered {
  border-left: 4px solid #10b981;
}

.history-order-item.status-rejected {
  border-left: 4px solid #ef4444;
}

.history-order-item.status-cancelled {
  border-left: 4px solid #f59e0b;
}

/* ============================================================= */
/* OPEN DELIVERY POOL MARKETPLACE & GIGS STYLES */
/* ============================================================= */
.pool-order-card {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.08);
  position: relative;
  transition: all 0.2s ease;
}
.pool-order-card:hover {
  border-color: #f97316;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.14);
}
.pool-order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.pool-badge-live {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #fed7aa;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pool-price-tag {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}
.pool-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 12px;
  font-size: 12px;
}
.pool-meta-item {
  display: flex;
  flex-direction: column;
}
.pool-meta-label {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.pool-meta-val {
  font-weight: 800;
  color: #0f172a;
}
.pool-applied-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

/* ============================================================= */
/* RIDER TRUST & PERFORMANCE KPI SCORECARD STYLES */
/* ============================================================= */
.kpi-scorecard-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
  position: relative;
  overflow: hidden;
}
.kpi-hero-bg-glow {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.4) 0%, rgba(249, 115, 22, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}
.kpi-score-ring-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.kpi-score-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f97316, #ea580c);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
  flex-shrink: 0;
  border: 3px solid rgba(255, 255, 255, 0.2);
}
.kpi-score-number {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}
.kpi-score-label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}
.kpi-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.tier-platinum { background: linear-gradient(135deg, #e0e7ff, #c7d2fe); color: #3730a3; border: 1px solid #a5b4fc; }
.tier-gold { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; border: 1px solid #fcd34d; }
.tier-silver { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); color: #334155; border: 1px solid #cbd5e1; }
.tier-bronze { background: linear-gradient(135deg, #ffedd5, #fed7aa); color: #9a3412; border: 1px solid #fdba74; }

.kpi-dual-rating-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 14px;
}
.kpi-rating-col {
  text-align: center;
}
.kpi-rating-col:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.kpi-rating-stars {
  color: #fbbf24;
  font-size: 13px;
  margin-bottom: 2px;
}
.kpi-rating-score {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
}
.kpi-rating-title {
  font-size: 10.5px;
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
}

.kpi-pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.kpi-pillar-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
}
.kpi-pillar-val {
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
}
.kpi-pillar-lbl {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 600;
}

/* Review Compliment Chips */
.kpi-review-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  margin: 2px;
}


