/* Track Order page — mobile (max-width: 768px) */

@media (max-width: 768px) {
  body.rj-track-page {
    overflow-x: clip;
  }

  body.rj-track-page .container {
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .trk-hero {
    padding: 16px 0 32px;
    overflow-x: clip;
  }

  .trk-hero__grid {
    gap: 24px;
  }

  .trk-breadcrumb {
    font-size: 0.76rem;
  }

  .trk-hero__badge {
    margin-bottom: 16px;
    font-size: 0.74rem;
  }

  .trk-hero__title-line {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }

  .trk-hero-lead {
    font-size: 0.92rem;
    max-width: 100%;
    margin-bottom: 18px;
  }

  .trk-hero__trust li {
    font-size: 0.76rem;
  }

  .trk-hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .trk-hero-actions .rj-btn {
    width: 100%;
    justify-content: center;
  }

  .trk-hero-panel {
    padding: 22px 20px 18px;
  }

  .trk-hero-steps {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .trk-hero-steps::-webkit-scrollbar { display: none; }

  .trk-step {
    flex: 0 0 min(68vw, 220px);
    scroll-snap-align: start;
  }

  .trk-pillars {
    padding-bottom: 20px;
  }

  .trk-pillar-bar {
    grid-template-columns: 1fr;
  }

  .trk-pillar {
    padding: 16px 18px;
    border-right: none;
    border-bottom: 1px solid var(--rj-line);
  }

  .trk-pillar:last-child {
    border-bottom: none;
  }

  .trk-main {
    padding-bottom: 48px;
  }

  .trk-layout {
    gap: 20px;
  }

  .trk-sidebar {
    order: 1;
    position: static;
    gap: 12px;
  }

  .trk-result {
    order: 2;
    gap: 16px;
  }

  .trk-side-card {
    padding: 20px 18px;
  }

  .trk-input {
    padding: 14px 16px;
    font-size: 16px;
  }

  .trk-submit {
    padding: 16px 20px;
    font-size: 1rem;
  }

  .trk-order-head {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .trk-order-head h2 {
    font-size: 1.28rem;
    word-break: break-all;
  }

  .trk-status-badge {
    align-self: flex-start;
  }

  .trk-timeline {
    scroll-snap-type: x mandatory;
    padding: 16px 14px;
  }

  .trk-timeline-step {
    flex: 0 0 auto;
    min-width: 88px;
    scroll-snap-align: center;
  }

  .trk-order-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .trk-order-actions {
    flex-direction: column;
  }

  .trk-order-actions .rj-btn {
    width: 100%;
    justify-content: center;
  }

  .trk-empty {
    padding: 36px 20px;
  }

  .trk-empty-steps {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    max-width: none;
    margin: 0 -4px;
    padding: 4px 4px 8px;
    scrollbar-width: none;
  }

  .trk-empty-steps::-webkit-scrollbar { display: none; }

  .trk-empty-step {
    flex: 0 0 min(72vw, 240px);
    scroll-snap-align: start;
    text-align: left;
  }

  .trk-empty-step i {
    margin: 0 0 10px;
  }

  .trk-cta {
    padding-bottom: 56px;
  }

  .trk-cta-grid {
    padding: 24px 20px;
    gap: 24px;
  }

  .trk-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .trk-cta-actions .rj-btn {
    width: 100%;
    justify-content: center;
  }

  body.rj-track-page .topbar-left span:not(:first-child) {
    display: none;
  }
}

@media (max-width: 480px) {
  .trk-hero__title-line {
    font-size: clamp(1.75rem, 10vw, 2.15rem);
  }

  .trk-hero__trust {
    flex-direction: column;
    gap: 8px;
  }

  .trk-step {
    flex: 0 0 72vw;
  }

  .trk-order-grid {
    grid-template-columns: 1fr;
  }

  .trk-empty-step {
    flex: 0 0 78vw;
  }
}
