* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
:root {
  --blue: #10b981;
  --blue-light: #ebf1ff;
  --blue-dark: #0f4fcc;
  --green: #10b981;
  --green-light: #d1fae5;
  --orange: #f59e0b;
  --orange-light: #fef3c7;
  --red: #ef4444;
  --red-light: #fee2e2;
  --purple: #8b5cf6;
  --purple-light: #ede9fe;
  --bg: #f0f3fa;
  --card: #ffffff;
  --border: #e2e8f3;
  --text: #0a1628;
  --sub: #424242;
  --muted: #424242;
  --shadow: 0 1px 4px rgba(10, 22, 40, 0.05), 0 4px 16px rgba(10, 22, 40, 0.06);
  --shadow-md:
    0 2px 8px rgba(10, 22, 40, 0.07), 0 8px 24px rgba(10, 22, 40, 0.09);
  --shadow-lg: 0 8px 32px rgba(10, 22, 40, 0.14);
  --r: 7px;
  --r-sm: 4px;
  --nav-h: 64px;
  --header-blur: saturate(180%) blur(20px);
}
html,
body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  height: 100%;
  width: 100%;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
button {
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
img,
svg {
  display: block;
}
.app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* HEADER */
.header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: var(--header-blur);
  -webkit-backdrop-filter: var(--header-blur);
  padding: max(env(safe-area-inset-top), 14px) 18px 14px;
  border-bottom: 1px solid rgba(226, 232, 243, 0.8);
  flex-shrink: 0;
  position: relative;
  z-index: 20;
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.logo {
  font-size: 21px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.6px;
  line-height: 1;
}
.logo span {
  color: var(--text);
}
.logo-sub {
  font-size: 11.5px;
  color: var(--sub);
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.header-right {
  display: flex;
  gap: 8px;
  align-items: center;
}
.icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.icon-circle:active {
  background: #e8edf7;
  border-color: #c5cfe3;
}
.icon-circle svg {
  width: 18px;
  height: 18px;
  color: var(--sub);
}
.notif-dot::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid #fff;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(26, 107, 255, 0.3);
  transition: opacity 0.15s;
}
.avatar:active {
  opacity: 0.85;
}

/* SEARCH */
.search-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
}
.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0f3fa;
  border: 1.5px solid transparent;
  border-radius: 13px;
  padding: 0 14px;
  height: 44px;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.search-box:focus-within {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26, 107, 255, 0.1);
}
.search-box input {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  flex: 1;
}
.search-box input::placeholder {
  color: var(--muted);
}
.search-box svg {
  color: var(--muted);
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.btn-filter {
  border-radius: 13px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition:
    background 0.15s,
    transform 0.1s,
    box-shadow 0.15s;
}
.btn-filter:active {
  background: var(--blue-dark);
  transform: scale(0.94);
}
.btn-filter svg {
  color: #808080;
  width: 18px;
  height: 18px;
}
.filter-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 17px;
  height: 17px;
  background: var(--orange);
  border-radius: 50%;
  border: 2px solid #fff;
  font-size: 8px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FILTER PANEL */
.filter-panel {
  padding: 14px 0 4px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}
.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.filter-panel .form-group label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 3px;
  display: block;
}
.filter-panel .form-group input {
  width: 100%;
  height: 38px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 0 10px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s;
}
.filter-panel .form-group input:focus {
  border-color: var(--blue);
  outline: none;
}

/* TABS */
.tabs-row {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: var(--header-blur);
  -webkit-backdrop-filter: var(--header-blur);
  padding: 10px 18px 0;
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}
.tabs-row::-webkit-scrollbar {
  display: none;
}
.tab {
  padding: 7px 15px;
  border-radius: 22px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--sub);
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  gap: 5px;
  user-select: none;
  -webkit-user-select: none;
}
.tab:active {
  transform: scale(0.94);
}
.tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 2px 10px rgba(26, 107, 255, 0.3);
}
.tab-count {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
}
.tab:not(.active) .tab-count {
  background: var(--bg);
  color: var(--muted);
}
.tabs-spacer {
  background: transparent;
  height: 4px;
  flex-shrink: 0;
}

/* SORT ROW */
.sort-row {
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.sort-label {
  font-size: 13px;
  color: var(--sub);
}
.sort-label strong {
  color: var(--text);
  font-weight: 700;
}
.sort-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-light);
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 5px 11px;
  border-radius: 20px;
  transition: opacity 0.15s;
}
.sort-btn:active {
  opacity: 0.7;
}
.sort-btn svg {
  width: 13px;
  height: 13px;
}

/* SCROLL AREA */
.scroll-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 16px calc(var(--nav-h) + 12px + env(safe-area-inset-bottom, 0px));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.scroll-area::-webkit-scrollbar {
  display: none;
}

/* LOAD CARD */
.load-card {
  background: var(--card);
  border-radius: var(--r);
  margin-bottom: 12px;
  padding: 16px 16px 14px 20px;
  box-shadow: var(--shadow);
  border: 1.5px solid rgba(226, 232, 243, 0.6);
  cursor: pointer;
  transition:
    transform 0.18s cubic-bezier(0.32, 0.72, 0, 1),
    box-shadow 0.18s,
    opacity 0.18s;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
}
.load-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}
.load-card.green::before {
  background: linear-gradient(to bottom, #10b981, #059669);
}
.load-card.blue::before {
  background: linear-gradient(to bottom, #1a6bff, #0f4fcc);
}
.load-card.orange::before {
  background: linear-gradient(to bottom, #f59e0b, #d97706);
}
.load-card.purple::before {
  background: linear-gradient(to bottom, #8b5cf6, #7c3aed);
}
.load-card:active {
  transform: scale(0.975);
  box-shadow: var(--shadow-md);
  opacity: 0.92;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.route-cities {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.4px;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 3px;
    line-height: 1.1;
}
.route-arrow {
  color: var(--blue);
  font-size: 13px;
}
.route-meta {
  font-size: 12px;
  color: var(--sub);
  display: flex;
  gap: 10px;
  align-items: center;
}
.price-block {
  text-align: right;
  flex-shrink: 0;
}
.price {
  font-size: 22px;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -0.8px;
  line-height: 1;
}
.rpm {
  font-size: 12px;
  font-weight: 700;
  color: var(--sub);
  margin-top: 2px;
}
.card-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}
.card-details {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.detail-label {
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 2px;
}
.detail-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.broker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.broker-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}
.broker-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--sub);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.broker-rating {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange);
}
.posted-time {
  font-size: 11px;
  color: var(--muted);
}
.card-footer {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-actions {
  display: flex;
  gap: 6px;
}
.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.1s;
}
.icon-btn:active {
  background: var(--blue-light);
  border-color: var(--blue);
  transform: scale(0.9);
}
.icon-btn svg {
  width: 15px;
  height: 15px;
  color: var(--sub);
}

/* BADGE */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.1px;
}
.badge.green {
  background: var(--green-light);
  color: #059669;
}
.badge.orange {
  background: var(--orange-light);
  color: #d97706;
}
.badge.blue {
  background: var(--blue-light);
  color: var(--blue);
}
.badge.purple {
  background: var(--purple-light);
  color: var(--purple);
}
.badge.red {
  background: var(--red-light);
  color: var(--red);
}
/* EMPTY */
.empty {
  text-align: center;
  padding: 70px 20px;
}
.empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.6;
}
.empty h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.empty p {
  font-size: 14px;
  color: var(--sub);
  line-height: 1.5;
}

/* BOTTOM NAV */
.bottom-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: var(--header-blur);
  -webkit-backdrop-filter: var(--header-blur);
  border-top: 1px solid rgba(226, 232, 243, 0.8);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 20;
  height: var(--nav-h);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  padding: 8px 0 6px;
  text-decoration: none;
  position: relative;
  transition: opacity 0.15s;
}
.nav-item svg {
  width: 22px;
  height: 22px;
  color: var(--muted);
  transition:
    color 0.2s,
    transform 0.2s;
}
.nav-item span {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-item.active svg {
  color: var(--blue);
  transform: scale(1.08);
}
.nav-item.active span {
  color: var(--blue);
  font-weight: 700;
}
.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
}
.nav-dot {
  display: none;
}
.nav-item.active svg {
  color: var(--blue);
  transform: scale(1.08);
}
.nav-item.active span {
  color: var(--blue);
  font-weight: 700;
}
.nav-item.active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
}
.nav-dot {
  display: none;
}

/* OVERLAY & OFFCANVAS */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.55);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.overlay.show {
  opacity: 1;
  pointer-events: all;
}
.offcanvas {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 26px 26px 0 0;
  z-index: 60;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 93%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -8px 40px rgba(10, 22, 40, 0.18);
}
.offcanvas.show {
  transform: translateY(0);
}
.oc-handle {
  width: 36px;
  height: 4.5px;
  background: #d1d9e8;
  border-radius: 3px;
  margin: 10px auto 0;
  flex-shrink: 0;
}
.oc-header {
  padding: 14px 20px 0;
  flex-shrink: 0;
}
.oc-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.oc-title {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.oc-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.15s,
    transform 0.1s;
}
.oc-close:active {
  background: #dde3ef;
  transform: scale(0.92);
}
.oc-close svg {
  width: 16px;
  height: 16px;
  color: var(--sub);
}
.oc-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.oc-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 20px calc(100px + env(safe-area-inset-bottom, 0px));
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.oc-scroll::-webkit-scrollbar {
  display: none;
}

/* PAY BOX */
.pay-box {
  background: linear-gradient(145deg, #0d43b8, #1a6bff 55%, #3b82f6);
  border-radius: var(--r);
  padding: 20px;
  color: #fff;
  margin-bottom: 22px;
  box-shadow: 0 4px 20px rgba(26, 107, 255, 0.35);
}
.pay-box-title {
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.75;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
}
.pay-main {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 2px;
  line-height: 1;
}
.pay-rpm {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.82;
  margin-bottom: 14px;
}
.pay-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  opacity: 0.87;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

/* TIMELINE */
.section-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--muted);
  margin-bottom: 12px;
}
.timeline {
  position: relative;
  padding-left: 38px;
  margin-bottom: 22px;
}
.tl-line {
  position: absolute;
  left: 13px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--green), var(--blue));
  border-radius: 1px;
}
.tl-stop {
  position: relative;
  padding-bottom: 22px;
}
.tl-stop:last-child {
  padding-bottom: 0;
}
.tl-dot {
  position: absolute;
  left: -29px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 2px currentColor;
  background: #fff;
}
.tl-dot.pickup {
  color: var(--green);
}
.tl-dot.delivery {
  color: var(--blue);
}
.tl-dot.stop {
  color: var(--orange);
}
.tl-dot-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
}
.tl-city {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 2px;
}
.tl-address {
  font-size: 12px;
  color: var(--sub);
  margin-bottom: 5px;
}
.tl-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}
.tl-time.pickup {
  background: var(--green-light);
  color: #059669;
}
.tl-time.delivery {
  background: var(--blue-light);
  color: var(--blue);
}
.tl-time.stop {
  background: var(--orange-light);
  color: #d97706;
}

/* INFO GRID */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 22px;
}
.info-card {
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 12px;
}
.info-card-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.info-card-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}
.info-card-sub {
  font-size: 11px;
  color: var(--sub);
  margin-top: 2px;
}

/* REQ LIST */
.req-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}
.req-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 11px 12px;
}
.req-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.req-icon.green {
  background: var(--green-light);
}
.req-icon.blue {
  background: var(--blue-light);
}
.req-icon.orange {
  background: var(--orange-light);
}
.req-icon svg {
  width: 16px;
  height: 16px;
}
.req-icon.green svg {
  color: var(--green);
}
.req-icon.blue svg {
  color: var(--blue);
}
.req-icon.orange svg {
  color: var(--orange);
}
.req-label {
  font-size: 13px;
  font-weight: 700;
}
.req-val {
  font-size: 12px;
  color: var(--sub);
  margin-top: 1px;
}

/* BROKER CARD */
.broker-card {
  background: var(--bg);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 22px;
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1.5px solid var(--border);
}
.broker-logo-lg {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  flex-shrink: 0;
}
.broker-info h4 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 3px;
}
.broker-info p {
  font-size: 12px;
  color: var(--sub);
}
.broker-mc {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

/* ACTION BAR */
.oc-action-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 10px;
}

.btn-primary {
  /* flex: 2; */
  height: 32px;
  border-radius: 7px;
  border: none;
  background: linear-gradient(135deg, #0db37a, #10b981);
  color: #fff;
  padding: 10px 15px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  /* gap: 6px; */
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  transition:
    opacity 0.15s,
    transform 0.12s;
}
.btn-primary:active {
  opacity: 0.87;
  transform: scale(0.97);
}

.btn-secondary {
    /* flex: 2; */
  height: 32px;
  border-radius: 7px;
  padding: 10px 15px;
  border: none;
 background: transparent;
 
  color: var(--blue);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  /* gap: 6px; */
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  transition:
    opacity 0.15s,
    transform 0.12s;

}
.btn-secondary:active {
  background: var(--blue-light);
}

/* FORMS */
.form-page {
  background: var(--card);
  border-radius: var(--r);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.form-page-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.4px;
}
.form-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.form-section:last-of-type {
  border-bottom: none;
}
.form-section-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.form-group {
  margin-bottom: 10px;
}
.form-group label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--sub);
  margin-bottom: 5px;
  letter-spacing: 0.1px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.form-group textarea {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 4px rgba(26, 107, 255, 0.1);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-row.three {
  grid-template-columns: 1fr 1fr 1fr;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  padding: 8px 0;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.rpm-display {
  height: 44px;
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 900;
  color: var(--green);
}
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.btn-add-stop {
  background: var(--blue-light);
  color: var(--blue);
  border: none;
  border-radius: 9px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
}
.btn-add-stop:active {
  opacity: 0.7;
}
.btn-remove-stop {
  background: var(--red-light);
  color: var(--red);
  border: none;
  border-radius: 9px;
  padding: 6px 13px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  font-family: inherit;
  transition: opacity 0.15s;
}
.btn-remove-stop:active {
  opacity: 0.7;
}
.stop-row {
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 12px;
  margin-bottom: 8px;
}

/* ALERTS */
.alert {
  padding: 13px 16px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-success {
  background: var(--green-light);
  color: #059669;
}
.alert-error {
  background: var(--red-light);
  color: var(--red);
}

/* PAGE TITLE */
.page-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}
.page-back {
  margin-bottom: 12px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: opacity 0.15s;
}
.back-link:active {
  opacity: 0.7;
}

/* INCOME */
.income-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.income-card {
  border-radius: var(--r);
  padding: 18px;
  color: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}
.income-card.green-gradient {
  background: linear-gradient(135deg, #059669, #10b981);
}
.income-card.blue-gradient {
  background: linear-gradient(135deg, #0d43b8, #1a6bff);
}
.income-card-label {
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.82;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}
.income-card-value {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.8px;
}
.income-card-sub {
  font-size: 12px;
  opacity: 0.72;
  margin-top: 4px;
}
.income-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border-radius: var(--r-sm);
  padding: 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.income-row-left {
  flex: 1;
}
.income-row-title {
  font-size: 14px;
  font-weight: 700;
}
.income-row-sub {
  font-size: 12px;
  color: var(--sub);
  margin-top: 2px;
}
.income-row-amount {
  font-size: 18px;
  font-weight: 900;
  color: var(--green);
  flex-shrink: 0;
}

/* PROFILE */
.profile-header {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--card);
  border-radius: var(--r);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

/* NOTIFICATIONS */
.notif-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--card);
  border-radius: var(--r-sm);
  padding: 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
  position: relative;
  transition:
    opacity 0.15s,
    transform 0.15s;
  border: 1.5px solid transparent;
}
.notif-item:active {
  opacity: 0.8;
  transform: scale(0.98);
}
.notif-item.unread {
  background: #eef4ff;
  border-color: rgba(26, 107, 255, 0.2);
}
.notif-icon {
  font-size: 22px;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 10px;
}
.notif-content {
  flex: 1;
}
.notif-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.notif-message {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.4;
}
.notif-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.notif-unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  margin-top: 6px;
}

/* REVIEWS */
.review-item {
  background: var(--card);
  border-radius: var(--r-sm);
  padding: 14px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.review-date {
  font-size: 11px;
  color: var(--muted);
}
.review-comment {
  font-size: 13px;
  color: var(--sub);
  line-height: 1.5;
}

/* SKELETON LOADING */
.skeleton-list {
  padding: 4px 0;
}
.skeleton-card {
  background: var(--card);
  border-radius: var(--r);
  margin-bottom: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.skel {
  background: linear-gradient(90deg, #edf0f7 25%, #e2e8f0 50%, #edf0f7 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.skel-title {
  height: 18px;
  width: 70%;
  margin-bottom: 8px;
}
.skel-sub {
  height: 13px;
  width: 45%;
  margin-bottom: 14px;
}
.skel-row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.skel-pill {
  height: 13px;
  border-radius: 20px;
}
.skel-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}
.skel-detail {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.skel-detail-item {
  height: 32px;
  border-radius: 8px;
}

/* BID MODAL */
.bid-form {
  background: var(--bg);
  border-radius: var(--r-sm);
  padding: 16px;
  margin-top: 16px;
  border: 1.5px solid var(--border);
}
.bid-form .form-group {
  margin-bottom: 10px;
}
.bid-form .form-group label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--sub);
  margin-bottom: 4px;
  display: block;
}
.bid-form .form-group input,
.bid-form .form-group textarea {
  width: 100%;
  height: 42px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.bid-form .form-group input:focus,
.bid-form .form-group textarea:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 0 4px rgba(26, 107, 255, 0.1);
}
.bid-form .form-group textarea {
  height: 72px;
  padding: 10px 12px;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 12px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(10, 22, 40, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  padding: 12px 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  z-index: 200;
  transition:
    transform 0.3s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.3s;
  opacity: 0;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast.success {
  background: rgba(5, 150, 105, 0.92);
}
.toast.error {
  background: rgba(220, 38, 38, 0.92);
}
