:root {
  --primary-color: #ED5D0E;
  --secondary-color: #ED5D0E;
  --accent-color: #a7a7a7;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-light: #f5f5f5;
}

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background: #f7f8fc;
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ── Top Banner ── */
.top-banner {
  background: var(--secondary-color);
  color: var(--white);
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  overflow: hidden;
}

.top-banner__scroll {
  display: inline-flex;
  gap: 60px;
  animation: scroll-banner 18s linear infinite;
  white-space: nowrap;
}

@keyframes scroll-banner {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ── Header ── */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 14px 20px;
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 40px;
}

.menu-toggle {
  position: absolute;
  left: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-color);
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.menu-toggle:hover {
  opacity: 0.7;
}

.site-header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header__logo img {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ── Side Menu / Drawer ── */
.side-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(3px);
}

.side-menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.side-menu {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 280px;
  background: #fff;
  z-index: 3101;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 5px 0 25px rgba(0, 0, 0, 0.1);
}

.side-menu.active {
  transform: translateX(0);
}

.side-menu__header {
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.side-menu__logo {
  display: flex;
  align-items: center;
}

.side-menu__logo img {
  height: 50px;
  width: auto;
  display: block;
  object-fit: contain;
}

.side-menu__close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #888;
  line-height: 1;
}

.side-menu__body {
  padding: 24px 20px;
  overflow-y: auto;
  flex: 1;
}

.side-menu__section {
  margin-bottom: 30px;
}

.side-menu__section-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.side-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.side-menu__link {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  transition: color 0.2s;
}

.side-menu__link:hover {
  color: var(--primary-color);
}

.side-menu__divider {
  height: 1px;
  background: #f0f0f0;
  margin-bottom: 30px;
}

.side-menu__support p {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.side-menu__support a {
  color: var(--primary-color);
  font-weight: 700;
}

/* ══════════════════════════════════
   TRACKING MAIN
   ══════════════════════════════════ */
.tracking-main {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  width: 100%;
}

/* ── Hero ── */
.tracking-hero {
  text-align: center;
  margin-bottom: 32px;
}

.tracking-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ED5D0E 0%, #ff8a3d 100%);
  color: white;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(237, 93, 14, 0.3);
  animation: float 3s ease-in-out infinite;
}

.tracking-hero__icon svg {
  width: 36px;
  height: 36px;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.tracking-hero__title {
  font-size: 32px;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.tracking-hero__subtitle {
  font-size: 16px;
  color: #666;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ══════════════════════════════════
   FORM CARD
   ══════════════════════════════════ */
.tracking-form-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  margin-bottom: 32px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}

.tracking-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ED5D0E, #ff8a3d, #ffb366);
}

.tracking-form__title {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.tracking-form__desc {
  font-size: 14px;
  color: #888;
  margin-bottom: 24px;
  line-height: 1.5;
}

.tracking-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tracking-form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tracking-form__label {
  font-size: 12px;
  font-weight: 700;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tracking-form__label svg {
  color: var(--primary-color);
}

.tracking-form__input-wrapper {
  position: relative;
}

.tracking-form__input {
  border: 2px solid #eaeaea;
  border-radius: 12px;
  padding: 15px 16px;
  font-size: 15px;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  color: #333;
  background: #fafbfc;
  transition: all 0.3s;
  outline: none;
  width: 100%;
}

.tracking-form__input:focus {
  border-color: var(--primary-color);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(237, 93, 14, 0.08);
}

.tracking-form__input:hover:not(:focus) {
  border-color: #ccc;
  background: #f8f8f8;
}

.tracking-form__input::placeholder {
  color: #bbb;
  font-weight: 400;
}

.tracking-form__input--date {
  color: #333;
  cursor: pointer;
}

.tracking-form__input--date::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.tracking-form__input--date::-webkit-calendar-picker-indicator:hover {
  opacity: 0.8;
}

.tracking-form__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #eee, transparent);
  margin: 4px 0;
}

.tracking-form__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  background: linear-gradient(135deg, #ED5D0E 0%, #ff8a3d 100%);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.tracking-form__btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s;
}

.tracking-form__btn:hover {
  background: linear-gradient(135deg, #d44d00 0%, #ED5D0E 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(237, 93, 14, 0.35);
}

.tracking-form__btn:hover::after {
  opacity: 1;
}

.tracking-form__btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(237, 93, 14, 0.2);
}

.tracking-form__btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.tracking-form__footer-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #bbb;
  text-align: center;
  margin-top: 4px;
}

.tracking-form__footer-hint svg {
  color: #ccc;
  flex-shrink: 0;
}

/* ── Form Error ── */
.tracking-form__input.input-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
  background: #fff5f5;
}

/* ══════════════════════════════════
   WELCOME BACK BAR
   ══════════════════════════════════ */
.welcome-back {
  background: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  animation: slideUp 0.5s ease-out;
}

.welcome-back__info {
  flex: 1;
}

.welcome-back__greeting {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.welcome-back__name {
  font-size: 16px;
  font-weight: 800;
  color: #1a1a1a;
}

.welcome-back__code {
  font-size: 12px;
  font-weight: 600;
  color: #999;
  background: #f5f5f5;
  padding: 2px 10px;
  border-radius: 8px;
  font-family: 'Roboto Mono', monospace;
}

.welcome-back__hint {
  font-size: 12px;
  color: #999;
}

.welcome-back__reset {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #eee;
  background: #fafafa;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #777;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: 'Roboto', sans-serif;
}

.welcome-back__reset:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(237, 93, 14, 0.04);
}

/* ══════════════════════════════════
   GREETING
   ══════════════════════════════════ */
.tracking-greeting {
  margin-bottom: 20px;
  animation: slideUp 0.5s ease-out;
}

.tracking-greeting h2 {
  font-size: 20px;
  font-weight: 800;
  color: #1a1a1a;
}

.tracking-greeting h2 span {
  color: var(--primary-color);
}

/* ══════════════════════════════════
   RESULTS SECTION
   ══════════════════════════════════ */
.tracking-results {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Order Summary Card ── */
.order-summary {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}

.order-summary__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.order-summary__status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.order-summary__status-badge.delivered {
  background: rgba(59, 130, 246, 0.1);
  color: #2563eb;
  border-color: rgba(59, 130, 246, 0.2);
}

.order-summary__status-badge.pending {
  background: rgba(234, 179, 8, 0.1);
  color: #ca8a04;
  border-color: rgba(234, 179, 8, 0.2);
}

.order-summary__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* ── Order IDs ── */
.order-summary__ids {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.order-summary__number {
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.order-summary__code {
  font-size: 12px;
  font-weight: 500;
  color: #999;
  font-family: 'Roboto Mono', monospace;
  letter-spacing: 0.5px;
}

.order-summary__details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid #f5f5f5;
}

.order-summary__detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-summary__detail-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #aaa;
  letter-spacing: 0.5px;
}

.order-summary__detail-value {
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

/* ── Progress Bar ── */
.tracking-progress {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}

.tracking-progress__bar {
  height: 8px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.tracking-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, #ED5D0E, #ff8a3d, #22c55e);
  border-radius: 10px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.tracking-progress__fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: #22c55e;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.4);
}

.tracking-progress__labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ── Timeline ── */
.tracking-timeline {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}

.timeline-item {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 28px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* Vertical line */
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: 0;
  width: 2px;
  background: #22c55e;
}

.timeline-item.active:not(:last-child)::before {
  background: linear-gradient(to bottom, #ED5D0E, transparent);
}

/* Icon */
.timeline-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}

.timeline-item.completed .timeline-item__icon {
  background: #22c55e;
  color: white;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.timeline-item.active .timeline-item__icon {
  background: linear-gradient(135deg, #ED5D0E, #ff8a3d);
  color: white;
  box-shadow: 0 4px 12px rgba(237, 93, 14, 0.3);
  animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {

  0%,
  100% {
    box-shadow: 0 4px 12px rgba(237, 93, 14, 0.3);
  }

  50% {
    box-shadow: 0 4px 20px rgba(237, 93, 14, 0.5);
  }
}

/* Content */
.timeline-item__content {
  flex: 1;
  padding-top: 4px;
}

.timeline-item__title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.timeline-item__date {
  font-size: 12px;
  color: #999;
  font-weight: 500;
}

.timeline-item__location {
  font-size: 12px;
  color: #aaa;
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ══════════════════════════════════
   FOOTER
   ══════════════════════════════════ */
.site-footer__payment {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.site-footer__link:hover {
  color: var(--primary-color) !important;
}

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */
@media (max-width: 600px) {
  .tracking-hero__title {
    font-size: 24px;
  }

  .tracking-hero__subtitle {
    font-size: 14px;
  }

  .tracking-form-card {
    padding: 20px 16px;
  }

  .order-summary__details {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tracking-hero__icon {
    width: 64px;
    height: 64px;
  }

  .tracking-hero__icon svg {
    width: 28px;
    height: 28px;
  }

  .tracking-progress__labels {
    font-size: 9px;
  }

  .welcome-back {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .welcome-back__reset {
    justify-content: center;
  }
}

/* ── Shake animation ── */
@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-8px);
  }

  40% {
    transform: translateX(8px);
  }

  60% {
    transform: translateX(-5px);
  }

  80% {
    transform: translateX(5px);
  }
}

.shake {
  animation: shake 0.4s ease-in-out;
}

/* ── Loading spinner ── */
.loading-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

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

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ══════════════════════════════════
   PAYMENT CTA (Movimentação Interrompida)
   ══════════════════════════════════ */
.payment-cta {
  margin-top: 14px;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fbbf24;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: slideUp 0.5s ease-out;
}

.payment-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  flex-shrink: 0;
}

.payment-cta__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payment-cta__text strong {
  font-size: 14px;
  font-weight: 800;
  color: #92400e;
}

.payment-cta__text p {
  font-size: 13px;
  color: #a16207;
  line-height: 1.5;
  margin: 0;
}

.payment-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #ED5D0E 0%, #ff8a3d 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  text-align: center;
  animation: pulse-payment 2s ease-in-out infinite;
}

.payment-cta__btn:hover {
  background: linear-gradient(135deg, #d44d00 0%, #ED5D0E 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(237, 93, 14, 0.35);
}

.payment-cta__btn:active {
  transform: translateY(0);
}

@keyframes pulse-payment {

  0%,
  100% {
    box-shadow: 0 2px 8px rgba(237, 93, 14, 0.2);
  }

  50% {
    box-shadow: 0 4px 16px rgba(237, 93, 14, 0.4);
  }
}