:root {
  --green-950: #06251b;
  --green-900: #0a3326;
  --green-800: #0b4733;
  --green-700: #0d5a40;
  --green-600: #117a55;
  --green-500: #18a06d;
  --green-300: #84d6b5;
  --green-100: #e5f6ee;
  --gold-700: #9b6a0a;
  --gold-600: #b98212;
  --gold-500: #d9a228;
  --gold-300: #f2d27f;
  --gold-100: #fff5d6;
  --ink: #16231e;
  --muted: #67766f;
  --line: #dfe9e4;
  --surface: #ffffff;
  --background: #f5f8f6;
  --danger: #b13e3e;
  --warning: #b86d0a;
  --shadow: 0 18px 50px rgba(17, 61, 45, .10);
  --shadow-soft: 0 8px 24px rgba(17, 61, 45, .07);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --content-width: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(132, 214, 181, .18), transparent 30%),
    var(--background);
  min-height: 100vh;
}
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible {
  outline: 3px solid rgba(24,160,109,.28);
  outline-offset: 2px;
}
button[disabled] { cursor: not-allowed; opacity: .45; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -.05em; }
h2 { font-size: clamp(1.35rem, 2.2vw, 2rem); letter-spacing: -.035em; }
small { color: var(--muted); }
.subtle { color: var(--muted); line-height: 1.7; max-width: 680px; }
.lead { color: var(--muted); line-height: 1.8; font-size: 1.02rem; }
.eyebrow {
  margin-bottom: 8px;
  font-size: .72rem;
  letter-spacing: .16em;
  font-weight: 800;
  color: var(--green-600);
}
.app-shell { min-height: 100vh; }
.topbar {
  position: sticky;
  z-index: 40;
  top: 0;
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 12px max(24px, calc((100vw - var(--content-width)) / 2));
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(223,233,228,.8);
}
.brand-button {
  justify-self: start;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-align: left;
  padding: 0;
}
.brand-button strong { display: block; letter-spacing: .04em; font-size: .92rem; }
.brand-button small { display: block; font-size: .68rem; }
.brand-symbol {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--green-700), var(--green-950));
  color: var(--gold-300);
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}
.desktop-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  border: 0;
  background: transparent;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
}
.nav-link:hover, .nav-link.active { color: var(--green-700); background: var(--green-100); }
.topbar-actions { justify-self: end; display: flex; gap: 10px; }
.icon-button, .avatar-button {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--green-800);
}
.icon-button span:first-child { font-size: .65rem; }
.notification-dot {
  position: absolute;
  top: 8px; right: 8px;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: #ed6a5a;
  box-shadow: 0 0 0 3px white;
}
.notification-dot.hidden { display: none; }
.avatar-button {
  border: 0;
  background: linear-gradient(145deg, var(--gold-300), var(--gold-500));
  color: var(--green-950);
  font-weight: 800;
}
.main-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 42px 24px 110px;
}
.view { display: none; animation: fadeUp .35s ease; }
.view.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.home-heading h1 { margin-bottom: 8px; }
.status-chip, .limit-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
}
.status-chip.success { background: var(--green-100); color: var(--green-700); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 4px rgba(24,160,109,.12); }
.limit-chip { background: var(--gold-100); color: var(--gold-700); }

.hero-card {
  min-height: 410px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 5vw, 68px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 12%, rgba(242,210,127,.22), transparent 24%),
    linear-gradient(135deg, var(--green-950), var(--green-700));
  box-shadow: 0 28px 80px rgba(6,37,27,.22);
  color: white;
}
.hero-copy h2 { font-size: clamp(2.35rem, 5vw, 4.8rem); line-height: .98; margin: 18px 0; }
.hero-copy h2 span { color: var(--gold-300); }
.hero-copy p { max-width: 580px; color: rgba(255,255,255,.76); line-height: 1.7; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.pill.gold { background: var(--gold-100); color: var(--gold-700); }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button-row.center { justify-content: center; }
.button {
  border: 0;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 750;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.button:hover:not([disabled]) { transform: translateY(-2px); }
.button.primary { color: white; background: linear-gradient(135deg, var(--green-600), var(--green-800)); box-shadow: 0 10px 24px rgba(13,90,64,.2); }
.button.secondary { color: var(--green-800); background: var(--green-100); }
.button.outline { color: var(--green-800); background: white; border: 1px solid var(--green-300); }
.button.light { color: var(--green-950); background: white; }
.button.ghost-light { color: white; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); }
.button.danger-outline { color: var(--danger); background: transparent; border: 1px solid rgba(177,62,62,.3); }
.button.full { width: 100%; }
.button.small { min-height: 38px; padding: 0 14px; font-size: .82rem; }

.shoe-stage { position: relative; min-height: 280px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.orbit-one { width: 330px; height: 180px; transform: rotate(-18deg); }
.orbit-two { width: 270px; height: 270px; }
.shoe-visual {
  position: relative;
  width: 310px;
  height: 145px;
  transform: rotate(-8deg);
  filter: drop-shadow(0 28px 22px rgba(0,0,0,.25));
}
.shoe-visual.large { transform: scale(1.35) rotate(-8deg); }
.shoe-upper {
  position: absolute; left: 42px; top: 18px;
  width: 218px; height: 88px;
  border-radius: 75% 28% 22% 35% / 75% 35% 30% 25%;
  background:
    linear-gradient(25deg, transparent 0 49%, rgba(242,210,127,.35) 50% 53%, transparent 54%),
    linear-gradient(145deg, #1aa976, #0b4733 78%);
  border: 2px solid rgba(255,255,255,.12);
}
.shoe-upper:before {
  content: "";
  position: absolute; left: 7px; top: 53px;
  width: 88px; height: 48px; border-radius: 60% 30% 20% 35%;
  background: #0a3326;
}
.shoe-upper:after {
  content: "";
  position: absolute; right: -27px; bottom: -3px;
  width: 70px; height: 35px; border-radius: 50% 40% 20% 20%;
  background: linear-gradient(145deg, #1aa976, #0b4733);
}
.shoe-sole {
  position: absolute; left: 34px; top: 91px;
  width: 260px; height: 25px;
  border-radius: 18px 34px 16px 16px;
  background: linear-gradient(180deg, white, #dfe9e4);
}
.shoe-sole:after {
  content: "";
  position: absolute; left: 12px; right: 12px; bottom: -9px; height: 13px;
  border-radius: 0 0 14px 14px;
  background: var(--gold-500);
}
.shoe-lace {
  position: absolute; z-index: 3; left: 148px; top: 46px;
  width: 56px; height: 4px; background: var(--gold-300); border-radius: 5px; transform: rotate(-13deg);
  box-shadow: 0 12px 0 var(--gold-300), 0 24px 0 var(--gold-300);
}
.shoe-lace.lace-two { left: 115px; top: 48px; width: 30px; transform: rotate(43deg); box-shadow: 12px 12px 0 var(--gold-300); }
.shoe-logo { position: absolute; z-index: 4; left: 210px; top: 65px; color: var(--gold-300); font-size: .8rem; font-weight: 900; }
.limited-label {
  position: absolute; right: 5%; bottom: 3%;
  font-size: .65rem; letter-spacing: .18em; color: var(--gold-300); font-weight: 800;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 22px 0;
}
.stat-card {
  min-height: 128px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-soft);
}
.stat-card.featured { border-color: rgba(217,162,40,.35); background: linear-gradient(145deg, #fffdf7, var(--gold-100)); }
.stat-icon, .journey-icon {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 14px; background: var(--green-100); color: var(--green-700); font-weight: 900;
}
.gold-bg { background: var(--gold-100) !important; color: var(--gold-700) !important; }
.stat-card div:nth-child(2) { min-width: 0; }
.stat-card span, .stat-card small { display: block; color: var(--muted); font-size: .76rem; }
.stat-card strong { display: block; margin: 5px 0; font-size: 1.12rem; white-space: nowrap; }
.text-button { border: 0; padding: 0; background: transparent; color: var(--green-600); font-weight: 750; font-size: .8rem; }
.stat-card .text-button { margin-left: auto; }

.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.content-grid.two-thirds { grid-template-columns: 1.45fr .55fr; }
.panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-soft);
}
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; }
.journey-list { display: grid; gap: 8px; }
.journey-item {
  display: grid;
  grid-template-columns: 44px 44px 1fr auto;
  gap: 12px; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.journey-item:last-child { border-bottom: 0; }
.journey-day { color: var(--muted); font-size: .75rem; font-weight: 800; }
.journey-item div strong, .journey-item div small { display: block; }
.journey-item div small { margin-top: 4px; font-size: .72rem; }
.status-label { padding: 6px 9px; border-radius: 999px; font-size: .68rem; font-weight: 700; }
.status-label.done { color: var(--green-700); background: var(--green-100); }
.status-label.next { color: var(--gold-700); background: var(--gold-100); }

.event-card {
  min-height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(6,37,27,.06), rgba(6,37,27,.9)),
    radial-gradient(circle at 70% 20%, var(--gold-300), transparent 20%),
    linear-gradient(135deg, var(--green-500), var(--green-950));
  color: white;
  box-shadow: var(--shadow);
}
.event-overlay { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; }
.event-overlay .eyebrow { color: var(--gold-300); }
.event-overlay p { color: rgba(255,255,255,.78); }
.event-overlay dl { display: grid; gap: 10px; }
.event-overlay dl div { display: flex; justify-content: space-between; gap: 12px; font-size: .78rem; }
.event-overlay dt { color: rgba(255,255,255,.55); }
.event-overlay dd { margin: 0; font-weight: 700; }

.product-banner {
  display: grid;
  grid-template-columns: 210px 1fr auto;
  align-items: center;
  gap: 28px;
  margin-top: 22px;
  padding: 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, #ffffff, #edf8f2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.product-mini-visual { min-height: 150px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(145deg, var(--green-950), var(--green-700)); }
.mini-shoe { width: 145px; height: 68px; border-radius: 70% 30% 25% 30%; background: linear-gradient(145deg, var(--green-500), var(--green-800)); transform: rotate(-8deg); border-bottom: 12px solid white; display: grid; place-items: center; box-shadow: 0 18px 24px rgba(0,0,0,.25); }
.mini-shoe span { color: var(--gold-300); font-weight: 900; }
.product-banner-copy h2 { margin: 12px 0 8px; }
.product-banner-copy p { color: var(--muted); line-height: 1.6; }
.product-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--muted); }
.product-price { text-align: right; }
.product-price small, .product-price strong { display: block; }
.product-price strong { margin: 6px 0 14px; font-size: 1.3rem; }

.back-button { border: 0; background: transparent; color: var(--green-700); font-weight: 700; margin-bottom: 24px; }
.product-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 42px; align-items: start; }
.product-gallery { position: sticky; top: 100px; }
.product-large-preview { min-height: 480px; display: grid; place-items: center; position: relative; border-radius: 18px; background: radial-gradient(circle at 70% 20%, rgba(242,210,127,.5), transparent 24%), linear-gradient(145deg, #eff8f4, #d8eee4); overflow: hidden; }
.product-large-preview.top-view .shoe-visual { transform: scale(1.15) rotate(3deg); }
.product-large-preview.detail-view .shoe-visual { transform: scale(1.7) translateX(-12%) rotate(-8deg); }
.preview-badge { position: absolute; top: 20px; left: 20px; padding: 8px 10px; border-radius: 999px; background: var(--green-950); color: var(--gold-300); font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.thumbnail-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.thumbnail { min-height: 72px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--muted); font-weight: 700; }
.thumbnail.active { border-color: var(--green-500); background: var(--green-100); color: var(--green-700); }
.product-info h1 { margin: 16px 0 8px; }
.rating-line { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .8rem; }
.stars { color: var(--gold-500); letter-spacing: .06em; }
.price-large { font-size: 1.7rem; font-weight: 800; margin: 22px 0 12px; }
.option-block { margin: 28px 0; }
.option-heading { display: flex; justify-content: space-between; margin-bottom: 12px; }
.option-heading span { color: var(--green-700); font-size: .85rem; font-weight: 700; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row button { width: 48px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.choice-row button.active { color: white; background: var(--green-700); border-color: var(--green-700); }
.color-row { display: grid; gap: 8px; }
.color-choice { min-height: 46px; padding: 8px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: white; text-align: left; }
.color-choice.active { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(24,160,109,.1); }
.color-choice span { width: 24px; height: 24px; border-radius: 9px; border: 1px solid rgba(0,0,0,.08); }
.color-choice .emerald { background: linear-gradient(145deg, var(--green-500), var(--gold-500)); }
.color-choice .midnight { background: linear-gradient(145deg, var(--green-950), var(--green-700)); }
.color-choice .heritage { background: linear-gradient(145deg, white, #d9dedb); }
.benefit-list { display: grid; gap: 10px; margin: 28px 0; }
.benefit-list > div { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: #f8fbf9; }
.benefit-list > div > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--gold-100); color: var(--gold-700); }
.benefit-list strong, .benefit-list small { display: block; }
.benefit-list small { margin-top: 4px; line-height: 1.4; }
.button-stack { display: grid; gap: 10px; }
.how-panel { margin-top: 32px; }
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step-card { padding: 18px; border-radius: 16px; background: var(--background); }
.step-card > span { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 10px; background: var(--green-700); color: white; font-weight: 800; }
.step-card strong { display: block; margin-bottom: 8px; }
.step-card p { margin: 0; color: var(--muted); line-height: 1.5; font-size: .8rem; }

.challenge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.challenge-card {
  position: relative; overflow: hidden;
  min-height: 310px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-soft);
}
.challenge-card:before {
  content: "";
  position: absolute; right: -45px; top: -45px;
  width: 150px; height: 150px; border-radius: 50%;
  background: var(--green-100);
}
.challenge-card.gold-tone:before { background: var(--gold-100); }
.challenge-card.community-tone { color: white; background: linear-gradient(145deg, var(--green-950), var(--green-700)); }
.challenge-card.community-tone:before { background: rgba(255,255,255,.08); }
.challenge-card.community-tone p, .challenge-card.community-tone small { color: rgba(255,255,255,.72); }
.challenge-card h2 { max-width: 75%; margin: 20px 0 10px; }
.challenge-card p { color: var(--muted); line-height: 1.6; }
.challenge-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.challenge-meta span { padding: 7px 9px; border-radius: 999px; background: var(--background); font-size: .72rem; font-weight: 650; }
.community-tone .challenge-meta span { background: rgba(255,255,255,.1); }
.challenge-progress { margin: 18px 0; }
.challenge-progress-header { display: flex; justify-content: space-between; font-size: .78rem; margin-bottom: 8px; }
.progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: #e6eeea; }
.progress-track.large { height: 13px; }
.progress-track span, .community-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green-500), var(--green-700)); transition: width .35s ease; }
.community-tone .progress-track { background: rgba(255,255,255,.15); }
.community-tone .progress-track span { background: var(--gold-300); }

.week-ring {
  --ring-value: 73%;
  width: 112px; height: 112px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--green-600) var(--ring-value), #e1ece7 0);
  position: relative;
}
.week-ring:after { content: ""; position: absolute; inset: 10px; border-radius: inherit; background: var(--background); }
.week-ring div { position: relative; z-index: 1; text-align: center; }
.week-ring strong { font-size: 1.5rem; }
.week-ring span { font-weight: 700; }
.week-ring small { display: block; font-size: .65rem; }
.weekly-target { padding: 22px; margin-bottom: 18px; border-radius: var(--radius-lg); background: white; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.weekly-target > div:first-child { display: flex; justify-content: space-between; margin-bottom: 12px; }
.weekly-target small { display: block; margin-top: 10px; }
.tab-list { display: inline-flex; gap: 6px; padding: 5px; margin-bottom: 18px; border-radius: 15px; background: #e8f0ec; }
.tab-button { min-height: 42px; border: 0; border-radius: 11px; padding: 0 18px; background: transparent; color: var(--muted); font-weight: 700; }
.tab-button.active { background: white; color: var(--green-700); box-shadow: var(--shadow-soft); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .25s ease; }
.dashboard-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; margin-bottom: 20px; }
.bar-chart {
  height: 260px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  align-items: end;
  padding-top: 20px;
}
.bar-column { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.bar-value { font-size: .68rem; font-weight: 700; color: var(--muted); }
.bar { width: min(42px, 72%); min-height: 3px; border-radius: 12px 12px 4px 4px; background: linear-gradient(180deg, var(--green-500), var(--green-700)); transition: height .35s; }
.bar-day { font-size: .72rem; color: var(--muted); }
.summary-panel { display: flex; flex-direction: column; }
.summary-metric { display: flex; justify-content: space-between; padding: 17px 0; border-bottom: 1px solid var(--line); }
.summary-metric:last-child { border-bottom: 0; }
.summary-metric span { color: var(--muted); font-size: .82rem; }
.gold-balance-card {
  position: relative; overflow: hidden;
  min-height: 230px;
  padding: 30px;
  border-radius: var(--radius-lg);
  color: white;
  background: linear-gradient(145deg, var(--green-950), var(--green-700));
  box-shadow: var(--shadow);
}
.gold-balance-card .eyebrow { color: var(--gold-300); }
.gold-balance-card > span { color: rgba(255,255,255,.65); }
.gold-balance-card h2 { margin: 14px 0 8px; font-size: 2.4rem; color: var(--gold-300); }
.balance-decoration { position: absolute; width: 180px; height: 180px; border: 30px solid rgba(255,255,255,.05); border-radius: 50%; right: -55px; bottom: -70px; }
.amount-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.amount-grid button { min-height: 50px; border: 1px solid var(--line); border-radius: 13px; background: white; font-weight: 700; }
.amount-grid button.active { color: var(--green-700); border-color: var(--green-500); background: var(--green-100); }
.field-label { display: block; font-size: .78rem; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.currency-field { display: flex; align-items: center; min-height: 52px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 13px; background: white; overflow: hidden; }
.currency-field span { padding: 0 14px; color: var(--muted); font-weight: 700; }
.currency-field input { width: 100%; height: 52px; border: 0; background: transparent; padding: 0 14px 0 0; }
.disclaimer { margin: 12px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
.transaction-list { display: grid; gap: 8px; max-height: 320px; overflow: auto; }
.transaction-item, .empty-state { padding: 14px; border-radius: 14px; background: var(--background); }
.transaction-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.transaction-item strong, .transaction-item small { display: block; }
.transaction-item small { margin-top: 4px; }
.transaction-item b { color: var(--green-700); }
.empty-state { color: var(--muted); text-align: center; line-height: 1.6; }
.milestone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.milestone-card { padding: 22px; min-height: 220px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: white; }
.milestone-card.completed { background: linear-gradient(145deg, #fffdf6, var(--gold-100)); border-color: rgba(217,162,40,.35); }
.milestone-card.locked { opacity: .6; }
.milestone-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--green-100); color: var(--green-700); font-size: 1.2rem; }
.milestone-card.completed .milestone-icon { background: var(--gold-500); color: white; }
.milestone-card h3 { margin: 18px 0 8px; }
.milestone-card p { color: var(--muted); line-height: 1.5; font-size: .8rem; }
.milestone-card .progress-track { margin-top: 16px; }

.community-hero {
  display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center;
  padding: 42px;
  border-radius: var(--radius-xl);
  color: white;
  background:
    radial-gradient(circle at 85% 15%, rgba(242,210,127,.2), transparent 22%),
    linear-gradient(135deg, var(--green-950), var(--green-700));
  box-shadow: var(--shadow);
}
.community-hero .eyebrow { color: var(--gold-300); }
.community-hero p { max-width: 720px; color: rgba(255,255,255,.72); line-height: 1.7; }
.community-stats { display: flex; gap: 30px; margin: 28px 0 18px; }
.community-stats span, .community-stats strong { display: block; }
.community-stats span { color: rgba(255,255,255,.55); font-size: .72rem; }
.community-stats strong { margin-top: 5px; }
.community-progress { height: 10px; max-width: 700px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.15); }
.community-progress span { background: var(--gold-300); }
.community-hero small { display: block; margin-top: 8px; color: rgba(255,255,255,.55); }
.community-emblem { width: 170px; height: 170px; display: grid; place-items: center; align-content: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 12px rgba(255,255,255,.04); }
.community-emblem span { font-size: 2.4rem; font-weight: 900; color: var(--gold-300); }
.community-emblem small { letter-spacing: .18em; }
.community-grid { grid-template-columns: 1.2fr .8fr; }
.segmented { display: flex; padding: 4px; border-radius: 12px; background: var(--background); }
.segmented button { border: 0; background: transparent; color: var(--muted); padding: 8px 10px; border-radius: 9px; font-size: .7rem; font-weight: 700; }
.segmented button.active { background: white; color: var(--green-700); box-shadow: var(--shadow-soft); }
.leaderboard-list { display: grid; gap: 7px; }
.leaderboard-row { display: grid; grid-template-columns: 32px 42px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; }
.leaderboard-row.user { background: var(--green-100); }
.rank { color: var(--muted); font-weight: 800; text-align: center; }
.member-avatar, .feed-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: linear-gradient(145deg, var(--green-300), var(--green-600)); color: white; font-weight: 800; }
.member-info strong, .member-info small { display: block; }
.member-info small { margin-top: 3px; }
.member-distance { font-weight: 800; color: var(--green-700); }
.feed-list { display: grid; gap: 8px; }
.feed-item { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.feed-item:last-child { border-bottom: 0; }
.feed-item small { display: block; margin-top: 5px; }
.community-avatar { background: linear-gradient(145deg, var(--gold-300), var(--gold-600)); color: var(--green-950); }
.event-wide { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }
.event-date { width: 72px; height: 82px; display: grid; place-items: center; align-content: center; border-radius: 18px; background: var(--gold-100); color: var(--gold-700); }
.event-date strong { font-size: 1.8rem; line-height: 1; }
.event-date span { font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.event-wide h2 { margin: 4px 0; }
.event-wide p { margin: 0; color: var(--muted); }
.referral-card {
  padding: 28px; border-radius: var(--radius-lg);
  color: white;
  background: linear-gradient(145deg, var(--green-700), var(--green-950));
  box-shadow: var(--shadow);
}
.referral-card .eyebrow { color: var(--gold-300); }
.referral-card p { color: rgba(255,255,255,.7); line-height: 1.6; }
.referral-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 14px; padding: 10px 10px 10px 14px; border-radius: 13px; background: rgba(255,255,255,.1); }
.referral-code code { color: var(--gold-300); font-family: inherit; font-weight: 800; }
.referral-code button { border: 0; padding: 8px 10px; border-radius: 9px; background: white; color: var(--green-800); font-weight: 700; }

.profile-layout { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.profile-card {
  position: sticky; top: 100px;
  padding: 32px; text-align: center;
  border-radius: var(--radius-lg);
  color: white;
  background: linear-gradient(145deg, var(--green-950), var(--green-700));
  box-shadow: var(--shadow);
}
.profile-avatar { width: 90px; height: 90px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 28px; background: linear-gradient(145deg, var(--gold-300), var(--gold-600)); color: var(--green-950); font-size: 1.7rem; font-weight: 900; }
.profile-card h1 { margin-bottom: 7px; font-size: 1.8rem; }
.profile-card > p { color: rgba(255,255,255,.65); }
.profile-card .status-chip { margin: 10px auto 22px; }
.profile-card dl { display: grid; gap: 0; text-align: left; }
.profile-card dl div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.profile-card dt { color: rgba(255,255,255,.55); }
.profile-card dd { margin: 0; font-weight: 800; }
.profile-content { display: grid; gap: 20px; }
.profile-product-state { padding: 18px; border-radius: 15px; background: var(--background); }
.profile-product-state.active { background: var(--green-100); }
.profile-product-state strong, .profile-product-state small { display: block; }
.profile-product-state small { margin-top: 6px; line-height: 1.5; }
.settings-list { display: grid; }
.settings-list label { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.settings-list label:last-child { border-bottom: 0; }
.settings-list strong, .settings-list small { display: block; }
.settings-list small { margin-top: 5px; }
.settings-list input { position: absolute; opacity: 0; pointer-events: none; }
.settings-list i { position: relative; flex: 0 0 auto; width: 48px; height: 28px; border-radius: 999px; background: #cbd7d1; transition: .2s; }
.settings-list i:after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: white; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: .2s; }
.settings-list input:checked + i { background: var(--green-600); }
.settings-list input:checked + i:after { transform: translateX(20px); }
.menu-list { display: grid; }
.menu-list button { display: flex; justify-content: space-between; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.menu-list button:last-child { border-bottom: 0; }
.menu-list b { color: var(--muted); font-size: 1.3rem; }

.bottom-nav { display: none; }

.modal-backdrop, .drawer-backdrop {
  position: fixed; z-index: 100; inset: 0;
  display: none; place-items: center;
  padding: 20px;
  background: rgba(4,22,16,.62);
  backdrop-filter: blur(8px);
}
.modal-backdrop.open, .drawer-backdrop.open { display: grid; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative;
  width: min(680px, 100%);
  max-height: min(88vh, 850px);
  overflow: auto;
  padding: 30px;
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: 0 30px 90px rgba(0,0,0,.28);
}
.modal-close { position: absolute; z-index: 2; top: 18px; right: 18px; width: 38px; height: 38px; border: 0; border-radius: 12px; background: var(--background); color: var(--muted); font-size: 1.45rem; }
.modal-close.static { position: static; }
.activation-header { display: flex; justify-content: space-between; gap: 16px; padding-right: 50px; }
.activation-header h2 { margin: 0; }
.activation-header > span { color: var(--muted); font-size: .76rem; }
.stepper { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: center; margin: 26px 0 28px; }
.stepper span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #e6eeea; color: var(--muted); font-size: .76rem; font-weight: 800; }
.stepper span.active, .stepper span.done { color: white; background: var(--green-600); }
.stepper i { height: 2px; background: #e6eeea; }
.stepper i.done { background: var(--green-600); }
.activation-step { display: none; }
.activation-step.active { display: block; animation: fadeUp .25s ease; }
.scanner-box { display: grid; place-items: center; text-align: center; padding: 22px; border: 1px dashed var(--green-300); border-radius: 18px; background: var(--green-100); }
.scanner-box p { max-width: 430px; color: var(--muted); font-size: .82rem; }
.scanner-frame { position: relative; width: 100px; height: 100px; margin-bottom: 14px; border: 3px solid var(--green-600); border-radius: 18px; }
.scanner-frame:before, .scanner-frame:after { content: ""; position: absolute; background: white; }
.scanner-frame:before { left: 12px; right: 12px; top: 23px; height: 10px; box-shadow: 0 22px 0 white, 0 44px 0 white; }
.scanner-frame:after { top: 12px; bottom: 12px; left: 23px; width: 10px; box-shadow: 22px 0 0 white, 44px 0 0 white; }
.scanner-frame i { position: absolute; z-index: 2; left: 4px; right: 4px; top: 8px; height: 2px; background: #ef6351; animation: scan 1.7s linear infinite; }
@keyframes scan { 0%,100% { top: 8px; } 50% { top: 88px; } }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: .72rem; }
.divider:before, .divider:after { content: ""; flex: 1; height: 1px; background: var(--line); }
.input-action { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.input-action input { min-height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; }
.inline-status { min-height: 36px; margin: 10px 0; padding: 9px 12px; border-radius: 11px; font-size: .78rem; }
.inline-status:empty { padding: 0; min-height: 18px; }
.inline-status.success { color: var(--green-700); background: var(--green-100); }
.inline-status.error { color: var(--danger); background: #fff0ef; }
.connection-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; }
.connection-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--green-800); color: var(--gold-300); font-weight: 900; }
.connection-card span, .connection-card strong, .connection-card small { display: block; }
.connection-card strong { margin: 4px 0; }
.checklist { display: grid; gap: 10px; margin: 18px 0; }
.checklist div { display: flex; gap: 10px; align-items: center; color: var(--green-700); }
.checklist div span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: var(--green-100); font-weight: 800; }
.checklist.muted { opacity: .38; }
.consent-box { display: flex; gap: 12px; padding: 14px; margin: 18px 0; border-radius: 14px; background: var(--background); font-size: .8rem; line-height: 1.5; }
.consent-box input { width: 20px; height: 20px; flex: 0 0 auto; }
.confirmation-card { padding: 20px; border-radius: 18px; background: var(--background); }
.confirm-product { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.confirm-shoe { width: 76px; height: 48px; display: grid; place-items: center; border-radius: 60% 30% 22% 32%; background: var(--green-700); border-bottom: 9px solid white; color: var(--gold-300); font-weight: 900; }
.confirm-product span, .confirm-product strong, .confirm-product small { display: block; }
.confirm-product strong { margin: 4px 0; }
.confirmation-card dl { display: grid; gap: 0; }
.confirmation-card dl div { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); }
.confirmation-card dl div:last-child { border-bottom: 0; }
.confirmation-card dt { color: var(--muted); }
.confirmation-card dd { margin: 0; font-weight: 800; }
.success-step { text-align: center; padding: 18px 0; }
.success-illustration { width: 92px; height: 92px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 30px; background: linear-gradient(145deg, var(--green-500), var(--green-800)); color: white; font-size: 2.3rem; box-shadow: 0 18px 40px rgba(13,90,64,.25); }
.new-balance { max-width: 380px; margin: 24px auto; padding: 20px; border-radius: 18px; background: var(--gold-100); }
.new-balance span, .new-balance strong, .new-balance small { display: block; }
.new-balance strong { margin: 8px 0; font-size: 1.5rem; color: var(--gold-700); }
.generic-modal h2 { padding-right: 40px; }
.generic-modal p, .generic-modal li { color: var(--muted); line-height: 1.7; }
.modal-list { display: grid; gap: 10px; padding-left: 18px; }
.social-preview { padding: 24px; border-radius: 20px; color: white; background: linear-gradient(145deg, var(--green-950), var(--green-600)); text-align: center; }
.social-preview .eyebrow { color: var(--gold-300); }
.social-preview h3 { font-size: 2rem; margin: 12px 0; }
.social-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.social-stats div { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.1); }
.social-stats strong, .social-stats span { display: block; }
.social-stats span { margin-top: 5px; color: rgba(255,255,255,.65); font-size: .72rem; }

.drawer-backdrop { place-items: stretch end; padding: 0; }
.notification-drawer {
  width: min(430px, 100%);
  height: 100%;
  padding: 26px;
  background: white;
  box-shadow: -24px 0 70px rgba(0,0,0,.2);
  animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.drawer-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.notification-list { display: grid; gap: 8px; margin-bottom: 20px; }
.notification-item { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: var(--background); }
.notification-item.unread { background: var(--green-100); }
.notification-item > span { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; background: white; color: var(--green-700); }
.notification-item p { margin: 0; line-height: 1.45; font-size: .82rem; }
.notification-item small { display: block; margin-top: 5px; }

.toast-region { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: grid; gap: 10px; pointer-events: none; }
.toast { min-width: 280px; max-width: 380px; display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; color: white; background: var(--green-950); box-shadow: 0 18px 45px rgba(0,0,0,.22); animation: toastIn .25s ease; }
.toast.error { background: #7e2929; }
.toast > span { color: var(--gold-300); font-weight: 900; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.splash {
  position: fixed; z-index: 999; inset: 0;
  display: grid; place-items: center; align-content: center;
  color: white;
  background: radial-gradient(circle at 50% 35%, var(--green-700), var(--green-950) 62%);
  transition: opacity .45s, visibility .45s;
}
.splash.hidden { opacity: 0; visibility: hidden; }
.splash h1 { margin: 14px 0 6px; font-size: clamp(2.7rem, 8vw, 5rem); letter-spacing: .05em; }
.splash p { color: rgba(255,255,255,.65); }
.splash .splash-eyebrow { color: var(--gold-300); }
.splash-mark { position: relative; width: 100px; height: 100px; display: grid; place-items: center; border-radius: 32px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); overflow: hidden; }
.brand-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 18px; background: var(--gold-300); color: var(--green-950); font-size: 1.5rem; font-weight: 900; }
.track-line { position: absolute; width: 180%; height: 2px; background: linear-gradient(90deg, transparent, white, transparent); animation: track 1.2s linear infinite; transform: rotate(-35deg); }
@keyframes track { from { translate: -70% 70%; } to { translate: 70% -70%; } }

@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .main-content { padding-top: 28px; }
  .bottom-nav {
    position: fixed; z-index: 50; left: 14px; right: 14px; bottom: 12px;
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 8px;
    border: 1px solid rgba(223,233,228,.9);
    border-radius: 22px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px rgba(6,37,27,.18);
  }
  .bottom-nav button { min-height: 54px; display: grid; place-items: center; align-content: center; gap: 2px; border: 0; border-radius: 15px; background: transparent; color: var(--muted); }
  .bottom-nav button.active { color: var(--green-700); background: var(--green-100); }
  .bottom-nav span { font-size: 1.05rem; }
  .bottom-nav small { font-size: .62rem; }
  .hero-card { grid-template-columns: 1fr; }
  .shoe-stage { order: -1; min-height: 240px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid.two-thirds, .community-grid { grid-template-columns: 1fr; }
  .event-card { min-height: 360px; }
  .product-banner { grid-template-columns: 160px 1fr; }
  .product-price { grid-column: 2; text-align: left; }
  .product-layout { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .profile-layout { grid-template-columns: 1fr; }
  .profile-card { position: static; }
}

@media (max-width: 700px) {
  .topbar { min-height: 66px; padding: 10px 16px; }
  .brand-button small { display: none; }
  .main-content { padding: 24px 16px 104px; }
  .page-heading { flex-direction: column; }
  .hero-card { min-height: auto; padding: 26px 20px; border-radius: 22px; }
  .hero-copy h2 { font-size: 2.55rem; }
  .shoe-stage { transform: scale(.85); margin: -18px 0; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 108px; }
  .content-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .product-banner { grid-template-columns: 1fr; }
  .product-price { grid-column: auto; }
  .product-mini-visual { min-height: 180px; }
  .panel { padding: 20px; }
  .journey-item { grid-template-columns: 36px 38px 1fr; }
  .journey-item .status-label { grid-column: 3; justify-self: start; }
  .product-large-preview { min-height: 360px; }
  .shoe-visual.large { transform: scale(.95) rotate(-8deg); }
  .steps-row, .challenge-grid, .milestone-grid { grid-template-columns: 1fr; }
  .challenge-card h2 { max-width: 90%; }
  .bar-chart { gap: 7px; }
  .community-hero { grid-template-columns: 1fr; padding: 28px 20px; }
  .community-emblem { width: 120px; height: 120px; }
  .community-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .community-stats strong { font-size: .85rem; }
  .section-heading { flex-direction: column; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; }
  .event-wide { grid-template-columns: auto 1fr; }
  .event-wide .button { grid-column: 1 / -1; width: 100%; }
  .modal { padding: 24px 18px; border-radius: 22px; }
  .activation-header { flex-direction: column; }
  .input-action { grid-template-columns: 1fr; }
  .connection-card { grid-template-columns: auto 1fr; }
  .connection-card .button { grid-column: 1 / -1; width: 100%; }
  .button-row .button { flex: 1 1 160px; }
  .toast-region { left: 12px; right: 12px; bottom: 88px; }
  .toast { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
