:root {
  --customer-ink: #292633;
  --customer-soft-ink: #5d5768;
  --customer-muted: #777184;
  --customer-accent: #795ea6;
  --customer-accent-soft: #a993cc;
  --customer-lilac: #f2eef9;
  --customer-lilac-deep: #e5ddf1;
  --customer-ivory: #fffdfb;
  --customer-line: #e4dcec;
  --customer-shadow: 0 20px 48px rgba(56, 45, 78, .12);
}

.customer-page { min-height: 68vh; padding: 64px 22px 90px; color: var(--customer-ink); background: radial-gradient(circle at 10% 0%, rgba(255,255,255,.94), transparent 30%), linear-gradient(140deg, #fbf9ff 0%, var(--customer-lilac) 60%, #fffdfb 100%); }
.customer-eyebrow, .customer-auth-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--customer-accent); font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

/* Authentication */
.customer-auth-shell { display: grid; grid-template-columns: minmax(0, .96fr) minmax(360px, .8fr); width: min(100%, 1060px); margin: 20px auto; overflow: hidden; border: 1px solid var(--customer-line); border-radius: 22px; background: var(--customer-ivory); box-shadow: var(--customer-shadow); }
.customer-auth-intro { min-height: 590px; padding: clamp(36px, 6vw, 76px); color: #fff; background: radial-gradient(circle at 88% 12%, rgba(255,255,255,.17) 0 5%, transparent 5.5%), radial-gradient(circle at 18% 84%, rgba(255,255,255,.12) 0 12%, transparent 12.5%), linear-gradient(145deg, #352b48 0%, #795ea6 55%, #ab91cc 100%); }
.customer-auth-intro .customer-eyebrow { color: #f5ecff; }
.customer-auth-intro h1 { max-width: 440px; margin: 18px 0; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.customer-auth-intro > p { max-width: 390px; margin: 0; color: rgba(255,255,255,.84); font-size: .98rem; line-height: 1.75; }
.customer-auth-benefits { display: grid; gap: 14px; margin: 44px 0 0; padding: 0; list-style: none; }
.customer-auth-benefits li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.93); font-size: .86rem; }
.customer-auth-benefits i { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #fff; font-size: .78rem; }
.customer-auth-card { align-self: center; padding: clamp(34px, 5vw, 62px); }
.customer-auth-card h2 { margin: 10px 0 8px; color: var(--customer-ink); font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 650; letter-spacing: -.04em; }
.customer-auth-copy { margin: 0; color: var(--customer-muted); font-size: .9rem; line-height: 1.6; }
.customer-form { display: grid; gap: 9px; margin-top: 25px; }
.customer-form label { color: var(--customer-soft-ink); font-size: .77rem; font-weight: 750; letter-spacing: .03em; }
.customer-input-wrap { display: flex; align-items: center; gap: 10px; min-height: 49px; padding: 0 14px; border: 1px solid var(--customer-line); border-radius: 8px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.customer-input-wrap:focus-within { border-color: var(--customer-accent-soft); box-shadow: 0 0 0 3px rgba(121,94,166,.12); }
.customer-input-wrap i { color: var(--customer-accent); font-size: .85rem; }
.customer-input-wrap input { width: 100%; min-width: 0; height: 47px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--customer-ink); font: inherit; font-size: .9rem; }
.customer-submit { width: 100%; min-height: 50px; margin-top: 7px; }
.customer-message { margin: 20px 0 -5px; padding: 11px 13px; border: 1px solid #efd4d9; border-radius: 8px; background: #fff5f6; color: #8f293c; font-size: .82rem; line-height: 1.45; }
.customer-message--success { border-color: #cce9d6; background: #f1fbf4; color: #267044; }
.customer-auth-switch { margin: 20px 0 0; color: var(--customer-muted); font-size: .84rem; text-align: center; }
.customer-auth-switch a { color: var(--customer-accent); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.customer-otp-option { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--customer-line); }
.customer-otp-option summary { cursor: pointer; color: var(--customer-soft-ink); font-size: .84rem; font-weight: 750; }
.customer-otp-option > p { margin: 10px 0 0; color: var(--customer-muted); font-size: .8rem; line-height: 1.5; }
.customer-otp-form, .customer-verify-form { margin-top: 16px; }
.customer-verify-form { padding-top: 16px; border-top: 1px dashed var(--customer-line); }
.customer-secondary-submit { min-height: 43px; border: 1px solid var(--customer-accent-soft); border-radius: 7px; background: #fff; color: var(--customer-accent); font: inherit; font-size: .8rem; font-weight: 750; }
.customer-secondary-submit:hover { background: var(--customer-lilac); }

/* Dashboard */
.customer-dashboard { width: min(100%, 1100px); margin: 0 auto; }
.customer-dashboard-hero { display: flex; justify-content: space-between; align-items: end; gap: 28px; padding: clamp(28px, 5vw, 48px); border: 1px solid var(--customer-line); border-radius: 20px; background: radial-gradient(circle at 90% 10%, rgba(169,147,204,.22), transparent 32%), var(--customer-ivory); box-shadow: 0 12px 34px rgba(56,45,78,.06); }
.customer-dashboard-hero h1 { margin: 10px 0 8px; color: var(--customer-ink); font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.08; }
.customer-dashboard-hero p { margin: 0; color: var(--customer-muted); line-height: 1.6; }
.customer-email { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--customer-soft-ink); font-size: .82rem; }
.customer-email i { color: var(--customer-accent); }
.customer-dashboard-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 13px; }
.customer-shop-link, .customer-signout { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; font-size: .8rem; font-weight: 750; }
.customer-shop-link { background: var(--customer-ink); color: #fff; }
.customer-signout { border: 1px solid var(--customer-line); color: var(--customer-soft-ink); background: #fff; }
.customer-signout:hover { border-color: #d8aab5; color: #9b3c50; }
.customer-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0 42px; }
.customer-stats article { display: flex; align-items: center; gap: 14px; padding: 19px; border: 1px solid var(--customer-line); border-radius: 14px; background: rgba(255,253,251,.9); box-shadow: 0 8px 22px rgba(56,45,78,.04); }
.customer-stat-icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--customer-accent); background: var(--customer-lilac); }
.customer-stats article > div { display: grid; gap: 2px; min-width: 0; }
.customer-stats span:not(.customer-stat-icon) { color: var(--customer-muted); font-size: .73rem; font-weight: 650; }
.customer-stats strong { color: var(--customer-ink); font-size: 1.16rem; }
.customer-stats strong i, .customer-order strong i, .customer-item-list b i { margin-right: 3px; font-size: .82em; }
.customer-history { padding: clamp(22px, 4vw, 38px); border: 1px solid var(--customer-line); border-radius: 20px; background: var(--customer-ivory); box-shadow: 0 12px 34px rgba(56,45,78,.05); }
.customer-history-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 21px; border-bottom: 1px solid var(--customer-line); }
.customer-history h2 { margin: 7px 0 0; color: var(--customer-ink); font-size: 1.6rem; font-weight: 600; letter-spacing: -.03em; }
.customer-history-count { padding: 6px 11px; border-radius: 999px; background: var(--customer-lilac); color: var(--customer-accent); font-size: .75rem; font-weight: 750; white-space: nowrap; }
.customer-order-list { display: grid; gap: 16px; margin-top: 20px; }
.customer-order { overflow: hidden; border: 1px solid var(--customer-line); border-radius: 14px; background: #fff; }
.customer-order-header { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 18px 20px; background: #fcfaff; border-bottom: 1px solid var(--customer-line); }
.customer-order-reference { display: grid; gap: 2px; }
.customer-order-reference span, .customer-order-total span { color: var(--customer-muted); font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.customer-order-reference strong { color: var(--customer-ink); font-size: .95rem; }
.customer-order-reference small { color: var(--customer-muted); font-size: .72rem; }
.customer-order-total { display: grid; justify-items: end; gap: 2px; }
.customer-order-total strong { color: var(--customer-ink); font-size: 1rem; }
.customer-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: #fff4df; color: #936e20; font-size: .72rem; font-weight: 750; white-space: nowrap; }
.customer-status i { font-size: .45rem; }
.customer-status--confirmed, .customer-status--delivered { background: #edf9f1; color: #28724b; }
.customer-status--cancelled, .customer-status--failed { background: #fff0f2; color: #a42337; }
.customer-order-details { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(190px, .75fr); gap: 26px; padding: 22px 20px; }
.customer-order-details h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--customer-soft-ink); font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.customer-order-details h3 i { color: var(--customer-accent); }
.customer-item-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.customer-item-list li { display: flex; justify-content: space-between; gap: 12px; color: var(--customer-ink); font-size: .82rem; }
.customer-item-list li span { display: grid; gap: 2px; }
.customer-item-list li small, .customer-payment, .customer-address { color: var(--customer-muted); font-size: .76rem; line-height: 1.55; }
.customer-item-list b { color: var(--customer-soft-ink); white-space: nowrap; }
.customer-payment { display: flex; align-items: center; gap: 7px; margin: 16px 0 0; }
.customer-payment i { color: var(--customer-accent); }
.customer-address { margin: 0; }
.customer-address strong { color: var(--customer-soft-ink); }
.customer-order footer { display: flex; justify-content: flex-end; padding: 0 20px 18px; }
.customer-invoice-link { display: inline-flex; align-items: center; gap: 8px; color: var(--customer-accent); font-size: .78rem; font-weight: 800; }
.customer-invoice-link:hover { color: var(--customer-ink); }
.customer-empty { padding: 54px 20px 24px; text-align: center; color: var(--customer-muted); }
.customer-empty > i { display: grid; width: 52px; height: 52px; place-items: center; margin: 0 auto 15px; border-radius: 50%; color: var(--customer-accent); background: var(--customer-lilac); }
.customer-empty h3 { margin: 0 0 7px; color: var(--customer-ink); font-size: 1.15rem; }
.customer-empty p { max-width: 400px; margin: 0 auto 20px; font-size: .85rem; line-height: 1.6; }

@media (max-width: 780px) {
  .customer-page { padding: 35px 16px 60px; }
  .customer-auth-shell { grid-template-columns: 1fr; border-radius: 16px; }
  .customer-auth-intro { min-height: auto; padding: 35px 28px; }
  .customer-auth-intro h1 { font-size: 2rem; }
  .customer-auth-benefits { margin-top: 28px; }
  .customer-auth-card { padding: 34px 26px; }
  .customer-dashboard-hero { align-items: flex-start; flex-direction: column; padding: 28px 23px; }
  .customer-dashboard-actions { justify-content: flex-start; }
  .customer-stats { grid-template-columns: 1fr; gap: 10px; margin-bottom: 26px; }
  .customer-history { padding: 20px 15px; border-radius: 16px; }
  .customer-order-header { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 16px; }
  .customer-order-total { grid-column: 2; grid-row: 2; }
  .customer-status { align-self: start; }
  .customer-order-details { grid-template-columns: 1fr; gap: 21px; padding: 19px 16px; }
  .customer-order footer { padding: 0 16px 16px; }
}

@media (max-width: 430px) {
  .customer-auth-card { padding: 30px 19px; }
  .customer-auth-intro { padding: 30px 21px; }
  .customer-dashboard-hero h1 { font-size: 1.9rem; }
  .customer-dashboard-actions { width: 100%; }
  .customer-dashboard-actions a { flex: 1; padding: 0 12px; }
  .customer-history-heading { align-items: flex-start; }
  .customer-order-header { grid-template-columns: 1fr auto; }
}

/* Customer dashboard: administrative dashboard-inspired layout. */
.customer-dashboard {
  width: min(100%, 1180px);
  padding-top: 34px;
}

.customer-dashboard-layout {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.customer-dashboard-main { min-width: 0; }

.customer-sidebar {
  position: sticky;
  top: 22px;
  display: flex;
  min-height: 620px;
  flex-direction: column;
  padding: 18px 14px;
  border: 1px solid var(--customer-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 25px -5px rgba(155, 115, 145, .12);
}

.customer-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 18px;
  border-bottom: 1px solid var(--customer-line);
  color: var(--customer-ink);
}

.customer-sidebar-brand > span:last-child,
.customer-sidebar-profile > span:last-child {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.customer-sidebar-brand strong { font-size: 1rem; letter-spacing: .15em; }
.customer-sidebar-brand small,
.customer-sidebar-profile small { overflow: hidden; color: var(--customer-muted); font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.customer-sidebar-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: linear-gradient(135deg, var(--customer-accent), #a993cc); color: #fff; }

.customer-sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 6px;
}

.customer-sidebar-avatar {
  display: grid;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 50%;
  background: var(--customer-lilac);
  color: var(--customer-accent);
  font-size: .82rem;
  font-weight: 800;
}

.customer-sidebar-profile strong { overflow: hidden; color: var(--customer-ink); font-size: .79rem; text-overflow: ellipsis; white-space: nowrap; }

.customer-sidebar-nav { display: grid; gap: 5px; padding: 4px 0; }
.customer-sidebar-nav a,
.customer-sidebar-signout {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 11px;
  border-radius: 9px;
  color: var(--customer-soft-ink);
  font-size: .79rem;
  font-weight: 750;
}

.customer-sidebar-nav a i,
.customer-sidebar-signout i { width: 17px; color: var(--customer-accent); text-align: center; }
.customer-sidebar-nav a span { display: grid; min-width: 19px; height: 19px; place-items: center; margin-left: auto; border-radius: 50%; background: var(--customer-lilac); color: var(--customer-accent); font-size: .65rem; }
.customer-sidebar-nav a:hover { background: #faf7fc; color: var(--customer-ink); }
.customer-sidebar-nav a.active { border-left: 3px solid var(--customer-accent); border-radius: 7px; background: var(--customer-lilac); color: var(--customer-ink); }

.customer-sidebar-help {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding: 15px 12px;
  border: 1px solid var(--customer-line);
  border-radius: 11px;
  background: #fcf9ff;
}

.customer-sidebar-help > i { color: var(--customer-accent); font-size: .9rem; }
.customer-sidebar-help strong { color: var(--customer-ink); font-size: .75rem; }
.customer-sidebar-help span { color: var(--customer-muted); font-size: .69rem; line-height: 1.45; }
.customer-sidebar-help a { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--customer-accent); font-size: .7rem; font-weight: 800; }
.customer-sidebar-signout { margin-top: 10px; color: #9b3c50; }
.customer-sidebar-signout i { color: #9b3c50; }
.customer-sidebar-signout:hover { background: #fff4f5; }

.customer-dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 14px 20px;
  border: 1px solid var(--customer-line);
  border-radius: 14px;
  background: rgba(255, 253, 251, .92);
  box-shadow: 0 8px 22px rgba(56, 45, 78, .05);
}

.customer-dashboard-brand,
.customer-dashboard-live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--customer-ink);
  font-size: .82rem;
  font-weight: 800;
}

.customer-dashboard-brand-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--customer-accent), #a993cc);
  color: #fff;
}

.customer-dashboard-live {
  padding: 6px 10px;
  border: 1px solid rgba(5, 150, 105, .2);
  border-radius: 999px;
  background: rgba(5, 150, 105, .08);
  color: #087151;
  font-size: .72rem;
}

.customer-dashboard-live i {
  font-size: .48rem;
}

.customer-dashboard-welcome {
  position: relative;
  overflow: hidden;
  border-left: 5px solid var(--customer-accent);
  border-radius: 16px;
  background: #fff;
}

.customer-dashboard-welcome::after {
  content: '\f2bd';
  position: absolute;
  top: -21px;
  right: 24px;
  color: rgba(121, 94, 166, .08);
  font-family: "Font Awesome 6 Free";
  font-size: 8rem;
  font-weight: 900;
  pointer-events: none;
}

.customer-dashboard-welcome > * {
  position: relative;
  z-index: 1;
}

.customer-dashboard-hero h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -.035em;
}

.customer-dashboard-hero p {
  max-width: 620px;
  font-size: .9rem;
}

.customer-shop-link,
.customer-signout {
  border-radius: 9px;
  font-size: .78rem;
}

.customer-shop-link {
  background: linear-gradient(135deg, var(--customer-accent), #9d7fc0);
  box-shadow: 0 5px 14px rgba(121, 94, 166, .2);
}

.customer-stats {
  gap: 20px;
  margin: 24px 0 30px;
}

.customer-stats article {
  position: relative;
  min-height: 151px;
  align-items: flex-start;
  padding: 24px;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 25px -5px rgba(155, 115, 145, .12);
}

.customer-stat-watermark {
  position: absolute;
  top: -16px;
  right: -10px;
  color: rgba(121, 94, 166, .1);
  font-size: 4.8rem;
  line-height: 1;
}

.customer-stats article:nth-child(2) .customer-stat-watermark { color: rgba(201, 147, 59, .12); }
.customer-stats article:nth-child(3) .customer-stat-watermark { color: rgba(147, 51, 234, .1); }
.customer-stats article:nth-child(2) .customer-stat-icon { background: rgba(201, 147, 59, .12); color: #b17b24; }
.customer-stats article:nth-child(3) .customer-stat-icon { background: rgba(147, 51, 234, .1); color: #7e36b8; }

.customer-stats article > div {
  position: relative;
  z-index: 1;
  gap: 3px;
}

.customer-stats span:not(.customer-stat-icon):not(.customer-stat-watermark) {
  color: #7b7182;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.customer-stats strong {
  font-size: 1.65rem;
  font-weight: 800;
}

.customer-stats small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 11px;
  color: #26744e;
  font-size: .72rem;
  font-weight: 700;
}

.customer-stats article:nth-child(2) small { color: #a06d1f; }
.customer-stats article:nth-child(3) small { color: #745386; }

.customer-history {
  padding: 28px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 25px -5px rgba(155, 115, 145, .12);
}

.customer-history-heading {
  padding-bottom: 16px;
}

.customer-history h2 {
  font-size: 1.4rem;
  font-weight: 800;
}

.customer-order {
  border-radius: 10px;
  box-shadow: none;
}

.customer-order-header {
  background: #fcf8fc;
}

@media (max-width: 780px) {
  .customer-dashboard { padding-top: 22px; }
  .customer-dashboard-layout { grid-template-columns: 1fr; gap: 14px; }
  .customer-sidebar { position: static; min-height: 0; padding: 12px; }
  .customer-sidebar-brand { display: none; }
  .customer-sidebar-profile { display: none; }
  .customer-sidebar-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0; }
  .customer-sidebar-nav a { min-height: 52px; flex-direction: column; justify-content: center; gap: 4px; padding: 6px 3px; text-align: center; font-size: .65rem; }
  .customer-sidebar-nav a i { width: auto; }
  .customer-sidebar-nav a span { display: none; }
  .customer-sidebar-nav a.active { border-bottom: 3px solid var(--customer-accent); border-left: 0; border-radius: 7px; }
  .customer-sidebar-help, .customer-sidebar-signout { display: none; }
  .customer-dashboard-topbar { margin-bottom: 14px; padding: 11px 13px; }
  .customer-dashboard-welcome { border-left-width: 4px; }
  .customer-dashboard-welcome::after { right: 6px; font-size: 6.2rem; }
  .customer-stats { gap: 12px; }
  .customer-stats article { min-height: 126px; padding: 18px; }
  .customer-history { padding: 19px 14px; }
}

@media (max-width: 430px) {
  .customer-dashboard-live { padding: 5px 8px; font-size: .66rem; }
  .customer-dashboard-hero { padding: 24px 19px; }
  .customer-stats article { padding: 16px; }
}
/* =========================================
   TRACKING BUTTON & FOOTER LAYOUT (FIXED)
   ========================================= */

/* Force override the black background, fix alignment, and fix clickability */
.customer-order footer.customer-order-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 16px 20px !important;
  background: #ffffff !important; /* Removes the black background */
  border-top: 1px dashed var(--customer-line) !important;
  position: relative !important;
  z-index: 10 !important; /* Forces the footer to the front so links are clickable */
}

.customer-order-tracking-action {
  position: relative;
  z-index: 15;
}

.customer-invoice-link {
  position: relative;
  z-index: 15;
  margin: 0 !important;
}

.btn-track-order {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--customer-accent-soft);
  border-radius: 999px;
  background: var(--customer-lilac);
  color: var(--customer-accent);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  
  /* ADDED THESE TO FORCE CLICKABILITY */
  cursor: pointer !important;
  position: relative !important;
  z-index: 99 !important;
  pointer-events: auto !important;
  
  transition: all 0.2s ease;
}

.btn-track-order:hover {
  background: var(--customer-accent);
  color: #fff;
  border-color: var(--customer-accent);
}

.text-processing {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: #f7f5fa;
  border-radius: 999px;
  color: var(--customer-soft-ink);
  font-size: .75rem;
  font-weight: 700;
  cursor: default; /* Indicates this is not clickable yet */
}

/* =========================================
   LIVE TRACKING MODAL & TIMELINE
   ========================================= */

.tracking-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(41, 38, 51, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tracking-modal.active {
  opacity: 1;
}

.tracking-modal-content {
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(30px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.tracking-modal.active .tracking-modal-content {
  transform: translateY(0);
}

.tracking-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--customer-line);
  background: #fcfaff;
}

.tracking-modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--customer-ink);
}

.tracking-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--customer-muted);
  cursor: pointer;
  transition: color 0.2s;
}
.tracking-close-btn:hover { color: var(--customer-ink); }

.tracking-modal-body {
  padding: 28px 24px;
  overflow-y: auto;
}

/* Loader & Error States */
.tracking-loader, .tracking-error, .tracking-empty {
  text-align: center;
  padding: 40px 20px;
  font-size: .9rem;
  line-height: 1.6;
}
.tracking-loader { color: var(--customer-accent); font-weight: 700; }
.tracking-loader i { font-size: 1.5rem; display: block; margin-bottom: 12px; }
.tracking-error { color: #a42337; font-weight: 600; }
.tracking-empty { color: var(--customer-muted); }
.tracking-empty i { font-size: 2rem; color: var(--customer-line); margin-bottom: 15px; }

/* Timeline UI */
.tracking-timeline {
  display: flex;
  flex-direction: column;
}

.tracking-event {
  display: grid;
  grid-template-columns: 85px 24px 1fr;
  gap: 16px;
  position: relative;
  padding-bottom: 28px;
}

.tracking-event:last-child {
  padding-bottom: 0;
}

.tracking-event-date {
  text-align: right;
  padding-top: 1px;
}
.tracking-event-date strong {
  display: block;
  font-size: .82rem;
  color: var(--customer-ink);
}
.tracking-event-date small {
  display: block;
  font-size: .72rem;
  color: var(--customer-muted);
  margin-top: 2px;
}

.tracking-event-dot {
  position: relative;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  margin-left: 5px;
  background: var(--customer-lilac);
  border: 3px solid var(--customer-accent);
  border-radius: 50%;
  z-index: 2;
}

/* Green dot for newest/first event */
.tracking-event:first-child .tracking-event-dot {
  border-color: #059669;
  background: #ecfdf5;
}

.tracking-event:not(:last-child) .tracking-event-dot::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 3px;
  width: 2px;
  height: calc(100% + 25px); /* covers padding gap */
  background: var(--customer-line);
  z-index: 1;
}

.tracking-event-details {
  padding-top: 0;
}
.tracking-event-details strong {
  display: block;
  color: var(--customer-ink);
  font-size: .95rem;
  margin-bottom: 4px;
}
.tracking-event-details p {
  margin: 0;
  font-size: .84rem;
  color: var(--customer-soft-ink);
  line-height: 1.4;
}
.tracking-event-details small {
  display: inline-block;
  margin-top: 8px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--customer-muted);
}
.tracking-event-details small i {
  color: var(--customer-accent-soft);
}

@media (max-width: 780px) {
  .customer-order footer.customer-order-footer { flex-direction: column-reverse !important; align-items: stretch !important; gap: 14px !important; padding: 16px !important; }
  .btn-track-order, .customer-invoice-link, .text-processing { justify-content: center; width: 100%; text-align: center; }
  .tracking-modal-content { border-radius: 16px 16px 0 0; transform: translateY(100%); margin-top: auto; max-height: 90vh; }
  .tracking-modal.active .tracking-modal-content { transform: translateY(0); }
  .tracking-event { grid-template-columns: 75px 20px 1fr; gap: 12px; }
  .tracking-event-date strong { font-size: .75rem; }
  .tracking-event-date small { font-size: .65rem; }
  .tracking-event-details strong { font-size: .9rem; }
  .tracking-event-details p { font-size: .8rem; }
}