/* ==========================================================================
   VietSure Insurance - Design System
   Primary Navy #1B2A5C | Accent Green #7AC142
   ========================================================================== */

:root {
  --navy: #1B2A5C;
  --navy-dark: #121d40;
  --navy-light: #2c3f7c;
  --green: #7AC142;
  --green-dark: #5fa02f;
  --green-light: #e8f5dd;
  --white: #FFFFFF;
  --bg-soft: #F5F7FA;
  --text: #333333;
  --text-muted: #6b7280;
  --border: #e3e7ee;
  --warn: #E4572E;
  --warn-light: #fdeae4;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(27,42,92,0.08);
  --shadow-md: 0 10px 30px rgba(27,42,92,0.12);
  --shadow-lg: 0 20px 50px rgba(27,42,92,0.18);
  --container: 1200px;
  --font: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }
@media (max-width: 768px) { section { padding: 56px 0; } }

.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy .section-eyebrow { color: var(--green); }
.section-navy h2 { color: var(--white); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { color: var(--navy); font-weight: 800; line-height: 1.25; }
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { color: var(--text); }
.text-muted { color: var(--text-muted); }
.lead { font-size: 1.15rem; color: var(--text-muted); }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-eyebrow {
  display: inline-block; color: var(--green-dark); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; font-size: .8rem; margin-bottom: 10px;
}
.section-head h2 { margin-bottom: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 2px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--navy-dark); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-warn { background: var(--warn); color: var(--white); }
.btn-warn:hover { background: #c8451f; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500; background: var(--white);
  border-bottom: 1px solid var(--border); transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 24px; }
.header-logo img { height: 42px; }
.header-nav { display: flex; align-items: center; gap: 6px; }
.header-nav > ul { display: flex; align-items: center; gap: 4px; }
.header-nav > ul > li { position: relative; }
.header-nav > ul > li > a {
  display: flex; align-items: center; gap: 4px; padding: 12px 14px; font-weight: 600;
  color: var(--navy); border-radius: 8px; font-size: .95rem;
}
.header-nav > ul > li > a:hover { background: var(--bg-soft); color: var(--green-dark); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-hotline { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); font-size: .92rem; }
.header-hotline strong { color: var(--green-dark); font-size: 1.05rem; }
.header-burger { display: none; background: none; border: none; font-size: 1.6rem; color: var(--navy); }

/* Mega menu */
.mega-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 26px; width: 640px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 24px;
  opacity: 0; visibility: hidden; transition: all .2s ease; border: 1px solid var(--border);
}
.header-nav li:hover .mega-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-menu a { display: flex; gap: 12px; padding: 10px; border-radius: 10px; align-items: flex-start; }
.mega-menu a:hover { background: var(--bg-soft); }
.mega-menu .mm-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--green-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.mega-menu .mm-title { font-weight: 700; color: var(--navy); font-size: .92rem; display: block; }
.mega-menu .mm-desc { font-size: .78rem; color: var(--text-muted); }
.mega-menu .mm-viewall { grid-column: 1 / -1; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; text-align: center; font-weight: 700; color: var(--green-dark); }

/* ---------- Mobile nav ---------- */
@media (max-width: 980px) {
  .header-hotline span.hide-mobile, .header-nav { display: none; }
  .header-burger { display: block; }
  .header-nav.is-open {
    display: block; position: fixed; inset: 0; top: 70px; background: var(--white);
    padding: 20px; overflow-y: auto; z-index: 400;
  }
  .header-nav.is-open > ul { flex-direction: column; align-items: stretch; }
  .mega-menu { position: static; transform: none; box-shadow: none; width: 100%; grid-template-columns: 1fr; opacity: 1; visibility: visible; display: none; border: none; padding: 6px 0 6px 14px; }
  .header-nav.is-open li.is-open .mega-menu { display: grid; }
}

/* ---------- Emergency claim button ---------- */
.emergency-btn {
  position: fixed; right: 22px; bottom: 90px; z-index: 450; background: var(--warn); color: var(--white);
  padding: 12px 18px; border-radius: 999px; font-weight: 700; font-size: .82rem; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 8px;
}
.chat-widget {
  position: fixed; right: 22px; bottom: 22px; z-index: 450; width: 58px; height: 58px; border-radius: 50%;
  background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: var(--shadow-md); border: none;
}

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: var(--white); overflow: hidden; padding: 90px 0; }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(122,193,66,.18); color: var(--green); padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero p.lead { color: #cfd7ec; margin-bottom: 30px; }
.hero-badges { display: flex; gap: 22px; margin-top: 36px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: #d7deef; font-weight: 600; }
.hero-badge .dot { width: 34px; height: 34px; border-radius: 50%; background: rgba(122,193,66,.2); color: var(--green); display: flex; align-items: center; justify-content: center; }
.hero-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } .hero-media { order: -1; } }

/* ---------- Vector illustration blocks (replace photography placeholders) ---------- */
.illus-box {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--bg-soft), #eef2f8);
  background-image:
    radial-gradient(rgba(27,42,92,.08) 1.4px, transparent 1.4px),
    linear-gradient(135deg, var(--bg-soft), #eef2f8);
  background-size: 18px 18px, 100% 100%;
}
.illus-blob { position: absolute; border-radius: 50%; opacity: .5; }
.illus-blob-a { width: 70%; padding-bottom: 70%; background: var(--green); top: -22%; right: -16%; filter: blur(1px); opacity: .30; }
.illus-blob-b { width: 50%; padding-bottom: 50%; background: var(--navy-light); bottom: -16%; left: -12%; opacity: .24; }
.illus-ghost {
  position: absolute; width: 58%; padding-bottom: 58%; z-index: 1; opacity: .10; color: var(--navy); pointer-events: none;
}
.illus-ghost svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.illus-badge {
  position: relative; z-index: 2; width: 34%; aspect-ratio: 1/1; max-width: 130px; min-width: 64px;
  border-radius: 28%; background: var(--white); box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center; color: var(--navy);
}
.illus-badge svg { width: 52%; height: 52%; }
.illus-dot { position: absolute; border-radius: 50%; background: var(--green); z-index: 2; box-shadow: 0 0 0 5px rgba(122,193,66,.18); }
.illus-dot2 { position: absolute; border-radius: 50%; background: var(--navy-light); z-index: 2; opacity: .8; }

/* ---------- Real photo layer (Pexels, free license) over the illustration fallback ---------- */
.photo-box { position: relative; }
.photo-box .illus-box { position: absolute; inset: 0; height: 100% !important; }
.photo-box img.photo-real {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 5;
  transition: opacity .25s ease; background: var(--bg-soft);
}

/* ---------- Quick quote widget ---------- */
.quote-widget { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 32px; margin-top: -70px; position: relative; z-index: 10; }
.quote-widget h3 { margin-bottom: 4px; }
.quote-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 22px; }
.quote-tab { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--border); font-weight: 600; font-size: .84rem; color: var(--navy); background: var(--white); }
.quote-tab.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.quote-fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: end; }
.field label { display: block; font-size: .82rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field input, .field select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-soft); }
.quote-result { margin-top: 18px; padding: 16px 20px; background: var(--green-light); border-radius: var(--radius-sm); display: none; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.quote-result.show { display: flex; }
.quote-result .amount { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
@media (max-width: 900px) { .quote-fields { grid-template-columns: 1fr 1fr; } .quote-widget { margin-top: 24px; } }
@media (max-width: 560px) { .quote-fields { grid-template-columns: 1fr; } }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid > * { min-width: 0; } /* prevent CSS Grid "blowout": without this, flex children with
                                nowrap text (like .card-links buttons) can force grid tracks
                                wider than their column, pushing cards outside the container. */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; transition: all .25s ease; box-shadow: var(--shadow-sm); min-width: 0;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--green); }
.card-body { padding: 22px; min-width: 0; }
.card .illus-box, .card .photo-box { height: 170px; }
.card-badge { display: inline-block; background: var(--green-light); color: var(--green-dark); font-weight: 700; font-size: .72rem; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .03em; }
.card-price { font-weight: 800; color: var(--navy); margin: 10px 0 16px; }
.card-price span { color: var(--text-muted); font-weight: 500; font-size: .82rem; }
.card-links { display: flex; flex-wrap: wrap; gap: 10px; }
.card-links .btn { flex: 1 1 auto; min-width: 0; white-space: normal; text-align: center; }

/* Product filter bar (used on san-pham.html category tabs and index.html audience tabs) */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px;
  border: 1.5px solid var(--border); font-weight: 600; font-size: .87rem; background: var(--white);
  color: var(--navy); transition: all .2s ease;
}
.filter-chip svg { flex-shrink: 0; }
.filter-chip:hover { border-color: var(--green); color: var(--green-dark); }
.filter-chip.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; text-align: center; }
.stat-num { font-size: 2.5rem; font-weight: 800; color: var(--green); }
.stat-label { color: #cfd7ec; font-weight: 600; font-size: .9rem; margin-top: 6px; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }

/* Steps */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { text-align: center; position: relative; }
.step-num { width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
@media (max-width: 900px) { .steps-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-row { grid-template-columns: 1fr; } }

/* Testimonials */
.testi-card { background: var(--white); border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.testi-stars { color: var(--green); margin-bottom: 12px; letter-spacing: 2px; }
.testi-person { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* News */
.news-card .card-body time { color: var(--text-muted); font-size: .8rem; font-weight: 600; }

/* Partner logo wall */
.logo-wall { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: center; }
.logo-wall .logo-chip { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 18px 28px; font-weight: 800; color: var(--navy); border: 1px solid var(--border); }

/* CTA banner */
.cta-banner { background: linear-gradient(120deg, var(--navy), var(--navy-light)); border-radius: var(--radius-lg); padding: 56px; color: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-banner h2 { color: var(--white); margin-bottom: 8px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: 18px 0; font-size: .85rem; color: var(--text-muted); background: var(--bg-soft); }
.breadcrumb a { color: var(--navy); font-weight: 600; }
.breadcrumb .sep { margin: 0 8px; color: #b7bfd0; }

/* ---------- Product detail template ---------- */
.product-hero { background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: var(--white); padding: 64px 0 84px; }
.product-hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
/* Fix: headings/paragraphs default to navy text (see base h1-h4, p rules) which is invisible
   on this navy background. Force light text for any heading/paragraph inside navy sections. */
.product-hero h1, .product-hero h2, .product-hero h3, .product-hero h4,
.section-navy h1, .section-navy h3, .section-navy h4,
.hero h2, .hero h3, .hero h4 { color: var(--white); }
.product-hero p, .product-hero p.lead { color: #cfd7ec; }
.trust-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(122,193,66,.2); padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .78rem; color: var(--green); margin-top: 20px; }
@media (max-width: 900px) { .product-hero .container { grid-template-columns: 1fr; } }

/* ---------- Icon utility ---------- */
.icon-circle { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.hero-eyebrow svg, .trust-badge svg { flex-shrink: 0; }
a.header-hotline, .header-hotline { display: flex; }

.reason-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.reason-card { text-align: center; padding: 26px 18px; border-radius: var(--radius-md); background: var(--bg-soft); }
.reason-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--green-light); color: var(--green-dark); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 1.4rem; }
@media (max-width: 900px) { .reason-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reason-grid { grid-template-columns: 1fr; } }

/* Package comparison */
.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.package-card { border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 30px 26px; background: var(--white); display: flex; flex-direction: column; position: relative; }
.package-card.popular { border-color: var(--green); box-shadow: var(--shadow-md); transform: scale(1.03); }
.package-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--green); color: var(--navy-dark); font-weight: 800; font-size: .74rem; padding: 6px 16px; border-radius: 999px; }
.package-price { font-size: 2rem; font-weight: 800; color: var(--navy); margin: 14px 0 6px; }
.package-price span { font-size: .9rem; color: var(--text-muted); font-weight: 500; }
.package-feats { flex: 1; margin: 18px 0; }
.package-feats li { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: .92rem; display: flex; gap: 10px; }
.package-feats li .ok { color: var(--green-dark); font-weight: 800; }
@media (max-width: 900px) { .package-grid { grid-template-columns: 1fr; } .package-card.popular { transform: none; } }

/* Benefits table */
.scope-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.scope-table th, .scope-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: .93rem; }
.scope-table th { background: var(--navy); color: var(--white); font-weight: 700; }
.scope-table tr:last-child td { border-bottom: none; }
.scope-table .covered { color: var(--green-dark); font-weight: 700; }
.scope-table .excluded { color: var(--warn); font-weight: 700; }
.scope-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
@media (max-width: 800px) { .scope-cols { grid-template-columns: 1fr; } }
.scope-list li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid var(--border); font-size: .93rem; }
.scope-list.covered li::before { content: '✓'; position: absolute; left: 0; color: var(--green-dark); font-weight: 800; }
.scope-list.excluded li::before { content: '✕'; position: absolute; left: 0; color: var(--warn); font-weight: 800; }

/* Pricing example table */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); text-align: left; font-size: .92rem; }
.price-table th { color: var(--navy); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.price-note { font-size: .8rem; color: var(--text-muted); margin-top: 10px; }

/* FAQ accordion */
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-q { width: 100%; text-align: left; background: none; border: none; padding: 20px 4px; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; align-items: center; font-size: 1rem; }
.accordion-icon { transition: transform .2s ease; color: var(--green-dark); font-size: 1.3rem; }
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; font-size: .93rem; color: var(--text-muted); }
.accordion-item.open .accordion-a { max-height: 400px; padding-bottom: 18px; }

/* Documents list */
.doc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.doc-item { display: flex; align-items: center; gap: 14px; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 16px 18px; }
.doc-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .78rem; flex-shrink: 0; }
.doc-item .doc-name { font-weight: 700; color: var(--navy); font-size: .9rem; display: block; }
.doc-item .doc-meta { font-size: .76rem; color: var(--text-muted); }
.doc-item a { margin-left: auto; }
@media (max-width: 700px) { .doc-list { grid-template-columns: 1fr; } }

/* Table generic responsive scroll */
.table-scroll { overflow-x: auto; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* Tracker */
.tracker-box { display: flex; gap: 12px; max-width: 520px; margin: 0 auto 40px; }
.tracker-box input { flex: 1; }

/* Footer */
.site-footer { background: var(--navy-dark); color: var(--white); padding: 70px 0 24px; }
.site-footer p, .site-footer a, .site-footer span, .site-footer li, .site-footer label,
.site-footer time { color: var(--white); }
.site-footer .newsletter-form input { color: var(--text); } /* input sits on a white box, not the dark footer bg */
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 30px; margin-bottom: 50px; }
.footer-grid h4 { color: var(--white); font-size: .95rem; margin-bottom: 18px; }
.footer-grid li { margin-bottom: 10px; font-size: .88rem; }
.footer-grid a:hover { color: var(--green); }
.footer-logo img { height: 40px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-cert { display: inline-block; background: rgba(255,255,255,.08); padding: 8px 14px; border-radius: 8px; font-size: .74rem; margin-top: 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--green); color: var(--navy-dark); }
.newsletter-form { display: flex; gap: 8px; margin-top: 10px; }
.newsletter-form input { flex: 1; padding: 11px 14px; border-radius: var(--radius-sm); border: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .8rem; }
.footer-bottom a { margin-left: 16px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Related products */
.related-scroll { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .related-scroll { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .related-scroll { grid-template-columns: 1fr; } }

/* Utility */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.badge-soft { background: var(--green-light); color: var(--green-dark); padding: 4px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
@media (max-width: 900px) { .split-2 { grid-template-columns: 1fr; } }
.error-page { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 100px 24px; }
.error-code { font-size: 7rem; font-weight: 800; color: var(--green); line-height: 1; }

/* Dashboard */
.dash-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; }
.dash-side { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; height: fit-content; }
.dash-side a { display: block; padding: 12px 14px; border-radius: 8px; font-weight: 600; color: var(--navy); font-size: .9rem; margin-bottom: 4px; }
.dash-side a.active, .dash-side a:hover { background: var(--green-light); color: var(--green-dark); }
.dash-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; margin-bottom: 20px; }
@media (max-width: 900px) { .dash-layout { grid-template-columns: 1fr; } }

.status-pill { padding: 5px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.status-pill.success { background: var(--green-light); color: var(--green-dark); }
.status-pill.pending { background: #fff3d6; color: #8a6300; }
.status-pill.processing { background: #dce7ff; color: #2a4fb8; }
                                                                                                                                                                                                                                                        