:root{color-scheme:light;--bg:#f7f5fc;--surface:#fff;--ink:#231a38;--muted:#6c647b;--line:#e6e0ef;--purple:#4d2192;--gold:#f2cd75}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.55 system-ui,-apple-system,sans-serif}body.dark{color-scheme:dark;--bg:#15111e;--surface:#241c31;--ink:#f7f2ff;--muted:#beb3cc;--line:#3e324d;--purple:#b68ae9}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--line);border-radius:16px;padding:13px 19px;background:var(--surface);color:var(--ink);min-height:48px}button:disabled{opacity:.55;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #b77bff;outline-offset:3px}.primary{background:var(--gold);color:#251630;border:0;font-weight:750}.brand{font-size:27px;font-weight:850;text-decoration:none;color:var(--purple);letter-spacing:-1px}.brand span{display:block;font-size:8px;letter-spacing:2px;color:var(--muted)}header{max-width:1080px;margin:auto;padding:18px 24px;display:flex;align-items:center;gap:16px}header #appearance{margin-left:auto;font-size:12px;padding:8px 12px}.test{font-size:10px;color:var(--muted);border:1px solid var(--line);padding:4px 8px;border-radius:20px}main{max-width:1000px;margin:auto;padding:16px 24px 120px}h1{font-size:clamp(29px,5vw,48px);line-height:1.12;letter-spacing:-1.4px;margin:20px 0}h2{line-height:1.25;font-size:23px}p{color:var(--muted)}.hero{padding:35px;border-radius:28px;background:linear-gradient(130deg,#381569,#62279c);color:#fff;margin-bottom:22px}.hero p{color:#e4d5ef;max-width:560px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700}.panel{background:var(--surface);border:1px solid var(--line);border-radius:23px;padding:26px;margin:20px 0}.narrow{max-width:510px;margin:25px auto}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:15px}.tile{text-align:left;padding:25px}.tile b{display:block;font-size:20px}.tile span{display:block;margin-top:12px;color:var(--muted);font-size:13px}label{display:block;font-size:14px;margin:18px 0}input:not([type=checkbox]){display:block;width:100%;min-height:50px;border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:12px;padding:12px;margin-top:8px}.check{line-height:1.6;font-size:12px}.check input{width:18px;height:18px;vertical-align:middle;margin-right:8px}a{color:var(--purple)}form button{margin:8px 0}.small{font-size:12px}.row{display:flex;align-items:center;justify-content:space-between;gap:14px}#notice:not(:empty){max-width:950px;margin:10px auto;background:var(--surface);padding:14px 20px;border-left:4px solid #c99832;border-radius:8px}nav{position:fixed;bottom:0;left:0;right:0;background:var(--surface);border-top:1px solid var(--line);display:flex;justify-content:center;padding:8px 8px max(8px,env(safe-area-inset-bottom));z-index:5}nav button{flex:1;max-width:180px;border:0;border-radius:12px;font-size:13px}nav button[aria-current=page]{color:var(--purple);background:var(--bg);font-weight:800}iframe{display:block;width:100%;height:calc(100dvh - 245px);min-height:440px;border:0;border-radius:18px;background:var(--surface)}[hidden]{display:none!important}.history{padding:18px 0;border-bottom:1px solid var(--line)}.history p{margin:4px 0;font-size:12px}@media(max-width:500px){header{padding:16px}.brand{font-size:23px}main{padding:8px 16px 105px}.hero{padding:25px}.panel{padding:21px}.grid{grid-template-columns:1fr}.row h1{font-size:29px}header .test{display:none}}

/* Keep the provider viewport large; the outer page does not compete for scrolling. */
body.shopping{height:100dvh;overflow:hidden;display:flex;flex-direction:column}
body.shopping header{width:100%;padding:8px 16px;flex:none}
body.shopping main{width:100%;max-width:1100px;flex:1;min-height:0;padding:0 8px 76px;display:flex;flex-direction:column}
body.shopping #account,body.shopping #shop{flex:1;min-height:0;display:flex;flex-direction:column}
body.shopping #shop>.row{flex:none;padding:0 8px;min-height:48px}
body.shopping #shop>.row h2{font-size:18px;margin:6px 0}
body.shopping #leaveStore{min-height:38px;padding:6px 12px;font-size:12px}
body.shopping #store{flex:1;height:0;min-height:0;border-radius:12px}
body.shopping #notice:not(:empty){flex:none;width:calc(100% - 16px);margin:0 8px;padding:8px 12px;font-size:12px}
@media(max-height:500px){body.shopping header{display:none}body.shopping #shop>.row{min-height:36px}}

.login-tabs{display:flex;gap:8px;padding:5px;background:var(--bg);border-radius:16px}.login-tabs button{flex:1;padding:10px;font-size:14px;border:0;background:transparent}.login-tabs button[aria-pressed=true]{background:var(--gold);color:#251630;font-weight:750}#loginTitle{font-size:clamp(27px,5vw,38px)}#googleLogin,#emailLogin{display:block;width:100%;margin-top:10px}

header #appearance{width:44px;height:44px;min-height:44px;padding:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%}
/* Store uses bottom tabs only; preserve the provider search and checkout controls. */
body.shopping>header,body.shopping #shop>.row{display:none}
body.shopping main{padding:0 0 calc(72px + env(safe-area-inset-bottom,0px));max-width:1100px}
body.shopping #store{border-radius:0}

/* Extend the iframe 28px beneath the fixed navigation; no overlay inside the store. */
#shop{position:relative}
body.shopping #shop.footer-under-nav{margin-bottom:-28px}
#footerPreviewToggle{position:absolute;right:8px;top:8px;z-index:3;min-height:36px;padding:6px 10px;font-size:12px;box-shadow:0 2px 8px #0003}

.reward-flight-demo{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);width:min(260px,80vw);height:190px;z-index:20;pointer-events:none;border:1px solid #f9df9d;border-radius:24px;background:linear-gradient(135deg,#f7e1a0,#dcae45);color:#32134e;box-shadow:0 18px 65px #210a4355;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center}.reward-flight-demo span{font-size:48px;line-height:1}.reward-flight-demo strong{font-size:20px}.reward-flight-demo small{font-size:12px}#rewardAnimationTrial{margin-top:12px}

#rewards{max-width:680px;margin:auto}#rewards h1{font-size:26px;letter-spacing:-.5px}#rewards h2{font-size:20px;margin-top:26px}#refreshRewards{border:0;font-size:25px;padding:6px 14px}.wallet-hero{padding:24px;border-radius:24px;background:linear-gradient(125deg,#251139,#47235f);color:#fff;border:1px solid #79519c}.wallet-hero .eyebrow{color:#ecd295}.wallet-balance{display:flex;align-items:center;gap:14px;margin:15px 0}.wallet-balance #balance{font-size:38px;margin:0;letter-spacing:-1px}.wallet-coin{display:grid;place-items:center;width:50px;height:50px;border-radius:50%;border:3px double #fff0c3;background:linear-gradient(135deg,#f8dda1,#b1853e);color:#4b2b61;font-size:26px;font-weight:850}.wallet-hero p{color:#d7c9e4;margin:8px 0}.draw-summary{margin-top:18px;padding:20px;border-radius:20px;border:1px solid var(--line);background:var(--surface)}.draw-summary h2{margin:0!important}.draw-summary strong{display:block;font-size:25px;color:var(--purple);margin-top:12px}.draw-summary p,.reward-intro{font-size:13px}.draw-summary progress{width:100%;height:6px;accent-color:#c79a4d}.scratch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px}.scratch-tile{min-width:0}.scratch-tile>strong,.scratch-tile>small{display:block;margin-top:7px;overflow-wrap:anywhere}.scratch-tile>small{color:var(--muted)}.scratch-foil{width:100%;aspect-ratio:1.35;border-radius:20px;border:1px solid #fff0c9;background:radial-gradient(circle at 0 0,transparent 45%,#fff3 46%,transparent 47%),linear-gradient(135deg,#f0d69d,#ba8d49,#dfc083);color:#4e2d6f;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;font-size:12px;box-shadow:inset 0 0 0 6px #fff1}.gift-art{font-size:44px;line-height:1}.reward-empty{grid-column:1/-1;text-align:center;background:var(--surface);padding:30px 20px;border-radius:20px}.wallet-wide{width:100%;margin-top:20px}#rewards .history{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:16px;margin-top:9px}#rewards .history p{font-size:12px}@media(max-width:350px){.scratch-grid{gap:16px 10px}.scratch-foil{padding:12px}.wallet-hero{padding:20px}}

.scratch-dialog{width:min(360px,calc(100vw - 32px));padding:24px;border:1px solid var(--line);border-radius:24px;background:var(--surface);color:var(--ink);text-align:center}.scratch-dialog::backdrop{background:#10091dba}.scratch-dialog h2{margin:14px 24px;font-size:20px}.scratch-close{position:absolute;right:5px;top:5px;font-size:24px;background:none;border:0;min-height:44px}.scratch-area{position:relative;aspect-ratio:1.5;overflow:hidden;border-radius:20px;margin:20px 0;background:var(--bg)}.scratch-area canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair}.scratch-result{height:100%;display:flex;align-items:center;justify-content:center;position:absolute;inset:0;font-size:25px;font-weight:800;color:var(--purple)}.flying-wallet-coin{position:fixed;z-index:40;width:30px;height:30px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#ffe8aa,#ba8d49);color:#4e2d6f;font-weight:800;pointer-events:none;border:1px solid #fff1c4}
.announcement-image{width:100%;max-height:360px;object-fit:contain;border-radius:16px}.external-action{display:inline-block;padding:12px 0;font-weight:700}details{margin-top:18px}summary{cursor:pointer;min-height:44px;padding:10px 0}textarea{display:block;width:100%;min-height:100px;border:1px solid var(--line);border-radius:12px;padding:12px;background:var(--bg);color:var(--ink);font:inherit}.earn-dialog{max-height:85dvh;overflow:auto;text-align:left;width:min(520px,calc(100vw - 24px))}#profile button{margin:6px}#earn button{margin:8px 8px 0 0}#editProfile{max-width:600px;margin:auto}.view>h1{overflow-wrap:anywhere}

.profile-photo{width:88px;height:88px;border-radius:50%;object-fit:cover;margin-bottom:12px}.proof-previews img{max-height:300px;object-fit:contain}.proof-previews{display:grid;gap:12px}

#installPanel{max-width:640px;margin:12px auto;padding:16px}#installPanel p{margin:8px 0}#installPanel button{margin:4px}#connectionStatus{padding:12px;background:#704b12;color:white;text-align:center}body{padding-top:env(safe-area-inset-top)}

body.shopping #installPanel{display:none}

.home-savings{border:1px solid var(--gold);padding:20px;margin-bottom:16px}.home-savings h2{margin:8px 0;font-size:clamp(22px,5vw,30px);overflow-wrap:anywhere}.home-savings p{margin:0;line-height:1.5}.home-savings small{display:block;margin-top:8px}

#nav [data-view="rewards"]{position:relative}#nav .has-unused-rewards::after{content:"";position:absolute;top:7px;right:calc(50% - 33px);width:9px;height:9px;background:#e32636;border:2px solid var(--surface);border-radius:50%;pointer-events:none}

/* Coin reward headline: accessible contrast in both appearance modes. */
#homeAnnouncements .coin-reward-banner{position:relative;isolation:isolate;overflow:hidden;padding:26px 24px;margin:0 0 18px;border:1px solid #b9924c;border-radius:24px;background:radial-gradient(ellipse at top right,rgba(225,176,69,.19),transparent 65%),linear-gradient(120deg,#32114f,#522081);box-shadow:0 8px 24px rgba(49,17,79,.18)}
#homeAnnouncements .coin-reward-banner::before{content:"";display:block;width:36px;height:4px;border-radius:4px;margin-bottom:14px;background:#f5d588}
#homeAnnouncements .coin-reward-banner h2{position:relative;margin:0;max-width:28ch;color:#ffe5a1;font-size:clamp(22px,5.8vw,32px);font-weight:800;line-height:1.22;letter-spacing:-.025em;text-wrap:balance;overflow-wrap:break-word}
@media(max-width:360px){#homeAnnouncements .coin-reward-banner{padding:22px 18px}}

/* Customer layout refresh. Existing data, payments and navigation are retained. */
.ui-icon{width:22px;height:22px;flex:none;vertical-align:middle}
#nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px 3px;min-width:0;min-height:48px;font-size:12px;line-height:1.2}#nav button span{white-space:nowrap}#nav .ui-icon{width:20px;height:20px}
#homeAnnouncements .coin-reward-banner{padding:20px;margin-bottom:14px;border-radius:22px}#homeAnnouncements .coin-reward-banner::before{margin-bottom:10px;height:3px}#homeAnnouncements .coin-reward-banner h2{font-size:clamp(20px,5vw,29px);max-width:32ch}
#home .home-savings{padding:17px 20px;margin:14px 0;border-color:var(--line)}#home .home-savings h2{font-size:23px;margin:6px 0}#home .home-savings p{font-size:13px}
.home-shop-action{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 0}.home-shop-action h2{font-size:19px;margin:5px 0}.home-shop-action .primary{white-space:nowrap;font-size:14px;border-radius:14px}.home-shop-action .ui-icon{width:18px;height:18px;margin-left:5px}
.home-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.home-shortcuts .tile{position:relative;padding:18px;border-radius:19px;min-width:0}.home-shortcuts .tile b{font-size:16px;line-height:1.3}.home-shortcuts .tile>span:not(.shortcut-icon){font-size:12px;margin-top:6px;line-height:1.4}.home-shortcuts .shortcut-icon{display:grid;place-items:center;width:36px;height:36px;margin:0 0 12px;background:var(--bg);border:1px solid var(--line);border-radius:11px;color:var(--purple)}
.draw-summary{padding:15px 18px;margin-top:14px}.draw-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.draw-heading button{font-size:12px;padding:7px 11px;min-height:44px}.draw-summary strong{font-size:21px;margin:7px 0 3px}.draw-summary p{margin:3px 0;font-size:12px}.draw-summary progress{display:block;margin:8px 0}.wallet-hero{padding:20px}.wallet-balance{margin:10px 0}.reward-empty{padding:18px}.wallet-wide{margin-top:12px}
#profile{max-width:680px;margin:auto}#profile .profile-menu{padding:8px 18px}#profile .profile-menu h2{font-size:12px;letter-spacing:1px;text-transform:uppercase;color:var(--muted);margin:16px 0 8px}#profile .profile-menu button{width:100%;margin:0;display:flex;align-items:center;gap:13px;padding:16px 0;border:0;border-top:1px solid var(--line);border-radius:0;text-align:left;background:transparent;font-size:15px}#profile .profile-menu .ui-icon{color:var(--purple);width:20px;height:20px}#profile .profile-menu .chevron{margin-left:auto;color:var(--muted);font-size:22px}#profile .profile-help h2{font-size:18px}#profile .profile-help p{margin:0}#profile .profile-help p>a{display:block;padding:13px 0;border-bottom:1px solid var(--line);text-decoration:none;font-size:14px}#profile .profile-help .small{padding-top:12px;font-size:12px;line-height:1.6}#profile #logout{width:100%;margin:0}
@media(max-width:550px){.home-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}.home-shortcuts .tile:last-child{grid-column:1/-1;padding-left:68px;min-height:82px;display:flex;flex-direction:column;justify-content:center}.home-shortcuts .tile:last-child .shortcut-icon{position:absolute;left:17px;top:21px;margin:0}.home-shop-action{display:block;padding:10px 0 16px}.home-shop-action>div{display:none}.home-shop-action .primary{width:100%;min-height:48px}.home-shortcuts .tile{padding:16px}.home-shortcuts .tile>span:not(.shortcut-icon){font-size:12px}#homeAnnouncements .coin-reward-banner h2{font-size:21px}#home .home-savings h2{font-size:21px}.draw-heading h2{font-size:18px!important}}

/* Compact rewards wallet and shared activity filters. */
.wallet-hero .use-coins{background:#f5cc67;color:#32134e;border:0;font-weight:750;min-height:46px;padding:10px 22px;margin:4px 0 10px;border-radius:14px}.history-filters{display:flex;gap:8px;margin:12px 0 16px}.history-filters button{flex:1;min-height:44px;border-radius:24px}.history-filters button[aria-pressed="true"]{background:#642894;color:#fff;border-color:#642894}#coinValue{font-size:17px;font-weight:650}#availableRewards{margin:24px 0}#rewardsError button{background:#642894;color:white}#rewardsContent .history p:last-child{font-size:12px;opacity:.75}

.savings-summary h2{font-size:clamp(24px,6vw,34px);margin:12px 0 22px}.savings-breakdown{margin:0}.savings-breakdown>div{display:flex;justify-content:space-between;gap:16px;padding:10px 0}.savings-breakdown dd{margin:0;font-weight:700}.savings-details summary{cursor:pointer;font-weight:650;line-height:1.5}.savings-details p{font-size:14px;line-height:1.6}.savings-summary .small{margin-bottom:0}

#history .coin-history-row{padding:16px 18px;margin:10px 0;border-radius:18px}.coin-history-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;flex-wrap:wrap}.coin-history-heading strong{font-size:16px;line-height:1.4}.coin-change{font-size:15px;font-weight:750;white-space:nowrap}.coin-change.earned{color:#642894}.dark .coin-change.earned{color:#dbb2ff}.coin-history-date{display:block;font-size:12px;opacity:.75;margin-top:5px}.coin-history-details{margin-top:4px}.coin-history-details summary{cursor:pointer;font-size:12px;padding:8px 0;min-height:32px;box-sizing:border-box}.coin-history-details p{font-size:13px;margin:5px 0;line-height:1.5}
