
:root{
  --green:#123f33;
  --green-2:#1f5446;
  --cream:#f7f2e5;
  --cream-2:#fffdf8;
  --gold:#b88936;
  --gold-soft:#d8bd83;
  --ink:#17352d;
  --muted:#6f766f;
  --line:rgba(18,63,51,.13);
  --shadow:0 20px 55px rgba(18,63,51,.12);
  --radius:24px;
}
*{box-sizing:border-box}
html{background:var(--cream)}
body{
  margin:0;
  min-height:100vh;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at 20% 0%,rgba(184,137,54,.10),transparent 34%),
    linear-gradient(180deg,#fffdf8 0%,#f7f2e5 100%);
}
button,input{font:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
.shell{min-height:100vh}
.view{width:100%;min-height:100vh}
.offline-banner{
  position:fixed;top:0;left:0;right:0;z-index:99;
  padding:8px 16px;text-align:center;background:#8f3e30;color:#fff;font-size:13px
}
.auth-view{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:28px 18px 38px;
}
.auth-card{
  width:min(100%,520px);
  background:rgba(255,253,248,.94);
  border:1px solid rgba(184,137,54,.22);
  border-radius:30px;
  padding:30px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(10px);
}
.brand-logo{display:block;width:180px;max-height:105px;object-fit:contain;margin:0 auto 12px}
.auth-card h1{font-family:Georgia,"Times New Roman",serif;font-weight:500;font-size:clamp(34px,8vw,48px);line-height:1.03;margin:10px 0 12px;text-align:center;color:var(--green)}
.lead{text-align:center;color:var(--muted);line-height:1.55;margin:0 auto 25px;max-width:410px}
.eyebrow{font-size:11px;font-weight:800;letter-spacing:.18em;color:var(--gold);margin:0 0 6px}
.auth-card>.eyebrow{text-align:center}
.auth-choice{display:grid;gap:12px}
.btn{
  width:100%;border:0;border-radius:15px;padding:15px 18px;font-weight:750;
  transition:transform .12s ease,box-shadow .12s ease,background .12s ease
}
.btn:active{transform:scale(.985)}
.btn-primary{background:var(--green);color:#fff;box-shadow:0 10px 22px rgba(18,63,51,.17)}
.btn-secondary{background:var(--cream);color:var(--green);border:1px solid rgba(18,63,51,.17)}
.btn-ghost{background:transparent;color:#7b3c31;border:1px solid rgba(123,60,49,.25)}
.auth-form{display:grid;gap:14px}
.auth-form h2{font-family:Georgia,serif;font-weight:500;font-size:31px;margin:4px 0 0;color:var(--green)}
.form-note{margin:0 0 2px;color:var(--muted);line-height:1.5}
label{display:grid;gap:7px;font-size:13px;font-weight:750;color:var(--green)}
input{
  width:100%;border:1px solid rgba(18,63,51,.18);border-radius:13px;padding:13px 14px;
  background:#fff;color:var(--ink);outline:none
}
input:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(184,137,54,.10)}
.two-cols{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.check-line{grid-template-columns:auto 1fr;align-items:flex-start;font-weight:500;color:var(--muted);line-height:1.4}
.check-line input{width:18px;height:18px;margin-top:1px;accent-color:var(--green)}
.back-link,.text-btn,.install-link{
  border:0;background:transparent;color:var(--green);padding:0;text-align:left;font-weight:750
}
.back-link{margin-bottom:4px}
.text-btn{color:var(--gold)}
.text-btn.compact{font-size:13px}
.install-link{margin-top:16px;color:var(--green);text-decoration:underline;text-underline-offset:4px}
.fine-print{font-size:11px;line-height:1.45;color:#8b8e89;margin:0}
.message{min-height:18px;margin-top:14px;font-size:13px;text-align:center;color:#8f3e30}
.message.ok{color:var(--green)}
.otp-icon{font-size:27px;color:var(--gold);text-align:center}
.otp-input{text-align:center;font-size:28px;letter-spacing:.38em;font-weight:800;padding-left:calc(14px + .38em)}
.topbar{
  height:72px;display:flex;align-items:center;justify-content:space-between;
  padding:10px 20px;border-bottom:1px solid var(--line);
  background:rgba(255,253,248,.88);backdrop-filter:blur(18px);
  position:sticky;top:0;z-index:20
}
.top-logo{width:138px;height:48px;object-fit:contain;object-position:left center}
.icon-btn{
  width:42px;height:42px;border-radius:50%;border:1px solid var(--line);
  background:#fffdf8;color:var(--green);font-size:23px
}
.app-view{padding-bottom:92px}
.panel{display:none;width:min(100%,760px);margin:0 auto;padding:24px 18px 36px}
.panel.active{display:block}
.hello-row{display:flex;justify-content:space-between;gap:15px;align-items:center;margin:4px 2px 18px}
.hello-row h2,.panel-title h2{font-family:Georgia,serif;font-weight:500;color:var(--green);font-size:34px;margin:0}
.member-chip{font-size:11px;padding:9px 11px;border-radius:999px;background:#e8ddc2;color:#6f5422;font-weight:800;white-space:nowrap}
.wallet-card{
  background:linear-gradient(135deg,var(--green),#0d3028);
  color:#fff;border-radius:28px;padding:27px 24px;margin-bottom:16px;box-shadow:0 18px 40px rgba(18,63,51,.20)
}
.wallet-card span{display:block;font-size:13px;opacity:.82;margin-bottom:8px}
.wallet-card strong{display:block;font-family:Georgia,serif;font-weight:500;font-size:47px;letter-spacing:-.03em;margin-bottom:6px}
.wallet-card small{opacity:.65;line-height:1.4}
.privilege-card{
  position:relative;overflow:hidden;min-height:150px;padding:25px;border-radius:25px;
  background:linear-gradient(135deg,#f3ead6,#fffdf8);
  border:1px solid rgba(184,137,54,.28);display:flex;align-items:center;justify-content:space-between;
}
.privilege-card:after{
  content:"";position:absolute;width:180px;height:180px;border:1px solid rgba(184,137,54,.18);
  border-radius:50%;right:-70px;bottom:-95px
}
.privilege-kicker{font-size:10px;letter-spacing:.17em;color:var(--gold);font-weight:850;margin:0 0 7px}
.privilege-card h3{font-family:Georgia,serif;font-size:26px;font-weight:500;margin:0 0 10px;color:var(--green)}
.privilege-card p:last-child{margin:0;color:var(--muted)}
.gold-mark{font-family:Georgia,serif;font-size:60px;color:var(--gold);opacity:.9;padding-right:8px}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;margin:30px 2px 13px;gap:15px}
.section-head h3{font-family:Georgia,serif;font-size:25px;font-weight:500;color:var(--green);margin:0}
.offer-list,.history-list{display:grid;gap:10px}
.offer-card{
  background:var(--cream-2);border:1px solid var(--line);border-radius:18px;padding:17px;
  display:flex;align-items:flex-start;gap:14px
}
.offer-badge{
  flex:0 0 auto;min-width:48px;height:48px;border-radius:15px;background:#eee2c8;color:#76581e;
  display:grid;place-items:center;font-weight:900;font-size:12px;text-align:center;padding:4px
}
.offer-card h4{margin:1px 0 4px;color:var(--green);font-size:15px}
.offer-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.45}
.offer-empty,.history-empty{
  padding:18px;border:1px dashed rgba(18,63,51,.19);border-radius:16px;color:var(--muted);
  text-align:center;background:rgba(255,255,255,.35);font-size:13px
}
.history-item{
  display:grid;grid-template-columns:1fr auto;gap:8px 14px;padding:14px 2px;border-bottom:1px solid var(--line)
}
.history-item:last-child{border-bottom:0}
.history-item h4{font-size:14px;margin:0;color:var(--green)}
.history-meta{font-size:11px;color:#92958f;margin-top:4px}
.amount{font-weight:850;font-size:15px}
.amount.positive{color:#227454}.amount.negative{color:#945043}
.panel-title{margin:5px 2px 22px}
.panel-title p:last-child{color:var(--muted);line-height:1.5;margin:7px 0 0}
.qr-card{
  background:var(--cream-2);border:1px solid rgba(184,137,54,.28);border-radius:26px;padding:27px 20px;
  text-align:center;box-shadow:0 12px 30px rgba(18,63,51,.07)
}
.qr-box{width:210px;height:210px;margin:0 auto 15px;padding:10px;background:#fff;border-radius:16px;display:grid;place-items:center}
.qr-box img,.qr-box canvas{max-width:190px!important;max-height:190px!important}
.member-ref{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;color:var(--green);word-break:break-all}
.qr-card small{display:block;color:var(--muted);line-height:1.45;max-width:420px;margin:0 auto}
.offer-grid{display:grid;gap:12px}
.profile-card{
  display:flex;align-items:center;gap:17px;background:var(--cream-2);border:1px solid var(--line);
  border-radius:22px;padding:20px
}
.profile-avatar{width:58px;height:58px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;font-weight:850;font-size:20px}
.profile-card h3{margin:0 0 5px;font-family:Georgia,serif;font-size:24px;font-weight:500;color:var(--green)}
.profile-card p{margin:3px 0;color:var(--muted);font-size:13px}
.profile-actions{display:grid;gap:11px;margin-top:18px}
.security-note{margin:20px 3px 0;color:var(--muted);font-size:12px;line-height:1.5}
.bottom-nav{
  position:fixed;left:50%;transform:translateX(-50%);bottom:0;z-index:30;
  width:min(100%,760px);height:78px;padding:8px 12px calc(8px + env(safe-area-inset-bottom));
  background:rgba(255,253,248,.94);backdrop-filter:blur(18px);border-top:1px solid var(--line);
  display:grid;grid-template-columns:repeat(4,1fr)
}
.nav-btn{border:0;background:transparent;color:#7c817d;font-size:10px;font-weight:750;display:grid;place-items:center;gap:3px}
.nav-btn span{font-size:20px;line-height:1}
.nav-btn.active{color:var(--green)}
.modal{
  position:fixed;inset:0;z-index:90;background:rgba(9,30,25,.52);display:flex;align-items:flex-end;justify-content:center;padding:18px
}
.modal-card{
  position:relative;width:min(100%,520px);background:var(--cream-2);border-radius:26px;padding:25px;
  box-shadow:var(--shadow);animation:up .18s ease-out
}
.modal-card h2{font-family:Georgia,serif;font-size:28px;font-weight:500;color:var(--green);margin:4px 0 14px}
.modal-card p,.modal-card li{color:var(--muted);line-height:1.55}
.modal-close{position:absolute;right:15px;top:12px;border:0;background:transparent;font-size:30px;color:var(--green)}
.toast{
  position:fixed;left:50%;bottom:96px;transform:translateX(-50%);z-index:120;
  width:min(calc(100% - 32px),440px);padding:13px 16px;border-radius:14px;background:#17352d;color:#fff;
  box-shadow:0 10px 30px rgba(0,0,0,.18);text-align:center;font-size:13px
}
.skeleton{height:65px;border-radius:16px;background:linear-gradient(90deg,#eee9dc 25%,#faf7ef 37%,#eee9dc 63%);background-size:400% 100%;animation:shimmer 1.4s infinite}
@keyframes shimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}
@keyframes up{from{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}
@media (min-width:720px){
  .panel{padding-top:34px}
  .offer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:460px){
  .auth-card{padding:24px 19px;border-radius:25px}
  .two-cols{grid-template-columns:1fr}
  .brand-logo{width:155px}
  .wallet-card strong{font-size:43px}
}
