:root {
  --navy: #1a3668;
  --navy-light: #264a82;
  --red: #d0021b;
  --red-dark: #a20115;
  --blue: #4a90c4;
  --blue-dark: #357aab;
  --blue-pale: #eaf2f9;
  --gray-bg: #f7f8fc;
  --gray-100: #f1f3f7;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-600: #6b7280;
  --gray-900: #1a1a2e;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 12px;
  --transition: all 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--gray-bg);
  color: var(--gray-900);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-dark); }

header {
  background: var(--navy);
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo img { height: 44px; }
.logo h1 {
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

nav { display: flex; align-items: center; gap: 4px; }
nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}
nav a:hover, nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
nav .nav-cta {
  background: var(--red);
  color: var(--white);
  padding: 8px 18px;
  margin-left: 8px;
}
nav .nav-cta:hover { background: var(--red-dark); }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

.hero {
  background:
    linear-gradient(135deg, rgba(26,54,104,0.92), rgba(74,144,196,0.85)),
    url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?w=1600&q=80');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  padding: 140px 20px 120px;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--gray-bg), transparent);
}

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 70px 20px 60px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge, .page-hero .hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero h2 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.page-hero h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}
.hero p, .page-hero p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(208,2,27,0.35);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(208,2,27,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.stats-bar {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 50px 20px;
  max-width: 900px;
  margin: -40px auto 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}
.stat { text-align: center; }
.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section { padding: 90px 20px; }
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}
.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-header h3 {
  font-size: 34px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.section-header p {
  margin-top: 14px;
  font-size: 16px;
  color: var(--gray-600);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.service-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--blue));
  transform: scaleX(0);
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 26px;
}
.service-card h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--gray-900);
}
.service-card p { font-size: 15px; color: var(--gray-600); line-height: 1.7; }

.why-section { background: var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.why-card { text-align: center; padding: 24px 16px; }
.why-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 28px;
}
.why-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--gray-900); }
.why-card p { font-size: 14px; color: var(--gray-600); }

.form-container {
  background: var(--white);
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 36px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}
.form-container > p {
  color: var(--gray-600);
  margin-bottom: 24px;
  font-size: 15px;
}
.form-group { margin-bottom: 16px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 6px;
}
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1.5px solid var(--gray-300);
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--white);
  color: var(--gray-900);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(74,144,196,0.18);
}
textarea { resize: vertical; min-height: 120px; }

.btn-submit {
  width: 100%;
  padding: 13px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  margin-top: 6px;
}
.btn-submit:hover:not(:disabled) {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(26,54,104,0.3);
}
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 70px 20px;
}
.cta-banner h3 { font-size: 30px; font-weight: 800; margin-bottom: 14px; }
.cta-banner p {
  font-size: 16px;
  opacity: 0.85;
  max-width: 550px;
  margin: 0 auto 28px;
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 34px;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(208,2,27,0.35);
}
.btn-cta:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(208,2,27,0.45);
}

footer {
  background: var(--navy);
  color: var(--white);
  padding: 60px 20px 26px;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--white);
}
.footer-col p, .footer-col a {
  font-size: 14px;
  line-height: 2;
  color: rgba(255,255,255,0.65);
}
.footer-col a { text-decoration: none; display: block; transition: var(--transition); }
.footer-col a:hover { color: var(--blue); }
.footer-brand h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 14px;
}
.footer-brand .rc-badge {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}
.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.75); }

/* Tracking result card */
.track-result {
  max-width: 720px;
  margin: 36px auto 0;
  padding: 0 20px;
}
.track-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}
.track-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 22px;
}
.track-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-600);
}
.track-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.3px;
  margin-top: 4px;
}
.status-pill {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.status-pill.status-active { background: var(--blue-pale); color: var(--blue-dark); }
.status-pill.status-delivered { background: #e1f5e6; color: #0a7a2a; }
.track-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}
.track-meta > div > div:last-child {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-top: 4px;
}
.track-notes {
  background: var(--gray-100);
  padding: 14px 16px;
  border-radius: 8px;
  margin-top: 10px;
}
.track-notes p { margin-top: 4px; font-size: 14px; color: var(--gray-900); }
.track-updated {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-200);
  text-align: right;
  font-size: 13px;
  color: var(--gray-600);
}
.track-error {
  max-width: 640px;
  margin: 24px auto 0;
  padding: 16px 20px;
  border-radius: 10px;
  background: #fdecec;
  color: var(--red-dark);
  font-weight: 500;
  text-align: center;
}

.timeline { list-style: none; padding-left: 0; margin: 0; }
.timeline-item {
  position: relative;
  padding: 0 0 22px 34px;
  border-left: 2px solid var(--gray-200);
  margin-left: 8px;
}
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -9px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gray-300);
}
.timeline-item.completed { border-left-color: var(--blue); }
.timeline-item.completed .timeline-dot { background: var(--blue); border-color: var(--blue); }
.timeline-item.completed:last-of-type .timeline-dot { background: #0a7a2a; border-color: #0a7a2a; }
.timeline-title { font-weight: 600; color: var(--gray-900); font-size: 15px; }
.timeline-date { font-size: 13px; color: var(--gray-600); margin-top: 2px; }

/* Admin */
.admin-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}
.admin-banner {
  background: #fff4d6;
  border: 1px solid #f0d05a;
  color: #6b4e00;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 14px;
}
.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 24px;
}
.admin-tab {
  padding: 12px 18px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  margin-bottom: -2px;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.admin-tab:hover { color: var(--navy); }
.admin-tab.active { color: var(--navy); border-bottom-color: var(--red); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary-sm {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary-sm:hover { background: var(--red-dark); }
.btn-secondary-sm {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--gray-300);
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-secondary-sm:hover { border-color: var(--navy); }
.btn-danger-sm {
  background: var(--white);
  color: var(--red);
  border: 1.5px solid var(--red);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}
.btn-danger-sm:hover { background: var(--red); color: var(--white); }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}
.admin-table th, .admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
}
.admin-table th {
  background: var(--gray-100);
  font-weight: 700;
  color: var(--gray-900);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--gray-100); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 1000;
  overflow-y: auto;
  padding: 40px 16px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 640px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
}
.modal h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--navy);
}
.modal .modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}
.checkbox-list {
  display: grid;
  gap: 8px;
  background: var(--gray-100);
  padding: 14px;
  border-radius: 8px;
}
.checkbox-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
}
.checkbox-list input[type="checkbox"] { width: auto; margin: 0; }

.login-wrap {
  max-width: 420px;
  margin: 80px auto;
  padding: 0 20px;
}
.login-card {
  background: var(--white);
  padding: 36px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}
.login-card h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.login-card p {
  color: var(--gray-600);
  font-size: 14px;
  margin-bottom: 22px;
}
.inline-error {
  background: #fdecec;
  color: var(--red-dark);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 12px;
  font-weight: 500;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.blog-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  cursor: pointer;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.blog-card h4 { font-size: 19px; color: var(--navy); margin-bottom: 10px; }
.blog-card p { font-size: 14px; color: var(--gray-600); margin-bottom: 14px; }
.blog-meta { font-size: 12px; color: var(--gray-600); }
.blog-post {
  max-width: 760px;
  margin: 40px auto;
  background: var(--white);
  padding: 48px 44px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}
.blog-post h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.25;
}
.blog-post .blog-meta { margin-bottom: 24px; font-size: 13px; color: var(--gray-600); }
.blog-post .blog-body { font-size: 16px; line-height: 1.85; white-space: pre-wrap; color: var(--gray-900); }
.blog-post .back-link {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--blue-dark);
  text-decoration: none;
  font-weight: 500;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-600);
  font-size: 15px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { gap: 30px; padding: 36px 20px; }
}
@media (max-width: 768px) {
  header { padding: 0 20px; }
  .logo h1 { font-size: 13px; }
  nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px 20px;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  }
  nav.active { display: flex; }
  nav a { width: 100%; padding: 12px 16px; text-align: left; }
  nav .nav-cta { margin-left: 0; text-align: center; margin-top: 8px; }
  .mobile-toggle { display: flex; }
  .hero { padding: 100px 20px 80px; }
  .hero h2 { font-size: 32px; }
  .page-hero h2 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .stats-bar { flex-direction: column; gap: 24px; margin: -30px 20px 0; }
  .section { padding: 60px 20px; }
  .section-header h3 { font-size: 26px; }
  .form-container { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-banner h3 { font-size: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .track-card { padding: 22px; }
  .track-number { font-size: 18px; }
  .admin-table { font-size: 13px; }
  .admin-table th, .admin-table td { padding: 10px 12px; }
  .blog-post { padding: 32px 22px; }
}
