/* ChinaBuyPro — shared styles for order tracking pages (matches main site). */
:root {
  --red: #e8333a;
  --red-dark: #c0272d;
  --gold: #f5a623;
  --dark: #1a1a2e;
  --gray: #6b7280;
  --light: #f8fafc;
  --white: #ffffff;
  --border: #e5e7eb;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --green: #25d366;
  --green-dark: #1da851;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: #1f2937;
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--red); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- NAV ---------- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { font-size: 1.4rem; font-weight: 800; color: var(--red); letter-spacing: -0.5px; }
.logo span { color: var(--dark); }
.logo a { text-decoration: none; color: inherit; }
.nav-links { list-style: none; display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--gray); text-decoration: none; font-weight: 500; font-size: .9rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--red); }
.nav-cta {
  background: var(--red); color: #fff !important; padding: 9px 22px;
  border-radius: 30px; font-weight: 600; font-size: .85rem;
  text-decoration: none; transition: background .2s;
}
.nav-cta:hover { background: var(--red-dark); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); margin: 5px 0; border-radius: 2px; }

/* ---------- Page header ---------- */
.page-head { padding: 56px 0 28px; text-align: center; }
.page-head h1 { font-size: 2.1rem; font-weight: 800; color: var(--dark); letter-spacing: -0.5px; }
.page-head p { color: var(--gray); margin-top: 10px; font-size: 1.02rem; }
.eyebrow {
  display: inline-block; background: var(--light); color: var(--red);
  font-size: .78rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 14px; border: 1px solid var(--border);
}

/* ---------- Card ---------- */
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px; margin-bottom: 24px;
}
.card h2 { font-size: 1.15rem; color: var(--dark); margin-bottom: 16px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--dark); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .95rem; color: #1f2937;
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
  background: #fff; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(232, 51, 58, .12);
}
.field textarea { resize: vertical; min-height: 84px; }
.hint { font-size: .78rem; color: var(--gray); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  border: none; border-radius: 30px; padding: 13px 28px; text-decoration: none;
  transition: background .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline { background: #fff; color: var(--dark); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-sm { padding: 7px 16px; font-size: .82rem; }
.btn-block { width: 100%; }

/* ---------- Alerts ---------- */
.alert { border-radius: 12px; padding: 13px 16px; font-size: .9rem; margin-bottom: 18px; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.alert-info { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ---------- Result / status ---------- */
.result-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.badge {
  display: inline-block; font-size: .8rem; font-weight: 700; padding: 5px 14px;
  border-radius: 20px; background: var(--light); color: var(--dark); border: 1px solid var(--border);
}
.badge.live { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.badge.done { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.badge.cancel { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 18px 0; }
.meta-item .k { font-size: .75rem; text-transform: uppercase; letter-spacing: .5px; color: var(--gray); font-weight: 700; }
.meta-item .v { font-size: .95rem; color: var(--dark); font-weight: 600; word-break: break-word; }

.progress-wrap { margin: 8px 0 4px; }
.progress-bar { height: 10px; background: var(--light); border-radius: 6px; overflow: hidden; border: 1px solid var(--border); }
.progress-bar > div { height: 100%; background: linear-gradient(90deg, var(--red), var(--gold)); border-radius: 6px; transition: width .4s; }
.progress-label { font-size: .8rem; color: var(--gray); margin-top: 6px; text-align: right; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin-top: 8px; }
.timeline li { position: relative; padding: 0 0 22px 30px; border-left: 2px solid var(--border); margin-left: 8px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px;
  border-radius: 50%; background: #fff; border: 3px solid var(--border);
}
.timeline li.done::before { border-color: var(--red); background: var(--red); }
.timeline li.current::before { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 4px rgba(245, 166, 35, .2); }
.tl-status { font-weight: 700; color: var(--dark); font-size: .95rem; }
.tl-note { font-size: .88rem; color: #374151; }
.tl-time { font-size: .76rem; color: var(--gray); }

/* ---------- Spinner ---------- */
.spinner {
  width: 20px; height: 20px; border: 3px solid rgba(255, 255, 255, .4);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
.spinner.dark { border-color: rgba(0,0,0,.15); border-top-color: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }
.center-loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 40px; color: var(--gray); }

.hidden { display: none !important; }

/* ---------- Footer ---------- */
footer { background: var(--dark); color: rgba(255, 255, 255, .6); padding: 44px 24px 28px; margin-top: 40px; }
.footer-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 30px; margin-bottom: 28px; }
.footer-grid h4 { color: #fff; font-size: .9rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: rgba(255, 255, 255, .6); text-decoration: none; font-size: .86rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-brand span { color: var(--red); }
.footer-bottom { max-width: 1100px; margin: 0 auto; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; text-align: center; font-size: .84rem; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: block; }
  .form-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 1.7rem; }
}
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(26, 26, 46, .98); flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a { color: #fff; text-decoration: none; font-size: 1.15rem; font-weight: 600; }
.mobile-menu .close { position: absolute; top: 22px; right: 26px; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; }
