:root {
  --bg: #0a0a0f;
  --bg-2: #121219;
  --card: #1a1a24;
  --card-2: #20202c;
  --border: #2a2a38;
  --text: #f5f5f7;
  --muted: #9a9ab0;
  --accent: #ff3b30;
  --accent-2: #ff6b35;
  --green: #34c759;
  --blue: #0a84ff;
  --gold: #ffd60a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- NAVBAR ---------- */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(10,10,15,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.brand .logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; font-size: 18px;
  box-shadow: 0 4px 14px rgba(255,59,48,.4);
}
.brand b { color: var(--accent); }
.nav-links { display: flex; gap: 26px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { background: var(--accent); color: #fff; padding: 9px 18px; border-radius: 9px; font-weight: 700; font-size: 14px; transition: transform .15s, box-shadow .2s; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255,59,48,.45); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 90px 28px 70px;
  text-align: center;
  background:
    radial-gradient(900px 400px at 50% -10%, rgba(255,59,48,.18), transparent 60%),
    radial-gradient(600px 300px at 80% 20%, rgba(10,132,255,.12), transparent 60%);
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px; opacity: .12; mask-image: radial-gradient(circle at 50% 30%, #000, transparent 75%);
}
.hero-content { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent-2); border: 1px solid var(--border); padding: 6px 14px; border-radius: 30px; margin-bottom: 22px;
}
.hero h1 { font-size: 54px; line-height: 1.08; font-weight: 800; letter-spacing: -1px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 18px; margin: 20px 0 32px; }

.track-search {
  display: flex; max-width: 560px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
}
.track-search input { flex: 1; background: transparent; border: none; padding: 16px 18px; color: var(--text); font-size: 15px; outline: none; }
.track-search input::placeholder { color: var(--muted); }
.track-search button { background: var(--accent); color: #fff; border: none; padding: 0 26px; font-weight: 700; cursor: pointer; font-size: 15px; transition: background .2s; }
.track-search button:hover { background: #e03228; }

/* ---------- MARQUEE / TRUST BAR ---------- */
.trust-bar { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; padding: 26px 20px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.trust-bar .item { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 500; }
.trust-bar .item b { color: var(--text); font-size: 22px; }

/* ---------- SECTIONS ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 70px 28px; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .tag { color: var(--accent-2); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.section-head h2 { font-size: 38px; font-weight: 800; letter-spacing: -.5px; margin-top: 8px; }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 16px; }

/* ---------- BANNER / POSTER ---------- */
.banner {
  border-radius: var(--radius); overflow: hidden; position: relative;
  background: linear-gradient(120deg, #1c1c28, #2a1320);
  border: 1px solid var(--border); margin-bottom: 26px; display: flex; align-items: center; gap: 24px; padding: 34px;
}
.banner.alt { background: linear-gradient(120deg, #10202c, #1a2a3a); }
.banner .b-content { flex: 1; }
.banner .b-badge { display: inline-block; background: var(--gold); color: #1a1a00; font-weight: 800; font-size: 12px; padding: 4px 10px; border-radius: 6px; margin-bottom: 12px; }
.banner h3 { font-size: 28px; font-weight: 800; }
.banner p { color: var(--muted); margin: 10px 0 16px; }
.banner .b-percent { font-size: 56px; font-weight: 900; background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.banner .b-btn { display: inline-block; background: #fff; color: #111; font-weight: 700; padding: 11px 22px; border-radius: 9px; margin-top: 6px; }
.banner .b-emoji { font-size: 90px; opacity: .9; flex-shrink: 0; }

/* ---------- PRODUCT GRID ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s; position: relative;
}
.product:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
.product .p-img { height: 180px; display: grid; place-items: center; font-size: 64px; background: radial-gradient(circle at 50% 40%, var(--card-2), var(--bg-2)); }
.product .p-off { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 6px; }
.product .p-body { padding: 16px; }
.product .p-name { font-weight: 700; font-size: 15px; }
.product .p-desc { color: var(--muted); font-size: 12.5px; margin: 4px 0 12px; }
.product .p-price { display: flex; align-items: baseline; gap: 8px; }
.product .p-price .now { color: var(--text); font-weight: 800; font-size: 18px; }
.product .p-price .old { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.product .p-price .disc { color: var(--green); font-weight: 700; font-size: 13px; }
.product .p-cta { display: block; text-align: center; margin-top: 14px; background: var(--card-2); border: 1px solid var(--border); color: var(--text); padding: 10px; border-radius: 9px; font-weight: 700; font-size: 13px; transition: background .2s; }
.product .p-cta:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- CATEGORY PILLS ---------- */
.pills { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.pill { border: 1px solid var(--border); background: var(--card); color: var(--muted); padding: 9px 18px; border-radius: 30px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; }
.pill:hover, .pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- FEATURES ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.feature .f-ico { width: 50px; height: 50px; border-radius: 12px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; font-size: 24px; margin-bottom: 16px; }
.feature h4 { font-size: 18px; font-weight: 700; }
.feature p { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 20px; }
.stat { text-align: center; padding: 30px 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.stat .num { font-size: 44px; font-weight: 900; background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- TRACK PAGE ---------- */
.track-wrap { max-width: 1000px; margin: 0 auto; padding: 28px; }
.track-hero {
  border-radius: var(--radius); padding: 30px; margin-bottom: 24px; border: 1px solid var(--border);
  background: linear-gradient(120deg, #16161f, #20131c); position: relative; overflow: hidden;
}
.track-hero::after { content:''; position:absolute; right:-40px; top:-40px; width:200px; height:200px; background: radial-gradient(circle, rgba(255,59,48,.25), transparent 70%); }
.track-hero .th-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.track-hero .th-oid { font-size: 26px; font-weight: 800; }
.track-hero .th-oid span { color: var(--accent); }
.badge-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 30px; font-weight: 700; font-size: 13px; }
.badge-status.transit { background: rgba(255,107,53,.15); color: var(--accent-2); border: 1px solid rgba(255,107,53,.4); }
.badge-status.delivered { background: rgba(52,199,89,.15); color: var(--green); border: 1px solid rgba(52,199,89,.4); }
.badge-status .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.th-meta { color: var(--muted); font-size: 14px; margin-top: 14px; display: flex; gap: 24px; flex-wrap: wrap; }
.th-meta b { color: var(--text); }

#map { height: 400px; width: 100%; border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: 26px; z-index: 1; background: var(--card); }

.timeline { position: relative; padding-left: 44px; margin-top: 10px; }
.timeline::before { content:''; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 3px; background: var(--border); }
.tl-item { position: relative; padding: 0 0 26px; }
.tl-dot { position: absolute; left: -35px; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 3px solid var(--muted); }
.tl-item.done .tl-dot { border-color: var(--green); background: var(--green); }
.tl-item.current .tl-dot { border-color: var(--accent-2); background: var(--accent-2); box-shadow: 0 0 0 5px rgba(255,107,53,.25); }
.tl-city { font-weight: 700; font-size: 17px; }
.tl-status { color: var(--muted); font-size: 14px; }
.tl-time { font-size: 12px; color: #6a6a80; margin-top: 2px; }

/* ---------- ADMIN ---------- */
.admin-wrap { max-width: 820px; margin: 40px auto; padding: 0 24px; }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 22px; box-shadow: var(--shadow); }
.panel h2 { font-size: 20px; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.panel h2 .ic { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: grid; place-items: center; font-size: 17px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; color: var(--muted); }
input, textarea, select { width: 100%; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 14px; outline: none; transition: border-color .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; border: none; padding: 13px 22px; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 14px; transition: transform .15s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255,59,48,.4); }
.btn.green { background: var(--green); }
.btn.green:hover { box-shadow: 0 6px 18px rgba(52,199,89,.4); }
.btn.ghost { background: var(--card-2); border: 1px solid var(--border); }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > div { flex: 1; min-width: 200px; }
.checkrow { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.checkrow input { width: auto; }
.link-box { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px; font-size: 13px; word-break: break-all; margin-top: 14px; }
.link-box a { color: var(--accent-2); font-weight: 700; }
.muted { color: var(--muted); font-size: 13px; }
.notice { background: rgba(52,199,89,.12); border: 1px solid rgba(52,199,89,.4); color: var(--green); padding: 13px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.error-box { background: rgba(255,59,48,.12); border: 1px solid rgba(255,59,48,.4); color: #ff6b60; padding: 14px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }

/* multi location adder */
.loc-line { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 10px; flex-wrap: wrap; }
.loc-line input { margin: 0; }
.loc-line .city-i { flex: 1.2; }
.loc-line .stat-i { flex: 1.6; }
.loc-line .chk-i { width: auto; display: flex; align-items: center; gap: 6px; padding-bottom: 12px; }
.loc-line .rm { background: var(--card-2); border: 1px solid var(--border); color: var(--muted); width: 40px; height: 42px; border-radius: 10px; cursor: pointer; font-size: 18px; }
.loc-line .rm:hover { color: var(--accent); border-color: var(--accent); }

/* table */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 11px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.tbl th { color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: 1px; }
.tbl tr:hover td { background: var(--bg-2); }
.tbl a { color: var(--accent-2); font-weight: 700; }

/* ---------- FOOTER ---------- */
.footer { background: #07070b; border-top: 1px solid var(--border); padding: 56px 28px 30px; margin-top: 60px; }
.footer .cols { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer .f-about { color: var(--muted); font-size: 14px; max-width: 320px; margin-top: 14px; }
.footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin-bottom: 14px; }
.footer a { display: block; color: var(--text); opacity: .8; margin-bottom: 9px; font-size: 14px; }
.footer a:hover { opacity: 1; color: var(--accent-2); }
.footer .bottom { max-width: 1180px; margin: 36px auto 0; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 13px; }

@media (max-width: 820px) {
  .hero h1 { font-size: 36px; }
  .section-head h2 { font-size: 28px; }
  .nav-links { display: none; }
  .banner { flex-direction: column; text-align: center; }
  .banner .b-emoji { font-size: 64px; }
  #map { height: 300px; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .track-search { flex-direction: column; }
  .track-search button { padding: 14px; }
  .footer .cols { grid-template-columns: 1fr; }
}
