:root {
  --rd-navy: #07194c;
  --rd-navy-2: #0d2c7a;
  --rd-blue: #0d6efd;
  --rd-cyan: #31c5ff;
  --rd-orange: #ff8a00;
  --rd-gold: #ffbf1a;
  --rd-dark: #0d1730;
  --rd-slate: #5d6b8a;
  --rd-bg: #f4f7fc;
  --rd-panel: #ffffff;
  --rd-border: #e5ebf6;
  --rd-shadow: 0 20px 45px rgba(10, 24, 69, 0.08);
  --rd-shadow-strong: 0 28px 60px rgba(7, 25, 76, 0.18);
}

* { box-sizing: border-box; }

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--rd-bg);
  color: #16223d;
}

.bg-app {
  background:
    radial-gradient(circle at top right, rgba(49, 197, 255, 0.12), transparent 24%),
    radial-gradient(circle at top left, rgba(255, 191, 26, 0.10), transparent 18%),
    var(--rd-bg);
}

.login-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(49, 197, 255, 0.24), transparent 18%),
    radial-gradient(circle at bottom left, rgba(255, 138, 0, 0.20), transparent 22%),
    linear-gradient(135deg, #07194c 0%, #0d2c7a 48%, #07194c 100%);
}

.app-nav {
  backdrop-filter: blur(14px);
  background: linear-gradient(90deg, rgba(7,25,76,.96), rgba(13,44,122,.96) 55%, rgba(7,25,76,.92));
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 30px rgba(7, 25, 76, .14);
}

.nav-brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
}

.nav-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(0,0,0,.28);
}

.brand-name,
.brand-sub {
  display: block;
  line-height: 1.1;
}

.brand-name {
  font-weight: 900;
  letter-spacing: .02em;
}

.brand-sub {
  margin-top: .15rem;
  font-size: .76rem;
  color: rgba(255,255,255,.65);
}

.hero-card,
.panel-card,
.product-card,
.order-card,
.metric-card,
.table-wrap,
.tracking-map-shell,
.info-card,
.kpi,
.login-card {
  border: 1px solid rgba(229, 235, 246, .9);
  border-radius: 26px;
  box-shadow: var(--rd-shadow);
  background: var(--rd-panel);
}

.hero-card {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(49, 197, 255, .35), transparent 18%),
    radial-gradient(circle at bottom left, rgba(255, 191, 26, .22), transparent 24%),
    linear-gradient(135deg, #07194c 0%, #0d2c7a 52%, #063f8f 100%);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}

.hero-mini {
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 20px;
  min-height: 118px;
}

.hero-logo {
  max-width: 320px;
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--rd-shadow-strong);
  border: 1px solid rgba(255,255,255,.15);
}

.section-title {
  font-size: 1.16rem;
  font-weight: 900;
  color: var(--rd-dark);
  margin-bottom: 1rem;
}

.search-box {
  position: relative;
}

.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7a99;
}

.search-box input {
  height: 54px;
  padding-left: 46px;
  border-radius: 999px;
  border: 1px solid var(--rd-border);
  box-shadow: none;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .62rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--rd-border);
  text-decoration: none;
  color: var(--rd-dark);
  font-weight: 800;
  transition: .18s ease;
}

.category-chip:hover,
.category-chip.active {
  transform: translateY(-1px);
  background: linear-gradient(90deg, var(--rd-orange), var(--rd-gold));
  color: #16223d;
  border-color: transparent;
}

.business-card,
.product-card,
.panel-card,
.order-card,
.metric-card,
.info-card {
  background: #fff;
}

.business-card {
  display: block;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: .18s ease;
}

.business-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 54px rgba(7, 25, 76, .12);
}

.business-cover {
  position: relative;
  height: 178px;
  background:
    radial-gradient(circle at top left, rgba(49,197,255,.65), transparent 18%),
    radial-gradient(circle at bottom right, rgba(255,191,26,.42), transparent 18%),
    linear-gradient(135deg, #07194c 0%, #0d2c7a 60%, #0a5ad4 100%);
}

.business-cover::after {
  content: "LIVE TRACKING";
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: .4rem .72rem;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-weight: 900;
  font-size: .72rem;
  letter-spacing: .08em;
}

.business-body {
  padding: 1.1rem;
}

.badge-soft,
.live-chip,
.gps-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border-radius: 999px;
  font-weight: 800;
}

.badge-soft {
  background: #eef4ff;
  color: #1946a8;
  padding: .55rem .82rem;
}

.live-chip {
  padding: .5rem .82rem;
  background: rgba(12, 111, 253, .10);
  color: #114bc4;
}

.gps-chip {
  padding: .65rem 1rem;
  background: #f7fbff;
  border: 1px dashed rgba(12,111,253,.32);
  color: #143b96;
}

.price {
  font-weight: 900;
  font-size: 1.12rem;
  color: #114bc4;
}

.sticky-cart {
  position: sticky;
  top: 92px;
}

.cart-item {
  padding: 1rem 0;
  border-bottom: 1px solid #edf1f7;
}

.metric-card {
  padding: 1.25rem;
  min-height: 148px;
}

.metric-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--rd-dark);
}

.metric-label {
  font-weight: 700;
  color: var(--rd-slate);
}

.metric-caption {
  color: #7d8aa7;
  font-size: .88rem;
}

.kpi {
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(49, 197, 255, .26), transparent 18%),
    linear-gradient(135deg, #0c2d7f 0%, #07194c 100%);
  padding: 1.2rem;
}

.table-wrap {
  padding: 1rem;
}

.table > :not(caption) > * > * {
  border-bottom-color: #edf1f7;
}

.bottom-app-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1040;
  background: rgba(255,255,255,.96);
  border-top: 1px solid #e8edf6;
  padding: .58rem .5rem calc(.58rem + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 26px rgba(7, 25, 76, .09);
  backdrop-filter: blur(14px);
}

.bottom-app-nav .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  color: #566582;
  font-size: .78rem;
  font-weight: 800;
}

.bottom-app-nav .nav-link.active,
.bottom-app-nav .nav-link:hover {
  color: #0d5bd1;
}

.mobile-space {
  padding-bottom: 96px;
}

.login-card {
  max-width: 540px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 34px 80px rgba(0,0,0,.24);
}

.login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.login-brand img {
  width: 110px;
  height: 110px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 16px 34px rgba(7,25,76,.18);
}

.btn-main {
  background: linear-gradient(90deg, var(--rd-orange), var(--rd-gold));
  border: 0;
  color: #13213d;
  font-weight: 900;
  border-radius: 999px;
  padding: .9rem 1.15rem;
  box-shadow: 0 16px 34px rgba(255,138,0,.26);
}

.btn-main:hover,
.btn-main:focus {
  color: #13213d;
  transform: translateY(-1px);
}

.btn-soft {
  background: #f6f9ff;
  border: 1px solid #dde7fb;
  color: #1842a0;
  font-weight: 800;
  border-radius: 999px;
}

.btn-soft:hover {
  background: #eef4ff;
  color: #113580;
}

.avatar-mini {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,138,0,.18), rgba(49,197,255,.18));
  color: #0d2c7a;
  font-size: 1.2rem;
}

.form-control,
.form-select,
textarea.form-control {
  border: 1px solid #dfe7f4;
  box-shadow: none;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  border-color: rgba(13,91,209,.55);
  box-shadow: 0 0 0 .25rem rgba(13,91,209,.12);
}

.order-meta-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.info-card {
  padding: 1rem 1.1rem;
}

.info-card .info-label {
  color: var(--rd-slate);
  font-size: .86rem;
  margin-bottom: .2rem;
}

.info-card .info-value {
  font-weight: 900;
  color: var(--rd-dark);
}

.progress-shell {
  background: #edf3ff;
  border-radius: 999px;
  overflow: hidden;
  height: 12px;
}

.progress-shell .progress-bar {
  background: linear-gradient(90deg, var(--rd-orange), var(--rd-gold), #32c5ff);
  border-radius: 999px;
}

.tracking-map-shell {
  padding: 1rem;
}

.tracking-map {
  width: 100%;
  min-height: 420px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--rd-border);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.map-legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .65rem;
  border-radius: 999px;
  background: #f6f9ff;
  border: 1px solid #e3ebfa;
  color: #344665;
  font-size: .8rem;
  font-weight: 800;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-business { background: #0d5bd1; }
.dot-customer { background: #ff8a00; }
.dot-driver { background: #0bb26a; }

.tracking-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}

.tracking-step {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .95rem;
  border-radius: 20px;
  border: 1px solid #edf1f7;
  background: #fafcff;
  transition: .18s ease;
}

.step-bullet {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #edf3ff;
  color: #3557a5;
  flex: 0 0 auto;
}

.step-title {
  font-weight: 900;
  color: var(--rd-dark);
}

.tracking-step.is-done {
  border-color: rgba(11,178,106,.2);
  background: rgba(11,178,106,.06);
}

.tracking-step.is-done .step-bullet {
  background: rgba(11,178,106,.14);
  color: #108453;
}

.tracking-step.is-current {
  border-color: rgba(13,91,209,.26);
  background: rgba(13,91,209,.07);
  box-shadow: inset 0 0 0 1px rgba(13,91,209,.05);
}

.tracking-timeline {
  display: grid;
  gap: .95rem;
}

.timeline-item {
  display: flex;
  gap: .85rem;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  margin-top: .42rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rd-orange), var(--rd-gold));
  box-shadow: 0 0 0 6px rgba(255,138,0,.10);
  flex: 0 0 auto;
}

.timeline-body {
  flex: 1 1 auto;
  padding-bottom: .9rem;
  border-bottom: 1px solid #edf1f7;
}

.timeline-meta {
  color: #7b89a4;
  font-size: .83rem;
}

.tracking-grid {
  display: grid;
  gap: 1rem;
}

.tracking-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rd-marker {
  background: transparent;
  border: 0;
}

.rd-marker-inner {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
  border: 2px solid rgba(255,255,255,.9);
}

.rd-marker-business .rd-marker-inner {
  background: #0d5bd1;
}

.rd-marker-customer .rd-marker-inner {
  background: #ff8a00;
}

.rd-marker-driver .rd-marker-inner {
  background: #10aa67;
}

.utility-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: #f6f9ff;
  border: 1px solid #e1e9fb;
  font-size: .82rem;
  font-weight: 800;
  color: #2d456f;
}

.feature-list {
  display: grid;
  gap: .85rem;
}

.feature-item {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}

.feature-item i {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,138,0,.14), rgba(49,197,255,.14));
  color: #0d2c7a;
}

.state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.order-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border-radius: 999px;
  padding: .5rem .85rem;
  font-weight: 900;
}

.logo-banner {
  max-width: 100%;
  border-radius: 30px;
  box-shadow: var(--rd-shadow-strong);
}

@media (max-width: 1199.98px) {
  .tracking-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .sticky-cart {
    position: static;
  }

  .order-meta-row,
  .tracking-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tracking-map {
    min-height: 360px;
  }
}

@media (max-width: 767.98px) {
  .hero-card,
  .panel-card,
  .product-card,
  .order-card,
  .metric-card,
  .table-wrap,
  .tracking-map-shell,
  .info-card,
  .kpi,
  .login-card {
    border-radius: 22px;
  }

  .tracking-stepper,
  .order-meta-row,
  .tracking-grid.cols-2 {
    grid-template-columns: 1fr;
  }

  .tracking-map {
    min-height: 300px;
  }

  .brand-sub {
    display: none;
  }
}

.btn-notification {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notify-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rd-orange), var(--rd-gold));
  color: #112347;
  font-size: .7rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .35rem;
}

.notification-menu {
  width: min(380px, calc(100vw - 24px));
  border: 0;
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(7, 25, 76, .18);
  overflow: hidden;
}

.notification-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1rem .9rem;
  background: linear-gradient(135deg, #07194c 0%, #0d2c7a 60%, #0a5ad4 100%);
  color: #fff;
}

.notification-list {
  max-height: 420px;
  overflow: auto;
  background: #fff;
}

.notification-item,
.notification-empty {
  display: block;
  padding: .95rem 1rem;
  border-bottom: 1px solid #eef3fb;
  color: inherit;
  text-decoration: none;
}

.notification-item:hover {
  background: #f8fbff;
}

.notification-item.is-unread {
  background: linear-gradient(90deg, rgba(13,91,209,.06), transparent);
}

.notification-empty {
  color: #7283a3;
}

.native-shell-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .8rem;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  font-weight: 800;
}

.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1rem;
}

.section-tabs a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1rem;
  border-radius: 999px;
  background: #f7faff;
  border: 1px solid #e1eafb;
  text-decoration: none;
  color: #173266;
  font-weight: 800;
}

.section-tabs a.active,
.section-tabs a:hover {
  color: #fff;
  background: linear-gradient(90deg, #0d5bd1, #31c5ff);
  border-color: transparent;
}

.product-grid-compact {
  display: grid;
  gap: 1rem;
}

.option-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .75rem;
  border-radius: 999px;
  background: #f7faff;
  border: 1px solid #e5edf9;
  font-size: .84rem;
  font-weight: 700;
  color: #274172;
}

.cart-line-summary {
  display: grid;
  gap: .35rem;
  margin-top: .5rem;
}

.cart-line-summary span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #6d7c9c;
  font-size: .83rem;
}

.product-config-shell {
  display: grid;
  gap: 1rem;
}

.modifier-group {
  border: 1px solid #e9effa;
  border-radius: 22px;
  padding: 1rem;
  background: #fcfdff;
}

.modifier-option {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: flex-start;
  padding: .75rem .85rem;
  border: 1px solid #eef3fb;
  border-radius: 18px;
  background: #fff;
}

.modifier-option + .modifier-option {
  margin-top: .75rem;
}

.product-price-breakdown {
  display: grid;
  gap: .4rem;
  padding: 1rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff 0%, #edf4ff 100%);
  border: 1px solid #dfeafb;
}

.summary-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2ebfb;
  font-size: .8rem;
  font-weight: 700;
}

.status-toast-wrap {
  position: fixed;
  top: 86px;
  right: 16px;
  z-index: 1090;
  display: grid;
  gap: .8rem;
  width: min(360px, calc(100vw - 32px));
}

.status-toast {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(7, 25, 76, .20);
  background: #fff;
  border: 1px solid #e6eefb;
}

.status-toast .toast-head {
  padding: .85rem 1rem;
  background: linear-gradient(135deg, #07194c 0%, #0d2c7a 60%, #0a5ad4 100%);
  color: #fff;
  font-weight: 900;
}

.status-toast .toast-body {
  padding: .9rem 1rem 1rem;
}

.inline-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.empty-soft {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px dashed #d9e4f6;
  color: #7283a3;
  background: #fafcff;
}

.badge-state-live {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: rgba(11,178,106,.12);
  color: #0e7c4e;
  font-weight: 800;
}

@media (max-width: 991.98px) {
  .inline-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .status-toast-wrap {
    top: 74px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .inline-kpis {
    grid-template-columns: 1fr;
  }
}


.hero-customer {
  background:
    radial-gradient(circle at top right, rgba(49, 197, 255, .34), transparent 18%),
    radial-gradient(circle at bottom left, rgba(255, 191, 26, .18), transparent 24%),
    linear-gradient(135deg, #07194c 0%, #0d2c7a 52%, #063f8f 100%);
}
.hero-partners {
  background:
    radial-gradient(circle at top left, rgba(255,191,26,.22), transparent 18%),
    radial-gradient(circle at bottom right, rgba(49,197,255,.22), transparent 24%),
    linear-gradient(135deg, #07194c 0%, #08235d 44%, #0d2c7a 100%);
}
.partners-shell {
  background:
    radial-gradient(circle at top right, rgba(49,197,255,.16), transparent 18%),
    radial-gradient(circle at bottom left, rgba(255,191,26,.12), transparent 24%),
    linear-gradient(135deg, #07194c 0%, #0d2c7a 52%, #07194c 100%);
}
.app-preview-img {
  width: 100%;
  max-width: 460px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.14);
}
.compact-list .feature-item {
  padding: .95rem 0;
}
.btn-soft-light {
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
}
.btn-soft-light:hover {
  color: #fff;
  background: rgba(255,255,255,.18);
}
@media (max-width: 767.98px) {
  .app-preview-img {
    max-width: 320px;
  }
  .hero-card .display-5 {
    font-size: 2.15rem;
  }
}
