.profile-icon-link { position: relative; }
.header-avatar { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.active-order-region { display: grid; gap: 10px; margin: 18px 0 20px; scroll-margin-top: 145px; }
.account-page > .active-order-region { margin-top: 18px; }
.active-order-card {
  --order-accent: var(--green); --order-wash: var(--mint); --order-progress: 0%;
  display: grid; grid-template-columns: minmax(105px, 15%) minmax(0,1fr);
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  background: #fff; box-shadow: 0 11px 28px #143d2710;
}
.active-order-card[data-step="1"], .active-order-card[data-step="2"] { --order-accent: var(--orange); --order-wash: var(--peach); }
.active-order-card[data-step="1"] { --order-progress: 25%; }
.active-order-card[data-step="2"] { --order-progress: 50%; }
.active-order-card[data-step="3"] { --order-progress: 75%; }
.active-order-card[data-step="4"] { --order-progress: 100%; }
.active-order-card[data-step="-2"] { --order-accent: #a33127; --order-wash: #ffefed; }
.active-order-photo { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 72%; }
.active-order-main { min-width: 0; padding: clamp(14px,2.8vw,26px); }
.active-order-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; }
.active-order-number { margin: 0 0 2px; color: var(--muted); font-size: 13px; font-weight: 800; }
.active-order-status { margin: 0; color: var(--ink); font-size: clamp(23px,3vw,38px); font-weight: 900; line-height: 1.02; letter-spacing: -.052em; }
.active-order-eta { margin: 0; padding: 8px 12px; border-radius: 999px; background: var(--order-wash); color: var(--order-accent); font-size: 14px; font-weight: 900; }
.active-order-progress { display: grid; position: relative; margin-top: 19px; isolation: isolate; }
.active-order-track, .active-order-fill { position: absolute; height: 3px; border-radius: 5px; }
.active-order-track { inset: 17px 10% auto; background: var(--line); z-index: -1; overflow: hidden; }
.active-order-fill { inset: 0 auto auto 0; width: var(--order-progress); background: var(--order-accent); transition: width .85s cubic-bezier(.2,.75,.25,1),background .35s; overflow: hidden; }
.active-order-fill::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; background: linear-gradient(90deg,transparent,#fff8,transparent); animation: active-order-flow 2.8s linear infinite; }
.active-order-card[data-step="4"] .active-order-fill::after { content: none; }
.active-order-steps { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); list-style: none; margin: 0; padding: 0; text-align: center; }
.active-order-steps > li { display: grid; justify-items: center; align-content: start; gap: 7px; padding-inline: 2px; }
.active-order-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; border: 2px solid white; background: #edf1ed; color: #56655d; transition: background .35s,color .35s; }
.active-order-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.active-order-label { color: var(--muted); font-size: 13px; line-height: 1.18; font-weight: 750; }
.active-order-steps .is-done .active-order-icon { background: var(--order-wash); color: var(--order-accent); }
.active-order-steps [aria-current] .active-order-icon { background: var(--order-accent); color: white; }
.active-order-steps [aria-current] .active-order-label { color: var(--order-accent); font-weight: 900; }
.active-order-card:is([data-step="0"],[data-step="1"],[data-step="2"],[data-step="3"]) [aria-current] svg { animation: active-order-bounce 2s ease-in-out infinite; }
.active-order-card[data-step="3"] [aria-current] svg { animation-name: active-order-drive; }
.active-order-retry { display: inline-block; margin-top: 10px; }
@keyframes active-order-flow { from { transform: translateX(-110%); } to { transform: translateX(300%); } }
@keyframes active-order-bounce { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-2px) rotate(-8deg); } }
@keyframes active-order-drive { 0%,100% { transform: translateX(-2px); } 50% { transform: translateX(2px); } }
@media (max-width: 630px) {
  .active-order-region { margin: 12px 0 14px; }
  .active-order-card { grid-template-columns: minmax(0,1fr); border-radius: 18px; }
  .active-order-photo { display:none; }
  .active-order-status { font-size: clamp(21px,6vw,28px); }
  .active-order-label { font-size: 11px; }
  .active-order-progress { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .active-order-fill,.active-order-icon { transition: none; }
  .active-order-fill::after,.active-order-card:is([data-step="0"],[data-step="1"],[data-step="2"],[data-step="3"]) [aria-current] svg { animation: none; }
}
