:root {
  color: #282828;
  background: #f4f5f9;
  font-family: Barlow, "Arial Narrow", Arial, sans-serif;
  font-size: 16px;
  --blue: #364ca0;
  --blue-dark: #293b82;
  --blue-soft: #e7ebff;
  --yellow: #ffc34b;
  --yellow-soft: #fff0c4;
  --ink: #282828;
  --muted: #707070;
  --line: #dfe2ed;
  --canvas: #f4f5f9;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); }
a { color: inherit; text-underline-offset: 3px; overflow-wrap: anywhere; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }

.skip-link { position: absolute; z-index: 20; left: 18px; top: -100px; padding: 10px 14px; background: var(--blue); color: var(--white); font-weight: 800; }
.skip-link:focus { top: 18px; }

.site-header { min-height: 82px; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { width: min(1180px, calc(100% - 48px)); min-height: 82px; margin: auto; display: flex; align-items: center; gap: 34px; }
.brand { display: block; flex: 0 0 auto; width: 180px; line-height: 0; }
.brand img { display: block; width: 100%; height: auto; }
nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: .875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .065em; }
nav a { text-decoration: none; }
nav a:hover { color: var(--blue); }
.account-chip { display: flex; align-items: center; gap: 8px; color: var(--blue-dark); font-size: .82rem; font-weight: 800; white-space: nowrap; }
.account-chip span, .state-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: var(--blue-dark); font-size: .58rem; font-weight: 900; letter-spacing: -.06em; }

.account-hero { overflow: hidden; background: linear-gradient(118deg, #ffc64f 0%, #ffe098 59%, #f4f5f9 59%); }
.hero-inner { width: min(1180px, calc(100% - 48px)); min-height: 425px; margin: 0 auto; padding: 68px 0 64px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 450px); gap: clamp(48px, 9vw, 150px); align-items: center; }
.store-hero { grid-template-columns: minmax(0, 1fr) minmax(360px, 450px); }
.account-intro { max-width: 600px; }
.eyebrow, .kicker { margin: 0; color: var(--blue); font-size: .76rem; font-weight: 900; letter-spacing: .12em; line-height: 1.25; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 21px; height: 3px; margin: 0 9px 3px 0; background: var(--blue); }
h1, h2, p { margin-top: 0; }
h1 { max-width: 630px; margin: 15px 0 20px; color: var(--blue-dark); font-size: clamp(3.2rem, 6vw, 5.75rem); font-weight: 900; letter-spacing: -.075em; line-height: .87; text-transform: uppercase; }
h1 em { display: block; color: var(--white); font-style: normal; -webkit-text-stroke: 1px var(--blue-dark); text-shadow: 3px 3px 0 var(--blue-dark); }
.account-intro > p:not(.eyebrow):not(.notice) { max-width: 525px; color: #3f3f3f; font-size: 1.08rem; line-height: 1.55; }
.proof-list { display: flex; flex-wrap: wrap; gap: 7px 18px; margin: 24px 0; padding: 0; list-style: none; color: var(--blue-dark); font-size: .84rem; font-weight: 800; }
.proof-list li::before { content: "✓"; margin-right: 6px; color: var(--blue); }
.notice { margin: 20px 0 0; padding: 11px 14px; border-left: 4px solid var(--blue); background: rgb(255 255 255 / 72%); color: var(--blue-dark); font-size: .9rem; font-weight: 700; line-height: 1.4; }
.store-link { display: inline-block; margin-top: 15px; color: var(--blue-dark); font-size: .9rem; font-weight: 800; }

.balance-card, .state-panel { position: relative; padding: 30px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 17px 40px rgb(41 59 130 / 13%); }
.balance-card::before, .state-panel::before { position: absolute; content: ""; left: 0; top: 0; width: 100%; height: 7px; background: var(--blue); }
.balance-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; color: var(--blue-dark); }
.balance-heading span:first-child { display: block; font-size: .76rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.balance-heading small { display: block; margin-top: 5px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.balance-star { display: inline-grid; place-items: center; min-width: 47px; min-height: 47px; border-radius: 50%; background: var(--yellow); color: var(--blue-dark); font-size: .7rem; font-weight: 900; }
.balance-stats { margin: 22px 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.balance-stats div { min-width: 0; padding: 13px 0; border-top: 1px solid var(--line); }
.balance-stats .balance-main { grid-column: 1 / -1; padding: 18px 0; border-color: var(--blue); display: flex; flex-wrap: wrap; align-items: end; gap: 0 8px; }
.balance-stats dt { color: var(--muted); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.balance-main dt { flex-basis: 100%; }
.balance-stats dd { margin: 3px 0 0; color: var(--blue-dark); font-size: 1.35rem; font-weight: 900; letter-spacing: -.04em; }
.balance-main dd { font-size: clamp(3.2rem, 6vw, 4.7rem); line-height: .87; }
.balance-main > span { margin-bottom: 9px; color: var(--blue); font-size: .75rem; font-weight: 900; letter-spacing: .08em; }
.balance-actions, .confirmation-panel > div { display: flex; flex-wrap: wrap; gap: 10px; }
.primary-action, .secondary-action { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 11px 17px; border: 1px solid var(--blue); border-radius: 0; color: var(--blue-dark); background: transparent; font-size: .82rem; font-weight: 900; letter-spacing: .045em; line-height: 1.05; text-align: center; text-decoration: none; text-transform: uppercase; }
.primary-action { background: var(--blue); color: var(--white); }
.primary-action:hover { background: var(--blue-dark); }
.secondary-action:hover { background: var(--blue-soft); }
.secondary-action:disabled, .primary-action:disabled, [data-reward]:disabled { cursor: default; border-color: #ccd1df; background: #edf0f5; color: #818898; }

.state-panel { margin: 0; }
.state-panel .state-icon { width: 46px; height: 46px; margin-bottom: 20px; }
.state-panel h2 { margin: 8px 0 12px; color: var(--blue-dark); font-size: 1.75rem; font-weight: 900; letter-spacing: -.045em; line-height: .98; text-transform: uppercase; }
.state-panel p { color: #4a4a4a; font-size: .95rem; line-height: 1.48; }
.state-panel .activation-copy { margin: 24px 0 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.terms-choice { margin: 0 0 14px; }
.terms-choice label { display: flex; gap: 9px; align-items: flex-start; color: var(--ink); font-size: .86rem; line-height: 1.35; }
.terms-choice input { flex: 0 0 auto; margin-top: 2px; accent-color: var(--blue); }
.terms-choice a { color: var(--blue-dark); font-weight: 800; }
.store-login { margin: 18px 0 0 !important; font-size: .84rem !important; }
.store-login a { color: var(--blue-dark); font-weight: 800; }

.account-content { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 68px 0 80px; }
.account-content > section { margin-top: 67px; }
.account-content > section:first-child { margin-top: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 23px; }
.section-heading h2 { margin: 5px 0 0; color: var(--blue-dark); font-size: clamp(1.9rem, 3.2vw, 2.9rem); font-weight: 900; letter-spacing: -.06em; line-height: .95; text-transform: uppercase; }
.section-heading > p { max-width: 470px; margin: 0; color: #545454; font-size: .93rem; line-height: 1.45; }
.section-heading > a { flex: 0 0 auto; color: var(--blue-dark); font-size: .84rem; font-weight: 900; }

.cart-card { display: flex; align-items: center; gap: 20px; padding: 23px 26px; border-left: 6px solid var(--yellow); background: var(--white); box-shadow: 0 8px 22px rgb(41 59 130 / 7%); }
.cart-icon { display: inline-grid; flex: 0 0 auto; place-items: center; width: 54px; height: 54px; background: var(--yellow-soft); color: var(--blue-dark); font-size: .66rem; font-weight: 900; letter-spacing: -.045em; }
.cart-card div { flex: 1 1 auto; }
.cart-card strong { display: block; color: var(--blue-dark); font-size: 1.05rem; font-weight: 900; }
.cart-card p { margin: 5px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.cart-card .secondary-action { flex: 0 0 auto; }

.reward-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.reward-card { min-width: 0; padding: 24px; border: 1px solid var(--line); background: var(--white); }
.reward-card.yellow { background: var(--yellow); border-color: var(--yellow); }
.reward-card.blue { background: var(--blue); border-color: var(--blue); color: var(--white); }
.reward-card > span { display: block; color: var(--blue); font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.reward-card.blue > span { color: var(--yellow); }
.reward-card > strong { display: block; margin: 12px 0 4px; color: var(--blue-dark); font-size: clamp(2.5rem, 4vw, 3.7rem); font-weight: 900; letter-spacing: -.08em; line-height: .8; }
.reward-card.blue > strong { color: var(--white); }
.reward-card > strong small { font-size: .35em; letter-spacing: .01em; }
.reward-card > p { min-height: 20px; margin: 11px 0 20px; color: var(--muted); font-size: .86rem; font-weight: 800; }
.reward-card.yellow > p { color: var(--blue-dark); }
.reward-card.blue > p { color: #e4e8ff; }
[data-reward] { width: 100%; min-height: 44px; padding: 10px 9px; border: 1px solid var(--blue); border-radius: 0; background: transparent; color: var(--blue-dark); font-size: .76rem; font-weight: 900; letter-spacing: .03em; line-height: 1.15; text-transform: uppercase; }
.reward-card:not(.blue) [data-reward]:not(:disabled):hover { background: var(--blue); color: var(--white); }
.reward-card.blue [data-reward] { border-color: var(--white); color: var(--white); }
.reward-card.blue [data-reward]:not(:disabled):hover { background: var(--white); color: var(--blue-dark); }
.disabled-note { margin: 18px 0 0; color: var(--muted); font-size: .89rem; font-weight: 700; }
.confirmation-panel { margin-top: 22px; padding: 22px; border-left: 6px solid var(--blue); background: var(--blue-soft); }
.confirmation-panel p { margin: 0 0 14px; color: var(--blue-dark); font-weight: 800; line-height: 1.45; }

.request-section, .activity-section { padding-top: 30px; border-top: 1px solid var(--line); }
.request-section > p, .activity-section > p { color: var(--muted); }
.request-list, [data-activity] { margin: 0; padding: 0; list-style: none; }
.request-list li, [data-activity] li { padding: 16px 0; border-top: 1px solid var(--line); color: #505050; line-height: 1.4; }
.request-list li:first-child, [data-activity] li:first-child { border-top: 0; }

footer { display: flex; width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 35px; border-top: 1px solid var(--line); align-items: center; justify-content: space-between; gap: 20px; color: var(--blue-dark); }
footer strong { font-size: 1.05rem; font-weight: 900; letter-spacing: -.04em; text-transform: uppercase; }
footer p { margin: 0; font-size: .88rem; }
footer a { font-weight: 800; }

@media (max-width: 800px) {
  .hero-inner, .store-hero { grid-template-columns: 1fr; gap: 32px; padding: 55px 0 50px; }
  .account-hero { background: linear-gradient(142deg, #ffc64f 0%, #ffe098 54%, #f4f5f9 54%); }
  .balance-card, .state-panel { max-width: 540px; }
  .reward-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .site-header, .header-inner { min-height: 65px; }
  .header-inner, .hero-inner, .account-content, footer { width: min(100% - 32px, 1180px); }
  .header-inner { gap: 14px; }
  .brand { width: 139px; }
  nav { display: none; }
  .account-chip { margin-left: auto; font-size: .68rem; }
  .account-chip strong { display: none; }
  .account-hero { background: linear-gradient(147deg, #ffc64f 0%, #ffe098 48%, #f4f5f9 48%); }
  .hero-inner { min-height: auto; padding: 41px 0 38px; gap: 27px; }
  h1 { margin: 11px 0 17px; font-size: clamp(3.25rem, 17vw, 4.55rem); }
  .account-intro > p:not(.eyebrow):not(.notice) { font-size: .98rem; }
  .proof-list { display: grid; gap: 7px; margin: 20px 0; }
  .balance-card, .state-panel { padding: 23px 20px; }
  .balance-stats { gap: 10px; }
  .balance-actions .primary-action, .balance-actions .secondary-action { flex: 1 1 100%; }
  .account-content { padding: 44px 0 53px; }
  .account-content > section { margin-top: 48px; }
  .section-heading { display: block; margin-bottom: 18px; }
  .section-heading > p { margin-top: 12px; }
  .section-heading > a { display: inline-block; margin-top: 12px; }
  .cart-card { display: grid; grid-template-columns: 47px 1fr; gap: 13px; padding: 18px; }
  .cart-icon { width: 47px; height: 47px; }
  .cart-card .secondary-action { grid-column: 1 / -1; }
  .reward-grid { grid-template-columns: 1fr; gap: 13px; }
  .reward-card { min-height: 0; padding: 20px; }
  .reward-card > p { margin-bottom: 16px; }
  .confirmation-panel { padding: 18px; }
  .confirmation-panel > div { display: grid; grid-template-columns: 1fr; }
  footer { display: block; padding: 23px 0 30px; }
  footer p { margin-top: 6px; }
}
