/* ==========================================================================
   RETAILDOKAN - ORDER TRACKING PAGE STYLESHEET (PERFECTED LUXURY UI/UX)
   Matches exact layout, colors, typography, and aesthetics of RetailDokan
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Active Header Nav Indicator
   -------------------------------------------------------------------------- */
.top-item-active a {
  color: var(--primary-red) !important;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   2. Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumb-nav {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
  font-size: 13px;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  color: var(--text-muted);
}

.breadcrumb-list a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.breadcrumb-list a:hover {
  color: var(--primary-red);
}

.breadcrumb-list .separator {
  color: var(--text-light);
  font-size: 11px;
}

.breadcrumb-list li[aria-current="page"] {
  color: var(--text-main);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   3. Hero & Tracking Lookup Section
   -------------------------------------------------------------------------- */
.track-hero-section {
  position: relative;
  background: linear-gradient(135deg, #0B0F19 0%, #111827 50%, #1E293B 100%);
  color: #FFFFFF;
  padding: 56px 0 72px;
  overflow: hidden;
}

.track-hero-section::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 750px;
  height: 380px;
  background: radial-gradient(circle, rgba(229, 46, 45, 0.22) 0%, rgba(229, 46, 45, 0.05) 50%, transparent 80%);
  filter: blur(50px);
  pointer-events: none;
}

.track-hero-content {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.track-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: 18px;
  letter-spacing: 0.2px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.track-hero-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
  color: #FFFFFF;
  line-height: 1.25;
}

.track-hero-sub {
  font-size: 14.5px;
  color: #94A3B8;
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* Tracking Form Glass Card */
.tracking-search-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  text-align: left;
  color: var(--text-main);
  position: relative;
}

.tracking-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 22px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: var(--bg-page);
  color: var(--text-main);
}

.tab-btn.active {
  background: var(--accent-pink);
  color: var(--primary-red);
  border-color: rgba(229, 46, 45, 0.2);
}

.tab-btn svg {
  color: currentColor;
}

.tracking-form {
  margin-bottom: 22px;
}

.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
  margin-bottom: 7px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-light);
  user-select: none;
}

.input-icon {
  position: absolute;
  left: 14px;
  display: flex;
  align-items: center;
  color: var(--text-light);
  pointer-events: none;
}

.form-control {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 38px;
  background: var(--bg-page);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--text-main);
  transition: all 0.2s ease;
  outline: none;
}

.form-control:focus {
  background: #FFFFFF;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(229, 46, 45, 0.12);
}

.form-control::placeholder {
  color: var(--text-light);
}

/* Submit Button */
.btn-track-submit {
  position: relative;
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-red) 0%, #D31D1C 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(229, 46, 45, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.btn-track-submit:hover {
  background: linear-gradient(135deg, #F03837 0%, var(--primary-red) 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 10px 24px rgba(229, 46, 45, 0.45);
}

.btn-track-submit:active {
  transform: translateY(0);
}

.spinner-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn-track-submit.loading .btn-text,
.btn-track-submit.loading svg {
  display: none;
}

.btn-track-submit.loading .spinner-loader {
  display: block;
}

/* Quick Demo Chips */
.quick-demo-wrap {
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.demo-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-main);
}

.demo-chip:hover {
  background: #FFFFFF;
  border-color: var(--text-muted);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.chip-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.chip-out-delivery .chip-status-dot { background-color: #F59E0B; }
.chip-in-transit .chip-status-dot { background-color: #3B82F6; }
.chip-delivered .chip-status-dot { background-color: #10B981; }
.chip-processing .chip-status-dot { background-color: #8B5CF6; }

/* --------------------------------------------------------------------------
   4. Tracking Result Container & Master Card
   -------------------------------------------------------------------------- */
.track-result-section {
  padding: 44px 0 70px;
}

.status-master-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 32px;
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

/* Master Top Bar */
.status-top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.order-id-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.order-id-number-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-id-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.copy-id-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.copy-id-btn:hover {
  background: #FFFFFF;
  border-color: var(--text-muted);
  color: var(--text-main);
}

.status-badge-wrap {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulseIndicator 1.8s infinite;
}

@keyframes pulseIndicator {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 currentColor; }
  70% { transform: scale(1); box-shadow: 0 0 0 6px transparent; }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 transparent; }
}

/* Status Pill Variants */
.status-out-for-delivery {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}
.status-out-for-delivery .pulse-indicator {
  background: #D97706;
}

.status-in-transit {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}
.status-in-transit .pulse-indicator {
  background: #2563EB;
}

.status-delivered {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}
.status-delivered .pulse-indicator {
  background: #10B981;
}

.status-processing {
  background: #F5F3FF;
  color: #6D28D9;
  border: 1px solid #DDD6FE;
}
.status-processing .pulse-indicator {
  background: #7C3AED;
}

.order-date-text {
  font-size: 12px;
  color: var(--text-muted);
}

/* ETA & Courier Banner */
.eta-courier-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 32px;
}

.eta-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.eta-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-red);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.eta-info {
  display: flex;
  flex-direction: column;
}

.eta-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.eta-date {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  margin: 2px 0;
}

.eta-sub {
  font-size: 12px;
  color: #64748B;
}

/* Courier & Actions Block */
.courier-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-left: 1px solid #E2E8F0;
  padding-left: 24px;
}

.courier-badge-box {
  display: flex;
  flex-direction: column;
}

.courier-brand {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
}

.consignment-text {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.consignment-text strong {
  color: var(--text-main);
  font-family: monospace;
  font-size: 13px;
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
}

.courier-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.courier-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.rider-btn {
  background: var(--primary-red);
  color: #FFFFFF;
  border: 1px solid var(--primary-red);
  box-shadow: 0 2px 8px rgba(229, 46, 45, 0.25);
}

.rider-btn:hover {
  background: var(--primary-red-hover);
  transform: translateY(-1px);
}

.invoice-btn {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  font-family: var(--font-main);
}

.invoice-btn:hover {
  background: var(--bg-page);
  border-color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   5. Visual Milestone Stepper (5-Steps)
   -------------------------------------------------------------------------- */
.stepper-section {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.stepper-heading {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.visual-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}

.step-item {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-item:last-child {
  flex: 0 0 auto;
  min-width: 140px;
}

.step-marker {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2.5px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #64748B;
  position: relative;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Connector Line */
.step-connector {
  position: absolute;
  top: 21px;
  left: 50%;
  width: 100%;
  height: 3px;
  background-color: #E2E8F0;
  z-index: 1;
  transition: background-color 0.3s ease;
}

/* Step State: Completed */
.step-item.step-completed .step-marker {
  background-color: #10B981;
  border-color: #10B981;
  color: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.step-item.step-completed .step-connector {
  background-color: #10B981;
}

/* Step State: Active / In Progress */
.step-item.step-active .step-marker {
  background-color: #FFFFFF;
  border-color: var(--primary-red);
  color: var(--primary-red);
  box-shadow: 0 0 0 6px rgba(229, 46, 45, 0.18);
}

.active-pulse-ring {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px solid var(--primary-red);
  animation: pulseRing 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

.step-item.step-active .step-connector {
  background: linear-gradient(90deg, #10B981 0%, #E2E8F0 100%);
}

/* Step State: Pending */
.step-item.step-pending .step-marker {
  background: #F8FAFC;
  border-color: #CBD5E1;
  color: #94A3B8;
}

/* Step Details Typography */
.step-details {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 6px;
}

.step-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.step-time {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.step-desc {
  font-size: 11.5px;
  color: #64748B;
  max-width: 140px;
  margin: 0 auto;
  line-height: 1.35;
}

.step-item.step-active .step-name {
  color: var(--primary-red);
}

/* --------------------------------------------------------------------------
   6. Checkpoint Log Accordion
   -------------------------------------------------------------------------- */
.checkpoint-accordion-card {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.checkpoint-accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: transparent;
  border: none;
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.15s;
}

.checkpoint-accordion-toggle:hover {
  background: rgba(0, 0, 0, 0.02);
}

.accordion-title-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.log-count-pill {
  font-size: 11px;
  font-weight: 700;
  background: #E2E8F0;
  color: #475569;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.chevron-icon {
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.checkpoint-accordion-card.open .chevron-icon {
  transform: rotate(180deg);
}

.checkpoint-log-body {
  display: none;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border-light);
  background: #FFFFFF;
}

.checkpoint-accordion-card.open .checkpoint-log-body {
  display: block;
}

.checkpoint-list {
  position: relative;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checkpoint-list::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 6px;
  width: 2px;
  background: #E2E8F0;
}

.checkpoint-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkpoint-dot {
  position: absolute;
  left: -20px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid #CBD5E1;
  z-index: 2;
}

.checkpoint-entry.latest .checkpoint-dot {
  border-color: var(--primary-red);
  background: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(229, 46, 45, 0.2);
}

.checkpoint-entry.completed .checkpoint-dot {
  border-color: #10B981;
  background: #10B981;
}

.checkpoint-time-loc {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.cp-timestamp {
  font-weight: 700;
  color: var(--text-main);
}

.cp-hub {
  font-weight: 600;
  color: #475569;
  background: #F1F5F9;
  padding: 2px 8px;
  border-radius: 4px;
}

.cp-activity {
  font-size: 13.5px;
  color: var(--text-main);
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   7. Two-Column Details Grid
   -------------------------------------------------------------------------- */
.tracking-details-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
}

.details-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 26px 28px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.header-icon-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon-title svg {
  color: var(--primary-red);
}

.header-icon-title h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.safe-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: #065F46;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* Order Items List */
.order-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.order-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.order-item-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.item-thumb-box {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  background: #F8FAFC;
  flex-shrink: 0;
}

.item-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.item-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.item-variant-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.variant-model-tag {
  background: var(--bg-page);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  color: #334155;
}

.item-pricing-col {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.item-qty {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Price Calculation Summary Box */
.price-breakdown-box {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.price-row strong {
  color: var(--text-main);
}

.badge-free {
  font-size: 11.5px;
  font-weight: 700;
  color: #10B981;
  background: #ECFDF5;
  padding: 2px 8px;
  border-radius: 4px;
}

.discount-row {
  color: var(--primary-red);
}

.discount-val {
  color: var(--primary-red) !important;
}

.price-row.total-row {
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px dashed var(--border-light);
  align-items: flex-start;
}

.total-label {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
}

.payment-type-note {
  display: block;
  font-size: 11.5px;
  color: #64748B;
  margin-top: 2px;
}

.total-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary-red);
}

/* --------------------------------------------------------------------------
   8. Right Column: Destination & Payment Cards
   -------------------------------------------------------------------------- */
.info-block {
  margin-bottom: 24px;
}

.info-block:last-child {
  margin-bottom: 0;
}

.btn-text-action {
  background: none;
  border: none;
  font-family: var(--font-main);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-red);
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-text-action:hover {
  text-decoration: underline;
}

.recipient-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recipient-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.recipient-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
}

.recipient-line svg {
  color: var(--text-muted);
  margin-top: 2px;
  flex-shrink: 0;
}

.delivery-instruction-box {
  background: #FFFBEB;
  border: 1px solid #FEF3C7;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-top: 6px;
  font-size: 12px;
  color: #92400E;
}

.inst-label {
  font-weight: 700;
  margin-right: 4px;
}

/* Payment Status Block */
.payment-badge-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.cod-pill {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.payment-method-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.pm-icon-wrap .cod-tag {
  background: var(--dark-banner);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.pm-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pm-text strong {
  font-size: 13.5px;
  color: var(--text-main);
}

.pm-text span {
  font-size: 12px;
  color: var(--text-muted);
}

/* Guarantee Perks */
.guarantee-perks-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.perk-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

/* Action Buttons Bar */
.action-buttons-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary-action:hover {
  background: var(--bg-page);
  border-color: var(--text-muted);
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  background: var(--primary-red);
  border: 1px solid var(--primary-red);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(229, 46, 45, 0.25);
}

.btn-primary-action:hover {
  background: var(--primary-red-hover);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   9. Support & FAQ Section
   -------------------------------------------------------------------------- */
.tracking-support-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, #111827 0%, #1F2937 100%);
  color: #FFFFFF;
  border-radius: var(--radius-xl);
  padding: 26px 32px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-md);
}

.support-text-col {
  display: flex;
  align-items: center;
  gap: 18px;
}

.support-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38BDF8;
  flex-shrink: 0;
}

.support-info h4 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #FFFFFF;
}

.support-info p {
  font-size: 13px;
  color: #94A3B8;
  max-width: 500px;
  line-height: 1.5;
}

.support-cta-col {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.support-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}

.support-phone-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.support-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #25D366;
  border: 1px solid #25D366;
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.support-whatsapp-btn:hover {
  background: #20BD5A;
  transform: translateY(-1px);
}

/* FAQ Accordion */
.tracking-faq-section {
  padding-top: 10px;
}

.faq-header {
  text-align: center;
  margin-bottom: 30px;
}

.faq-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary-red);
  background: var(--accent-pink);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.faq-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
}

.faq-accordion-grid {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item[open] {
  border-color: #CBD5E1;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 18px 22px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question svg {
  color: var(--text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 22px 20px;
  font-size: 13.5px;
  color: #475569;
  line-height: 1.6;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

/* --------------------------------------------------------------------------
   10. Address Update Modal
   -------------------------------------------------------------------------- */
.track-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.track-modal-overlay.active {
  display: flex;
}

.track-modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  padding: 30px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-form .form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-main);
  margin-bottom: 6px;
}

.modal-form textarea.form-control {
  height: auto;
  padding: 12px 14px;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.modal-cancel-btn {
  padding: 10px 18px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
}

.modal-save-btn {
  padding: 10px 22px;
  background: var(--primary-red);
  border: 1px solid var(--primary-red);
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(229, 46, 45, 0.25);
}

.modal-save-btn:hover {
  background: var(--primary-red-hover);
}

/* --------------------------------------------------------------------------
   11. Toast Notifications
   -------------------------------------------------------------------------- */
.track-toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.track-toast {
  background: #111827;
  color: #FFFFFF;
  border-left: 4px solid var(--primary-red);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: slideToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideToast {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --------------------------------------------------------------------------
   12. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .tracking-details-grid {
    grid-template-columns: 1fr;
  }
  
  .eta-courier-banner {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .courier-block {
    border-left: none;
    border-top: 1px solid #E2E8F0;
    padding-left: 0;
    padding-top: 16px;
  }
  
  .tracking-support-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .support-cta-col {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .track-hero-title {
    font-size: 26px;
  }
  
  .tracking-search-card {
    padding: 20px;
  }
  
  .form-row-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .status-master-card {
    padding: 20px;
  }
  
  .status-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  
  .status-badge-wrap {
    align-items: flex-start;
    text-align: left;
  }
  
  .visual-stepper {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    padding-left: 10px;
  }
  
  .step-item {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
    width: 100%;
  }
  
  .step-connector {
    top: 42px;
    left: 20px;
    width: 3px;
    height: calc(100% + 24px);
  }
  
  .step-details {
    margin-top: 0;
  }
  
  .step-desc {
    margin: 0;
    max-width: 100%;
  }
  
  .action-buttons-wrap {
    grid-template-columns: 1fr;
  }
}
