:root { --green:#087f5b; --green-dark:#075e45; --mint:#dff7ec; --ink:#17201d; --muted:#68736f; --line:#dce4e0; --paper:#f7faf8; --white:#fff; --coral:#ee765d; --yellow:#f6c453; --shadow:0 14px 40px rgba(16,56,43,.12); }
* { box-sizing:border-box; }
html { background:var(--paper); }
body { color:var(--ink); font-family:"Trebuchet MS","Aptos",sans-serif; margin:0; min-height:100vh; letter-spacing:0; }
button,input { font:inherit; letter-spacing:0; }
button { cursor:pointer; }
img { display:block; }
[hidden] { display:none !important; }
.loading-view { align-items:center; background:var(--green-dark); display:flex; inset:0; justify-content:center; position:fixed; z-index:50; }
.loading-view img { filter:brightness(0) invert(1); height:66px; width:66px; }
.loading-view span { animation:pulse 1.2s infinite; border:2px solid rgba(255,255,255,.3); border-top-color:white; border-radius:50%; height:92px; position:absolute; width:92px; }
@keyframes pulse { to { transform:rotate(360deg); } }
.brand-lockup { align-items:center; display:flex; gap:12px; }
.brand-lockup>img { height:46px; width:46px; }
.brand-lockup span { display:grid; }
.brand-lockup strong { font-family:Georgia,serif; font-size:22px; }
.brand-lockup small { color:var(--muted); font-size:11px; font-weight:700; text-transform:uppercase; }
.brand-lockup.compact>img { height:34px; width:34px; }
.brand-lockup.compact strong { font-family:"Trebuchet MS",sans-serif; font-size:14px; }
.brand-lockup.light strong,.brand-lockup.light small { color:white; }
.auth-layout { background:repeating-linear-gradient(135deg,#f7faf8 0,#f7faf8 24px,#f1f7f3 24px,#f1f7f3 25px); display:grid; grid-template-columns:minmax(0,1.1fr) minmax(390px,.9fr); min-height:100vh; }
.auth-brand { background:var(--green-dark); color:white; display:flex; flex-direction:column; justify-content:space-between; overflow:hidden; padding:clamp(28px,5vw,70px); position:relative; }
.auth-brand:after { border:1px solid rgba(255,255,255,.12); content:""; height:440px; position:absolute; right:-210px; top:20%; transform:rotate(18deg); width:440px; }
.auth-brand .brand-lockup small { color:#bfe7d7; }
.auth-store-lockup { align-items:flex-start; max-width:min(100%,560px); position:relative; z-index:1; }
.auth-store-lockup span { min-width:0; }
.auth-store-lockup strong { font-family:"Trebuchet MS",sans-serif; font-size:clamp(20px,2.4vw,32px); line-height:1.1; overflow-wrap:anywhere; }
.auth-statement { max-width:650px; position:relative; z-index:1; }
.eyebrow { color:var(--green); font-size:11px; font-weight:800; margin:0 0 9px; text-transform:uppercase; }
.auth-brand .eyebrow { color:var(--yellow); }
.auth-statement h1 { font-family:Georgia,serif; font-size:clamp(42px,6vw,76px); font-weight:500; line-height:1.02; margin:0; max-width:11ch; }
.benefit-strip { display:flex; flex-wrap:wrap; gap:10px; margin-top:34px; }
.benefit-strip span { align-items:center; border:1px solid rgba(255,255,255,.22); display:flex; font-size:12px; gap:8px; padding:10px 12px; }
.benefit-strip img { filter:brightness(0) invert(1); height:16px; width:16px; }
.auth-platform-signature { border-top:1px solid rgba(255,255,255,.2); color:#bfe7d7; font-size:11px; margin:0; padding-top:18px; position:relative; z-index:1; }
.auth-platform-signature strong { color:white; }
.auth-panel { align-self:center; background:white; border-top:4px solid var(--coral); box-shadow:var(--shadow); margin:50px auto; max-width:470px; padding:clamp(28px,4vw,46px); width:calc(100% - 48px); }
.auth-panel h2 { font-family:Georgia,serif; font-size:32px; font-weight:500; margin:0 0 28px; }
.form-stack { display:grid; gap:17px; }
.form-stack label:not(.check-row) { display:grid; font-size:12px; font-weight:800; gap:7px; }
.form-stack input:not([type=checkbox]) { background:#f8faf9; border:1px solid var(--line); border-radius:0; color:var(--ink); min-height:48px; outline:none; padding:0 13px; width:100%; }
.form-stack input:focus { border-color:var(--green); box-shadow:0 0 0 3px rgba(8,127,91,.1); }
.check-row { align-items:flex-start; color:var(--muted); display:flex; font-size:11px; gap:9px; line-height:1.45; }
.check-row input { accent-color:var(--green); flex:0 0 auto; margin-top:2px; }
.check-row a { color:var(--green); font-weight:800; }
.primary-button { align-items:center; background:var(--green); border:0; color:white; display:flex; font-weight:800; justify-content:space-between; min-height:50px; padding:0 18px; }
.primary-button img,.text-button img { filter:brightness(0) invert(1); height:18px; width:18px; }
.primary-button:disabled { cursor:wait; opacity:.55; }
.form-error { background:#fff0ed; border-left:3px solid var(--coral); color:#963b29; font-size:12px; margin:0; padding:10px; }
.text-button { align-items:center; background:none; border:0; color:var(--green); display:flex; gap:8px; margin:0 0 28px; padding:0; }
.text-button img { filter:none; }
.muted { color:var(--muted); font-size:13px; }
.code-input { font-size:28px !important; font-weight:800; letter-spacing:8px !important; text-align:center; }
.demo-code { background:var(--mint); color:var(--green-dark); font-size:12px; margin:0; padding:10px; text-align:center; }
.app-shell { margin:0 auto; max-width:1180px; min-height:100vh; padding-bottom:95px; }
.app-header { align-items:center; background:rgba(247,250,248,.94); border-bottom:1px solid var(--line); display:flex; justify-content:space-between; min-height:72px; padding:10px clamp(18px,4vw,38px); position:sticky; top:0; z-index:20; }
.icon-button { align-items:center; background:white; border:1px solid var(--line); display:flex; height:40px; justify-content:center; position:relative; width:40px; }
.icon-button img { height:19px; width:19px; }
.icon-button span { background:var(--coral); border:2px solid white; border-radius:50%; height:9px; position:absolute; right:7px; top:7px; width:9px; }
.app-content { padding:clamp(22px,4vw,40px); }
.app-page { display:none; }
.app-page.active { animation:reveal .35s ease; display:block; }
@keyframes reveal { from { opacity:0; transform:translateY(8px); } }
.welcome-row { align-items:center; display:flex; justify-content:space-between; margin-bottom:22px; }
.welcome-row p { font-family:Georgia,serif; font-size:25px; margin:0; }
.welcome-row>div>span { color:var(--muted); font-size:12px; }
.avatar-button { background:var(--yellow); border:0; border-radius:50%; color:#59440c; font-weight:800; height:44px; width:44px; }
.balance-band { background:var(--green-dark); color:white; min-height:185px; overflow:hidden; padding:26px; position:relative; }
.balance-band>div:first-child { display:grid; gap:8px; position:relative; z-index:2; }
.balance-band span { color:#c6eadc; font-size:12px; }
.balance-band strong { font-family:Georgia,serif; font-size:23px; font-weight:500; }
.balance-band strong b { font-size:44px; font-weight:500; }
.balance-band small { color:#a9d3c4; font-size:11px; }
.balance-mark { align-items:center; background:var(--yellow); border-radius:50%; display:flex; height:140px; justify-content:center; position:absolute; right:-25px; top:-24px; width:140px; }
.balance-mark img { height:42px; opacity:.65; width:42px; }
.progress-track { background:rgba(255,255,255,.18); bottom:25px; height:4px; left:26px; position:absolute; right:26px; }
.progress-track span { background:var(--yellow); display:block; height:100%; max-width:100%; transition:width .5s ease; }
.quick-actions { display:grid; gap:12px; grid-template-columns:repeat(4,1fr); margin:22px 0 34px; }
.quick-actions button { background:transparent; border:0; display:grid; gap:8px; justify-items:center; padding:0; }
.quick-actions button span { align-items:center; background:white; border:1px solid var(--line); display:flex; height:56px; justify-content:center; width:56px; }
.quick-actions img { height:22px; width:22px; }
.quick-actions strong { font-size:11px; }
.section-heading { align-items:end; display:flex; justify-content:space-between; margin-bottom:15px; }
.section-heading h2 { font-family:Georgia,serif; font-size:24px; font-weight:500; margin:0; }
.section-heading button { background:none; border:0; color:var(--green); font-size:11px; font-weight:800; }
.coupon-rail { display:grid; gap:14px; grid-auto-columns:minmax(235px,1fr); grid-auto-flow:column; overflow-x:auto; padding-bottom:8px; scroll-snap-type:x mandatory; }
.coupon-card { background:white; border:1px solid var(--line); border-left:4px solid var(--coral); display:grid; gap:13px; min-height:150px; padding:18px; scroll-snap-align:start; }
.coupon-card>span { color:var(--coral); font-size:10px; font-weight:800; text-transform:uppercase; }
.coupon-card h3 { font-family:Georgia,serif; font-size:20px; font-weight:500; margin:0; }
.coupon-card p { color:var(--muted); font-size:11px; line-height:1.5; margin:0; }
.coupon-card footer { align-items:center; border-top:1px dashed var(--line); display:flex; justify-content:space-between; padding-top:11px; }
.coupon-card footer strong { font-size:11px; }
.coupon-card button { background:var(--green); border:0; color:white; font-size:10px; font-weight:800; min-height:32px; padding:0 12px; }
.coupon-card button:disabled { background:#dce4e0; color:#68736f; }
.campaign-banner { align-items:center; background:#17201d; color:white; display:flex; justify-content:space-between; margin-top:34px; min-height:190px; overflow:hidden; padding:28px; }
.campaign-banner>div { position:relative; z-index:2; }
.campaign-label { color:var(--yellow); font-size:10px; font-weight:800; text-transform:uppercase; }
.campaign-banner h2 { font-family:Georgia,serif; font-size:25px; font-weight:500; max-width:520px; }
.campaign-banner button { align-items:center; background:none; border:0; color:white; display:flex; font-size:11px; gap:8px; padding:0; }
.campaign-banner button img { filter:brightness(0) invert(1); height:16px; width:16px; }
.campaign-banner>img { filter:grayscale(1) brightness(3); height:150px; opacity:.1; transform:rotate(-12deg); width:150px; }
.page-title { margin-bottom:26px; }
.page-title h1 { font-family:Georgia,serif; font-size:34px; font-weight:500; margin:0 0 7px; }
.page-title>span { color:var(--muted); font-size:12px; }
.filter-tabs { border-bottom:1px solid var(--line); display:flex; gap:24px; margin-bottom:20px; }
.filter-tabs button { background:none; border:0; border-bottom:3px solid transparent; color:var(--muted); font-size:12px; font-weight:800; padding:0 0 10px; }
.filter-tabs button.active { border-color:var(--green); color:var(--green); }
.coupon-list { display:grid; gap:13px; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); }
.member-card { background:var(--green-dark); color:white; margin:0 auto; max-width:420px; padding:22px; position:relative; }
.member-card:after { border:1px solid rgba(255,255,255,.15); content:""; inset:10px; pointer-events:none; position:absolute; }
.member-card-top { align-items:center; display:flex; justify-content:space-between; position:relative; z-index:2; }
.member-card-top>img { filter:brightness(0) invert(1); height:22px; width:22px; }
.qr-frame { background:white; margin:28px auto 18px; padding:12px; position:relative; width:190px; z-index:2; }
.qr-frame img { height:166px; width:166px; }
.member-card>strong,.member-card>span { display:block; position:relative; text-align:center; z-index:2; }
.member-card>strong { font-family:Georgia,serif; font-size:23px; font-weight:500; }
.member-card>span { color:#bfe7d7; font-family:monospace; font-size:11px; margin-top:5px; }
.privacy-band { align-items:center; background:var(--mint); display:flex; gap:13px; margin:18px auto 0; max-width:420px; padding:15px; }
.privacy-band img { height:22px; width:22px; }
.privacy-band div { display:grid; gap:3px; }
.privacy-band strong { font-size:12px; }
.privacy-band span { color:var(--muted); font-size:10px; }
.history-list { background:white; border-top:3px solid var(--green); }
.history-entry { align-items:center; border-bottom:1px solid var(--line); display:grid; gap:12px; grid-template-columns:42px 1fr auto; padding:16px; }
.history-entry>span { align-items:center; background:var(--mint); display:flex; height:42px; justify-content:center; width:42px; }
.history-entry>span img { height:19px; width:19px; }
.history-entry div { display:grid; gap:3px; }
.history-entry strong { font-size:12px; }
.history-entry small { color:var(--muted); font-size:10px; }
.history-entry>b { color:var(--green); font-size:13px; }
.history-entry>b.negative { color:var(--coral); }
.profile-identity { align-items:center; background:var(--green-dark); color:white; display:flex; gap:16px; padding:24px; }
.profile-identity>span { align-items:center; background:var(--yellow); border-radius:50%; color:#59440c; display:flex; font-weight:800; height:56px; justify-content:center; width:56px; }
.profile-identity div { display:grid; gap:5px; }
.profile-identity small { color:#bfe7d7; }
.settings-list { background:white; margin-top:18px; }
.settings-list button { align-items:center; background:white; border:0; border-bottom:1px solid var(--line); display:grid; gap:12px; grid-template-columns:24px 1fr 18px; min-height:70px; padding:13px 16px; text-align:left; width:100%; }
.settings-list button>img { height:20px; width:20px; }
.settings-list button span { display:grid; gap:4px; }
.settings-list button strong { font-size:12px; }
.settings-list button small { color:var(--muted); font-size:10px; }
.settings-list button.danger strong { color:#b04431; }
.bottom-nav { background:white; border-top:1px solid var(--line); bottom:0; display:grid; grid-template-columns:repeat(5,1fr); left:50%; max-width:1180px; padding:8px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)); position:fixed; transform:translateX(-50%); width:100%; z-index:30; }
.bottom-nav button { align-items:center; background:none; border:0; color:var(--muted); display:flex; flex-direction:column; font-size:9px; gap:4px; justify-content:end; min-height:52px; padding:0; }
.bottom-nav button>img { height:20px; opacity:.65; width:20px; }
.bottom-nav button.active { color:var(--green); font-weight:800; }
.bottom-nav button.active>img { opacity:1; }
.bottom-nav .card-nav { color:var(--green-dark); }
.bottom-nav .card-nav>span { align-items:center; background:var(--green); border:5px solid var(--paper); border-radius:50%; display:flex; height:58px; justify-content:center; margin-top:-28px; width:58px; }
.bottom-nav .card-nav img { filter:brightness(0) invert(1); height:23px; width:23px; }
.bottom-nav .card-nav small { font-size:9px; }
.toast { background:#17201d; bottom:92px; color:white; font-size:12px; left:50%; max-width:340px; padding:13px 16px; position:fixed; transform:translateX(-50%); width:calc(100% - 36px); z-index:60; }
.empty-state { color:var(--muted); font-size:12px; padding:28px; text-align:center; }
@media (min-width:780px) {
  .app-shell { background:var(--paper); box-shadow:0 0 70px rgba(18,50,40,.08); }
  .balance-band { min-height:205px; }
  .quick-actions { max-width:520px; }
  .bottom-nav { max-width:760px; }
}
@media (max-width:760px) {
  .auth-layout { display:block; }
  .auth-brand { min-height:265px; padding:24px; }
  .auth-brand:after { height:240px; width:240px; }
  .auth-statement h1 { font-size:36px; margin-top:40px; }
  .benefit-strip { display:none; }
  .auth-panel { box-shadow:none; margin:0; max-width:none; min-height:calc(100vh - 265px); padding:28px 22px 45px; width:100%; }
  .app-content { padding:20px 16px; }
  .quick-actions { gap:5px; }
  .quick-actions button span { height:50px; width:50px; }
  .campaign-banner { min-height:170px; padding:22px; }
  .campaign-banner h2 { font-size:21px; max-width:15ch; }
  .campaign-banner>img { height:110px; margin-right:-35px; width:110px; }
}