:root {
    --blue:      #2563EB;
    --blue2:     #3B82F6;
    --blue3:     #60A5FA;
    --blue-dim:  rgba(37,99,235,0.07);
    --blue-mid:  rgba(37,99,235,0.14);
    --white:     #FFFFFF;
    --bg:        #F3F7FF;
    --bg2:       #FFFFFF;
    --bg3:       #EBF2FF;
    --text:      #0F172A;
    --muted:     #64748B;
    --border:    rgba(37,99,235,0.18);
    --border2:   rgba(0,0,0,0.07);
    --red:       #EF4444;
    --green:     #10B981;
    --radius:    8px;
    --rad-lg:    16px;
    --shadow:    0 4px 24px rgba(37,99,235,0.07);
    --shadow-hv: 0 20px 56px rgba(37,99,235,0.15);
  }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body { background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 14px; line-height: 1.6; overflow-x: hidden; }
    a { color: inherit; text-decoration: none; }
    button { cursor: pointer; border: none; background: none; font-family: inherit; }
    img { max-width: 100%; display: block; }
    input { font-family: inherit; }

    ::-webkit-scrollbar { width: 5px; }
    ::-webkit-scrollbar-track { background: var(--bg3); }
    ::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

    /* ── TRACK HERO ──────────────────────────────────────────── */
    .track-hero { background: #fff; padding: 64px 28px 0; position: relative; overflow: hidden; }
    .track-hero::before { content: ''; position: absolute; top: -200px; right: -180px; width: 540px; height: 540px; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.07) 0%, transparent 70%); pointer-events: none; }
    .th-center { max-width: 680px; margin: 0 auto; position: relative; z-index: 1; text-align: center; }
    .hero-tag { display: inline-flex; align-items: center; gap: 7px; background: var(--blue-dim); border: 1px solid var(--border); color: var(--blue); font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 16px; border-radius: 100px; margin-bottom: 20px; }
    .hero-tag::before { content: ''; width: 6px; height: 6px; background: var(--blue); border-radius: 50%; animation: pulse-dot 2s ease-in-out infinite; }
    @keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:.3} }
    .track-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: 46px; font-weight: 700; line-height: 1.1; margin-bottom: 14px; }
    .track-hero h1 em { color: var(--blue); font-style: italic; }
    .track-hero p { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 36px; }

    /* search card */
    .track-card { background: #fff; border: 1px solid var(--border2); border-radius: var(--rad-lg); box-shadow: var(--shadow-hv); padding: 32px; max-width: 560px; margin: 0 auto; text-align: left; position: relative; z-index: 1; transform: translateY(28px); }
    .tc-row { margin-bottom: 16px; }
    .tc-label { font-size: 11.5px; font-weight: 600; color: var(--text); margin-bottom: 8px; display: block; }
    .tc-input-wrap { position: relative; }
    .tc-input-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; }
    .tc-input { width: 100%; background: var(--bg); border: 1px solid var(--border2); border-radius: var(--radius); padding: 13px 14px 13px 40px; font-size: 13.5px; color: var(--text); outline: none; transition: border-color .2s; }
    .tc-input:focus { border-color: var(--blue); background: #fff; }
    .tc-input::placeholder { color: var(--muted); }
    .btn-track { width: 100%; background: var(--blue); color: #fff; padding: 14px; border-radius: 100px; font-weight: 700; font-size: 13.5px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all .2s; margin-top: 8px; }
    .btn-track:hover { background: var(--blue2); transform: translateY(-1px); box-shadow: 0 10px 26px rgba(37,99,235,.25); }
    .btn-track svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; }
    .tc-demo { text-align: center; margin-top: 14px; font-size: 12px; color: var(--muted); }
    .tc-demo button { color: var(--blue); font-weight: 600; text-decoration: underline; }

    /* spacer after card due to translateY */
    .track-spacer { height: 28px; background: var(--bg); }

    /* ── EMPTY HINT SECTION ──────────────────────────────────── */
    .hint-section { background: var(--bg); padding: 0 28px 70px; }
    .hint-inner { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
    .hint-card { background: #fff; border: 1px solid var(--border2); border-radius: var(--rad-lg); padding: 22px 20px; text-align: center; }
    .hint-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-dim); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
    .hint-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 1.8; }
    .hint-card h4 { font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
    .hint-card p { font-size: 12px; color: var(--muted); line-height: 1.6; }

    /* ── RESULT SECTION ──────────────────────────────────────── */
    .result-section { display: none; background: var(--bg); padding: 0 28px 80px; }
    .result-section.show { display: block; animation: fadein .4s ease; }
    @keyframes fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
    .result-inner { max-width: 980px; margin: 0 auto; }

    /* order header card */
    .order-head { background: #fff; border: 1px solid var(--border2); border-radius: var(--rad-lg); padding: 28px 32px; margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
    .oh-left h2 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 700; margin-bottom: 6px; }
    .oh-left span { font-size: 12.5px; color: var(--muted); }
    .oh-status { display: flex; align-items: center; gap: 10px; }
    .status-pill { display: flex; align-items: center; gap: 7px; background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3); color: #B45309; padding: 8px 16px; border-radius: 100px; font-size: 12.5px; font-weight: 700; }
    .status-pill .dot { width: 7px; height: 7px; background: var(--amber); border-radius: 50%; animation: pulse-dot 1.6s ease-in-out infinite; }

    /* eta banner */
    .eta-banner { background: linear-gradient(135deg, var(--blue) 0%, #1D4ED8 100%); border-radius: var(--rad-lg); padding: 22px 28px; margin-bottom: 24px; display: flex; align-items: center; gap: 18px; color: #fff; position: relative; overflow: hidden; }
    .eta-banner::before { content: '🚚'; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 56px; opacity: .18; }
    .eta-ico { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .eta-ico svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; }
    .eta-text strong { font-size: 17px; display: block; }
    .eta-text span { font-size: 12.5px; opacity: .85; }

    /* stepper */
    .stepper-card { background: #fff; border: 1px solid var(--border2); border-radius: var(--rad-lg); padding: 32px; margin-bottom: 24px; }
    .stepper { display: flex; align-items: flex-start; justify-content: space-between; position: relative; }
    .step { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
    .step-circle { width: 38px; height: 38px; border-radius: 50%; background: var(--bg3); border: 2px solid var(--border2); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; z-index: 1; transition: all .3s; }
    .step-circle svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2.5; }
    .step.done .step-circle { background: var(--blue); border-color: var(--blue); }
    .step.done .step-circle svg { stroke: #fff; }
    .step.current .step-circle { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-dim); }
    .step.current .step-circle svg { stroke: var(--blue); }
    .step-line { position: absolute; top: 19px; left: -50%; width: 100%; height: 2px; background: var(--border2); z-index: 0; }
    .step:first-child .step-line { display: none; }
    .step.done .step-line, .step.current .step-line { background: var(--blue); }
    .step-label { font-size: 11.5px; font-weight: 700; margin-bottom: 3px; }
    .step.done .step-label, .step.current .step-label { color: var(--text); }
    .step:not(.done):not(.current) .step-label { color: var(--muted); }
    .step-date { font-size: 10.5px; color: var(--muted); }

    /* two-column: timeline + sidebar */
    .result-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; }

    /* events timeline */
    .events-card { background: #fff; border: 1px solid var(--border2); border-radius: var(--rad-lg); padding: 28px 32px; }
    .events-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 700; margin-bottom: 22px; }
    .ev-timeline { position: relative; padding-left: 28px; }
    .ev-timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--border2); }
    .ev-item { position: relative; padding-bottom: 26px; }
    .ev-item:last-child { padding-bottom: 0; }
    .ev-dot { position: absolute; left: -28px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--border2); }
    .ev-item.latest .ev-dot { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-dim); }
    .ev-time { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
    .ev-title { font-size: 13.5px; font-weight: 700; margin-bottom: 3px; display: flex; align-items: center; gap: 8px; }
    .ev-now-badge { font-size: 9px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; background: var(--blue); color: #fff; padding: 2px 8px; border-radius: 100px; }
    .ev-loc { font-size: 12.5px; color: var(--muted); }

    /* sidebar cards */
    .side-card { background: #fff; border: 1px solid var(--border2); border-radius: var(--rad-lg); padding: 24px; margin-bottom: 20px; }
    .side-card:last-child { margin-bottom: 0; }
    .side-card h4 { font-size: 13px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
    .side-card h4 svg { width: 15px; height: 15px; fill: none; stroke: var(--blue); stroke-width: 2; }
    .addr-line { font-size: 12.5px; color: var(--muted); line-height: 1.7; }
    .addr-line strong { color: var(--text); display: block; margin-bottom: 2px; }

    .info-row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 8px 0; border-bottom: 1px solid var(--border2); }
    .info-row:last-child { border-bottom: none; }
    .info-row .lbl { color: var(--muted); }
    .info-row .val { font-weight: 600; }

    .order-items { display: flex; flex-direction: column; gap: 12px; }
    .oi-row { display: flex; gap: 12px; align-items: center; }
    .oi-img { width: 44px; height: 44px; border-radius: 8px; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
    .oi-info { flex: 1; min-width: 0; }
    .oi-name { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .oi-qty { font-size: 11px; color: var(--muted); }
    .oi-price { font-size: 12.5px; font-weight: 700; color: var(--blue); flex-shrink: 0; }
    .oi-total { display: flex; justify-content: space-between; padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--border2); font-size: 13.5px; font-weight: 700; }
    .oi-total span:last-child { color: var(--blue); font-family: 'Cormorant Garamond', serif; font-size: 18px; }

    /* support cta */
    .support-cta { background: #fff; border: 1px dashed var(--border); border-radius: var(--rad-lg); padding: 22px 26px; margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
    .sc-text strong { display: block; font-size: 14px; margin-bottom: 3px; }
    .sc-text span { font-size: 12.5px; color: var(--muted); }
    .btn-support { background: var(--blue-dim); border: 1px solid var(--border); color: var(--blue); padding: 11px 22px; border-radius: 100px; font-weight: 600; font-size: 12.5px; transition: all .2s; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
    .btn-support:hover { background: var(--blue); color: #fff; }
    .btn-support svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

    /* ── FAQ ─────────────────────────────────────────────────── */
    .faq-section { background: #fff; padding: 70px 28px; border-top: 1px solid var(--border2); }
    .faq-inner { max-width: 760px; margin: 0 auto; }
    .sec-head { text-align: center; margin-bottom: 40px; }
    .sec-tag { display: inline-flex; align-items: center; gap: 7px; background: var(--blue-dim); border: 1px solid var(--border); color: var(--blue); font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; padding: 5px 14px; border-radius: 100px; margin-bottom: 16px; }
    .sec-head h2 { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 700; }

    .faq-item { border: 1px solid var(--border2); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
    .faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; font-size: 13.5px; font-weight: 600; background: #fff; transition: background .2s; }
    .faq-q:hover { background: var(--bg); }
    .faq-q svg { width: 16px; height: 16px; fill: none; stroke: var(--blue); stroke-width: 2.5; transition: transform .3s; flex-shrink: 0; }
    .faq-item.open .faq-q svg { transform: rotate(45deg); }
    .faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
    .faq-a-inner { padding: 0 20px 18px; font-size: 13px; color: var(--muted); line-height: 1.75; }

    /* ── RESPONSIVE ──────────────────────────────────────────── */
    @media (max-width: 900px) {
      .result-grid { grid-template-columns: 1fr; }
      .hint-inner { grid-template-columns: 1fr; }
      .stepper { flex-wrap: wrap; gap: 18px 0; }
      .step { flex: 0 0 33.33%; }
      .step-line { display: none; }
    }
    @media (max-width: 768px) {
      .nav-main { display: none; }
      .track-hero { padding: 44px 20px 0; }
      .track-hero h1 { font-size: 32px; }
      .track-card { padding: 24px; transform: translateY(22px); }
      .track-spacer { height: 22px; }
      .hint-section { padding: 0 20px 56px; }
      .result-section { padding: 0 20px 60px; }
      .order-head { flex-direction: column; align-items: flex-start; }
      .eta-banner { flex-direction: column; align-items: flex-start; text-align: left; }
      .eta-banner::before { display: none; }
      .step { flex: 0 0 50%; }
      .faq-section { padding: 50px 20px; }
      .support-cta { flex-direction: column; align-items: flex-start; }
      .btn-support { width: 100%; justify-content: center; }
      .ft-inner { flex-direction: column; text-align: center; }
      .ft-links { justify-content: center; }
      .cart-sb { width: 100%; }
    }
