/* SwiftPost — USPS-inspired professional postal UI */
:root {
    --blue: #004b87;
    --blue-dark: #003366;
    --blue-mid: #0064b4;
    --red: #da291c;
    --gray-50: #f6f8fb;
    --gray-100: #eef1f6;
    --gray-300: #d4d9e3;
    --gray-600: #5a6474;
    --ink: #1a2233;
    --green: #1e8e3e;
    --amber: #b26a00;
    --radius: 10px;
    --shadow: 0 2px 10px rgba(0, 30, 90, .08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif; color: var(--ink); background: #fff; }
a { color: var(--blue-mid); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Header — USPS-style: white utility strip + light-gray nav bar */
.site-header { background: #ecedee; color: var(--blue); position: sticky; top: 0; z-index: 1100; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.header-utility { display: flex; justify-content: flex-end; align-items: center; gap: 22px; background: #fff; padding: 7px 24px; font-size: .78rem; border-bottom: 1px solid #d9d9d9; }
.u-item { display: inline-flex; align-items: center; gap: 5px; color: var(--blue); font-weight: 600; }
.u-item svg { color: var(--blue); }
.u-item:hover { text-decoration: underline; color: var(--blue-dark); }
.u-signin { color: var(--ink); font-weight: 700; }
.header-row { display: flex; align-items: stretch; max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.brand { display: flex; align-items: center; padding-right: 10px; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 44px; width: auto; display: block; }
.nav-toggle { display: none; background: none; border: 0; color: var(--blue); font-size: 1.4rem; margin-left: auto; cursor: pointer; }
.header-search { display: flex; align-items: center; padding: 0 6px 0 14px; margin-left: auto; }
.header-search:hover { text-decoration: none; }

/* Category nav with mega dropdowns */
.main-nav { display: flex; }
.nav-item { position: relative; display: flex; }
.nav-link { color: var(--blue); font-weight: 700; font-size: .95rem; padding: 0 26px; display: flex; align-items: center; border-bottom: 5px solid transparent; }
.nav-item:hover .nav-link, .nav-link:hover { text-decoration: none; border-bottom-color: var(--blue); }
.nav-item.nav-active .nav-link { background: var(--blue); color: #fff; border-bottom-color: var(--red); }
.mega { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 460px; padding: 22px; box-shadow: 0 12px 30px rgba(0,30,90,.2); border-radius: 0 0 10px 10px; border-top: 3px solid var(--red); gap: 36px; z-index: 60; }
.nav-item:hover .mega { display: flex; }
.mega-col { min-width: 180px; }
.mega-col h4 { margin: 0 0 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-600); border-bottom: 1px solid var(--gray-100); padding-bottom: 6px; }
.mega-col a { display: block; color: var(--blue); font-size: .92rem; font-weight: 600; padding: 6px 0; }
.mega-col a:hover { text-decoration: underline; }

/* Hero — image right, white promo panel overlapping left (USPS-style) */
/* Hero — navy angled panel left + photo right (USPS-style) */
.hero { position: relative; min-height: 500px; display: flex; overflow: hidden; }
.hero-img { position: absolute; top: 0; right: 0; bottom: 0; left: 36%; background: url('/img/hero.jpg') center/cover no-repeat; }
.hero-panel { position: relative; width: 42%; min-width: 520px; background: var(--blue); color: #fff; padding: 60px 70px 60px max(20px, calc((100vw - 1140px)/2)); clip-path: polygon(0 0, calc(100% - 60px) 0, 100% 100%, 0 100%); }
.hero-panel h1 { font-size: 2.3rem; margin: 0 0 16px; font-weight: 800; line-height: 1.15; }
.hero-panel p { color: #dbe6f5; margin: 0 0 24px; font-size: 1.02rem; line-height: 1.55; max-width: 480px; }
.hero-btn { display: inline-block; border: 2px solid #fff; color: #fff; padding: 10px 30px; font-weight: 700; font-size: 1rem; border-radius: 3px; }
.hero-btn:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.hero-fine { font-size: .72rem !important; color: #a9c0e0 !important; margin-top: 26px !important; line-height: 1.5 !important; }
.hero-announce { margin-top: 14px; background: #fff8e6; border: 1px solid #f0d98c; border-radius: 6px; padding: 10px 12px; font-size: .82rem; color: #7a5b00; }

/* Tracking + quick tools row under hero (USPS-style) */
.track-row { background: #fff; padding: 40px 0 46px; }
.track-row-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; align-items: start; }
.qt-side { display: flex; gap: 14px; align-items: flex-start; color: var(--ink); font-size: .88rem; line-height: 1.45; border-left: 1px solid var(--gray-300); padding-left: 24px; }
.qt-side:hover { text-decoration: none; }
.qt-side .qt-icon { font-size: 2rem; }
.qt-side strong { color: var(--blue); font-size: 1rem; }
.qt-side sup { font-size: .6em; }

.track-panel { width: 100%; max-width: 460px; background: #fff; padding: 26px 30px; box-shadow: 0 10px 30px rgba(0,30,90,.22); }
.track-panel .track-title { font-size: 1.45rem; }

/* USPS-style tracking form — single input, embedded icon submit */
.track-title { font-size: 1.9rem; font-weight: 800; color: #1a1a1a; margin: 0 0 14px; }
.track-form { display: block; }
.track-input-wrap { position: relative; width: 100%; }
.track-input-wrap input { width: 100%; border: 1px solid #757575; border-radius: 3px; padding: 13px 52px 13px 14px; font-size: 1rem; background: #fff; color: #1a1a1a; }
.track-input-wrap input:focus { outline: 2px solid var(--blue-mid); outline-offset: 0; border-color: var(--blue-mid); }
.track-input-wrap input::placeholder { color: #555; }
.track-submit { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; padding: 6px; color: var(--blue); display: flex; align-items: center; }
.track-submit svg { width: 26px; height: 26px; }
.track-submit:hover { color: var(--blue-mid); }

/* Buttons */
.btn { display: inline-block; border: 0; border-radius: 6px; padding: 13px 26px; font-size: .95rem; font-weight: 700; cursor: pointer; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #b5121a; text-decoration: none; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-mid); text-decoration: none; }
.btn-outline { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.chip { background: var(--gray-100); border: 1px solid var(--gray-300); border-radius: 6px; padding: 3px 10px; font-size: .8rem; color: var(--blue); cursor: pointer; font-family: monospace; }

/* Sections */
.section { padding: 56px 0; }
.section-gray { background: var(--gray-50); }
.section h2 { font-size: 1.8rem; margin: 0 0 28px; color: var(--blue-dark); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,30,90,.14); }
.service-card .icon { width: 52px; height: 52px; border-radius: 12px; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 16px; }
.service-card h3 { margin: 0 0 8px; color: var(--blue-dark); }
.service-card p { color: var(--gray-600); font-size: .95rem; margin: 0; }

/* Quick Tools grid */
.qt-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 10px; }
.qt-item { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px; border: 1px solid var(--gray-100); border-radius: var(--radius); text-align: center; color: var(--ink); background: #fff; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.qt-item:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,30,90,.14); text-decoration: none; }
.qt-icon { font-size: 1.7rem; }
.qt-name { font-size: .78rem; font-weight: 700; color: var(--blue-dark); }

/* Feature banner */
.feature-banner { background: var(--blue); color: #fff; padding: 44px 0; }
.feature-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: center; }
.feature-text h2 { margin: 0 0 22px; color: #fff; font-size: 1.9rem; }
.feature-img { width: 100%; height: 240px; object-fit: cover; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }

.feature-art { font-size: 7rem; text-align: center; background: linear-gradient(135deg, #dce8fb, #fff); border-radius: var(--radius); padding: 40px 0; border: 1px solid var(--gray-100); }
.feature-banner h2 { margin: 0 0 12px; color: #fff; font-size: 1.9rem; }
.feature-banner p { color: #dbe6f5; margin: 0 0 20px; }
.sec-title { font-size: 1.7rem; margin: 0 0 26px; color: var(--blue-dark); }

/* Shop cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shop-card { border: 1px solid var(--gray-100); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.shop-art { font-size: 3.4rem; background: linear-gradient(135deg, var(--gray-50), #e4ecf9); text-align: center; padding: 30px 0; }
.shop-card h3 { margin: 14px 16px 6px; font-size: 1rem; color: var(--blue-dark); }
.shop-card p { margin: 0 16px 12px; font-size: .85rem; color: var(--gray-600); }
.shop-link { display: block; margin: 0 16px 16px; color: var(--blue); font-weight: 700; font-size: .85rem; }

/* Update cards */
.update-card { background: #fff; border-left: 4px solid var(--red); border-radius: 6px; padding: 18px 20px; box-shadow: var(--shadow); }
.update-card h4 { margin: 0 0 8px; color: var(--blue-dark); font-size: .98rem; }
.update-card p { margin: 0; font-size: .87rem; color: var(--gray-600); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--gray-100); }
.faq-item summary { cursor: pointer; padding: 16px 4px; font-weight: 700; color: var(--blue-dark); list-style: none; }
.faq-item summary::before { content: "+"; color: var(--red); font-weight: 800; margin-right: 10px; }
.faq-item[open] summary::before { content: "–"; }
.faq-item p { margin: 0 0 16px 24px; color: var(--gray-600); font-size: .92rem; }

/* Alert */
.alert { border-radius: 8px; padding: 14px 18px; margin: 16px 0; font-weight: 500; }
.alert-error { background: #fdecec; color: #a31218; border: 1px solid #f5c1c4; }
.alert-success { background: #e8f5ea; color: #15692c; border: 1px solid #bfe3c7; }

/* Tracking result */
.page-head { background: var(--blue); color: #fff; padding: 34px 0; }
.page-head h1 { margin: 0; font-size: 1.7rem; }
.page-head .sub { color: #b9cdf0; font-size: .9rem; margin-top: 4px; }
.status-banner { border-radius: var(--radius); padding: 22px 26px; display: flex; align-items: center; gap: 20px; margin: -30px auto 24px; background: #fff; box-shadow: 0 8px 30px rgba(0,30,90,.15); position: relative; }
.status-dot { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; flex-shrink: 0; }
.status-banner .label { font-size: .75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gray-600); }
.status-banner .value { font-size: 1.35rem; font-weight: 800; }
.st-delivered { background: var(--green); } .st-in_transit, .st-accepted { background: var(--blue-mid); }
.st-out_for_delivery { background: var(--amber); } .st-label_created { background: var(--gray-600); }
.st-exception, .st-returned { background: var(--red); }

/* Progress steps */
.steps { display: flex; margin: 28px 0; }
.step { flex: 1; text-align: center; position: relative; font-size: .78rem; color: var(--gray-600); }
.step::before { content: ""; display: block; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--gray-300); margin: 0 auto 8px; position: relative; z-index: 1; }
.step::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 3px; background: var(--gray-300); }
.step:first-child::after { display: none; }
.step.done { color: var(--blue); font-weight: 600; }
.step.done::before { background: var(--blue); border-color: var(--blue); }
.step.done::after { background: var(--blue); }
.step.current::before { border-color: var(--red); box-shadow: 0 0 0 5px rgba(215,25,32,.18); }

/* Cards & detail */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--gray-100); padding: 26px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.kv { margin-bottom: 12px; }
.kv .k { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-600); }
.kv .v { font-weight: 600; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 26px 34px; border-left: 3px solid var(--gray-300); margin-left: 10px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 4px; }
.timeline li::before { content: ""; position: absolute; left: -11px; top: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--green); border: 3px solid var(--green); }
.timeline li.t-exception::before { background: var(--red); border-color: var(--red); }
.timeline li.latest::before { box-shadow: 0 0 0 5px rgba(30,142,62,.15); }
.timeline li.latest.t-exception::before { box-shadow: 0 0 0 5px rgba(215,25,32,.15); }
.timeline .t-status { font-weight: 700; color: var(--blue-dark); }
.timeline .t-desc { color: var(--gray-600); font-size: .92rem; margin: 2px 0; }
.timeline .t-meta { font-size: .8rem; color: #8a94a6; }

/* Map */
/* Full-width shipment map section */
.track-map-section { margin-top: 32px; background: #fff; border-radius: var(--radius); box-shadow: 0 2px 12px rgba(0,0,0,.08); padding: 24px; }
.track-map-section .section-title { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 1.15rem; color: var(--blue); }
#map { height: 480px; border-radius: var(--radius); border: 1px solid var(--gray-300); }
@media (max-width: 768px) { #map { height: 350px; } }

/* Footer */
/* ── Footer — USPS.com style ─────────────────────────── */
.site-footer { background: #f4f4f4; color: #333; margin-top: 60px; font-size: .85rem; }
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr) 1.35fr; gap: 36px; padding: 38px 0 30px; }
.fcol h5 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #333; margin: 0 0 14px; }
.fcol a { display: block; color: #333; padding: 4px 0; }
.fcol a:hover { text-decoration: underline; }
.fsearch { display: flex; margin-bottom: 16px; max-width: 320px; }
.fsearch input { flex: 1; min-width: 0; border: 1px solid #bbb; border-right: 0; border-radius: 2px 0 0 2px; padding: 9px 12px; font-size: .85rem; font-family: inherit; }
.fsearch input:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.fsearch button { background: var(--blue); color: #fff; border: 0; border-radius: 0 2px 2px 0; padding: 0 14px; cursor: pointer; display: flex; align-items: center; }
.fsearch button:hover { background: var(--blue); }
.fabout { font-size: .76rem; color: #666; line-height: 1.55; margin: 0; max-width: 320px; }
.fbottom { border-top: 1px solid #ddd; }
.fbottom-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; flex-wrap: wrap; }
.flegal a { display: inline-block; color: #333; font-size: .78rem; margin-right: 20px; }
.flegal a:hover { text-decoration: underline; }
.fsocials { display: flex; gap: 14px; align-items: center; }
.fsoc { display: inline-flex; align-items: center; }
.fcopyright { padding: 0 0 16px; font-size: .72rem; color: #666; }

/* Admin */
.admin-body { background: var(--gray-50); min-height: 100vh; }

/* Admin sidebar */
.admin-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 250px; background: var(--blue-dark); color: #fff; display: flex; flex-direction: column; z-index: 1000; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 20px 18px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.12); }
.sidebar-brand:hover { text-decoration: none; }
.sidebar-brand-name { font-weight: 800; font-size: 1.05rem; letter-spacing: .5px; }
.sidebar-brand-sub { font-size: .72rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: 1px; }
.sidebar-nav { flex: 1; padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.sidebar-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 8px; color: rgba(255,255,255,.78); font-size: .92rem; font-weight: 600; border: none; background: none; width: 100%; text-align: left; cursor: pointer; font-family: inherit; }
.sidebar-link:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.sidebar-link.active { background: rgba(255,255,255,.16); color: #fff; }
.sidebar-link .icon { flex-shrink: 0; }
.sidebar-footer { padding: 14px 10px; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px 14px; margin-bottom: 4px; }
.sidebar-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; flex-shrink: 0; }
.sidebar-username { font-size: .88rem; color: rgba(255,255,255,.85); font-weight: 600; }
.sidebar-logout:hover { background: rgba(215,25,32,.25); color: #fff; }
.admin-wrap { max-width: 1140px; margin: 28px auto; padding: 0 20px; }
.admin-wrap-sidebar { margin-left: 250px; max-width: none; padding: 0 32px; }
.admin-menu-toggle { display: none; position: fixed; top: 14px; left: 14px; z-index: 1100; background: var(--blue-dark); color: #fff; border: none; border-radius: 8px; padding: 9px 10px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.admin-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 999; }
@media (max-width: 900px) {
    .admin-menu-toggle { display: block; }
    .admin-sidebar { transform: translateX(-100%); transition: transform .25s ease; }
    body.sidebar-open .admin-sidebar { transform: translateX(0); }
    body.sidebar-open .admin-overlay { display: block; }
    .admin-wrap-sidebar { margin-left: 0; padding: 70px 20px 0; }
}
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 24px; }
.stat { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border-top: 4px solid var(--blue); }
.stat .n { font-size: 1.7rem; font-weight: 800; color: var(--blue-dark); }
.stat .l { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-600); }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th { background: var(--blue); color: #fff; text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; padding: 12px 14px; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--gray-100); font-size: .9rem; }
.table tr:hover td { background: var(--gray-50); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.b-delivered { background: #e8f5ea; color: var(--green); }
.b-in_transit, .b-accepted { background: #e3edfb; color: var(--blue); }
.b-out_for_delivery { background: #fff3e0; color: var(--amber); }
.b-label_created { background: var(--gray-100); color: var(--gray-600); }
.b-exception, .b-returned { background: #fdecec; color: var(--red); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 5px; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--gray-300); border-radius: 8px; padding: 10px 12px; font-size: .92rem; font-family: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-mid); }
.field .err { color: var(--red); font-size: .78rem; margin-top: 4px; }
.login-box { max-width: 400px; margin: 70px auto; }
.pagination { display: flex; gap: 6px; margin-top: 18px; list-style: none; padding: 0; }
.pagination a, .pagination span { padding: 7px 12px; border-radius: 6px; border: 1px solid var(--gray-300); font-size: .85rem; }
.pagination .active span { background: var(--blue); color: #fff; border-color: var(--blue); }
.admin-actions { display: flex; gap: 8px; }
h3.section-title { color: var(--blue-dark); font-size: 1.05rem; margin: 26px 0 12px; border-bottom: 2px solid var(--gray-100); padding-bottom: 8px; }

@media (max-width: 860px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .detail-grid, .form-grid { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .fgrid { grid-template-columns: repeat(2, 1fr); }
    .fbottom-row { flex-direction: column; align-items: flex-start; }
    .qt-grid { grid-template-columns: repeat(3, 1fr); }
    .feature-grid { grid-template-columns: 1fr; }
    .hero { min-height: 0; flex-direction: column; }
    .hero-img { position: relative; width: 100%; height: 280px; left: 0; }
    .hero-panel { width: 100%; min-width: 0; clip-path: none; padding: 30px 20px; }

    .track-row-grid { grid-template-columns: 1fr; gap: 24px; }
    .qt-side { border-left: 0; border-top: 1px solid var(--gray-300); padding: 16px 0 0; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; padding: 8px 20px 20px; box-shadow: 0 12px 24px rgba(0,30,90,.2); }
    .main-nav.open { display: flex; }
    .nav-item { flex-direction: column; }
    .nav-link { padding: 12px 0; }
    .nav-item.nav-active .nav-link { background: none; color: var(--blue); border-bottom-color: var(--red); }
    .mega { position: static; box-shadow: none; border-top: 0; border-left: 3px solid var(--red); min-width: 0; padding: 8px 0 8px 16px; }
    .nav-item:hover .mega { display: flex; flex-direction: column; gap: 8px; }
    .header-utility { flex-wrap: wrap; gap: 10px; }
    .site-header { position: relative; }
    .header-row { padding: 8px 16px; }
    .nav-toggle { display: block; }
    .hero-panel h1 { font-size: 1.8rem; }
    .steps { margin: 20px 0; flex-wrap: nowrap; }
    .step { min-width: 0; gap: 5px; }
    .step-icon { width: 30px; height: 30px; }
    .step-icon .icon { width: 14px; height: 14px; }
    .step-label { font-size: .68rem; line-height: 1.15; }
    .step::after { top: 15px; }
    .step.current .step-icon { box-shadow: 0 0 0 4px rgba(218,41,28,.18); }
}

/* Split sections — image on one side, content on the other */
.split-list { display: flex; flex-direction: column; gap: 36px; }
.split-item { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: #fff; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-reverse .split-img { order: 2; }
.split-reverse .split-body { order: 1; }
.split-img { width: 100%; height: 260px; object-fit: cover; border-radius: 6px; }
.split-body h3 { font-size: 1.35rem; color: var(--blue-dark); margin: 0 0 10px; }
.split-body p { color: var(--gray-600); margin: 0 0 18px; line-height: 1.6; }
@media (max-width: 768px) {
    .split-item { grid-template-columns: 1fr; gap: 20px; }
    .split-reverse .split-img, .split-reverse .split-body { order: initial; }
}

/* Delivering What Matters — stats + carousel */
.dwm-title { font-size: 2rem; font-weight: 700; color: var(--ink); margin: 0 0 30px; }
.dwm-grid { display: grid; grid-template-columns: 280px 1fr; gap: 50px; align-items: center; }
.dwm-stats { display: flex; flex-direction: column; gap: 34px; }
.dwm-stat { border-left: 3px solid var(--blue); padding-left: 18px; }
.dwm-num { font-size: 1.7rem; font-weight: 800; color: var(--ink); }
.dwm-cap { font-size: .92rem; color: var(--gray-600); line-height: 1.45; margin-top: 4px; }
.dwm-carousel { position: relative; border-radius: 12px; overflow: hidden; }
.dwm-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.dwm-slide[data-active] { position: relative; opacity: 1; }
.dwm-slide img { width: 100%; height: 380px; object-fit: cover; display: block; }
.dwm-caption { background: var(--blue-dark); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; font-size: .98rem; font-weight: 600; }
.dwm-arrow { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; text-decoration: none; }
.dwm-arrow:hover { background: #b52116; }
.dwm-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.dwm-prev, .dwm-next { background: none; border: 0; font-size: 1.6rem; color: var(--gray-600); cursor: pointer; }
.dwm-dots { display: flex; gap: 10px; }
.dwm-dot { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--blue); background: transparent; cursor: pointer; padding: 0; }
.dwm-dot.active { background: var(--blue); }
@media (max-width: 860px) {
    .dwm-grid { grid-template-columns: 1fr; gap: 30px; }
    .dwm-stats { flex-direction: row; gap: 24px; flex-wrap: wrap; }
    .dwm-stat { flex: 1 1 140px; }
    .dwm-slide img { height: 260px; }
}

/* Lucide icons */
svg.icon { display: inline-block; vertical-align: middle; }
.nav-caret { vertical-align: -1px; margin-left: 2px; }
.page-head-title { display: flex; align-items: center; gap: 12px; }
.icon-num { display: inline-flex; align-items: center; justify-content: center; border: 2px solid #fff; border-radius: 50%; font-weight: 800; color: #fff; }
.service-card .icon .icon-num { color: #fff; }
.shop-art { color: var(--blue); display: flex; align-items: center; justify-content: center; }
.nav-toggle svg { display: block; }
.mega a .icon { margin-right: 8px; vertical-align: -3px; color: var(--blue); }

/* FAQ page — USPS faq.usps.com style */
.faq-hero { background: var(--blue); color: #fff; padding: 54px 0 46px; text-align: center; }
.faq-hero h1 { font-size: 2.4rem; margin: 0 0 8px; font-weight: 800; }
.faq-hero p { margin: 0 0 26px; color: #cfdded; }
.faq-search { position: relative; max-width: 640px; margin: 0 auto; }
.faq-search input { width: 100%; padding: 15px 18px 15px 52px; font-size: 1.05rem; border: 1px solid transparent; border-radius: 6px; }
.faq-search-ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--gray-600); }
.faq-subtitle { font-size: 1.5rem; color: var(--ink); margin: 0 0 22px; font-weight: 800; }
.faq-topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.faq-topic { background: #fff; border: 1px solid var(--gray-300); border-radius: 8px; padding: 24px 20px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.faq-topic:hover { text-decoration: none; border-color: var(--blue); box-shadow: 0 4px 14px rgba(0,75,135,.15); }
.faq-topic strong { color: var(--blue); font-size: 1.02rem; }
.faq-topic-ic { color: var(--blue); }
.faq-topic-desc { font-size: .85rem; color: var(--gray-600); line-height: 1.45; }
.faq-section { margin-bottom: 30px; }
.faq-section-title { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; color: var(--blue-dark); margin: 0 0 12px; scroll-margin-top: 90px; }
.faq-item { background: #fff; border: 1px solid var(--gray-300); border-radius: 6px; margin-bottom: 8px; }
.faq-item summary { padding: 15px 18px; font-weight: 600; color: var(--blue); cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px; text-align: left; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-caret { transition: transform .2s; flex: 0 0 auto; margin-left: auto; }
.faq-item[open] summary .faq-caret { transform: rotate(180deg); }
.faq-item p { margin: 0; padding: 0 18px 16px; color: var(--gray-600); line-height: 1.6; }
@media (max-width: 860px) { .faq-topics { grid-template-columns: repeat(2, 1fr); } .faq-hero h1 { font-size: 1.8rem; } }

/* Tracking page — tools.usps.com/tracking style */
.breadcrumb { font-size: .85rem; color: var(--gray-600); margin-bottom: 14px; }
.breadcrumb a { color: var(--blue); }
.breadcrumb .sep { margin: 0 6px; }
.track-page-title { font-size: 2rem; font-weight: 800; color: var(--ink); margin: 0 0 18px; }
.track-note { font-size: .92rem; color: var(--gray-600); margin: 0 0 14px; }
.track-cols { display: grid; grid-template-columns: 1.7fr 1fr; gap: 48px; align-items: start; }
.track-left { min-width: 0; }
.track-textarea { width: 100%; border: 1px solid var(--gray-600); border-radius: 4px; padding: 12px 14px; font-size: 1rem; font-family: inherit; resize: vertical; }
.track-textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.track-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 16px; flex-wrap: wrap; }
.track-help-link { font-size: .88rem; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.btn-lg { padding: 12px 46px; font-size: 1rem; }
.track-side-title { font-size: 1.05rem; font-weight: 800; color: var(--ink); margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--blue); }
.track-side-list { list-style: none; margin: 0 0 8px; padding: 0; }
.track-side-list li { padding: 9px 0; border-bottom: 1px solid var(--gray-100); }
.track-side-list a { display: flex; align-items: center; gap: 9px; color: var(--blue); font-weight: 600; font-size: .95rem; }
.multi-row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--gray-300); border-radius: 8px; padding: 16px 18px; margin-bottom: 10px; color: var(--ink); }
.multi-row:hover { text-decoration: none; border-color: var(--blue); }
.multi-ic { color: var(--blue); flex: 0 0 auto; }
.multi-num { font-weight: 800; font-family: monospace; font-size: .95rem; }
.multi-route { color: var(--gray-600); font-size: .88rem; flex: 1; }
.status-badge { display: inline-block; padding: 5px 14px; border-radius: 999px; color: #fff; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
@media (max-width: 860px) { .track-cols { grid-template-columns: 1fr; } }

/* Track page — polished redesign */
.tp-hero { background: linear-gradient(120deg, var(--blue-dark) 0%, var(--blue) 70%, var(--blue-mid) 100%); color: #fff; padding: 52px 0 120px; }
.tp-hero h1 { font-size: 2.6rem; font-weight: 800; margin: 8px 0 10px; }
.tp-sub { color: #cfdded; font-size: 1.05rem; max-width: 560px; margin: 0; }
.breadcrumb-light, .breadcrumb-light a { color: rgba(255,255,255,.75); }
.tp-wrap { padding-bottom: 64px; }
.tp-alert { margin-top: -64px; position: relative; z-index: 2; max-width: 100%; }
.tp-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 30px; margin-top: -64px; position: relative; z-index: 2; }
.tp-alert + .tp-grid { margin-top: 20px; }
.tp-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tp-card { background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,51,102,.10); border: 1px solid rgba(0,75,135,.07); padding: 28px 30px; }
.tp-card-flat { padding: 4px 24px; }
.tp-card-flat .faq-item summary { padding: 16px 0; }
.tp-card-head { display: flex; align-items: center; gap: 12px; color: var(--blue); margin-bottom: 18px; }
.tp-card-head h2 { font-size: 1.2rem; font-weight: 800; color: var(--ink); margin: 0; }
.tp-field { position: relative; }
.tp-field textarea { width: 100%; border: 1.5px solid var(--gray-300); border-radius: 10px; padding: 16px 150px 16px 18px; font-size: 1.02rem; font-family: inherit; resize: vertical; min-height: 72px; transition: border-color .15s, box-shadow .15s; }
.tp-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,75,135,.12); }
.tp-track-btn { position: absolute; right: 8px; top: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; border: 0; border-radius: 8px; padding: 0 28px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background .15s; }
.tp-track-btn:hover { background: #b52116; }
.tp-help { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: var(--blue); font-size: .9rem; font-weight: 600; }
.tp-side { display: flex; flex-direction: column; gap: 16px; }
.tp-card-side h3 { font-size: .95rem; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--gray-600); margin: 0 0 6px; padding-bottom: 12px; border-bottom: 2px solid var(--blue); }
.tp-links { list-style: none; margin: 0; padding: 0; }
.tp-links li { border-bottom: 1px solid var(--gray-100); }
.tp-links li:last-child { border-bottom: 0; }
.tp-links a { display: flex; align-items: center; gap: 11px; padding: 11px 2px; color: var(--blue); font-weight: 600; font-size: .93rem; transition: padding-left .15s; }
.tp-links a:hover { padding-left: 8px; text-decoration: none; }
.tp-links .icon { color: var(--blue-mid); flex: 0 0 auto; }
.tp-status { display: flex; gap: 12px; padding: 10px 0; align-items: flex-start; }
.tp-status strong { font-size: .9rem; color: var(--ink); }
.tp-status p { margin: 2px 0 0; font-size: .82rem; color: var(--gray-600); line-height: 1.45; }
.status-dot-mini { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; flex: 0 0 12px; }
@media (max-width: 860px) {
    .tp-grid { grid-template-columns: 1fr; }
    .tp-hero { padding: 36px 0 100px; }
    .tp-field textarea { padding-right: 18px; }
    .tp-track-btn { position: static; width: 100%; margin-top: 10px; justify-content: center; padding: 13px 0; }
}

/* Public tracking sender and receiver details */
.party-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.party-card { padding: 20px; min-width: 0; }
.party-heading { display: flex; align-items: center; gap: 9px; color: var(--blue); padding-bottom: 12px; margin-bottom: 12px; border-bottom: 2px solid var(--gray-100); }
.party-heading h3 { margin: 0; color: var(--blue-dark); font-size: 1rem; }
.party-name { color: var(--ink); font-size: 1rem; font-weight: 800; margin-bottom: 12px; }
.party-row { display: flex; align-items: flex-start; gap: 9px; color: var(--gray-600); font-size: .85rem; line-height: 1.5; margin-top: 9px; overflow-wrap: anywhere; }
.party-row .icon { color: var(--blue); flex: 0 0 auto; margin-top: 2px; }
.party-row a { color: var(--blue); }
@media (max-width: 640px) { .party-grid { grid-template-columns: 1fr; } }

/* Live delivery-date indicator */
.delivery-date-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.delivery-live-dot { position: relative; display: inline-block; width: 10px; height: 10px; margin-left: 4px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 rgba(0,75,135,.55); animation: delivery-dot-pulse 1.25s ease-out infinite; }
.delivery-live-dot.completed { background: var(--green); box-shadow: 0 0 0 rgba(30,142,62,.55); animation-name: completed-dot-pulse; }
.delivery-live-dot.paused { background: var(--red); box-shadow: 0 0 0 rgba(218,41,28,.55); animation: paused-dot-pulse 1.25s ease-out infinite; }
@keyframes paused-dot-pulse { 0% { box-shadow: 0 0 0 0 rgba(218,41,28,.55); } 100% { box-shadow: 0 0 0 9px rgba(218,41,28,0); } }
@keyframes delivery-dot-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0,75,135,.55); transform: scale(.92); }
    55% { box-shadow: 0 0 0 7px rgba(0,75,135,0); transform: scale(1); }
    100% { box-shadow: 0 0 0 0 rgba(0,75,135,0); transform: scale(.92); }
}
@keyframes completed-dot-pulse {
    0% { box-shadow: 0 0 0 0 rgba(30,142,62,.55); transform: scale(.92); }
    55% { box-shadow: 0 0 0 7px rgba(30,142,62,0); transform: scale(1); }
    100% { box-shadow: 0 0 0 0 rgba(30,142,62,0); transform: scale(.92); }
}
@media (prefers-reduced-motion: reduce) { .delivery-live-dot { animation: none; } }

/* Tracking progress Lucide icons */
.step { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.step-icon { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 2px solid var(--gray-300); border-radius: 50%; background: #fff; color: var(--gray-600); transition: color .2s, border-color .2s, background .2s; }
.step.done .step-icon { border-color: var(--blue); background: var(--blue); color: #fff; }
.step.current .step-icon { border-color: var(--red); background: var(--red); color: #fff; box-shadow: 0 0 0 5px rgba(218,41,28,.12); }
.step-label { font-size: .82rem; font-weight: 700; text-align: center; }

/* Place Lucide icons inside the original progress circles */
.step::before { display: none; }
.step::after { top: 18px; height: 3px; z-index: 0; }
.step-icon { width: 36px; height: 36px; margin: 0 auto; border-width: 3px; }
.step-icon .icon { width: 17px; height: 17px; }
.step.done::after { background: var(--blue); }
.step.current .step-icon { box-shadow: 0 0 0 5px rgba(218,41,28,.18); }

/* Transport vehicle marker on tracking map */
.transport-vehicle { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.transport-vehicle svg { width: 48px; height: 48px; }

/* Admin page organization */
.admin-wrap .card + .card { margin-top: 24px; }
.card .table { box-shadow: none; border-radius: 0; margin: -26px -26px 0; width: calc(100% + 52px); }
.card .table + .pagination { margin: 18px -10px -8px; }

/* Contact Us page */
.contact-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.contact-method { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 26px 22px; text-align: center; box-shadow: var(--shadow); color: inherit; transition: transform .15s ease, box-shadow .15s ease; display: block; }
.contact-method:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.12); text-decoration: none; }
.cm-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--blue-dark); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.cm-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-600); }
.cm-value { font-weight: 700; color: var(--blue-dark); font-size: 1.05rem; margin: 4px 0 6px; word-break: break-word; }
.cm-sub { font-size: .82rem; color: var(--gray-600); }
.contact-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.contact-form-title { margin: 0 0 4px; color: var(--blue-dark); font-size: 1.35rem; }
.contact-form-sub { color: var(--gray-600); margin: 0 0 22px; }
.contact-side { display: flex; flex-direction: column; gap: 20px; }
.contact-side-card { padding: 20px 22px; }
.contact-side-title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 1rem; color: var(--blue-dark); }
.contact-side-link { display: flex; align-items: center; gap: 10px; padding: 9px 0; color: var(--blue); font-weight: 600; font-size: .9rem; border-bottom: 1px solid var(--gray-100); }
.contact-side-link:last-child { border-bottom: 0; }
.contact-side-link:hover { color: var(--blue-dark); text-decoration: none; }
.contact-success { text-align: center; padding: 30px 10px; }
.contact-success-icon { color: var(--green); margin-bottom: 10px; }
.contact-success h2 { color: var(--blue-dark); margin: 0 0 10px; }
.contact-success p { color: var(--gray-600); max-width: 420px; margin: 0 auto 22px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-methods { grid-template-columns: 1fr; } }

/* Locations page */
.loc-hero { padding-bottom: 34px; }
.loc-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px; padding: 8px 8px 8px 16px; margin-top: 20px; max-width: 560px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.loc-search .icon { color: var(--gray-600); flex-shrink: 0; }
.loc-search input { flex: 1; border: none; outline: none; font-size: 1rem; font-family: inherit; padding: 8px 0; }
.loc-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.loc-chip { padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--gray-300); background: #fff; color: var(--ink); font-size: .85rem; font-weight: 600; }
.loc-chip:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.loc-chip.active { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.loc-count { font-size: .88rem; color: var(--gray-600); margin-bottom: 16px; }
.loc-map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 26px; border: 1px solid var(--gray-200); }
#loc-map { height: 380px; }
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.loc-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.loc-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.loc-type { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 4px 10px; border-radius: 999px; }
.loc-type-post-office { background: #e3edfb; color: var(--blue-dark); }
.loc-type-smart-locker { background: #e8f5ea; color: var(--green); }
.loc-type-distribution-center { background: #fdecec; color: var(--red); }
.loc-hours-badge { font-size: .72rem; font-weight: 700; color: var(--green); }
.loc-name { margin: 0 0 12px; color: var(--blue-dark); font-size: 1.1rem; }
.loc-addr, .loc-row { display: flex; gap: 8px; align-items: flex-start; color: var(--gray-600); font-size: .9rem; margin-bottom: 10px; }
.loc-addr .icon, .loc-row .icon { color: var(--blue); flex-shrink: 0; margin-top: 1px; }
.loc-services { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; }
.loc-service { font-size: .72rem; font-weight: 600; background: var(--gray-100); color: var(--gray-600); padding: 4px 10px; border-radius: 999px; }
.loc-directions { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; font-size: .88rem; }
.loc-directions:hover { color: var(--blue-dark); text-decoration: none; }
@media (max-width: 900px) { .loc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .loc-grid { grid-template-columns: 1fr; } #loc-map { height: 300px; } }

/* ── Customer account ─────────────────────────────────── */
.auth-wrap { max-width: 1060px; margin: 0 auto; padding: 40px 20px 56px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start; }
.auth-card { padding: 34px 32px; }
.auth-head h1 { font-size: 1.7rem; color: var(--blue); margin: 0 0 6px; }
.auth-head p { color: var(--gray-600); font-size: .92rem; margin: 0 0 22px; }
.auth-alt { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--gray-200); text-align: center; font-size: .9rem; color: var(--gray-600); }
.auth-alt a { color: var(--blue); font-weight: 600; }
.auth-side { padding-top: 8px; }
.auth-side h2 { font-size: 1.05rem; color: var(--blue); margin: 0 0 18px; }
.auth-feature { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.auth-feature svg { color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.auth-feature strong { display: block; color: var(--blue); font-size: .95rem; margin-bottom: 2px; }
.auth-feature span { font-size: .85rem; color: var(--gray-600); }

.acct-head { background: var(--blue); color: #fff; padding: 34px 0; }
.acct-head-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.acct-welcome { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; margin-bottom: 4px; }
.acct-head h1 { margin: 0 0 4px; font-size: 1.6rem; }
.acct-email { font-size: .88rem; opacity: .8; }
.acct-signout { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: 4px; padding: 9px 16px; font-size: .85rem; cursor: pointer; transition: background .15s; }
.acct-signout:hover { background: rgba(255,255,255,.22); }

.acct-track-card { padding: 24px 26px; margin-bottom: 28px; }
.acct-card-title { display: flex; align-items: center; gap: 9px; color: var(--blue); font-size: 1.1rem; margin: 0 0 16px; }
.acct-card-title svg { color: var(--blue); }
.acct-track-form { display: grid; grid-template-columns: 2fr 1.3fr auto; gap: 10px; }
.acct-track-form input { padding: 10px 14px; border: 1px solid var(--gray-300); border-radius: 4px; font-size: .92rem; font-family: inherit; }
.acct-track-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(51,102,187,.12); }

.acct-saved-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 28px; }
.acct-saved-card { padding: 20px 22px; }
.acct-saved-top { display: flex; justify-content: space-between; align-items: flex-start; min-height: 18px; }
.acct-saved-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-600); }
.acct-remove { background: none; border: none; color: var(--gray-600); cursor: pointer; padding: 2px; border-radius: 4px; }
.acct-remove:hover { color: var(--red); background: #fdecec; }
.acct-saved-num { font-weight: 700; color: var(--blue); font-size: .95rem; word-break: break-all; margin-top: 4px; }
.acct-saved-route { font-size: .83rem; color: var(--gray-600); }

.acct-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.acct-action { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--gray-200); border-radius: 8px; padding: 18px 20px; color: var(--blue); font-weight: 600; font-size: .92rem; transition: border-color .15s, box-shadow .15s; }
.acct-action svg { color: var(--blue); flex-shrink: 0; }
.acct-action:hover { border-color: var(--blue); box-shadow: 0 2px 10px rgba(51,102,187,.12); text-decoration: none; }

.alert-success { background: #e6f4ea; border-left: 4px solid var(--green); color: #14532d; padding: 12px 16px; border-radius: 4px; font-size: .9rem; }
.alert-error { background: #fdecec; border-left: 4px solid var(--red); color: #7f1d1d; padding: 12px 16px; border-radius: 4px; font-size: .9rem; }

@media (max-width: 900px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .acct-track-form { grid-template-columns: 1fr; }
}

/* ── Live chat widget ─────────────────────────────────── */
.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 2000; }
.chat-fab { position: relative; width: 58px; height: 58px; border-radius: 50%; background: var(--blue); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(51,102,187,.45); transition: transform .15s, background .15s; }
.chat-fab:hover { background: var(--blue); transform: scale(1.06); }
.chat-fab.hidden { display: none; }
.chat-fab-dot { position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }

.chat-panel { display: none; flex-direction: column; width: 360px; max-width: calc(100vw - 32px); height: 480px; max-height: calc(100vh - 100px); background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.chat-panel.open { display: flex; }

.chat-head { background: var(--blue); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.chat-title { font-weight: 700; font-size: .95rem; }
.chat-status { font-size: .72rem; opacity: .85; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.chat-online { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; }
.chat-close { background: none; border: none; color: #fff; cursor: pointer; padding: 4px; opacity: .8; }
.chat-close:hover { opacity: 1; }

.chat-body { flex: 1; overflow-y: auto; padding: 14px; background: #f4f6f9; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: .87rem; line-height: 1.45; word-break: break-word; }
.chat-msg a { color: var(--blue); font-weight: 600; }
.chat-user { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.chat-user a { color: #fff; }
.chat-bot { align-self: flex-start; background: #fff; color: #333; border: 1px solid #e4e7ec; border-bottom-left-radius: 4px; }

.chat-typing { display: flex; gap: 4px; padding: 12px 14px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: #aab4c0; animation: chatBounce 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatBounce { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-5px); } }

.chat-input-zone { border-top: 1px solid #e4e7ec; background: #fff; padding: 10px 12px 8px; }
.chat-input { display: flex; align-items: center; gap: 6px; background: #f1f4f8; border: 1.5px solid #dfe4ec; border-radius: 14px; padding: 5px 5px 5px 14px; transition: border-color .15s, background .15s; }
.chat-input:focus-within { border-color: var(--blue); background: #fff; }
.chat-input input { flex: 1; min-width: 0; border: none; background: transparent; padding: 8px 0; font-size: .87rem; font-family: inherit; }
.chat-input input:focus { outline: none; }
.chat-input input::placeholder { color: #9aa3b0; }
.chat-input button { background: var(--blue); color: #fff; border: none; border-radius: 10px; width: 36px; height: 36px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-input button:hover { background: var(--blue); }
.chat-foot { text-align: center; font-size: .67rem; color: #9aa3b0; padding-top: 8px; letter-spacing: .02em; }

@media (max-width: 480px) {
    .chat-widget { right: 14px; bottom: 14px; }
    .chat-panel { width: calc(100vw - 28px); height: min(480px, calc(100vh - 80px)); }
}


.chat-head-info { display: flex; align-items: center; gap: 11px; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 2px 4px 4px; }
.chat-chip { background: #fff; border: 1.5px solid var(--blue); color: var(--blue); border-radius: 999px; padding: 6px 13px; font-size: .78rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .12s, color .12s; }
.chat-chip:hover { background: var(--blue); color: #fff; }

/* ── Chat attention animation ─────────────────────────── */
.chat-fab { animation: chatFabBounce 2.6s ease-in-out infinite; }
.chat-fab::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--blue); opacity: 0; animation: chatFabRing 2.6s ease-out infinite; }
@keyframes chatFabBounce {
    0%, 55%, 100% { transform: translateY(0); }
    65% { transform: translateY(-10px); }
    75% { transform: translateY(0); }
    83% { transform: translateY(-5px); }
    91% { transform: translateY(0); }
}
@keyframes chatFabRing {
    0%, 55% { opacity: 0; transform: scale(.85); }
    62% { opacity: .45; }
    100% { opacity: 0; transform: scale(1.35); }
}
.chat-fab:hover { animation-play-state: paused; }
.chat-fab:hover::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
    .chat-fab, .chat-fab::after { animation: none; }
}

/* ── Chat callout label ───────────────────────────────── */
.chat-callout { position: absolute; bottom: 72px; right: 0; background: #fff; color: var(--ink); font-size: .8rem; font-weight: 600; white-space: nowrap; padding: 9px 15px; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.16); animation: chatCalloutFloat 2.6s ease-in-out infinite; }
.chat-callout::after { content: ''; position: absolute; bottom: -6px; right: 20px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); box-shadow: 3px 3px 6px rgba(0,0,0,.06); }
@keyframes chatCalloutFloat { 0%, 55%, 100% { transform: translateY(0); } 65% { transform: translateY(-4px); } 75% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .chat-callout { animation: none; } }

.chat-wa { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 9px; padding: 8px 12px; border-radius: 10px; border: 1.5px solid #25d366; color: #128c4a; font-size: .8rem; font-weight: 600; transition: background .12s, color .12s; }
.chat-wa:hover { background: #25d366; color: #fff; text-decoration: none; }

/* Map sender/receiver labels */
.map-tag { background: #fff; border: 1.5px solid var(--blue); color: var(--ink); font-size: .72rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.15); white-space: nowrap; }
.map-tag strong { color: var(--blue); }
.map-tag::before { display: none; }
.map-tag-dest { border-color: #1e8e3e; }
.map-tag-dest strong { color: #1e8e3e; }

/* Track-again form — hidden on mobile */
.track-again-form { margin-left: auto; display: flex; gap: 8px; }
@media (max-width: 640px) { .track-again-form { display: none; } }

/* ── Global mobile responsiveness pass ────────────────── */
img { max-width: 100%; }
.pagination { flex-wrap: wrap; }
.admin-actions { flex-wrap: wrap; }
.status-banner { flex-wrap: wrap; }
.multi-num { overflow-wrap: anywhere; }

/* Small-screen polish */
@media (max-width: 640px) {
    .container { padding: 0 14px; }
    .section { padding: 38px 0; }
    .section h2 { font-size: 1.45rem; }
    .tp-hero h1 { font-size: 1.9rem; }
    .track-page-title { font-size: 1.6rem; }
    .status-banner { padding: 18px; gap: 14px; }
    .status-banner .value { font-size: 1.15rem; }
    .status-dot { width: 44px; height: 44px; font-size: 1.1rem; }
    .card { padding: 20px 18px; }
    .card .table { margin: -20px -18px 0; width: calc(100% + 36px); }
    .qt-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .qt-name { font-size: .68rem; }
    .faq-topics { grid-template-columns: 1fr; }
    .faq-hero h1 { font-size: 1.6rem; }
    .auth-card { padding: 26px 20px; }
    .auth-wrap { padding: 24px 14px 40px; }
    .track-map-section { padding: 16px 14px; }
    .admin-wrap { padding: 0 14px; }
    .btn-lg { padding: 12px 24px; width: 100%; text-align: center; }
}

/* Tables — horizontal scroll instead of page overflow */
@media (max-width: 860px) {
    .card { overflow-x: auto; }
    .table { min-width: 560px; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* Very small screens */
@media (max-width: 400px) {
    .qt-grid { grid-template-columns: repeat(2, 1fr); }
    .header-utility { font-size: .72rem; gap: 8px; }
    .chat-callout { display: none; }
}

/* Mobile header — toggle left, logo centered, search right */
@media (max-width: 860px) {
    .header-row { position: relative; align-items: center; min-height: 62px; }
    .brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding-right: 0; }
    .nav-toggle { margin-left: 0; }
    .header-search { margin-left: auto; padding-left: 0; }
}

/* ── Language switcher dropdown ───────────────────────── */
.lang-menu { position: relative; padding: 0; }
.lang-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; color: var(--blue); font-weight: 600; font-size: .78rem; cursor: pointer; font-family: inherit; padding: 0; }
.lang-btn:hover { text-decoration: underline; }
.lang-dropdown { display: none; position: absolute; top: 100%; right: 0; background: #fff; border: 1px solid var(--gray-300); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,30,90,.18); min-width: 150px; padding: 6px; z-index: 1200; margin-top: 8px; }
.lang-dropdown.open { display: block; }
.lang-opt { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 9px 12px; font-size: .85rem; font-weight: 600; color: var(--ink); border-radius: 6px; cursor: pointer; font-family: inherit; }
.lang-opt:hover { background: var(--gray-50); color: var(--blue); }
.lang-opt.active { color: var(--blue); background: #eef4fb; }

/* Hide Google Translate's injected banner/tooltip and fix body offset */
.goog-te-banner-frame, .skiptranslate > iframe, #goog-gt-tt, .VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf { display: none !important; }
body { top: 0 !important; }

/* ── Chat intake form ─────────────────────────────────── */
.chat-intake { align-self: stretch; background: #fff; border: 1px solid #e4e7ec; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-intake input { border: 1.5px solid var(--gray-300); border-radius: 8px; padding: 9px 12px; font-size: .85rem; font-family: inherit; width: 100%; }
.chat-intake input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,75,135,.10); }
.chat-intake input.invalid { border-color: var(--red); }
.chat-intake-submit { background: var(--blue); color: #fff; border: 0; border-radius: 8px; padding: 10px; font-size: .88rem; font-weight: 700; cursor: pointer; font-family: inherit; }
.chat-intake-submit:hover { background: var(--blue-dark); }
.chat-intake-phone { display: flex; gap: 8px; }
.chat-intake-phone select { width: 108px; flex: 0 0 auto; border: 1.5px solid var(--gray-300); border-radius: 8px; padding: 9px 8px; font-size: .82rem; font-family: inherit; background: #fff; cursor: pointer; }
.chat-intake-phone select:focus { outline: none; border-color: var(--blue); }
.chat-intake-phone input { flex: 1; min-width: 0; }
