*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --purple-600: #9333ea;
  --purple-700: #7c3aed;
  --pink-500: #ec4899;
  --orange: #FF6B35;
  --orange-mid: #F7931E;
  --yellow: #FDC830;
  --glass: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.18);
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-orange: 0 20px 60px rgba(255, 107, 53, 0.4);
}

html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #7c3aed 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: #fff;
  padding: 32px 16px 64px;
}

.container { max-width: 672px; margin: 0 auto; }
.hidden { display: none !important; }

/* ===== LOGIN / ONBOARDING SCREENS ===== */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #7c3aed 100%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.login-box {
  background: #fff;
  color: #111;
  border-radius: 24px;
  padding: 36px 32px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}

.login-box--driver {
  border-top: 6px solid var(--orange);
}

.app-mode-banner {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.driver-app-tag {
  display: inline-block;
  margin: 0 auto 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 107, 53, 0.22);
  border: 1px solid rgba(255, 107, 53, 0.45);
  color: #ffedd5;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.link-btn--muted {
  color: #6b7280 !important;
  font-size: 0.85rem;
  margin-top: 6px;
}

.scroll-box {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 28px 24px 32px;
}

.login-logo-wrap { display: flex; justify-content: center; margin-bottom: 12px; }

.login-logo-pulse {
  background: linear-gradient(135deg, #FF6B35, #FDC830);
  border-radius: 50%;
  padding: 18px;
  box-shadow: var(--shadow-orange);
}

.login-logo-pulse svg {
  width: 48px;
  height: 48px;
  display: block;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
}

.login-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.88rem;
  margin-bottom: 14px;
  line-height: 1.45;
}

.login-box h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
  color: #111827;
}

.sub, .login-sub {
  color: #6b7280;
  text-align: center;
  margin-bottom: 24px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.driver-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--orange), var(--orange-mid));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.file-label {
  display: block;
  background: #f3f4f6;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  font-size: 0.88rem;
  color: #374151;
  font-weight: 600;
  cursor: pointer;
}

.file-label input {
  display: block;
  margin-top: 8px;
  width: 100%;
  font-size: 0.82rem;
}

.dev-hint {
  background: #fef3c7;
  color: #92400e;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  margin-top: 14px;
  text-align: center;
  line-height: 1.45;
}

.step-banner {
  background: linear-gradient(135deg, var(--orange), var(--orange-mid));
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.session-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.session-banner strong { display: block; margin-bottom: 8px; }

.session-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.link-btn {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 0.82rem;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 12px;
  width: 100%;
  text-align: center;
}

.requirements-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.req-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
}

.req-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--orange-mid));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.req-item strong {
  display: block;
  color: #111827;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.req-item p {
  color: #6b7280;
  font-size: 0.82rem;
  line-height: 1.4;
  margin: 0;
}

.field-hint {
  font-size: 0.78rem;
  margin: -6px 0 10px;
  color: #6b7280;
}

.field-hint.error { color: #dc2626; }
.field-hint.ok { color: #059669; }

.btn-outline {
  background: #fff;
  color: #374151;
  border: 2px solid #d1d5db;
  margin-top: 8px;
}

.security-badge {
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.8rem;
  text-align: center;
  margin-bottom: 18px;
  font-weight: 600;
}

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  color: #4b5563;
  margin: 8px 0 18px;
  line-height: 1.4;
}

.terms-check input { margin-top: 3px; flex-shrink: 0; }

.section-label {
  font-size: 0.95rem;
  margin: 12px 0 4px;
  color: #374151;
  font-weight: 700;
}

.status-box { text-align: center; }
.status-icon { font-size: 3.5rem; margin-bottom: 12px; }

/* ===== HEADER (main app) ===== */
.header { text-align: center; margin-bottom: 40px; padding-top: 48px; }

.logo-container { display: flex; justify-content: center; margin-bottom: 24px; }

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

.logo-svg {
  width: 72px;
  height: 72px;
  display: block;
  stroke: white;
  fill: none;
  stroke-width: 2.5;
}

.logo-zap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  fill: #fef08a;
}

.logo-pulse {
  position: relative;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 25%, #FDC830 50%, #F37335 75%, #FF6B35 100%);
  border-radius: 50%;
  padding: 28px;
  box-shadow: var(--shadow), var(--shadow-orange);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ===== BRAND WORDMARK (Go · RD) — shared pasajero + conductor ===== */
.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: inherit;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
  -webkit-font-smoothing: antialiased;
}

.brand-wordmark--hero {
  font-size: clamp(2.75rem, 9vw, 4rem);
  margin-bottom: 12px;
}

.brand-wordmark--sm {
  font-size: clamp(1.65rem, 5vw, 2.1rem);
  margin-bottom: 6px;
}

.brand-go {
  color: #fff;
  font-family: inherit;
  font-weight: 800;
}

.brand-go-logo {
  height: 0.78em;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.go-g-body { fill: #fff; }
.go-g-line { stroke: #FDC830; }
.go-o-tire { stroke: url(#gord-go-wheel); }
.go-o-ring { stroke: rgba(134, 239, 172, 0.55); }
.go-o-spokes { stroke: #bbf7d0; }
.go-o-leaf { fill: #22c55e; }
.go-o-hub { fill: #ecfdf5; }

.brand-wordmark--light .go-g-body { fill: #2563eb; }
.brand-wordmark--light .go-g-line { stroke: #FF6B35; }
.brand-wordmark--light .go-o-ring { stroke: #34d399; }
.brand-wordmark--light .go-o-spokes { stroke: #059669; }
.brand-wordmark--light .go-o-leaf { fill: #16a34a; }
.brand-wordmark--light .go-o-hub { fill: #d1fae5; }

.brand-wordmark--login {
  font-size: clamp(1.85rem, 6vw, 2.25rem);
  justify-content: center;
}

.brand-wordmark--hero-size {
  font-size: clamp(2.25rem, 8vw, 3.25rem);
  justify-content: center;
  margin-bottom: 12px;
}

[data-gord-wordmark] {
  display: flex;
  justify-content: center;
  width: 100%;
}

[data-gord-wordmark][data-gord-inline="true"] {
  display: inline-flex;
  width: auto;
}

.brand-sep {
  width: 4px;
  height: 0.7em;
  border-radius: 999px;
  background: linear-gradient(180deg, #FF6B35, #FDC830);
  flex-shrink: 0;
}

.brand-rd {
  font-family: inherit;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #FF6B35;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 40%, #FDC830 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-wordmark--light .brand-go { color: #111827; }
.brand-wordmark--light { text-shadow: none; }

.brand-wordmark-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.brand-role {
  display: block;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #6b7280;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

@media (max-width: 400px) {
  .brand-wordmark--hero {
    font-size: clamp(2.15rem, 10vw, 2.75rem);
  }

  .brand-wordmark--sm {
    font-size: clamp(1.45rem, 6vw, 1.85rem);
  }
}

.subtitle {
  color: #dbeafe;
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.features {
  color: #bfdbfe;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

/* ===== STATUS BANNER ===== */
.status-banner {
  max-width: 672px;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 14px 20px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.status-banner.online {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.28), rgba(253, 200, 48, 0.22));
  border-color: rgba(255, 107, 53, 0.45);
}

/* ===== MAIN CTA (match passenger) ===== */
.main-btn {
  max-width: 672px;
  margin: 0 auto 16px;
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
  font-family: inherit;
}

.main-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
}

.main-btn.online-mode {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 25%, #FDC830 50%, #F37335 100%);
  color: #fff;
  box-shadow: var(--shadow-orange);
}

.main-btn.online-mode .main-btn-title,
.main-btn.online-mode .main-btn-subtitle,
.main-btn.online-mode .main-btn-arrow { color: #fff; }

.main-btn.online-mode .main-btn-icon {
  background: rgba(255, 255, 255, 0.25);
}

.main-btn.online-mode .main-btn-icon svg { color: #fff; }

.main-btn-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.main-btn-left { display: flex; align-items: center; gap: 16px; flex: 1; }

.main-btn-icon {
  background: #dbeafe;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.main-btn-icon svg { width: 28px; height: 28px; color: #2563eb; }

.main-btn-text { text-align: left; }
.main-btn-title { font-size: 1.35rem; font-weight: 800; color: #000; line-height: 1.2; }
.main-btn-subtitle { color: #6b7280; font-size: 0.85rem; margin-top: 4px; }
.main-btn-arrow { font-size: 1.75rem; color: #000; font-weight: 300; }

/* ===== SECTIONS ===== */
.section { max-width: 672px; margin: 0 auto 28px; }

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 14px;
  text-align: center;
}

.glass-panel {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 12px;
}

.muted { color: #dbeafe; font-size: 0.9rem; text-align: center; }

.ride-card {
  background: #fafafa;
  color: #111;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 12px;
}

.ride-card strong { color: var(--blue-600); font-size: 1.05rem; }

.ride-card small { color: #6b7280; line-height: 1.5; }

.ride-card .btn { margin-top: 12px; margin-bottom: 0; }

/* ===== FORMS ===== */
.form-input {
  width: 100%;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 13px 16px;
  margin: 0 0 14px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* ===== BUTTONS ===== */
.btn {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-primary:hover { background: #1d4ed8; }

.btn-orange {
  background: linear-gradient(135deg, #FF6B35, #F7931E, #FDC830);
  color: #fff;
  font-weight: 800;
}

.btn-purple {
  background: linear-gradient(to right, #9333ea, #ec4899);
  color: #fff;
}

.btn-outline {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: #fff;
}

.btn-outline-light {
  background: #f3f4f6;
  color: #374151;
  border: 2px solid #e5e7eb;
}

.logout-wrap { max-width: 672px; margin: 8px auto 0; }

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 14px 24px;
  border-radius: 50px;
  z-index: 9999;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  animation: toastIn 0.35s ease;
  max-width: calc(100% - 32px);
  text-align: center;
}

@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 16px); }
}

@media (max-width: 640px) {
  body { padding: 24px 12px 48px; }
  .main-btn-content { flex-wrap: wrap; }
}

@media (max-width: 400px) {
  .login-box { padding: 28px 22px; }
}
