
:root {
  --navy: #1B2A4A;
  --orange: #FF6B35;
  --ink: #152033;
  --muted: #667085;
  --bg: #F7F8FA;
  --white: #FFFFFF;
  --border: #E6E8EC;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
button, input { font: inherit; }
button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  background: var(--orange);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
button.secondary {
  background: white;
  color: var(--navy);
  border: 1px solid rgba(255,255,255,.5);
}
button:disabled { opacity: .55; cursor: not-allowed; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--navy);
  color: white;
  box-shadow: 0 2px 14px rgba(0,0,0,.08);
}
.brand { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }
.tagline { font-size: 12px; opacity: .8; margin-top: 2px; }
.install-btn { background: white; color: var(--navy); padding: 9px 12px; }
main { padding-bottom: 90px; }
.hero {
  margin: 16px;
  border-radius: 22px;
  padding: 28px 22px;
  min-height: 235px;
  display: flex;
  align-items: end;
  color: white;
  background:
    linear-gradient(135deg, rgba(27,42,74,.98), rgba(27,42,74,.72)),
    radial-gradient(circle at 80% 20%, rgba(255,107,53,.75), transparent 35%);
  box-shadow: 0 12px 35px rgba(27,42,74,.18);
}
.eyebrow {
  display: inline-block;
  padding: 6px 9px;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.hero h1 { font-size: 32px; line-height: 1.05; margin: 12px 0 10px; }
.hero p { max-width: 520px; margin: 0 0 18px; opacity: .9; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.screen { display: none; padding: 0 16px 24px; }
.screen.active { display: block; }
h2 { margin: 22px 0 14px; font-size: 24px; color: var(--navy); }
.collection-grid, .feature-grid, .product-grid {
  display: grid;
  gap: 12px;
}
.collection-grid { grid-template-columns: repeat(2, 1fr); }
.feature-grid { margin-top: 18px; grid-template-columns: 1fr; }
.product-grid { grid-template-columns: repeat(2, 1fr); }
.card, .tracking-card, .product-card, .collection-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 5px 18px rgba(16,24,40,.04);
}
.collection-card {
  min-height: 120px;
  display: flex;
  align-items: flex-end;
  font-weight: 800;
  color: var(--navy);
  background: linear-gradient(145deg, white, #F2F4F7);
}
.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #EEF1F5;
  border-radius: 12px;
}
.product-title { font-weight: 700; margin: 10px 0 5px; }
.price { color: var(--orange); font-weight: 800; }
.section-head { display:flex; gap:12px; align-items:end; justify-content:space-between; flex-wrap:wrap; }
input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
}
.section-head input { max-width: 260px; }
.tracking-card { max-width: 560px; }
.tracking-card label { display:block; margin-bottom:8px; font-weight:700; }
.tracking-card button { margin-top:10px; width:100%; }
#trackingResult { margin-top: 16px; }
.progress { margin-top: 12px; }
.progress-row { display:flex; gap:10px; margin:10px 0; align-items:flex-start; }
.dot { width:12px; height:12px; border-radius:999px; background:var(--orange); margin-top:5px; }
.empty-state { text-align:center; padding: 40px 10px; }
.big-icon { font-size: 40px; }
.support-options { display:grid; gap:10px; }
.support-options button:last-child { background:var(--navy); }
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: white;
  border-top: 1px solid var(--border);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
}
.nav-item {
  background: transparent;
  color: #7A8494;
  padding: 7px 2px;
  display:flex;
  flex-direction:column;
  gap:3px;
  align-items:center;
  border-radius:10px;
  font-size:18px;
}
.nav-item span { font-size: 11px; font-weight: 700; }
.nav-item.active { color: var(--orange); background: #FFF4EF; }
small { display:block; margin-top:10px; color:var(--muted); }
@media (min-width: 760px) {
  .hero, .screen { max-width: 980px; margin-left:auto; margin-right:auto; }
  .collection-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .bottom-nav { max-width: 680px; left:50%; transform:translateX(-50%); border:1px solid var(--border); border-bottom:0; border-radius:18px 18px 0 0; }
}

.referral-balance{background:var(--navy);color:white;border-radius:18px;padding:20px;margin-bottom:12px}
.referral-balance span,.referral-balance small{display:block}.referral-balance strong{display:block;font-size:34px;margin:6px 0}
.referral-row{display:flex;gap:8px;margin-top:12px}.referral-row input{min-width:0}.share-wide{width:100%;margin-top:10px;background:var(--navy)}
.referral-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.stat{background:white;border:1px solid var(--border);border-radius:16px;padding:16px;text-align:center}.stat strong{display:block;color:var(--orange);font-size:25px}.stat span{font-size:12px;color:var(--muted)}
.reward-track{height:12px;border-radius:999px;background:#EEF1F5;overflow:hidden}.reward-fill{height:100%;width:60%;background:var(--orange)}.referral-steps{line-height:1.6;padding-left:22px}
