/* =====================================
   1. BASE
===================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --yellow: #FFC300;
    --yellow-dark: #e2ac00;
    --blue: #1168d8;
    --text: #111111;
    --muted: #666666;
    --white: #ffffff;
    --soft: #f5f5f5;
    --soft-2: #f7f7f7;
    --border: #e7e7e7;
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    --radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.5;
}

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

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

.container {
    width: min(1180px, 92%);
    margin: 0 auto;
}

/* =====================================
   2. HEADER
===================================== */

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    height: 42px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--yellow-dark);
}

/* =====================================
   3. HERO / HOME
===================================== */

.hero {
    min-height: 620px;
    position: relative;
    background:
        linear-gradient(rgba(0,0,0,0.42), rgba(0,0,0,0.42)),
        url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1800&q=80') center center / cover no-repeat;
    display: flex;
    align-items: center;
}

.hero .container {
    width: min(1120px, 88%);
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 620px) minmax(360px, 460px);
    justify-content: space-between;
    gap: 56px;
    align-items: center;
    width: 100%;
    padding: 70px 0;
}

.hero-text {
    color: #fff;
    max-width: 560px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.24);
    font-size: 13px;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.05;
    margin-bottom: 16px;
    font-weight: 800;
}

.hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.92);
    max-width: 560px;
}

/* =====================================
   4. SHARED SEARCH CARD
===================================== */

.tracking-search-card {
    background: rgba(255,255,255,0.97);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    max-width: 460px;
    width: 100%;
    margin-left: auto;
}

.search-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.tracking-form {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.tracking-form input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 17px 16px;
    font-size: 15px;
    min-width: 0;
}

.tracking-form button {
    border: 0;
    background: var(--yellow);
    color: var(--text);
    font-weight: 800;
    padding: 0 26px;
    cursor: pointer;
    font-size: 15px;
}

.tracking-form button:hover {
    background: var(--yellow-dark);
}

.search-note {
    font-size: 14px;
    color: #4f4f4f;
    margin-top: 12px;
}

/* =====================================
   5. HOME INFO / CONTENT
===================================== */

.quick-info {
    background: var(--soft);
    padding: 70px 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.info-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: var(--shadow);
}

.info-card h3 {
    font-size: 28px;
    line-height: 1.05;
    margin-bottom: 14px;
}

.info-card p {
    color: var(--muted);
    font-size: 16px;
}

.content-section {
    padding: 80px 0;
}

.alt-section {
    background: var(--soft);
}

.two-col {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 42px;
    align-items: start;
}

.section-tag {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.section-intro h2 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
}

.section-copy p {
    color: var(--muted);
    font-size: 17px;
    margin-bottom: 18px;
}

/* =====================================
   6. FOOTER
===================================== */

.site-footer {
    background: #f1f1f1;
    color: var(--text);
    border-top: 1px solid #dddddd;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 0.7fr;
    gap: 36px;
    padding: 52px 0 34px;
    align-items: start;
}

.footer-logo-wrap {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.footer-brand img {
    height: 36px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.footer-brand p {
    font-size: 15px;
    max-width: 420px;
    color: #505050;
}

.footer-column h4 {
    font-size: 18px;
    margin-bottom: 14px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
    font-size: 15px;
    color: #505050;
}

.footer-column a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #dddddd;
    background: #ebebeb;
}

.footer-bottom-inner {
    min-height: 56px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #505050;
}

/* =====================================
   7. TRACKING - HERO / GENERAL
===================================== */

.tracking-hero {
    background: linear-gradient(180deg, #fafafa 0%, #f3f3f3 100%);
    padding: 64px 0 46px;
    border-bottom: 1px solid var(--border);
}

.tracking-code-label {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
}

.tracking-hero h1 {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.06;
    margin-bottom: 10px;
    word-break: break-word;
}

.tracking-subtitle {
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 24px;
}

.tracking-search-inline {
    max-width: 720px;
}

.tracking-overview-section,
.timeline-section,
.shipment-details-section,
.proof-section {
    padding: 28px 0;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
}

/* =====================================
   8. TRACKING - OVERVIEW / STATUS
===================================== */

.tracking-overview-grid,
.details-grid,
.proof-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.status-card,
.journey-card,
.detail-card,
.proof-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.status-badge,
.proof-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(17, 104, 216, 0.08);
    color: var(--blue);
    margin-bottom: 14px;
}

.proof-badge {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.status-card h2,
.proof-card h2 {
    font-size: 32px;
    line-height: 1.05;
    margin-bottom: 10px;
}

.status-card p,
.proof-card p {
    color: var(--muted);
}

.delivery-pill {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(247, 198, 61, 0.18);
    color: #8a6500;
    font-size: 14px;
    font-weight: 800;
}

.status-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #f1f1f1;
    padding: 12px 0;
}

.status-meta:last-child {
    border-bottom: 0;
}

.status-meta strong {
    font-size: 14px;
}

.status-meta span {
    color: var(--muted);
    text-align: right;
}

/* =====================================
   9. TRACKING - JOURNEY / ROUTE
===================================== */

.journey-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
}

.journey-head h3 {
    font-size: 26px;
    margin-bottom: 6px;
}

.journey-head p {
    color: var(--muted);
}

.journey-head-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.journey-progress {
    min-width: 72px;
    min-height: 72px;
    border-radius: 50%;
    background: rgba(17, 104, 216, 0.08);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
}

.journey-stop-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(247, 198, 61, 0.18);
    color: #8a6500;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.journey-stop-badge.delivered {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.journey-stop-badge.muted {
    background: rgba(17, 104, 216, 0.08);
    color: var(--blue);
}

/* MAP BACKGROUND */

.journey-line-wrap {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #fbfcfe 0%, #f4f8fc 100%);
    border: 1px solid #edf1f5;
    padding: 22px 18px 18px;
}

.journey-map-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.map-grid {
    position: absolute;
    background: rgba(17, 104, 216, 0.05);
    border-radius: 999px;
}

.map-grid-1 {
    width: 140%;
    height: 2px;
    top: 30%;
    left: -10%;
    transform: rotate(-8deg);
}

.map-grid-2 {
    width: 130%;
    height: 2px;
    top: 58%;
    left: -5%;
    transform: rotate(6deg);
}

.map-grid-3 {
    width: 2px;
    height: 140%;
    top: -10%;
    left: 62%;
    transform: rotate(8deg);
}

.map-pin {
    position: absolute;
    z-index: 1;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 8px 18px rgba(0,0,0,.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.map-pin-start {
    left: 18px;
    top: 18px;
}

.map-pin-end {
    right: 18px;
    bottom: 18px;
}

.map-pin-end.nearby {
    animation: nearbyPulse 2s ease-in-out infinite;
}

/* ROUTE LINE */

.journey-line {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: rgba(17, 104, 216, 0.10);
    margin: 42px 0 24px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

.journey-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #57b8ff 0%, var(--blue) 45%, var(--yellow) 100%);
    box-shadow: 0 0 18px rgba(17, 104, 216, 0.18);
    transition: width 0.8s ease;
}

.journey-line-progress.active-route {
    animation: routeGlow 2.4s ease-in-out infinite;
}

/* TRUCK */

.journey-truck {
    position: absolute;
    top: -18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 8px 18px rgba(0,0,0,.10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: left 0.4s ease;
}

.journey-truck.moving {
    animation: truckFloat 2.2s ease-in-out infinite;
}

/* STOPS */

.journey-stops {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.journey-stop {
    text-align: center;
}

.journey-stop .dot {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin: 0 auto 8px;
    background: #d9dee5;
}

.journey-stop.done .dot {
    background: #22c55e;
}

.journey-stop.active .dot {
    background: var(--yellow);
    animation: activeDotPulse 1.8s ease-in-out infinite;
}

.journey-stop .label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.35;
}

/* LIVE STRIP */

.journey-live-strip {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.journey-live-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(17, 104, 216, 0.08);
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(17, 104, 216, 0.08);
}

.journey-live-pill.eta {
    background: rgba(247, 198, 61, 0.18);
    color: #8a6500;
}

/* META CARD */

.journey-meta-card {
    margin-top: 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fafafa;
    border: 1px solid #efefef;
    border-radius: 16px;
    padding: 16px;
}

.journey-meta-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(17, 104, 216, 0.08);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: 0 0 42px;
}

.journey-meta-content {
    min-width: 0;
}

.journey-meta-content span {
    display: block;
    font-size: 12px;
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: 4px;
}

.journey-meta-content strong {
    display: block;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
}

/* FOOTER */

.journey-footer {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid #f0f0f0;
}

.journey-footer-item {
    background: #fafafa;
    border: 1px solid #efefef;
    border-radius: 14px;
    padding: 14px;
    min-width: 0;
}

.journey-footer-item span {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.journey-footer-item strong {
    display: block;
    font-size: 15px;
    line-height: 1.45;
    word-break: break-word;
}

/* ANIMATIONS */

@keyframes truckFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes activeDotPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes nearbyPulse {
    0% {
        box-shadow: 0 8px 18px rgba(0,0,0,.10), 0 0 0 0 rgba(17, 104, 216, 0.18);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 18px rgba(0,0,0,.10), 0 0 0 14px rgba(17, 104, 216, 0);
        transform: scale(1.04);
    }
    100% {
        box-shadow: 0 8px 18px rgba(0,0,0,.10), 0 0 0 0 rgba(17, 104, 216, 0);
        transform: scale(1);
    }
}

@keyframes routeGlow {
    0% {
        box-shadow: 0 0 12px rgba(17, 104, 216, 0.14);
        opacity: 0.96;
    }
    50% {
        box-shadow: 0 0 22px rgba(17, 104, 216, 0.24);
        opacity: 1;
    }
    100% {
        box-shadow: 0 0 12px rgba(17, 104, 216, 0.14);
        opacity: 0.96;
    }
}
/* =====================================
   10. TRACKING - TIMELINE
===================================== */

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.timeline-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 22px;
}

.timeline-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-top: 6px;
    background: #d9dee5;
    flex: 0 0 16px;
}

.timeline-item.done .timeline-marker {
    background: #22c55e;
}

.timeline-item.active .timeline-marker {
    background: var(--yellow);
    box-shadow: 0 0 0 6px rgba(247, 198, 61, 0.18);
}

.timeline-content {
    flex: 1;
}

.timeline-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.timeline-top h3 {
    margin: 0;
    font-size: 22px;
}

.timeline-state {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(17, 104, 216, 0.08);
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
}

.timeline-content p {
    color: var(--muted);
    margin-bottom: 8px;
}

.timeline-content time {
    font-size: 14px;
    font-weight: 700;
}

/* =====================================
   11. TRACKING - DETAILS / ADDRESS
===================================== */

.detail-card h3 {
    font-size: 26px;
    margin-bottom: 14px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #f1f1f1;
}

.detail-row:last-child {
    border-bottom: 0;
}

.detail-row span {
    color: var(--muted);
    font-size: 14px;
}

.detail-row strong {
    text-align: right;
    word-break: break-word;
}

.postcode-card {
    margin-top: 8px;
    margin-bottom: 18px;
}

.postcode-card label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.postcode-form {
    display: flex;
    gap: 12px;
}

.postcode-form input {
    flex: 1;
    min-width: 0;
    height: 50px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 14px;
    font-size: 15px;
}

.postcode-form button {
    height: 50px;
    border: 0;
    border-radius: 12px;
    background: var(--blue);
    color: #fff;
    padding: 0 18px;
    font-weight: 700;
    cursor: pointer;
}

.postcode-error {
    color: #b91c1c;
    font-weight: 700;
    margin-bottom: 12px;
}

.address-box {
    background: #fafafa;
    border: 1px solid #efefef;
    border-radius: 14px;
    padding: 16px;
    line-height: 1.6;
}

/* =====================================
   12. TRACKING - PROOF OF DELIVERY
===================================== */

.proof-card {
    position: relative;
    overflow: hidden;
}

.proof-head {
    margin-bottom: 18px;
}

.proof-head h2 {
    margin-bottom: 8px;
}

.proof-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.signature-card {
    background: #fafafa;
    border: 1px solid #efefef;
    border-radius: 16px;
    padding: 18px;
    text-align: center;
}

.signature-label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 10px;
}

.signature-card img {
    max-width: 100%;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: contrast(1.1);
}

.status-card-delivered {
    border-color: rgba(34, 197, 94, 0.24);
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.08);
}

.status-badge-delivered {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.signature-protected {
    user-select: none;
    -webkit-user-select: none;
}

.signature-protected img {
    -webkit-user-drag: none;
    user-drag: none;
}
/* =====================================
   13. TRACKING - DELIVERED OVERLAY
===================================== */

.delivered-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.delivered-box {
    background: #fff;
    padding: 30px 38px;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.20);
    max-width: 520px;
    width: 100%;
}

.delivered-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 14px;
}

.delivered-box h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.delivered-box p {
    color: var(--muted);
    margin-bottom: 18px;
}

.delivered-meta {
    text-align: left;
    background: #fafafa;
    border: 1px solid #efefef;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.delivered-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #ececec;
}

.delivered-meta-row:last-child {
    border-bottom: 0;
}

.delivered-meta-row span {
    color: var(--muted);
    font-size: 14px;
}

.delivered-meta-row strong {
    text-align: right;
    word-break: break-word;
}

.delivered-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.delivered-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(17, 104, 216, 0.08);
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
}

.delivered-tag.success {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}
/* =====================================
   14. TRACKING - TABLE
===================================== */

.tracking-table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.tracking-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

.tracking-table th,
.tracking-table td {
    text-align: left;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.tracking-table thead th {
    background: #fafafa;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.4px;
}

.tracking-table tbody tr:last-child td {
    border-bottom: 0;
}

/* =====================================
   15. ADMIN - GENERAL
===================================== */

.admin-topbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 22px;
}

.admin-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 14px;
    background: var(--yellow);
    color: var(--text);
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    box-shadow: var(--shadow);
    border: 0;
    cursor: pointer;
}

.admin-primary-btn:hover {
    background: var(--yellow-dark);
}

.admin-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 20px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: var(--shadow);
}

.admin-secondary-btn:hover {
    background: #f8f8f8;
}

.admin-detail-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.admin-detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* =====================================
   16. ADMIN - DASHBOARD
===================================== */

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.admin-stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 22px;
}

.admin-stat-card span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.admin-stat-card strong {
    display: block;
    font-size: 30px;
    line-height: 1;
}

.admin-search-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 22px;
}

.admin-search-form {
    display: flex;
    gap: 12px;
}

.admin-search-form input {
    flex: 1;
    min-width: 0;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 16px;
    font-size: 15px;
}

.admin-search-form button {
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: var(--blue);
    color: #fff;
    padding: 0 20px;
    font-weight: 700;
    cursor: pointer;
}

.admin-search-form button:hover {
    opacity: 0.92;
}

.admin-table-wrap {
    margin-top: 0;
}

.admin-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.status-created {
    background: rgba(17, 104, 216, 0.08);
    color: var(--blue);
}

.status-progress {
    background: rgba(247, 198, 61, 0.18);
    color: #8a6500;
}

.status-driver {
    background: rgba(255, 159, 67, 0.18);
    color: #b85a00;
}

.status-delivered {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.admin-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-actions a {
    font-size: 14px;
    font-weight: 700;
    color: var(--blue);
}

.admin-actions a:hover {
    text-decoration: underline;
}

.admin-select {
    width: 100%;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 14px;
    font-size: 15px;
    outline: none;
    background: #fff;
}

.admin-select:focus {
    border-color: var(--blue);
}

/* =====================================
   17. ADMIN - DETAIL
===================================== */

.admin-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.admin-detail-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.admin-detail-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.admin-detail-card-head h3 {
    font-size: 24px;
    line-height: 1.1;
    margin: 0;
}

.admin-detail-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.admin-detail-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.admin-detail-row span {
    color: var(--muted);
    font-size: 14px;
    min-width: 120px;
}

.admin-detail-row strong {
    text-align: right;
    font-size: 15px;
    line-height: 1.4;
    word-break: break-word;
}

/* =====================================
   18. ADMIN - FORMS
===================================== */

.admin-form-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 24px;
}

.admin-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-form-group label {
    font-size: 14px;
    font-weight: 700;
}

.admin-form-group input {
    width: 100%;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 14px;
    font-size: 15px;
    outline: none;
}

.admin-form-group input:focus {
    border-color: var(--blue);
}

.admin-full {
    grid-column: 1 / -1;
}

.admin-form-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.admin-form-message {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 700;
}

.admin-form-message.success {
    background: rgba(34, 197, 94, 0.12);
    color: #166534;
}

.admin-form-message.error {
    background: rgba(220, 38, 38, 0.10);
    color: #b91c1c;
}

/* =====================================
   19. LEGACY ADMIN FORM BLOCK
===================================== */

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 15px;
    outline: none;
    background: #fff;
}

.form-group input:focus {
    border-color: var(--blue);
}

.admin-submit-btn {
    border: 0;
    background: var(--yellow);
    color: var(--text);
    font-weight: 800;
    font-size: 15px;
    padding: 14px 24px;
    border-radius: 14px;
    cursor: pointer;
}

.admin-submit-btn:hover {
    background: var(--yellow-dark);
}

/* =====================================
   20. RESPONSIVE
===================================== */

@media (max-width: 980px) {
    .hero-content,
    .cards-grid,
    .two-col,
    .footer-inner,
    .tracking-overview-grid,
    .details-grid,
    .proof-grid,
    .admin-detail-grid,
    .admin-edit-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        gap: 28px;
    }

    .tracking-search-card,
    .address-verify-card {
        margin-left: 0;
        max-width: 100%;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 0;
    }

    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-full {
        grid-column: auto;
    }
}

@media (max-width: 700px) {
    .header-inner {
        height: auto;
        padding: 18px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        gap: 16px;
        flex-wrap: wrap;
    }

    .brand img {
        height: 34px;
        max-width: 180px;
    }

    .footer-brand img {
        height: 34px;
        max-width: 180px;
    }

    .hero {
        min-height: auto;
    }

    .hero .container {
        width: min(1180px, 92%);
    }

    .hero-content {
        padding: 54px 0;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p,
    .tracking-subtitle {
        font-size: 16px;
    }

    .tracking-form,
    .postcode-form,
    .admin-search-form {
        flex-direction: column;
        gap: 12px;
    }

    .tracking-form {
        border: 0;
        background: transparent;
        overflow: visible;
    }

    .tracking-form input {
        border: 1px solid var(--border);
        border-radius: 14px;
        background: #fff;
    }

    .tracking-form button,
    .postcode-form button,
    .admin-search-form button {
        width: 100%;
        border-radius: 14px;
        min-height: 54px;
    }

    .journey-head,
    .timeline-top,
    .detail-row,
    .status-meta,
    .admin-detail-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .journey-head-side {
        align-items: flex-start;
    }

    .journey-stops {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 18px;
    }

    .journey-footer {
        grid-template-columns: 1fr;
    }

    .journey-live-strip {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-row strong,
    .status-meta span,
    .admin-detail-row strong {
        text-align: left;
    }

    .status-card h2,
    .proof-card h2,
    .delivered-box h2 {
        font-size: 28px;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .delivered-box {
        padding: 24px;
    }
    .journey-meta-card {
        padding: 14px;
    }

    .journey-head-side {
    align-items: flex-start;
}

.journey-footer {
    grid-template-columns: 1fr;
}

.journey-live-strip {
    flex-direction: column;
    align-items: flex-start;
}

.journey-meta-card {
    padding: 14px;
}
}
