:root {
    --ink: #172234;
    --muted: #657185;
    --paper: #f2f6f7;
    --white: #ffffff;
    --line: #d6e0e3;
    --blue: #1e64f0;
    --blue-dark: #1549ae;
    --teal: #168c78;
    --amber: #e7a72f;
    --danger: #b44848;
    --shadow: 0 26px 70px rgba(29, 54, 77, 0.13);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", Arial, sans-serif;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}
button, input, select { font: inherit; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
.skip-link { background: var(--ink); color: #fff; left: 1rem; padding: .7rem 1rem; position: fixed; top: -5rem; z-index: 20; }
.skip-link:focus { top: 1rem; }
.route-grid {
    background-image: linear-gradient(rgba(44, 78, 99, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(44, 78, 99, .06) 1px, transparent 1px);
    background-size: 42px 42px;
    inset: 0;
    mask-image: linear-gradient(to bottom, #000 0, transparent 72%);
    pointer-events: none;
    position: fixed;
    z-index: -2;
}
.route-grid::after {
    background: var(--blue);
    content: "";
    height: 360px;
    opacity: .07;
    position: absolute;
    right: -150px;
    top: -80px;
    transform: rotate(24deg);
    width: 420px;
}
.site-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1240px;
    padding: 2rem 2.25rem;
}
.brand { align-items: center; color: var(--ink); display: inline-flex; font-size: 1.08rem; font-weight: 700; gap: .7rem; letter-spacing: -.035em; text-decoration: none; }
.brand > span:last-child span { color: var(--blue); }
.brand-mark { align-items: center; background: var(--ink); border-radius: 10px; display: inline-flex; height: 38px; justify-content: center; transform: rotate(-3deg); width: 38px; }
.brand-mark svg { fill: none; height: 25px; stroke: white; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 25px; }
.language-control { align-items: center; color: var(--muted); display: flex; font: 700 .69rem/1 "Space Mono", monospace; gap: .65rem; letter-spacing: .05em; text-transform: uppercase; }
.language-control select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23172234' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .75rem center; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); cursor: pointer; min-width: 122px; padding: .58rem 2.1rem .58rem .8rem; }
main { margin: 0 auto; max-width: 1240px; padding: 4.8rem 2.25rem 3rem; }
.hero { align-items: center; display: grid; gap: clamp(3rem, 8vw, 8rem); grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); }
.hero-copy { max-width: 650px; position: relative; }
.dispatch-stamp { color: var(--blue); opacity: .9; position: absolute; right: 1rem; top: -5.5rem; transform: rotate(3deg); }
.dispatch-stamp span { border: 2px solid currentColor; display: inline-block; font: 700 .62rem/1 "Space Mono", monospace; letter-spacing: .18em; padding: .38rem .5rem; }
.dispatch-stamp svg { display: block; fill: none; height: 28px; margin-top: .5rem; stroke: currentColor; stroke-width: 1.6; width: 96px; }
.eyebrow { color: var(--blue); font: 700 .72rem/1 "Space Mono", monospace; letter-spacing: .15em; margin: 0 0 1.25rem; }
h1 { font-size: clamp(3.2rem, 7.2vw, 6.7rem); font-weight: 600; letter-spacing: -.072em; line-height: .9; margin: 0; max-width: 720px; }
.hero-lede { color: var(--muted); font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.62; margin: 2rem 0 0; max-width: 590px; }
.assurance-row { border-top: 1px solid var(--line); display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); margin-top: 2.6rem; padding-top: 1.15rem; }
.assurance-row span { align-items: center; display: flex; gap: .55rem; }
.assurance-row i { color: var(--blue); font: 400 .65rem/1 "Space Mono", monospace; font-style: normal; }
.assurance-row b { font-size: .76rem; font-weight: 600; }
.lookup-card { background: var(--white); box-shadow: var(--shadow); min-height: 382px; padding: 3.3rem 3rem; position: relative; }
.label-edge { background: radial-gradient(circle at 0 50%, transparent 8px, var(--white) 8.5px) 0 0 / 100% 24px repeat-y; bottom: 0; left: -9px; position: absolute; top: 0; width: 10px; }
.lookup-card::after { border: 1px dashed #b9c8cd; bottom: 16px; content: ""; left: 16px; pointer-events: none; position: absolute; right: 16px; top: 16px; }
.lookup-card form { position: relative; z-index: 1; }
.lookup-card label { display: block; font-size: .84rem; font-weight: 700; margin-bottom: .65rem; }
.input-shell { align-items: center; border: 1.5px solid #bdcbd0; display: flex; transition: border .2s, box-shadow .2s; }
.input-shell:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 100, 240, .12); }
.input-shell svg { fill: none; height: 21px; margin-left: 1rem; stroke: var(--muted); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; width: 21px; }
.input-shell input { border: 0; color: var(--ink); min-width: 0; outline: 0; padding: 1rem .95rem; width: 100%; }
.input-shell input::placeholder { color: #9ba8b3; }
.field-hint { color: var(--muted); font-size: .73rem; line-height: 1.4; margin: .55rem 0 1.5rem; }
#lookup-button { align-items: center; background: var(--blue); border: 0; color: #fff; cursor: pointer; display: flex; font-weight: 700; justify-content: space-between; padding: 1rem 1.1rem 1rem 1.25rem; transition: background .2s, transform .2s; width: 100%; }
#lookup-button:hover { background: var(--blue-dark); transform: translateY(-2px); }
#lookup-button:disabled { cursor: wait; opacity: .7; transform: none; }
#lookup-button svg { fill: none; height: 22px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 22px; }
.privacy-note { align-items: flex-start; color: var(--muted); display: flex; font-size: .7rem; gap: .55rem; line-height: 1.45; margin: 1.3rem 0 0; }
.privacy-note svg { fill: none; flex: 0 0 17px; height: 17px; stroke: var(--teal); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 17px; }
.feedback, .orders { margin-top: 3.5rem; }
.feedback:empty, .orders:empty { display: none; }
.loading-panel, .empty-panel, .error-panel { align-items: center; background: #e8eff2; display: flex; gap: 1.1rem; margin: 0 auto; max-width: 740px; padding: 1.25rem 1.4rem; }
.loading-panel strong, .empty-panel strong, .error-panel strong { display: block; font-size: .9rem; }
.loading-panel p, .empty-panel p, .error-panel p { color: var(--muted); font-size: .8rem; margin: .2rem 0 0; }
.scanner { border: 2px solid #b5c7cd; border-top-color: var(--blue); border-radius: 50%; height: 28px; width: 28px; animation: spin .8s linear infinite; }
.error-panel { background: #f9eeee; border-left: 4px solid var(--danger); }
.empty-panel { background: #eef2f4; border-left: 4px solid #7d8993; }
.orders-header { align-items: end; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; margin-bottom: 1.3rem; padding-bottom: .9rem; }
.orders-header p { color: var(--blue); font: 700 .69rem/1 "Space Mono", monospace; letter-spacing: .12em; margin: 0 0 .45rem; }
.orders-header h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: -.045em; margin: 0; }
.orders-count { color: var(--muted); font: 700 .7rem/1 "Space Mono", monospace; }
.order-card { background: var(--white); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr); margin-bottom: 1.15rem; overflow: hidden; }
.order-summary { background: var(--ink); color: #fff; padding: 2rem; position: relative; }
.order-summary::after { border-right: 1px dashed rgba(255,255,255,.3); bottom: 0; content: ""; position: absolute; right: 12px; top: 0; }
.order-type { align-items: center; color: #b9cae9; display: flex; font: 700 .63rem/1 "Space Mono", monospace; gap: .5rem; letter-spacing: .1em; text-transform: uppercase; }
.order-type::before { background: var(--amber); border-radius: 50%; content: ""; height: 7px; width: 7px; }
.order-summary h3 { font-size: 1.45rem; letter-spacing: -.035em; margin: 1.2rem 0 .35rem; }
.order-status { color: #dbe5f4; font-size: .88rem; line-height: 1.45; margin: 0 0 1.8rem; }
.order-meta { border-top: 1px solid rgba(255,255,255,.16); display: grid; gap: .75rem; padding-top: 1rem; }
.order-meta span { display: flex; justify-content: space-between; gap: 1rem; }
.order-meta small { color: #92a2ba; font: 400 .62rem/1 "Space Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.order-meta b { font-size: .76rem; font-weight: 600; text-align: right; }
.order-progress { padding: 2rem 2.3rem 1.8rem; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; gap: .9rem; grid-template-columns: 24px minmax(0, 1fr); min-height: 58px; position: relative; }
.timeline li:not(:last-child)::after { background: var(--line); content: ""; height: calc(100% - 18px); left: 7px; position: absolute; top: 18px; width: 2px; }
.timeline li.complete:not(:last-child)::after { background: var(--teal); }
.timeline-dot { background: var(--white); border: 2px solid #b8c5ca; border-radius: 50%; height: 16px; margin-top: 1px; position: relative; width: 16px; z-index: 1; }
.timeline li.complete .timeline-dot { background: var(--teal); border-color: var(--teal); box-shadow: inset 0 0 0 3px var(--white); }
.timeline li.current .timeline-dot { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 5px rgba(30,100,240,.12); }
.timeline-copy strong { display: block; font-size: .84rem; }
.timeline-copy time { color: var(--muted); display: block; font: 400 .65rem/1.4 "Space Mono", monospace; margin-top: .22rem; }
.shipment-box { align-items: center; background: #eef4ff; display: flex; gap: .8rem; justify-content: space-between; margin-top: 1rem; padding: .9rem 1rem; }
.shipment-box small { color: var(--muted); display: block; font: 400 .59rem/1 "Space Mono", monospace; letter-spacing: .07em; margin-bottom: .35rem; text-transform: uppercase; }
.shipment-box code { color: var(--ink); font: 700 .76rem/1 "Space Mono", monospace; }
.shipment-box a { background: var(--white); border: 1px solid #cddaf1; color: var(--blue-dark); font-size: .73rem; font-weight: 700; padding: .62rem .8rem; text-decoration: none; }
.ticket-note { background: #f8f0dc; border-left: 3px solid var(--amber); color: #66552f; font-size: .78rem; line-height: 1.5; margin-top: 1rem; padding: .85rem 1rem; }
footer { align-items: center; border-top: 1px solid var(--line); display: flex; justify-content: space-between; margin: 5rem auto 0; max-width: 1240px; padding: 1.6rem 2.25rem 2.2rem; }
footer p { align-items: center; display: flex; font-size: .72rem; gap: .7rem; margin: 0; }
footer p span { color: var(--muted); }
.footer-route { align-items: center; display: flex; gap: 0; width: 90px; }
.footer-route::before, .footer-route::after { background: #aebdc3; content: ""; height: 1px; flex: 1; }
.footer-route i { background: var(--paper); border: 2px solid var(--teal); border-radius: 50%; height: 8px; margin: 0 2px; width: 8px; }
[dir="rtl"] .label-edge { left: auto; right: -9px; transform: scaleX(-1); }
[dir="rtl"] .input-shell svg { margin-left: 0; margin-right: 1rem; }
[dir="rtl"] .order-summary::after { border-left: 1px dashed rgba(255,255,255,.3); border-right: 0; left: 12px; right: auto; }
[dir="rtl"] .timeline li:not(:last-child)::after { left: auto; right: 7px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 880px) {
    main { padding-top: 3.5rem; }
    .hero { grid-template-columns: 1fr; }
    .hero-copy { max-width: 760px; }
    .lookup-card { margin: 0 auto; max-width: 620px; width: 100%; }
    .dispatch-stamp { right: 0; }
    .order-card { grid-template-columns: 1fr; }
    .order-summary::after { border-bottom: 1px dashed rgba(255,255,255,.3); border-right: 0; bottom: 10px; left: 0; right: 0; top: auto; }
}
@media (max-width: 560px) {
    .site-header { padding: 1.25rem; }
    .language-control > span { display: none; }
    .language-control select { min-width: 102px; }
    main { padding: 4.2rem 1.15rem 2rem; }
    h1 { font-size: clamp(3rem, 16vw, 4.4rem); }
    .hero-lede { font-size: 1rem; }
    .dispatch-stamp { top: -4.7rem; transform: scale(.85) rotate(3deg); transform-origin: right center; }
    .assurance-row { grid-template-columns: 1fr; gap: .65rem; }
    .assurance-row i { min-width: 21px; }
    .lookup-card { min-height: 0; padding: 2.7rem 1.7rem; }
    .orders-header { align-items: flex-start; flex-direction: column; gap: .6rem; }
    .order-summary, .order-progress { padding: 1.55rem; }
    .shipment-box { align-items: flex-start; flex-direction: column; }
    .shipment-box a { text-align: center; width: 100%; }
    footer { align-items: flex-start; flex-direction: column; gap: 1rem; margin-top: 3.2rem; padding: 1.5rem 1.25rem 2rem; }
    footer p { align-items: flex-start; flex-direction: column; gap: .2rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
