.drv-home-wrap {
  padding: 20px 16px 8px;
}

.drv-home-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.drv-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.drv-brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
}
.drv-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.drv-brand-name {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
}
.drv-brand-sub {
  font-size: 11px;
  color: var(--ink-soft);
}
.drv-avatar-btn {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.drv-avatar-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drv-avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--orange-soft);
}

.drv-home-greet-block {
  margin-bottom: 18px;
}
.drv-home-greet-block h1 {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin-bottom: 2px;
}
.drv-home-greet-block p {
  font-size: 13px;
  color: var(--ink-soft);
}

.drv-earning-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 26px;
}
.drv-earning-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1;
}
.drv-earning-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}
.drv-earning-amount {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: #fff;
}
.drv-earning-count {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.9);
}
.drv-earning-char {
  height: 160px;
  object-fit: contain;
  object-position: bottom;
  align-self: flex-end;
  margin-bottom: -20px;
  margin-right: -8px;
  z-index: 1;
}

.drv-section {
  margin-bottom: 26px;
}
.drv-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 12px;
}
.drv-section-title i {
  color: var(--orange);
  font-size: 13px;
}

.drv-loading,
.drv-empty,
.drv-error {
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  padding: 22px 12px;
  background: #fff;
  border-radius: 14px;
  border: 1px dashed var(--line);
}
.drv-error { color: var(--red); }

.drv-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: rgba(149, 157, 165, 0.15) 0px 6px 16px;
}
.drv-card-active {
  border: 1.5px solid var(--orange-soft);
}

.drv-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.drv-card-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.drv-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.drv-place {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 4px;
}
.drv-notes {
  font-size: 12px;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 8px;
}
.drv-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.drv-budget-pill,
.drv-eta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--ink-soft);
  background: #F3F0EC;
  padding: 5px 10px;
  border-radius: 8px;
}
.drv-fee-label {
  font-size: 12.5px;
  color: #2E8B57;
  font-weight: 600;
}
.drv-card-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.drv-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.drv-budget-pill {
  display: inline-block;
  font-size: 12px;
  color: var(--ink-soft);
  background: #F3F0EC;
  padding: 5px 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.drv-fee-label {
  font-size: 12.5px;
  color: var(--green, #2E8B57);
  font-weight: 600;
}
.drv-order-id {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-soft);
}
.drv-fee {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--orange-deep);
}
.drv-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--orange-deep);
  background: var(--orange-soft);
}

.drv-items {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: 6px;
}

.drv-blok {
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}
.drv-blok i { color: var(--orange); font-size: 11px; }

.drv-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.drv-time {
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 5px;
}

.drv-claim-btn,
.drv-status-btn {
  border: none;
  border-radius: 10px;
  padding: 9px 14px;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.drv-claim-btn {
  width: 100%;
  padding: 12px 14px;
  font-size: 13.5px;
  margin-top: 4px;
}
.drv-claim-btn {
  width: 100%;
  padding: 12px 14px;
  font-size: 13.5px;
  margin-top: 4px;
}
.drv-claim-btn:disabled,
.drv-status-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.drv-claim-btn:active,
.drv-status-btn:active {
  transform: scale(0.97);
}

/* ---------- Popup klaim order ---------- */
.drv-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 27, 16, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}
.drv-popup-box {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 300px;
  width: 100%;
  text-align: center;
  animation: drv-popup-pop 0.25s ease;
}
@keyframes drv-popup-pop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.drv-popup-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #E4F3EA;
  color: #2F7A4F;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.drv-popup-box h2 {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 6px;
  color: var(--ink);
}
.drv-popup-box p {
  font-size: 12.5px;
  color: var(--ink-soft);
}

.drv-radar-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 36px 12px 28px;
  background: #fff;
  border-radius: 14px;
  border: 1px dashed var(--line);
}
.drv-radar {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.drv-radar-ring {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0.5;
  animation: drv-radar-pulse 2.4s ease-out infinite;
}
.drv-radar-ring:nth-child(2) { animation-delay: 0.8s; }
.drv-radar-ring:nth-child(3) { animation-delay: 1.6s; }
.drv-radar-dot {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: rgba(0, 0, 0, 0.15) 0 4px 10px;
}
@keyframes drv-radar-pulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(6); opacity: 0; }
}
.drv-radar-empty p {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.drv-radar-sub {
  font-size: 11.5px;
  color: var(--ink-soft);
}
