:root {
  color-scheme: light;
  --brand-primary: #ff5a3c;
  --brand-secondary: #031736;
  --brand-accent: #ffc107;
  --surface: #ffffff;
  --text-color: #1f1f1f;
  --muted: #5f6b7b;
  --border-color: #e1e7ef;
  --shadow-md: 0 12px 30px rgba(3, 23, 54, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --surface: #0f1b2c;
    --text-color: #e7ecf4;
    --muted: #9fb0c9;
    --border-color: rgba(255, 255, 255, 0.12);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.55);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: var(--surface);
  color: var(--text-color);
  text-rendering: optimizeLegibility;
}

body.scroll-locked {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

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

.navbar-area {
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
  background-color: rgba(255, 255, 255, 0.97);
}

.navbar-area.is-sticky {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
}

.navbar-area .others-option .sidebar-menu {
  border: none;
  background: transparent;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  color: var(--brand-secondary);
  transition: transform 0.2s ease;
}

.navbar-area .others-option .sidebar-menu:focus-visible {
  outline: 3px solid var(--brand-accent);
  outline-offset: 3px;
}

.navbar-area .others-option .sidebar-menu:active {
  transform: scale(0.95);
}

.go-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background-color: var(--brand-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(25px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  right: 90px;
  bottom: 110px;
}

.go-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-close {
  position: absolute;
  top: 32px;
  right: 28px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  display: none;
}

.preloader {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  background: var(--surface);
  z-index: 9999;
  transition: opacity 0.45s ease;
}

.preloader--hidden {
  opacity: 0;
  pointer-events: none;
}

.tracking-number-area {
  background: linear-gradient(115deg, #031736, #052b66 55%, #063a83);
  color: #e9efff;
}

.tracking-number-area .tracking-body {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 32px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.tracking-number-area .input-tracking {
  background-color: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  border: none;
  font-size: 1.05rem;
  padding: 14px 16px;
  width: 100%;
  transition: box-shadow 0.2s ease;
}

.tracking-number-area .input-tracking:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.55);
}

.tracking-number-area .default-btn {
  border-radius: 999px;
  padding: 14px 36px;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, var(--brand-primary), #ff8645);
  border: none;
}

.tracking-number-area .text-danger {
  font-weight: 600;
}

@media (max-width: 991px) {
  .navbar-area {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    padding: 96px 32px 32px;
    background: rgba(3, 23, 54, 0.94);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .main-nav nav,
  .main-nav .navbar-nav {
    flex-direction: column;
    gap: 12px;
  }

  .main-nav a {
    color: #fff !important;
    font-size: 1.25rem;
  }

  body.nav-open .main-nav {
    transform: translateX(0);
  }

  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 900;
  }

  .nav-close {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

