/* ===== RIDER PAGE ===== */
.rider-page {
  padding: 32px 24px 80px;
}

.rider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
.rider-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rider-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.online-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* TOGGLE SWITCH */
.toggle-switch {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.toggle-switch input {
  display: none;
}
.toggle-track {
  display: block;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--surface3);
  border: 1px solid var(--border2);
  transition: background 0.25s;
  position: relative;
}
.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text2);
  transition: all 0.25s;
}
.toggle-switch input:checked + .toggle-track {
  background: rgba(34, 217, 122, 0.2);
  border-color: rgba(34, 217, 122, 0.4);
}
.toggle-switch input:checked + .toggle-track .toggle-thumb {
  left: 23px;
  background: var(--green);
  box-shadow: 0 0 8px rgba(34, 217, 122, 0.5);
}

/* TABS */
.rider-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.rtab {
  padding: 8px 18px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text2);
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.18s;
}
.rtab:hover {
  border-color: var(--border2);
  color: var(--text);
}
.rtab.active {
  background: var(--orange-dim);
  border-color: rgba(255, 77, 45, 0.35);
  color: var(--orange2);
}
.rtab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface3);
  color: var(--text2);
  width: 18px;
  height: 18px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 700;
  margin-left: 5px;
}
.rtab.active .rtab-count {
  background: rgba(255, 77, 45, 0.2);
  color: var(--orange);
}

/* ORDER BIG CARD */
.order-big-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.ocard-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.ocard-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.ocard-id {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.ocard-total {
  font-family: "Syne", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--orange);
}
.ocard-fee {
  text-align: right;
}
.ocard-fee-amount {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-top: 4px;
}

.ocard-info {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  margin-bottom: 10px;
}
.oinfo-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 5px;
}
.oinfo-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 3px;
}
.oinfo-sub {
  font-size: 12px;
  color: var(--text2);
  margin-top: 2px;
}

/* DELIVERY PROGRESS */
.delivery-progress {
  margin: 14px 0;
}
.dp-track {
  height: 4px;
  background: var(--surface3);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}
.dp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange2));
  border-radius: 99px;
}
.dp-labels {
  display: flex;
  justify-content: space-between;
}
.dp-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text3);
}
.dp-label.done,
.dp-label.active {
  color: var(--orange);
}

.ocard-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

/* PANEL */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-head-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.panel-title {
  font-family: "Syne", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* RECENT */
.recent-list {
}
.recent-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.recent-item:last-child {
  border-bottom: none;
}
.recent-item:hover {
  background: var(--surface2);
}
.recent-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.recent-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--surface3);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.recent-name {
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 2px;
}
.recent-time {
  font-size: 11px;
  color: var(--text3);
}
.recent-fee {
  font-family: "Syne", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
}

.hidden {
  display: none;
}
