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

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #EEF3F8;
  color: #12253A;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: #0B2A4A; }

/* ===== Navbar ===== */
.topbar {
  background: linear-gradient(180deg, #0F3257 0%, #0B2A4A 100%);
  color: #fff;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 2px 14px rgba(11,42,74,.18);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 46px; width: auto; display: block; }
.topbar nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar nav a { color: #D7E4F2; text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
.topbar nav a:hover, .topbar nav a.active { color: #fff; font-weight: 600; }
.topbar nav a.btn { color: #fff; }
.userchip { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.14); padding: 4px 10px; border-radius: 14px; font-size: 12px; }
.inline { display: inline; }

/* ===== Layout ===== */
.container { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 20px; }

.site-footer {
  text-align: center; padding: 22px; font-size: 12.5px; color: #5A7290;
  display: flex; flex-direction: column; gap: 6px;
  border-top: 1px solid #DCE6F0;
  margin-top: 26px;
}
.site-footer a { color: #5A7290; text-decoration: none; }
.site-footer a:hover { color: #0B2A4A; text-decoration: underline; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #FF6B86, #E42D4F);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(228,45,79,.24);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { filter: brightness(1.03); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(228,45,79,.3); }
.btn.ghost { background: #EEF3F8; color: #0B2A4A; box-shadow: none; }
.btn.ok { background: #16a34a; color: #fff; box-shadow: none; }
.btn.danger { background: #E42D4F; }
.btn.sm { padding: 6px 13px; font-size: 12px; border-radius: 8px; }
.btn.wide { width: 100%; margin-top: 14px; justify-content: center; }

/* ===== Hero (home) ===== */
.hero { padding: 34px 0 6px; }
.hero-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0F3257 0%, #0A2340 100%);
  border-radius: 24px;
  padding: 52px 56px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px;
  align-items: center;
  box-shadow: 0 24px 60px rgba(11,42,74,.22);
}
.hero-card::after {
  content: ""; position: absolute; right: -80px; bottom: -140px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(228,45,79,.22), transparent 70%);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: #CFE0F2; font-size: 12.5px; font-weight: 600; letter-spacing: .4px;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #37D399; display: inline-block; }
.hero h1 { color: #fff; font-size: 46px; line-height: 1.1; letter-spacing: -1px; font-weight: 800; margin: 0 0 16px; }
.hero h1 span { color: #FF6B86; }
.hero .sub { color: #B9CDE2; font-size: 17px; line-height: 1.6; margin: 0 0 28px; max-width: 460px; }
.hero-track { display: flex; gap: 10px; max-width: 470px; }
.hero-track input {
  flex: 1; min-width: 0;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.96);
  border-radius: 10px; padding: 13px 16px;
  font-size: 15px; font-family: inherit; color: #12253A; outline: none;
}
.hero-track input:focus { box-shadow: 0 0 0 3px rgba(228,45,79,.35); }
.hero-art { position: relative; z-index: 1; display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 600px; display: block; }

.trackform {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.trackform input {
  width: 340px; max-width: 90%;
  padding: 13px 16px;
  border: none; border-radius: 10px;
  font-size: 15px;
}
.trackform.dark { margin-bottom: 20px; }

/* ===== Home sections / feature cards ===== */
.home-sec { padding: 34px 0 4px; }
.sec-title { font-size: 26px; font-weight: 800; margin: 0 0 6px; color: #0B2A4A; letter-spacing: -.4px; }
.sec-sub { color: #5A7290; margin: 0 0 24px; font-size: 15px; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat-card {
  background: #fff; border: 1px solid #DCE6F0; border-radius: 18px;
  padding: 26px 22px; transition: transform .18s, box-shadow .18s, border-color .18s;
}
.feat-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(11,42,74,.10); border-color: #C9DAEA; }
.feat-card .ico {
  width: 56px; height: 56px; border-radius: 14px;
  background: #F2F7FC; display: grid; place-items: center; margin-bottom: 16px;
}
.feat-card .ico img { width: 34px; height: 34px; display: block; }
.feat-card h3 { margin: 0 0 8px; font-size: 16.5px; color: #0B2A4A; }
.feat-card p { margin: 0; font-size: 14px; line-height: 1.6; color: #5A7290; }
.feat-link { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 700; color: #E42D4F; text-decoration: none; }
.feat-link:hover { text-decoration: underline; }

/* ===== About ===== */
.about-card {
  background: #fff; border: 1px solid #DCE6F0; border-radius: 18px;
  padding: 28px; margin-top: 30px;
}
.about-card h2 { margin-bottom: 10px; color: #0B2A4A; }
.about-card p { color: #4A607A; line-height: 1.65; margin-bottom: 14px; }
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px; font-size: 14px;
  background: #F2F7FC; border: 1px solid #E3EDF7; border-radius: 12px; padding: 16px;
}
.office {
  margin-top: 12px; font-size: 14px; color: #4A607A;
  background: #F2F7FC; border: 1px solid #E3EDF7; border-radius: 12px; padding: 16px; line-height: 1.6;
}

@media (max-width: 900px) {
  .hero-card { grid-template-columns: 1fr; padding: 36px 28px; }
  .hero h1 { font-size: 36px; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 460px; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .brand-logo { height: 34px; }
  .feat-grid { grid-template-columns: 1fr; }
  .hero-track { flex-direction: column; }
  .hero-track .btn { justify-content: center; }
}

/* ===== Page head ===== */
.page-head { text-align: center; margin: 14px 0 20px; }
.page-head h1 { font-size: 26px; }
.page-head p { color: #777; font-size: 14px; margin-top: 4px; }

/* ===== Track result ===== */
.track-result {
  background: #fff; border-radius: 12px; padding: 26px;
  text-align: center; box-shadow: 0 2px 10px rgba(0,0,0,.06);
  max-width: 560px; margin: 0 auto;
}
.tr-id { font-size: 22px; font-weight: 700; font-family: Consolas, monospace; margin-bottom: 10px; }
.tr-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; margin-top: 18px; text-align: left;
}
.tr-grid .lbl { display: block; font-size: 11px; color: #999; text-transform: uppercase; }

/* ===== Alerts / badges ===== */
.alert { padding: 12px 16px; border-radius: 8px; margin: 12px 0; font-size: 14px; }
.alert.err { background: #fdecea; color: #c0392b; }
.alert.ok { background: #eafaf1; color: #27ae60; }
.alert.warn { background: #fff8e6; color: #8a5b00; border: 1px solid #f5d98b; }
.alert.warn a { color: #8a5b00; text-decoration: underline; font-weight: 600; }

.badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.badge.transit { background: #fdecea; color: #c0392b; }
.badge.out { background: #fef5e7; color: #d68910; }
.badge.delivered { background: #eafaf1; color: #27ae60; }

/* ===== Auth ===== */
.auth-wrap { display: flex; justify-content: center; padding: 26px 0; }
.auth-card {
  background: #fff; border-radius: 14px; padding: 30px;
  width: 100%; max-width: 420px; box-shadow: 0 4px 18px rgba(0,0,0,.07);
}
.auth-card.wide-card { max-width: 720px; }
.auth-card h1 { font-size: 22px; margin-bottom: 4px; }
.muted { color: #777; font-size: 13px; margin-bottom: 14px; }
.center { text-align: center; margin-top: 14px; }

.auth-card label, .admin-form label {
  display: block; font-size: 12px; font-weight: 600; color: #444; margin: 12px 0 4px;
}
.auth-card input, .auth-card textarea, .admin-form input {
  width: 100%; padding: 10px 12px;
  border: 1px solid #ddd; border-radius: 7px; font-size: 14px;
  font-family: inherit;
}
.auth-card input:focus, .admin-form input:focus { outline: 2px solid #0B2A4A33; border-color: #0B2A4A; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* ===== Dashboard ===== */
.dash-head {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; margin-bottom: 16px;
}
.dash-head h1 { font-size: 24px; }
.statrow { display: flex; gap: 8px; flex-wrap: wrap; }
.stat { padding: 6px 13px; border-radius: 20px; font-size: 13px; background: #e3e8f0; }
.stat.transit { background: #E42D4F; color: #fff; }
.stat.delivered { background: #2ecc71; color: #fff; }

.card {
  background: #fff; border-radius: 12px; padding: 20px 24px;
  margin-bottom: 18px; box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.card h2 { font-size: 17px; margin-bottom: 6px; }
.hint { font-size: 13px; color: #666; margin-bottom: 14px; }

#dropZone {
  display: block; border: 2px dashed #0B2A4A; border-radius: 10px;
  padding: 26px; text-align: center; cursor: pointer; transition: .2s; background: #F2F7FC;
}
#dropZone:hover, #dropZone.dragover { background: #e8f0fe; border-color: #E42D4F; }
.drop-inner .icon { font-size: 38px; }
#dropText { margin-top: 8px; font-size: 14px; color: #444; }
.upload-actions { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.msg { margin-top: 12px; font-size: 13px; }
.msg.ok { color: #2ecc71; }
.msg.err { color: #E42D4F; }
.msg.warn { color: #d68910; }

.toolbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar input {
  flex: 1; min-width: 200px; padding: 10px 14px;
  border: 1px solid #ddd; border-radius: 8px; font-size: 14px;
}
.toolbar select { padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; background: #fff; }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; vertical-align: top; border-right: 1px solid #eef1f6; }
th:last-child, td:last-child { border-right: none; }
th { background: #F2F7FC; font-weight: 600; color: #0B2A4A; }
#shipTable td:nth-child(1) { min-width: 108px; }
#shipTable td:nth-child(2) { min-width: 72px; }
#shipTable td:nth-child(3) { min-width: 150px; }
tbody tr:hover { background: #fafbfc; }
.tid { font-weight: 700; font-family: Consolas, monospace; color: #0B2A4A; white-space: nowrap; }
.addr { color: #777; font-size: 12px; margin-top: 2px; max-width: 220px; }
.days-left { font-size: 11px; color: #999; display: block; margin-top: 3px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* ---- Status flow timeline (track + POD) ---- */
.flow-wrap { margin-top: 18px; border: 1px solid #dbe2ea; border-radius: 10px; padding: 14px 16px; background: #fff; }
.flow-wrap h3 {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: #2563eb;
}
.flow { list-style: none; margin: 0; padding: 0; }
.flow li { position: relative; padding: 0 0 18px 26px; }
.flow li:last-child { padding-bottom: 0; }
.flow li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  bottom: -6px;
  width: 2px;
  background: #e5e7eb;
}
.flow li:last-child::before { display: none; }
.flow .dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d1d5db;
}
.flow li.done .dot { background: #16a34a; border-color: #16a34a; }
.flow li.done::before { background: #16a34a; }
.flow .name { font-weight: 700; font-size: 14px; }
.flow li:not(.done) .name { color: #9ca3af; }
.flow .when { font-size: 12px; color: #6b7280; margin-left: 8px; }
.flow .note { font-size: 12px; color: #6b7280; }

/* ---- Modal (POD popup) ---- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal-box {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 720px;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
  overflow: hidden;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
}
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-x {
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: #6b7280;
  padding: 4px 8px;
  border-radius: 6px;
}
.modal-x:hover { background: #f1f5f9; }
.modal-body { padding: 16px 18px; }
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid #e5e7eb;
  background: #f8fafc;
}
.pod-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.pod-top b { font-size: 16px; }
.pod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px; }
.pod-grid b { font-size: 14px; }
.pod-box { border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 13px; margin-top: 14px; }
.pod-box h4 {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: #2563eb;
}
.pod-box .flow { margin-top: 4px; }
.charge { color: #15803d; }
.badge.prepaid { background: #dcfce7; color: #15803d; }
.badge.cod { background: #fef3c7; color: #b45309; }
select { padding: 9px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; width: 100%; }
.empty { text-align: center; padding: 24px; color: #999; }
.pw-form input { width: 130px; padding: 5px 8px; font-size: 12px; border: 1px solid #ddd; border-radius: 5px; }
.admin-form { margin-top: 10px; }

/* ===== Manual entry + API (dashboard) ===== */
.manual-box { margin-top: 10px; border: 1px solid #e3e8f0; border-radius: 10px; padding: 0 16px; }
.manual-box[open] { padding-bottom: 16px; }
.manual-box summary {
  cursor: pointer; font-weight: 600; color: #0B2A4A;
  padding: 13px 0; font-size: 14px; list-style: none;
}
.manual-box summary::-webkit-details-marker { display: none; }
.manual-box summary::before { content: "â–¸ "; }
.manual-box[open] summary::before { content: "â–¾ "; }

.manual-form label { display: block; font-size: 12px; font-weight: 600; color: #444; margin: 12px 0 4px; }
.manual-form input, .manual-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #ddd;
  border-radius: 7px; font-size: 14px; font-family: inherit;
}
.manual-form input:focus, .manual-form textarea:focus { outline: 2px solid #0B2A4A33; border-color: #0B2A4A; }
.manual-form .btn { margin-top: 14px; }

.apikey-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.apikey-row input {
  flex: 1; min-width: 240px; padding: 10px 12px; border: 1px solid #ddd;
  border-radius: 7px; font-family: Consolas, monospace; font-size: 13px; background: #F2F7FC;
}
.apidocs h4 { font-size: 13px; color: #0B2A4A; margin: 14px 0 5px; }
.apidocs pre {
  background: #0A2340; color: #e6edf3; padding: 12px 14px; border-radius: 8px;
  font-size: 12px; font-family: Consolas, monospace; overflow-x: auto; line-height: 1.6;
}

/* ===== Legal ===== */
.legal {
  background: #fff; border-radius: 12px; padding: 26px 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05); line-height: 1.7;
}
.legal h2 { font-size: 16px; margin: 18px 0 6px; }
.legal p { color: #555; font-size: 14px; }

/* ===== Invoice view ===== */
.inv-card { padding: 26px 28px; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; border-bottom: 2px solid #111827; padding-bottom: 12px; flex-wrap: wrap; }
.inv-head h2 { font-size: 19px; margin: 0 0 6px; }
.inv-head p { margin: 2px 0; font-size: 13px; }
.inv-title { font-size: 17px; font-weight: 700; letter-spacing: 1px; color: #111827; white-space: nowrap; }
.inv-meta { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #d1d5db; margin-top: 14px; }
.inv-meta > div { padding: 8px 10px; border-right: 1px solid #d1d5db; }
.inv-meta > div:last-child { border-right: 0; }
.inv-meta span { display: block; font-size: 11px; color: #6b7280; margin-bottom: 3px; }
.inv-meta b { font-size: 13px; }
.inv-buyer { border: 1px solid #d1d5db; padding: 10px 12px; margin-top: 12px; }
.inv-buyer span { display: block; font-size: 11px; color: #2563eb; font-weight: 700; margin-bottom: 4px; letter-spacing: .5px; }
.inv-buyer p { margin: 3px 0 0; font-size: 13px; color: #374151; }
.inv-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13px; }
.inv-table th { background: #e5e7eb; border: 1px solid #9ca3af; padding: 8px 8px; font-size: 11.5px; text-align: center; }
.inv-table td { border: 1px solid #d1d5db; padding: 7px 8px; }
.inv-table td.c, .inv-table th.c { text-align: center; }
.inv-table td.r, .inv-table th.r { text-align: right; }
.inv-table tr.total td { background: #e5e7eb; font-weight: 700; font-size: 14px; }
.inv-words { margin: 14px 0 0; font-size: 13px; }
.inv-bank { margin-top: 14px; font-size: 13px; }
.inv-bank p { margin: 4px 0 0; color: #374151; }
.inv-foot { display: flex; justify-content: space-between; gap: 20px; margin-top: 26px; align-items: flex-start; flex-wrap: wrap; }
.inv-foot .sign { text-align: right; min-width: 240px; }
.sign-line { border-top: 1px solid #111827; margin-bottom: 6px; }
.sign-space { height: 44px; font-size: 12px; color: #6b7280; padding-top: 22px; }
.sign-desig { font-size: 12px; color: #6b7280; letter-spacing: .5px; }

/* ===== Invoice template picker ===== */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; margin: 8px 0 14px; }
.tpl-card { border: 2px solid #e5e7eb; border-radius: 10px; padding: 10px; cursor: pointer; background: #fff; transition: .15s; }
.tpl-card:hover { border-color: #93c5fd; }
.tpl-card input { display: none; }
.tpl-card.sel { border-color: #2563eb; background: #eff6ff; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.tpl-thumb { height: 92px; border-radius: 6px; overflow: hidden; background: #f8fafc; border: 1px solid #e5e7eb; margin-bottom: 8px; }
.tpl-thumb .bar { height: 18px; }
.tpl-thumb .ln { height: 5px; margin: 6px 8px; border-radius: 3px; background: #e5e7eb; }
.tpl-thumb .ln.s { width: 55%; }
.tpl-thumb .row { display: flex; gap: 4px; margin: 6px 8px; }
.tpl-thumb .cell { flex: 1; height: 9px; border-radius: 2px; background: #e5e7eb; }
.tpl-name { font-weight: 700; font-size: 13px; }
.tpl-desc { font-size: 11.5px; color: #6b7280; margin-top: 2px; }
.tpl-preview { font-size: 11.5px; display: inline-block; margin-top: 6px; color: #2563eb; }
.sig-box { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.sig-preview { width: 220px; height: 74px; border: 1px dashed #cbd5e1; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #fff; overflow: hidden; }
.sig-preview img { max-width: 100%; max-height: 100%; }
.sig-preview span { font-size: 11.5px; color: #9ca3af; }

@media (max-width: 700px) {
  .container { padding: 12px; }
  .card { padding: 16px; }
  .hero { padding: 36px 18px; }
  .hero h1 { font-size: 25px; }
  .inv-meta { grid-template-columns: 1fr 1fr; }
}

/* ---------- Onboarding (contact form + admin requests) ---------- */
.hp-wrap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.req-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.req-card {
  border: 1px solid #e2e8f0;
  border-left: 4px solid #E42D4F;
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}
.req-card.done { border-left-color: #16a34a; opacity: .72; background: #f9fafb; }
.req-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.req-head b { font-size: 15px; }
.req-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 12.5px; color: #475569; }
.req-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.onboard-form input { padding: 7px 9px; border: 1px solid #cbd5e1; border-radius: 7px; font-size: 13px; }
.onboard-form input[name="username"] { width: 170px; }
.onboard-form input[name="password"] { width: 170px; }

/* ============ Page hero (merchant + admin) ============ */
.page-hero {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, #0B2A4A, #0A2340 60%, #1b2a4a);
  color: #fff; border-radius: 14px; padding: 22px 26px;
  margin-bottom: 16px;
  box-shadow: 0 6px 22px rgba(15,52,96,.25);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -60px; top: -70px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(233,69,96,.35), transparent 65%);
}
.page-hero-main { position: relative; z-index: 1; }
.page-hero .eyebrow {
  font-size: 11px; letter-spacing: 1.6px; font-weight: 700;
  color: #9fb3d1; text-transform: uppercase; margin-bottom: 6px;
}
.page-hero h1 { font-size: 26px; line-height: 1.15; margin-bottom: 5px; }
.page-hero p { color: #cfdcf0; font-size: 14px; }
.page-hero p b { color: #fff; }
.page-hero .dot { color: #7f93b3; margin: 0 4px; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.page-hero .btn { background: #E42D4F; }
.page-hero .btn.ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.page-hero .btn.ghost:hover { background: rgba(255,255,255,.2); }

/* ============ KPI cards ============ */
.kpi-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px; margin-bottom: 18px;
}
.kpi-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 980px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .kpi-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.kpi {
  background: #fff; border-radius: 12px; padding: 15px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  border-left: 4px solid #0B2A4A;
}
.kpi-ic {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; background: #eef2f9;
}
.kpi-txt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.kpi-txt b { font-size: 24px; color: #0B2A4A; }
.kpi-txt span { font-size: 12px; color: #6b7890; margin-top: 3px; }
.kpi-transit { border-left-color: #E42D4F; }
.kpi-transit .kpi-ic { background: #fdecef; }
.kpi-out { border-left-color: #f0a500; }
.kpi-out .kpi-ic { background: #fdf4e3; }
.kpi-delivered { border-left-color: #16a34a; }
.kpi-delivered .kpi-ic { background: #e8f8ee; }
.kpi-requests { border-left-color: #7c3aed; }
.kpi-requests .kpi-ic { background: #f1eafe; }

/* ============ Card head + segmented tabs ============ */
.card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 14px; flex-wrap: wrap; margin-bottom: 14px;
}
.card-head h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 3px; }
.count-pill {
  background: #eef2f9; color: #0B2A4A; font-size: 12px; font-weight: 700;
  padding: 2px 9px; border-radius: 20px;
}
.seg { display: inline-flex; background: #eef2f9; border-radius: 10px; padding: 3px; gap: 3px; }
.seg-btn {
  border: none; background: transparent; color: #46536b; font-size: 13px;
  font-weight: 600; padding: 7px 13px; border-radius: 8px; cursor: pointer;
  font-family: inherit; white-space: nowrap;
}
.seg-btn:hover { color: #0B2A4A; }
.seg-btn.active { background: #fff; color: #0B2A4A; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.pane { display: none; }
.pane.active { display: block; animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

/* ============ Compact upload ============ */
#dropZone { padding: 22px 18px; }
.drop-inner .icon { font-size: 30px; }
#dropText { margin-top: 6px; font-size: 14px; color: #444; display: block; }
#dropZone small { display: block; margin-top: 4px; font-size: 12px; color: #7b879c; }
.excel-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; align-items: start; }
.excel-side { display: flex; flex-direction: column; gap: 10px; }
.mini-details { background: #F2F7FC; border: 1px solid #e5eaf2; border-radius: 9px; padding: 10px 13px; }
.mini-details summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #0B2A4A; }
.mini-details summary::-webkit-details-marker { display: none; }
.mini-details summary::before { content: "\25B8  "; }
.mini-details[open] summary::before { content: "\25BE  "; }
.mini-details .hint { margin: 8px 0 0; line-height: 1.6; }

/* ============ Table toolbar ============ */
.table-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.table-tools input {
  flex: 1; min-width: 220px; padding: 10px 13px;
  border: 1px solid #dbe2ec; border-radius: 9px; font-size: 14px; font-family: inherit;
}
.table-tools select {
  padding: 10px 13px; border: 1px solid #dbe2ec; border-radius: 9px;
  font-size: 14px; background: #fff; font-family: inherit;
}
.table-tools input:focus, .table-tools select:focus { outline: 2px solid #0B2A4A22; border-color: #0B2A4A; }

/* Date range filter */
.table-tools .date-filter {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  background: #fff; border: 1px solid #dbe2ec; border-radius: 9px; padding: 4px 8px;
}
.table-tools .date-filter > span { font-size: 12px; color: #5A7290; font-weight: 600; white-space: nowrap; }
.table-tools .date-filter input {
  flex: 0 0 auto; width: 136px; min-width: 0;
  padding: 6px 8px; border: 1px solid #e3e8f0; border-radius: 7px; font-size: 13px;
}
.table-tools .date-filter .btn { padding: 6px 10px; }

/* Pagination */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pager-info { font-size: 13px; color: #5A7290; }
.pager-info b { color: #0B2A4A; }
.pager-btns { display: flex; align-items: center; gap: 8px; }
.pager-page { font-size: 13px; font-weight: 700; color: #0B2A4A; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

@media (max-width: 700px) {
  .table-tools .date-filter { width: 100%; }
  .table-tools .date-filter input { flex: 1 1 0; width: auto; }
}

/* ============ Admin ============ */
.admin-hero { background: linear-gradient(135deg, #0A2340, #0B2A4A 55%, #22335c); }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.admin-grid .card { margin-bottom: 18px; }
.admin-details summary {
  cursor: pointer; font-size: 16px; font-weight: 700; color: #0B2A4A;
  padding: 2px 0; list-style: none;
}
.admin-details summary::-webkit-details-marker { display: none; }
.admin-details summary::before { content: "\25B8  "; color: #E42D4F; }
.admin-details[open] summary::before { content: "\25BE  "; }
.admin-details[open] summary { margin-bottom: 12px; }

@media (max-width: 900px) {
  .excel-grid, .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .page-hero { padding: 18px; }
  .page-hero h1 { font-size: 22px; }
  .kpi-txt b { font-size: 21px; }
}

/* Table header polish */
#shipTable th { white-space: nowrap; }
.excel-side .btn { align-self: flex-start; }

/* ============ Home: trust strip / services / steps / network ============ */
.hero-trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; color: #A9C1DB; font-size: 13px; font-weight: 600; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.hero-stats > div {
  background: #fff; border: 1px solid #DCE6F0; border-radius: 14px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 3px;
  box-shadow: 0 8px 22px rgba(11,42,74,.05);
}
.hero-stats b { font-size: 24px; color: #0B2A4A; letter-spacing: -.5px; }
.hero-stats span { font-size: 12.5px; color: #5A7290; }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card {
  background: #fff; border: 1px solid #DCE6F0; border-radius: 16px; padding: 24px 22px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(11,42,74,.09); border-color: #C9DAEA; }
.svc-ico {
  width: 50px; height: 50px; border-radius: 13px; background: #F2F7FC;
  display: grid; place-items: center; font-size: 22px; margin-bottom: 14px;
}
.svc-card h3 { margin: 0 0 8px; font-size: 16.5px; color: #0B2A4A; }
.svc-card p { margin: 0; font-size: 14px; line-height: 1.6; color: #5A7290; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  position: relative; background: #fff; border: 1px solid #DCE6F0; border-radius: 16px;
  padding: 24px 22px;
}
.step-no {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #FF6B86, #E42D4F);
  color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 14px;
  box-shadow: 0 6px 14px rgba(228,45,79,.25);
}
.step h3 { margin: 0 0 8px; font-size: 16.5px; color: #0B2A4A; }
.step p { margin: 0; font-size: 14px; line-height: 1.6; color: #5A7290; }

.network-band {
  margin-top: 34px;
  background: linear-gradient(150deg, #0F3257 0%, #0A2340 100%);
  border-radius: 22px; padding: 40px 44px;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center;
  box-shadow: 0 22px 54px rgba(11,42,74,.20);
}
.network-band .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: #CFE0F2; font-size: 12.5px; font-weight: 600; letter-spacing: .4px;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 16px;
}
.network-band .eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #37D399; display: inline-block; }
.network-band h2 { color: #fff; font-size: 28px; line-height: 1.2; letter-spacing: -.5px; margin-bottom: 12px; }
.network-band p { color: #B9CDE2; font-size: 15px; line-height: 1.65; }
.network-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.network-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px; padding: 18px 22px;
}
.network-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.10);
  font-size: 13.5px; color: #CFE0F2;
}
.network-row:last-child { border-bottom: none; }
.network-row b { color: #fff; text-align: right; }

.cta-band {
  margin-top: 30px; background: #fff; border: 1px solid #DCE6F0; border-radius: 18px;
  padding: 28px 32px; display: flex; justify-content: space-between; align-items: center;
  gap: 20px; flex-wrap: wrap; box-shadow: 0 14px 34px rgba(11,42,74,.06);
}
.cta-band h2 { font-size: 22px; color: #0B2A4A; margin-bottom: 6px; }
.cta-band p { color: #5A7290; font-size: 14px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============ Shipping charge invoice strip ============ */
.invoice-strip {
  display: grid; grid-template-columns: 1.5fr .8fr; gap: 24px; align-items: center;
  background: linear-gradient(140deg, #FFFFFF, #F7FAFD);
  border-left: 4px solid #E42D4F;
}
.inv-eyebrow { font-size: 11px; letter-spacing: 1.4px; font-weight: 800; color: #E42D4F; margin-bottom: 6px; }
.invoice-strip h2 { font-size: 20px; color: #0B2A4A; margin-bottom: 6px; }
.inv-totals { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 14px; }
.inv-totals > div { display: flex; flex-direction: column; gap: 3px; }
.inv-totals span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; color: #7488A0; font-weight: 600; }
.inv-totals b { font-size: 18px; color: #0B2A4A; }
.inv-totals .grand b { color: #E42D4F; font-size: 22px; }
.inv-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.inv-actions .hint { font-size: 12px; color: #7488A0; line-height: 1.5; }

@media (max-width: 900px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .network-band { grid-template-columns: 1fr; padding: 30px 26px; }
  .invoice-strip { grid-template-columns: 1fr; }
  .cta-band { align-items: flex-start; }
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .network-band h2 { font-size: 23px; }
  .cta-band { padding: 22px; }
}

/* ============ Admin: onboarding requests (Today / Earlier) ============ */
.req-section-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 2px 0 4px; }
.req-section-head h3 { font-size: 15px; color: #0B2A4A; display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.req-section-head .hint { margin: 0 !important; }
.req-earlier { margin-top: 20px; border-top: 1px solid #DCE6F0; padding-top: 14px; }
.req-earlier > summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: #0B2A4A;
}
.req-earlier > summary::-webkit-details-marker { display: none; }
.req-earlier > summary::before { content: "\25B8"; color: #E42D4F; font-weight: 800; }
.req-earlier[open] > summary::before { content: "\25BE"; }
.req-earlier .req-list { margin-top: 12px; }

/* Shipping invoices: unpaid stat + status chips */
.stat.out { background: #F59E0B; color: #fff; }
