*, *::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; }

/* ===== LANGUAGE ===== */
.language-selector {
  position: fixed; top: 20px; right: 20px; z-index: 1000;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px; padding: 8px 16px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; transition: all 0.3s ease;
  font-weight: 700; font-size: 0.875rem; color: #fff;
}
.language-selector:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}
.language-chevron { opacity: 0.8; font-size: 0.65rem; }

.language-dropdown {
  position: fixed; top: 70px; right: 20px; z-index: 1001;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px; padding: 10px;
  display: none; flex-direction: column; gap: 6px;
  min-width: 210px;
  box-shadow: var(--shadow);
}
.language-dropdown.active { display: flex; }

.language-option {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px;
  border: 2px solid transparent; background: rgba(255,255,255,0.05);
  cursor: pointer; transition: all 0.25s; width: 100%; text-align: left;
  color: #fff; font-family: inherit;
}
.language-option:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateX(4px);
}
.language-option.selected {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: #3b82f6;
}
.language-option-flag { font-size: 1.5rem; line-height: 1; }
.language-option-name { font-weight: 700; font-size: 0.875rem; display: block; }
.language-option-native { font-size: 0.75rem; opacity: 0.55; display: block; margin-top: 1px; }

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

.header-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4px;
}

.header-brand .brand-wordmark--hero {
  margin-bottom: 12px;
}

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

.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;
}
@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;
}

/* ===== 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;
}

@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;
}

/* ===== WALLET ===== */
.wallet-card {
  max-width: 672px; margin: 0 auto 24px;
  background: linear-gradient(to right, #9333ea, #ec4899);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.wallet-content {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}

.wallet-info { display: flex; align-items: center; gap: 16px; }

.wallet-icon-wrapper {
  background: rgba(255, 255, 255, 0.2);
  padding: 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.wallet-icon-wrapper svg { width: 32px; height: 32px; color: white; }

.wallet-label { color: rgba(255,255,255,0.85); font-size: 0.875rem; margin-bottom: 4px; }
.wallet-amount { font-size: 1.875rem; font-weight: 900; letter-spacing: -0.02em; }

.wallet-btn {
  background: white; color: #9333ea;
  font-weight: 700; padding: 12px 24px;
  border-radius: 12px; border: none; cursor: pointer;
  transition: all 0.3s; font-size: 0.95rem; font-family: inherit;
}
.wallet-btn:hover { background: #faf5ff; transform: translateY(-1px); }

/* ===== MAIN CTA ===== */
.main-btn {
  max-width: 672px; margin: 0 auto 20px;
  background: white; border-radius: 24px;
  box-shadow: var(--shadow); padding: 28px;
  border: none; cursor: pointer; width: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
  font-family: inherit;
}
.main-btn:hover { transform: scale(1.03); box-shadow: 0 30px 60px -12px rgba(0,0,0,0.3); }

.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: 64px; height: 64px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.main-btn-icon svg { width: 32px; height: 32px; color: #2563eb; }

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

/* ===== TIP BUTTON ===== */
.tip-button {
  max-width: 672px; margin: 0 auto 32px;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 25%, #FDC830 50%, #F37335 100%);
  border-radius: 24px; box-shadow: var(--shadow-orange);
  padding: 24px; border: none; cursor: pointer; width: 100%;
  transition: all 0.3s; font-family: inherit; color: #fff;
}
.tip-button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 25px 70px rgba(255, 107, 53, 0.5);
}

.tip-button-content {
  display: flex; align-items: center; justify-content: space-between;
}

.tip-button-left { display: flex; align-items: center; gap: 16px; }

.tip-button-icon {
  background: rgba(255,255,255,0.25); width: 64px; height: 64px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
}

.tip-button-text h3 {
  font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; text-align: left;
}
.tip-button-text p {
  color: rgba(255,255,255,0.92); font-size: 0.875rem; text-align: left;
}

.tip-button-arrow { font-size: 2rem; }

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

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

.grid-5 {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}

.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}

.action-card {
  background: var(--glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 16px; padding: 16px 10px;
  color: white; border: 1px solid var(--glass-border);
  cursor: pointer; transition: all 0.3s; text-align: center;
  font-family: inherit;
}
.action-card:hover { background: rgba(255,255,255,0.2); transform: translateY(-3px); }
.action-card svg { width: 32px; height: 32px; margin: 0 auto 8px; display: block; stroke: currentColor; fill: none; }
.action-card svg.fill-icon { fill: currentColor; stroke: none; }
.action-label { font-weight: 600; font-size: 0.75rem; line-height: 1.2; }

.stat-card {
  background: var(--glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 16px; padding: 24px 16px;
  text-align: center; border: 1px solid var(--glass-border);
  transition: transform 0.3s;
}
.stat-card:hover { transform: translateY(-2px); background: rgba(255,255,255,0.15); }
.stat-card svg { width: 44px; height: 44px; margin: 0 auto 12px; display: block; stroke: currentColor; fill: none; }
.stat-card svg.fill-icon { fill: currentColor; stroke: none; }
.stat-value { font-size: 1.875rem; font-weight: 800; }
.stat-label { color: #dbeafe; font-size: 0.8rem; margin-top: 4px; }

/* ===== SUPPORT ===== */
.support-card {
  max-width: 672px; margin: 0 auto;
  background: var(--glass);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 16px; padding: 24px;
  border: 1px solid var(--glass-border);
}

.support-title {
  font-size: 1.25rem; font-weight: 800;
  margin-bottom: 16px; text-align: center;
}

.support-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.support-btn {
  background: rgba(255,255,255,0.2);
  border: none; border-radius: 12px; padding: 16px;
  color: white; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.3s; font-weight: 600; font-family: inherit; font-size: 0.95rem;
}
.support-btn:hover { background: rgba(255,255,255,0.32); transform: translateY(-2px); }
.support-btn svg { width: 20px; height: 20px; }

/* ===== STATUS BANNER ===== */
.status-banner {
  max-width: 672px; margin: 0 auto 20px;
  background: rgba(255,255,255,0.15);
  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;
}

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

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

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

.login-brand {
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.login-brand .brand-wordmark--login {
  margin-bottom: 0;
}

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

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

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

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

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 8px; color: #374151; }
.form-input, .form-select {
  width: 100%; border: 2px solid #e5e7eb; border-radius: 10px;
  padding: 13px 16px; font-size: 16px; font-family: inherit;
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus {
  outline: none; border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.btn {
  width: 100%; padding: 15px; border-radius: 12px; border: none;
  font-weight: 700; cursor: pointer; font-size: 1rem;
  transition: all 0.3s; font-family: inherit;
}
.btn-primary { background: #2563eb; color: white; margin-bottom: 8px; }
.btn-primary:hover { background: #1d4ed8; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-purple { background: linear-gradient(to right, #9333ea, #ec4899); color: white; }
.btn-purple:hover { opacity: 0.92; }
.btn-orange { background: linear-gradient(135deg, #FF6B35, #F7931E, #FDC830); color: white; font-weight: 800; }
.btn-green { background: #059669; color: white; }

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

.web-site-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.web-site-link:hover { text-decoration: underline; }

.web-site-link--header {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
}

.web-site-link--header:hover { color: #fff; }

.web-site-link--driver {
  color: #fdba74;
  font-weight: 700;
}

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

.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; }

/* ===== MODALS ===== */
.modal {
  display: none; position: fixed; inset: 0; z-index: 1500;
  background: rgba(0,0,0,0.55); padding: 16px;
  overflow-y: auto; align-items: flex-start; justify-content: center;
}
.modal.active { display: flex; }

.modal-content {
  background: white; color: #111;
  border-radius: 20px; width: 100%; max-width: 512px;
  margin: auto; max-height: 92vh; overflow-y: auto;
  box-shadow: var(--shadow);
}

.modal-content.large { max-width: 580px; }

.modal-header {
  background: #2563eb; color: white;
  padding: 22px 24px;
  display: flex; justify-content: space-between; align-items: center;
  border-radius: 20px 20px 0 0;
  position: sticky; top: 0; z-index: 10;
}
.modal-header.purple { background: linear-gradient(to right, #9333ea, #ec4899); }
.modal-header.green { background: linear-gradient(to right, #059669, #14b8a6); }
.modal-header.orange { background: linear-gradient(135deg, #FF6B35, #F7931E); }

.modal-title { font-size: 1.5rem; font-weight: 800; }

.modal-close {
  background: rgba(255,255,255,0.2); border: none; color: white;
  width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; font-size: 18px; transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: rgba(255,255,255,0.35); }

.modal-body { padding: 24px; }

.info-box {
  background: #dbeafe; border-radius: 12px; padding: 14px 16px;
  margin-bottom: 16px; font-size: 0.875rem; color: #1e3a8a;
  display: flex; align-items: center; gap: 8px;
}
.info-box.green { background: #dcfce7; color: #166534; }
.info-box.purple { background: #faf5ff; color: #581c87; }

.ride-map {
  width: 100%; height: 220px; border-radius: 16px; overflow: hidden;
  margin-bottom: 16px; border: 2px solid rgba(255,255,255,0.2);
  background: #e5e7eb;
}

#liveTrackingMap {
  max-width: 672px; margin: 0 auto 24px;
  height: 280px;
  box-shadow: var(--shadow);
  border: 2px solid rgba(255,255,255,0.25);
}

.btn-gps {
  width: 100%; margin-bottom: 16px;
  background: #eff6ff; color: #2563eb; border: 2px solid #dbeafe;
  border-radius: 12px; padding: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.btn-gps:hover { background: #dbeafe; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.payment-methods {
  border: 2px solid #e5e7eb; border-radius: 12px; padding: 16px; margin-bottom: 16px;
}
.payment-methods > p { font-weight: 700; margin-bottom: 12px; color: #111; }

.payment-option {
  width: 100%; padding: 14px; border-radius: 10px;
  border: 2px solid #e5e7eb; display: flex;
  align-items: center; justify-content: space-between;
  cursor: pointer; margin-bottom: 8px; background: white;
  transition: all 0.25s; font-family: inherit; text-align: left;
}
.payment-option:last-child { margin-bottom: 0; }
.payment-option:hover { border-color: #93c5fd; }
.payment-option.active { border-color: #2563eb; background: #eff6ff; }

.payment-option-left { display: flex; align-items: center; gap: 12px; }
.payment-option-left svg { width: 22px; height: 22px; flex-shrink: 0; }
.payment-option-left p:first-child { font-weight: 600; font-size: 0.9rem; }
.payment-option-left p:last-child { font-size: 0.75rem; color: #6b7280; }

.alert {
  background: #fed7aa; border: 2px solid #fdba74;
  border-radius: 12px; padding: 16px; margin-bottom: 16px;
}

.chip-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.chip-btn {
  padding: 16px 8px; border-radius: 12px;
  border: 2px solid #e9d5ff; background: #faf5ff;
  color: #581c87; font-weight: 800; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
}
.chip-btn:hover { background: #f3e8ff; border-color: #c084fc; }

/* Tip modal */
.tip-driver-info {
  background: #f8fafc; border-radius: 16px; padding: 20px;
  margin-bottom: 20px; display: flex; align-items: center; gap: 16px;
  border: 1px solid #e2e8f0;
}
.tip-driver-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #FF6B35, #F7931E);
  display: flex; align-items: center; justify-content: center; font-size: 1.75rem;
}
.tip-driver-details h4 { font-size: 1.125rem; font-weight: 800; color: #111; margin-bottom: 4px; }
.tip-driver-details p { font-size: 0.875rem; color: #6b7280; }
.tip-driver-rating { color: #FDC830; font-size: 0.875rem; margin-top: 4px; font-weight: 600; }

.tip-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 20px; }

.tip-option {
  background: rgba(255, 107, 53, 0.08);
  border: 3px solid rgba(255, 107, 53, 0.25);
  border-radius: 16px; padding: 22px 16px; text-align: center;
  cursor: pointer; transition: all 0.3s;
}
.tip-option:hover {
  background: rgba(255, 107, 53, 0.15);
  border-color: #FF6B35; transform: scale(1.04);
}
.tip-option.selected {
  background: linear-gradient(135deg, #FF6B35, #F7931E, #FDC830);
  border-color: #FF6B35;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.35);
}
.tip-amount { font-size: 1.75rem; font-weight: 900; color: #FF6B35; margin-bottom: 6px; }
.tip-option.selected .tip-amount, .tip-option.selected .tip-label { color: white; }
.tip-label { font-size: 0.8rem; color: #6b7280; font-weight: 600; }

.tip-total-box {
  background: rgba(255, 107, 53, 0.08);
  border: 2px solid rgba(255, 107, 53, 0.25);
  border-radius: 16px; padding: 20px; margin-bottom: 20px; text-align: center;
}
.tip-total-label { color: #6b7280; font-size: 0.875rem; margin-bottom: 8px; }
.tip-total-value {
  font-size: 2.5rem; font-weight: 900;
  background: linear-gradient(135deg, #FF6B35, #F7931E, #FDC830);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tip-note { color: #9ca3af; font-size: 0.75rem; text-align: center; margin-top: 14px; }

.ride-item, .favorite-item {
  border: 2px solid #e5e7eb; border-radius: 14px;
  padding: 16px; margin-bottom: 12px; background: #fafafa;
}
.favorite-item {
  cursor: pointer; display: flex; align-items: center; gap: 14px;
  transition: all 0.25s;
}
.favorite-item:hover { border-color: #2563eb; background: #eff6ff; }
.favorite-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.ride-item-header { display: flex; justify-content: space-between; margin-bottom: 10px; }

.coupon-item {
  border: 2px solid #059669; background: #dcfce7;
  border-radius: 14px; padding: 18px; margin-bottom: 12px;
}

.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) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .main-btn-content, .tip-button-content { flex-wrap: wrap; }
  .language-text { display: none; }
  .language-dropdown { right: 12px; top: 60px; }
  .language-selector { right: 12px; top: 12px; }
}

@media (max-width: 400px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
