* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f4f5f7;
  color: #1a1a1a;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
}
.hidden { display: none !important; }

/* Login */
#login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0d0d0d 0%, #b8860b 100%);
  padding: 24px;
}
.login-box {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.login-box h1 { font-size: 26px; margin-bottom: 4px; }
.subtitle { color: #777; margin-bottom: 20px; font-size: 14px; }
input {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 16px;
}
.btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary { background: #b8860b; color: #fff; }
.btn-primary:active { background: #96690a; }
.error-text { color: #d33; font-size: 13px; margin-top: 10px; min-height: 16px; }

/* App shell */
.topbar {
  background: #0d0d0d;
  color: #fff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-left: 8px; }
.status-dot.online { background: #2ecc71; }
.btn-link { background: none; border: none; color: #b8860b; font-size: 14px; }

.tabs {
  display: flex;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 56px;
  z-index: 9;
}
.tab-btn {
  flex: 1;
  padding: 14px 0;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: #999;
  border-bottom: 3px solid transparent;
}
.tab-btn.active { color: #b8860b; border-bottom-color: #b8860b; }

.tab-content { padding: 14px; padding-bottom: 60px; }
.empty-text { text-align: center; color: #999; padding: 40px 0; font-size: 14px; }

.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-card {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.order-card .row1 { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.order-id { font-weight: 700; font-size: 14px; }
.badge { font-size: 11px; padding: 3px 9px; border-radius: 20px; font-weight: 600; }
.badge.zone-A, .badge.zone-B { background: #fef3cd; color: #8a6500; }
.badge.zone-C, .badge.zone-D, .badge.zone-E { background: #fde2e2; color: #a12a2a; }
.exclusive-offer-badge {
  background: linear-gradient(90deg, #b8860b, #ffd700);
  color: #0d0d0d;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  text-align: center;
}
.order-hotel { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.order-detail { color: #666; font-size: 13px; margin-bottom: 2px; }
.order-fee {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fee-amount { font-size: 18px; font-weight: 700; color: #b8860b; }
.status-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: #eef;
  color: #446;
}
.order-actions { margin-top: 12px; display: flex; gap: 8px; }
.order-actions .btn { padding: 10px; font-size: 14px; }
.btn-outline { background: #fff; border: 1px solid #b8860b; color: #b8860b; }

.earnings-card {
  background: #0d0d0d;
  color: #fff;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}
.earnings-card span { display: block; font-size: 13px; color: #ccc; margin-bottom: 6px; }
.earnings-card strong { font-size: 28px; color: #ffd700; }

.switch-link { margin-top: 14px; font-size: 13px; color: #666; }
.switch-link a { color: #b8860b; font-weight: 600; text-decoration: none; }

.field-label { display: block; font-size: 12px; color: #888; margin: 10px 0 4px; font-weight: 600; }

.profile-photo-wrap { text-align: center; margin-bottom: 10px; }
.profile-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid #b8860b; }

.divider { height: 1px; background: #eee; margin: 24px 0 16px; }

.wallet-card {
  background: linear-gradient(135deg, #0d0d0d 0%, #b8860b 100%);
  color: #fff;
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  margin-bottom: 20px;
}
.wallet-card span { display: block; font-size: 13px; color: #f0e0c0; margin-bottom: 8px; }
.wallet-card strong { display: block; font-size: 32px; color: #ffd700; }
.wallet-note { font-size: 11px; color: #e0d0b0; margin-top: 8px; }

.map-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: flex-end; z-index: 100;
}
.map-modal-inner { background: #fff; width: 100%; border-radius: 16px 16px 0 0; overflow: hidden; }
.map-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #eee; font-weight: 600; }

#chat-admin-fab {
  position: fixed;
  bottom: 80px;
  right: 16px;
  width: 52px;
  height: 52px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.5);
  z-index: 50;
}
