:root{
  --primary:#22b9aa;
  --primary-dark:#0b6f68;
  --primary-soft:#dff8f5;
  --off:#f7f3ea;
  --coffee:#2a1712;
  --ink:#102c29;
  --muted:#687c78;
  --line:#dfe8e5;
  --card:#ffffff;
  --danger:#b42318;
  --success:#138a55;
  --sweet:#7a4d00;
  --shadow:0 24px 70px rgba(7,55,50,.13);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:linear-gradient(135deg,#f9f4ea 0%,#effaf8 48%,#f7f3ea 100%);color:var(--ink);min-height:100vh;overflow-x:hidden}
a{color:var(--primary-dark);text-decoration:none}img{max-width:100%}.ambient{position:fixed;border-radius:999px;filter:blur(50px);opacity:.42;z-index:-1}.ambient-a{width:380px;height:380px;left:-120px;top:-120px;background:var(--primary)}.ambient-b{width:320px;height:320px;right:-90px;bottom:10%;background:#ead6bc}.page-shell{max-width:1220px;margin:0 auto;padding:18px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:13px 16px;background:rgba(255,255,255,.72);border:1px solid rgba(255,255,255,.9);border-radius:28px;box-shadow:0 14px 42px rgba(13,69,61,.09);position:sticky;top:14px;z-index:10;backdrop-filter:blur(18px)}.brand{display:flex;align-items:center;gap:12px;color:var(--ink)}.brand img{width:68px;height:48px;object-fit:cover;border-radius:16px;display:block;background:white;box-shadow:0 8px 18px rgba(0,0,0,.08)}.brand span{display:grid;line-height:1.1}.brand strong{font-size:15px}.brand small{font-size:12px;color:var(--muted);font-weight:800}.nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.nav a{padding:10px 12px;border-radius:999px;color:var(--ink);font-weight:850;font-size:14px;transition:.18s ease}.nav a:hover,.pill{background:var(--primary);color:white!important;box-shadow:0 12px 28px rgba(34,185,170,.24)}.nav .logout{background:#fff4f2;color:#8a2017}.hero{display:grid;grid-template-columns:1.1fr .9fr;gap:30px;align-items:center;min-height:66vh;padding:54px 4px}.hero-copy{padding:8px}.eyebrow{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(34,185,170,.12);color:var(--primary-dark);font-weight:900;font-size:13px;letter-spacing:.01em}.hero h1{font-size:clamp(42px,7vw,82px);line-height:.94;margin:18px 0 16px;color:#0d332f;letter-spacing:-.065em}.hero p{font-size:20px;line-height:1.58;color:var(--muted);max-width:650px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}.btn{border:none;border-radius:17px;padding:13px 18px;font-weight:950;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;transition:.18s ease;font-size:14px}.btn:hover{transform:translateY(-1px)}.btn.primary{background:linear-gradient(135deg,var(--primary),#18a495);color:white;box-shadow:0 16px 30px rgba(34,185,170,.27)}.btn.dark{background:#14312d;color:white}.btn.ghost{background:white;color:var(--ink);border:1px solid var(--line)}.btn.mini{padding:8px 10px;min-height:34px;border-radius:12px;font-size:12px}.btn.full,.full{grid-column:1/-1;width:100%}.trust-strip{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.trust-strip span{background:rgba(255,255,255,.74);border:1px solid rgba(255,255,255,.9);border-radius:999px;padding:10px 13px;font-size:13px;font-weight:900;color:#23524c}.hero-card,.auth-card,.panel,.welcome-card,.qr-card,.customer-result,.scanner-card,.feature-grid article{background:rgba(255,255,255,.84);border:1px solid rgba(255,255,255,.92);border-radius:32px;box-shadow:var(--shadow);padding:28px}.premium-card{text-align:center;position:relative;overflow:hidden}.premium-card:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at top,rgba(34,185,170,.18),transparent 45%);pointer-events:none}.premium-card>img{border-radius:26px;background:white;padding:8px;position:relative}.mini-phone{margin:20px auto 0;max-width:360px;background:linear-gradient(180deg,#102c29,#153b35);border-radius:30px;padding:18px;color:white;text-align:left;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}.mini-status{display:flex;justify-content:space-between;align-items:center}.mini-status span,.mini-status strong{font-weight:900}.progress-demo{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:18px 0 10px}.progress-demo span{height:16px;border-radius:999px;background:var(--primary)}.progress-demo .empty{background:rgba(255,255,255,.22)}.mini-phone strong{font-size:28px;display:block}.mini-phone small{color:rgba(255,255,255,.72)}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:0 0 28px}.feature-grid article{display:grid;gap:8px}.feature-grid b{font-size:28px}.feature-grid strong{font-size:18px}.feature-grid span{color:var(--muted);line-height:1.45}.auth-wrap{min-height:calc(100vh - 130px);display:grid;place-items:center;padding:34px 0}.auth-card{max-width:520px;width:100%}.auth-card.wide{max-width:850px}.glass-card{background:rgba(255,255,255,.82);backdrop-filter:blur(18px)}.auth-card h1,.page-panel h1{font-size:34px;margin:10px 0 8px;letter-spacing:-.035em}.auth-card p,.panel p{color:var(--muted);line-height:1.52}.form{display:grid;gap:14px;margin-top:18px}.grid-form{grid-template-columns:repeat(2,minmax(0,1fr))}.form label{font-weight:850;color:#173d38;display:grid;gap:7px}.form small{font-weight:750;color:var(--muted)}.form input,.form textarea,.form select,.inline-form input,.table-actions input,.action-box select{width:100%;border:1px solid var(--line);background:#fff;border-radius:16px;padding:13px 14px;font:inherit;outline:none}.form select,.action-box select{appearance:auto}.form input:focus,.form textarea:focus,.form select:focus,.action-box select:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(34,185,170,.12)}.check{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;font-weight:750}.check input{width:auto}.alert{background:#eef9f6;border:1px solid rgba(34,185,170,.25);padding:12px 14px;border-radius:16px;color:#175047}.alert.error{background:#fff1f0;border-color:#ffd0cc;color:var(--danger)}.mobile-dashboard{max-width:830px;margin:24px auto;display:grid;gap:18px}.app-grid{grid-template-columns:1fr}.welcome-card{background:linear-gradient(135deg,#0e5b55,var(--primary));color:white}.pro-welcome{display:flex;justify-content:space-between;align-items:center;gap:18px}.welcome-card span{font-weight:900;opacity:.86}.welcome-card h1{font-size:36px;margin:4px 0;letter-spacing:-.04em}.welcome-card p{opacity:.86;color:white}.rank-chip{display:grid;gap:2px;justify-items:center;min-width:150px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.25);padding:14px;border-radius:22px;text-align:center}.rank-chip b{font-size:26px}.rank-chip strong{font-size:14px}.rank-chip small{color:rgba(255,255,255,.78);font-weight:850}.qr-card{text-align:center}.premium-qr{background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,255,255,.78))}.qr-frame{display:inline-grid;place-items:center;background:linear-gradient(135deg,var(--primary-soft),white);padding:12px;border-radius:30px}.qr-card .qr{width:250px;border:12px solid white;border-radius:24px;box-shadow:0 10px 30px rgba(0,0,0,.08)}code{display:inline-block;background:#edf6f4;padding:8px 12px;border-radius:999px;color:#32615a;margin-top:12px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.admin-stats{grid-template-columns:repeat(6,1fr);margin:16px 0}.stat{background:white;border:1px solid var(--line);border-radius:24px;padding:18px;box-shadow:0 10px 24px rgba(16,51,46,.06)}.stat small{display:block;color:var(--muted);font-weight:800}.stat strong{font-size:30px;display:block;margin-top:6px;letter-spacing:-.04em}.panel{margin:18px 0}.page-panel{max-width:1100px;margin:26px auto}.panel h2{margin-top:0;letter-spacing:-.02em}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-title h2{margin:0}.campaign{background:linear-gradient(180deg,#fbfefd,#f7fbfa);border:1px solid var(--line);border-radius:20px;padding:16px;margin:12px 0}.campaign.big{padding:22px}.row{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.details{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0}.details.compact{grid-template-columns:repeat(2,1fr)}.details div{background:#f8fbfa;border:1px solid var(--line);border-radius:18px;padding:14px}.details small,.details strong{display:block}.details small,.muted,small{color:var(--muted)}.badge-row{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.badge{display:inline-flex;background:#edf2f1;border:1px solid var(--line);border-radius:999px;padding:8px 12px;font-weight:900;color:#2d514b}.badge.success{background:#eaf8f1;color:var(--success);border-color:#cdeedd}.badge.sweet{background:#fff6e6;color:var(--sweet);border-color:#f0d7a8}.scanner-card{display:grid;gap:14px}#reader{width:100%;max-width:420px;border-radius:24px;overflow:hidden}.inline-form{display:flex;gap:10px}.staff-layout{display:grid;grid-template-columns:1.05fr .95fr;gap:18px}.staff-hero{margin:0}.scanner-card{margin:0}.customer-result{margin-top:0;grid-column:1/-1}.customer-top{display:flex;justify-content:space-between;align-items:center;gap:16px}.customer-top h2{font-size:34px;margin:4px 0 0;letter-spacing:-.04em}.customer-top p{margin:4px 0;color:var(--muted)}.customer-pro-card .rank-chip{background:linear-gradient(135deg,var(--primary),#138f84);color:white}.progress-bar,.progress-line{height:13px;background:#e5efed;border-radius:999px;overflow:hidden}.progress-line{background:rgba(255,255,255,.18);margin:12px 0}.progress-bar i,.progress-line i{height:100%;display:block;background:linear-gradient(90deg,var(--primary),#0e7e75);border-radius:999px}.rank-panel .rank-head,.rank-head{display:flex;align-items:center;gap:12px}.rank-head b{display:grid;place-items:center;width:50px;height:50px;border-radius:18px;background:var(--primary-soft);font-size:26px}.rank-head.big b{width:64px;height:64px;font-size:34px}.rank-head strong{display:block}.rank-head small{display:block;color:var(--muted);margin-top:3px}.reward-note{margin-top:12px;background:#fff8e8;border:1px solid #f2ddb3;color:#6f4c00;border-radius:16px;padding:12px;font-weight:850}.action-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:12px;margin-top:18px}.action-box{background:#f8fbfa;border:1px solid var(--line);border-radius:22px;padding:16px;display:grid;gap:10px}.action-box strong{display:block}.action-box small{color:var(--muted)}.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.profile-hero{background:linear-gradient(135deg,#0f3d38,#1aa697);color:white}.profile-hero p{color:rgba(255,255,255,.8)}.profile-hero .rank-head b{background:rgba(255,255,255,.18)}.profile-hero .rank-head small{color:rgba(255,255,255,.75)}.full-panel{grid-column:1/-1}table{width:100%;border-collapse:collapse;background:white;border-radius:22px;overflow:hidden;box-shadow:0 12px 30px rgba(16,51,46,.06)}th,td{text-align:left;padding:14px;border-bottom:1px solid var(--line);vertical-align:top}th{background:#eff8f6;color:#214943;font-size:12px;text-transform:uppercase;letter-spacing:.04em}td{font-size:14px}.table-actions{display:flex;gap:8px;flex-wrap:wrap}.table-actions form{display:flex;gap:6px}
@media (max-width:980px){.hero{grid-template-columns:1fr;min-height:auto}.staff-layout,.profile-grid{grid-template-columns:1fr}.admin-stats{grid-template-columns:repeat(3,1fr)}.action-grid{grid-template-columns:1fr}.feature-grid{grid-template-columns:1fr 1fr}.topbar{align-items:flex-start;position:static}.nav{gap:4px}.nav a{font-size:12px;padding:8px 9px}}
@media (max-width:760px){.page-shell{padding:10px}.topbar{display:grid;border-radius:22px}.brand img{width:58px;height:42px}.brand strong{font-size:14px}.brand small{font-size:11px}.nav{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}.nav a{white-space:nowrap}.hero{padding:28px 0 16px}.hero h1{font-size:42px}.hero p{font-size:17px}.feature-grid,.grid-form,.stats-grid,.admin-stats,.details,.details.compact{grid-template-columns:1fr}.auth-card,.panel,.welcome-card,.qr-card,.customer-result,.scanner-card,.feature-grid article{border-radius:24px;padding:20px}.pro-welcome,.customer-top{display:grid}.rank-chip{justify-items:start;text-align:left;min-width:auto}.qr-card .qr{width:220px}.inline-form{display:grid}.row{display:grid}.actions .btn{width:100%}table{display:block;overflow-x:auto;white-space:nowrap}.section-title{align-items:flex-start}.hero-card{display:none}}
/* v3 professional additions */
.qr-live-card{position:relative;overflow:hidden}.qr-live-card:after{content:"";position:absolute;inset:auto -30px -70px auto;width:160px;height:160px;background:rgba(34,185,170,.14);border-radius:999px}.qr-status{display:flex;align-items:center;justify-content:space-between;max-width:310px;margin:0 auto 12px;background:#102c29;color:white;border-radius:999px;padding:9px 13px;font-weight:950}.qr-status span{opacity:.82}.qr-status strong{color:#bffff8}.wallet-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.wallet-card{position:relative;overflow:hidden;background:rgba(255,255,255,.88);border:1px solid rgba(255,255,255,.94);border-radius:26px;padding:20px;box-shadow:0 14px 34px rgba(16,51,46,.08)}.wallet-card:before{content:"";position:absolute;right:-35px;top:-35px;width:95px;height:95px;border-radius:999px;background:rgba(34,185,170,.16)}.wallet-card small,.wallet-card span{display:block;color:var(--muted);font-weight:850}.wallet-card strong{display:block;font-size:25px;letter-spacing:-.035em;margin:6px 0;color:#133d38}.sweet-wallet:before{background:rgba(185,132,34,.16)}.discount-wallet:before{background:rgba(34,185,170,.22)}.badge.discount{background:#ecfbf9;color:#0b6f68;border-color:#bfefea}.badge.crown{background:#fff4d7;color:#7a4d00;border-color:#f2d990}.compact-check{font-size:13px!important;align-items:flex-start!important}.install-card{display:flex;align-items:center;justify-content:space-between;gap:18px;background:linear-gradient(135deg,#ffffff,#effaf8)}.install-card p{margin:4px 0 0}.insight-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.wide-stats{grid-template-columns:repeat(6,1fr)}.campaign-admin-card .badge-row{margin:10px 0 12px}.campaign-admin-card form{margin-top:8px}
@media (max-width:980px){.wallet-grid,.insight-grid{grid-template-columns:1fr}.wide-stats{grid-template-columns:repeat(3,1fr)}}
@media (max-width:760px){.wallet-grid,.wide-stats{grid-template-columns:1fr}.install-card{display:grid}.wallet-card strong{font-size:22px}}

/* v3.1 visual polish: cleaner customer-facing language, richer spacing, premium app feel */
.refined-dashboard{gap:22px}
.refined-welcome{position:relative;overflow:hidden;padding:30px;background:linear-gradient(135deg,#063f3a 0%,#109e92 55%,#22b9aa 100%)}
.refined-welcome:after{content:"";position:absolute;width:220px;height:220px;right:-70px;top:-90px;border-radius:999px;background:rgba(255,255,255,.14);pointer-events:none}
.refined-welcome h1{font-size:clamp(27px,6vw,40px)}
.refined-welcome p{max-width:520px;margin-bottom:0}
.elevated-chip{box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),0 18px 38px rgba(0,0,0,.12)}
.refined-qr-card{padding:28px 24px 24px;border-radius:34px;background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(248,253,252,.9))}
.refined-qr-card .qr-frame{margin:4px 0 10px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.8)}
.clean-note{margin:12px auto 0;max-width:360px;font-size:14px}
.refined-wallet .wallet-card{min-height:145px;display:flex;flex-direction:column;justify-content:space-between;padding:22px;border-radius:28px;border-color:rgba(255,255,255,.98)}
.refined-wallet .wallet-card small{font-size:13px;text-transform:uppercase;letter-spacing:.035em}
.refined-wallet .wallet-card strong{font-size:34px;line-height:1;margin:10px 0;color:#0d332f}
.refined-wallet .wallet-card span{font-size:13px;line-height:1.35}
.refined-rank-panel{padding:28px;border-radius:32px;background:rgba(255,255,255,.92)}
.rank-head-spaced{gap:18px;margin-top:20px;margin-bottom:20px;align-items:center}
.rank-head-spaced b{flex:0 0 auto;box-shadow:0 12px 26px rgba(34,185,170,.14)}
.rank-head-spaced strong{font-size:20px;letter-spacing:-.015em}
.rank-head-spaced small{font-size:14px;line-height:1.35;margin-top:6px}
.refined-progress{height:14px;margin-top:16px;background:#e2efec;box-shadow:inset 0 1px 2px rgba(0,0,0,.045)}
.refined-progress i{background:linear-gradient(90deg,#22b9aa 0%,#0d786f 100%);box-shadow:0 0 16px rgba(34,185,170,.34)}
.refined-stats .stat{background:rgba(255,255,255,.88);border-color:rgba(223,232,229,.9)}
.refined-stats .stat strong{font-size:27px}
.refined-install{border-radius:30px;border-color:rgba(255,255,255,.95)}
.refined-panel{border-radius:32px;background:rgba(255,255,255,.9)}
.refined-campaign{background:linear-gradient(135deg,#ffffff 0%,#f0fbf9 100%);border-radius:24px;padding:18px}
.refined-profile{gap:20px}
.refined-profile-hero{position:relative;overflow:hidden;padding:30px;border-radius:34px;background:linear-gradient(135deg,#082f2b 0%,#118b81 100%)}
.refined-profile-hero:after{content:"";position:absolute;right:-80px;bottom:-90px;width:220px;height:220px;border-radius:999px;background:rgba(255,255,255,.12)}
.refined-profile-hero>*{position:relative;z-index:1}
.profile-xp-line{display:flex;justify-content:space-between;gap:12px;margin-top:10px;font-weight:900;color:rgba(255,255,255,.82)}
.refined-details{gap:14px}
.refined-details div{background:linear-gradient(180deg,#ffffff,#f7fbfa);border-color:#e3eeeb;border-radius:20px;padding:16px}
.refined-details strong{margin-top:5px;font-size:17px;color:#143d38}
.document-panel{background:linear-gradient(135deg,#ffffff,#f1fbf9)}
.refined-staff-layout{gap:20px}
.refined-staff-hero{border-radius:34px;background:linear-gradient(135deg,#ffffff 0%,#eefaf8 100%)}
.refined-staff-hero h1{font-size:clamp(30px,4vw,46px);line-height:1.02;letter-spacing:-.045em;margin-bottom:10px}
.refined-scanner{border-radius:34px;background:rgba(255,255,255,.93)}
.refined-customer-card{border-radius:36px;padding:30px;background:rgba(255,255,255,.94)}
.refined-badges{margin:18px 0;gap:10px}
.refined-badges .badge{padding:9px 13px}
.rank-progress-block{background:linear-gradient(180deg,#f8fcfb,#ffffff);border:1px solid var(--line);border-radius:24px;padding:18px;margin:18px 0 4px}
.compact-title h2{font-size:18px;margin:0}.compact-title span{font-weight:900;color:var(--primary-dark)}
.refined-actions .action-box{border-radius:24px;background:linear-gradient(180deg,#ffffff,#f8fbfa);padding:18px}
.refined-landing .hero-copy p{max-width:610px}
.refined-phone-card{border-radius:38px}
.refined-features article{border-radius:30px;background:rgba(255,255,255,.86)}
.refined-features b{width:54px;height:54px;border-radius:20px;background:var(--primary-soft);display:grid;place-items:center}
.reward-note{display:none!important}
@media (max-width:760px){
  .refined-dashboard{gap:16px;margin-top:16px}
  .refined-welcome,.refined-qr-card,.refined-rank-panel,.refined-panel,.refined-customer-card,.refined-scanner,.refined-staff-hero,.refined-profile-hero{border-radius:26px;padding:22px}
  .rank-head-spaced{gap:14px;margin-top:18px;margin-bottom:18px}
  .rank-head-spaced b{width:58px;height:58px;border-radius:20px;font-size:30px}
  .rank-head-spaced strong{font-size:18px}
  .refined-wallet .wallet-card{min-height:auto;padding:20px}
  .refined-wallet .wallet-card strong{font-size:30px}
  .refined-qr-card .qr{width:210px}
  .profile-xp-line{font-size:13px}
  .compact-title{display:grid;gap:6px}
}

/* v3.2 homepage balance: smaller logo and equal hero columns */
.refined-landing{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:28px;
  align-items:stretch;
  min-height:auto;
  padding:44px 4px 36px;
}
.refined-landing .hero-copy,
.refined-landing .refined-phone-card{min-width:0;align-self:stretch}
.refined-landing .hero-copy{display:flex;flex-direction:column;justify-content:center}
.refined-phone-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:30px;
}
.refined-phone-card>img{
  width:clamp(108px,13vw,168px);
  height:clamp(108px,13vw,168px);
  object-fit:contain;
  border-radius:28px;
  padding:10px;
  margin:0 auto 18px;
  box-shadow:0 14px 34px rgba(16,51,46,.10);
}
.refined-phone-card .mini-phone{width:100%;max-width:360px;margin:0 auto}
.brand img{
  width:54px;
  height:40px;
  object-fit:contain;
  padding:3px;
  border-radius:14px;
}
@media (max-width:980px){
  .refined-landing{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;padding:34px 0 24px}
  .refined-landing .hero-copy{padding:0}
  .refined-phone-card{padding:24px}
  .refined-phone-card>img{width:118px;height:118px;margin-bottom:14px}
  .refined-phone-card .mini-phone{max-width:330px}
}
@media (max-width:760px){
  .refined-landing{grid-template-columns:1fr;gap:16px;padding:24px 0 16px}
  .refined-landing .hero-copy,
  .refined-landing .refined-phone-card{width:100%}
  .refined-landing .hero h1{font-size:38px}
  .hero-card.refined-phone-card{display:flex!important}
  .refined-phone-card{border-radius:26px;padding:20px}
  .refined-phone-card>img{width:96px;height:96px;border-radius:22px;margin-bottom:12px}
  .refined-phone-card .mini-phone{max-width:100%;border-radius:24px;padding:15px}
  .brand img{width:44px;height:34px;border-radius:12px;padding:2px}
}

/* v3.4 transaction pagination */
.transactions-panel .section-title span{
  color:var(--muted);
  font-weight:900;
  font-size:13px;
  background:#f2fbf9;
  border:1px solid #d8f1ed;
  border-radius:999px;
  padding:7px 10px;
}
.transaction-list{display:grid;gap:10px}
.transaction-row{
  border:1px solid #e4eeeb;
  background:linear-gradient(180deg,#ffffff,#f8fcfb);
  border-radius:18px;
  padding:14px 15px;
}
.transaction-row span{font-weight:850;line-height:1.35;color:#173d38}
.transaction-row small{color:var(--muted);font-weight:850;white-space:nowrap}
.pager{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--line);
}
.pager-btn{
  min-width:88px;
  text-align:center;
  border-radius:999px;
  padding:10px 13px;
  background:#ffffff;
  border:1px solid var(--line);
  color:var(--ink);
  font-weight:950;
  box-shadow:0 8px 18px rgba(16,51,46,.05);
}
.pager-btn:not(.disabled):hover{background:var(--primary);border-color:var(--primary);color:white}
.pager-btn.disabled{opacity:.45;box-shadow:none;cursor:not-allowed}
.pager-info{font-weight:950;color:var(--primary-dark);font-size:14px}
@media (max-width:760px){
  .transaction-row{display:grid;gap:6px;padding:13px}
  .transaction-row small{white-space:normal}
  .pager{display:grid;grid-template-columns:1fr auto 1fr;gap:8px}
  .pager-btn{min-width:auto;padding:10px 8px;font-size:13px}
  .pager-info{font-size:13px;text-align:center}
}


/* v3.5 PWA install and app-like session UX */
.pwa-install-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  border:1px solid rgba(34,185,170,.22);
  background:linear-gradient(135deg,#ffffff 0%,#f1fffc 100%);
}
.pwa-install-card p{margin:6px 0 0;color:var(--muted);font-weight:750;line-height:1.45}
.pwa-install-card .btn.small{white-space:nowrap;padding:11px 16px;border-radius:999px}
.pwa-modal{position:fixed;inset:0;z-index:999;display:none;align-items:center;justify-content:center;padding:22px}
.pwa-modal.show{display:flex}
.pwa-modal-backdrop{position:absolute;inset:0;background:rgba(10,35,32,.52);backdrop-filter:blur(8px)}
.pwa-modal-box{
  position:relative;
  width:min(430px,100%);
  border-radius:34px;
  padding:28px;
  background:linear-gradient(180deg,#ffffff,#f7f3ea);
  border:1px solid rgba(255,255,255,.7);
  box-shadow:0 30px 80px rgba(10,35,32,.28);
  text-align:center;
}
.pwa-modal-box img{width:86px;height:86px;object-fit:contain;border-radius:24px;margin-bottom:13px;box-shadow:0 16px 34px rgba(16,51,46,.13)}
.pwa-modal-box h2{margin:6px 0 10px;font-size:28px;color:var(--ink);letter-spacing:-.04em}
.pwa-modal-box p{margin:0;color:var(--muted);font-weight:760;line-height:1.55}
.pwa-modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}
.ios-help{
  display:none;
  text-align:left;
  margin-top:16px;
  padding:13px 14px;
  border-radius:18px;
  background:#eefbf9;
  border:1px solid #cdeee9;
  color:#17423d;
  font-size:13px;
  line-height:1.45;
  font-weight:800;
}
@media (max-width:760px){
  .pwa-install-card{display:grid;gap:14px;text-align:left}
  .pwa-install-card .btn.small{width:100%}
  .pwa-modal{align-items:flex-end;padding:14px}
  .pwa-modal-box{border-radius:28px;padding:24px 20px 20px}
  .pwa-modal-box h2{font-size:24px}
  .pwa-modal-actions{grid-template-columns:1fr}
}

/* v3.6 history spacing + password recovery */
.transactions-panel .section-title{
  margin-bottom:18px;
  padding-bottom:14px;
  border-bottom:1px solid rgba(223,232,229,.72);
}
.transactions-panel .transaction-list{margin-top:2px}
.transactions-panel .section-title h2{line-height:1.12}
.form-link-row{
  display:flex;
  justify-content:flex-end;
  margin-top:-4px;
  font-size:14px;
  font-weight:900;
}
.form-link-row a{color:var(--primary-dark)}
.auth-links{margin-top:18px;text-align:center;font-weight:820}
.recovery-card .alert{margin:14px 0}
.local-reset-box{
  display:grid;
  gap:7px;
  text-align:left;
}
.local-reset-box strong{font-size:14px;color:#17423d}
.local-reset-box span{font-size:13px;color:var(--muted);font-weight:760;line-height:1.45}
.local-reset-box a{
  display:inline-flex;
  justify-content:center;
  margin-top:4px;
  border-radius:999px;
  padding:10px 12px;
  background:var(--primary);
  color:white;
  font-weight:950;
}
@media (max-width:760px){
  .transactions-panel .section-title{
    display:grid;
    align-items:start;
    justify-content:stretch;
    gap:10px;
    margin-bottom:16px;
    padding-bottom:13px;
  }
  .transactions-panel .section-title span{justify-self:start}
  .form-link-row{justify-content:flex-start;margin-top:-2px}
}

/* v3.8 performance and polish pass */
:root{--shadow:0 14px 36px rgba(7,55,50,.10)}
.ambient{filter:blur(28px);opacity:.22;will-change:auto}.ambient-a{width:300px;height:300px}.ambient-b{width:250px;height:250px}
.topbar{backdrop-filter:blur(10px);box-shadow:0 10px 28px rgba(13,69,61,.075)}
.hero-card,.auth-card,.panel,.welcome-card,.qr-card,.customer-result,.scanner-card,.feature-grid article{box-shadow:0 14px 36px rgba(7,55,50,.09)}
.btn,.nav a{transition:background-color .15s ease,color .15s ease,border-color .15s ease,box-shadow .15s ease}.btn:hover{transform:none}
.qr-live-card .qr{image-rendering:auto}.table-wrap{width:100%;overflow-x:auto;border-radius:22px}.table-wrap table{min-width:860px}.page-title-row{align-items:flex-end;margin-bottom:16px}.page-title-row p{margin:6px 0 0}.admin-pager{margin-top:18px}.full-panel{grid-column:1/-1}.profile-grid>.alert.full-panel{margin:0}
@media (prefers-reduced-motion: reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media (max-width:760px){
  .ambient{display:none}.topbar{backdrop-filter:none;box-shadow:0 8px 22px rgba(13,69,61,.07)}
  .hero-card,.auth-card,.panel,.welcome-card,.qr-card,.customer-result,.scanner-card,.feature-grid article{box-shadow:0 10px 26px rgba(7,55,50,.075)}
  .table-wrap{margin-top:8px}.table-wrap table{min-width:780px}
}

/* v4 customer retention, passport, reports */
.full-panel{grid-column:1/-1}
.birthday-alert{background:linear-gradient(135deg,#fff7de,#eafffb);border-color:#f3d891;color:#513607;font-weight:900}
.today-card{background:linear-gradient(135deg,#092f2b 0%,#119085 68%,#22b9aa 100%);color:white;border:0;box-shadow:0 24px 70px rgba(11,111,104,.18)}
.today-card .section-title h2,.today-card .section-title span{color:white}.today-card .section-title span{opacity:.85}
.today-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px}
.today-grid>div{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:22px;padding:17px;display:grid;gap:4px}
.today-grid small{font-weight:900;opacity:.8;text-transform:uppercase;font-size:12px}.today-grid strong{font-size:34px;line-height:1}.today-grid span{font-size:13px;font-weight:800;opacity:.88;line-height:1.35}
.mini-callout{margin:14px 0 0;padding:13px 15px;border-radius:18px;background:rgba(255,255,255,.14);font-weight:900}
.passport-panel{overflow:hidden}.passport-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}.profile-passport{grid-template-columns:repeat(5,minmax(0,1fr))}
.passport-badge{border:1px solid #e3eeeb;background:linear-gradient(180deg,#fff,#f8fcfb);border-radius:20px;padding:14px;display:grid;gap:5px;min-height:120px;opacity:.52;filter:saturate(.45)}
.passport-badge.earned{opacity:1;filter:none;border-color:rgba(34,185,170,.35);box-shadow:0 12px 28px rgba(34,185,170,.10)}
.passport-badge b{font-size:28px}.passport-badge strong{font-size:14px;color:var(--ink)}.passport-badge small{color:var(--muted);font-weight:760;line-height:1.3}
.locked-note{margin:14px 0 0;font-size:13px}.quick-actions-panel{margin:18px 0;padding:18px;border-radius:24px;border:1px solid var(--line);background:linear-gradient(180deg,#f8fcfb,#ffffff)}
.quick-actions-panel>strong{display:block;margin-bottom:12px;font-size:18px}.quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.quick-actions form,.quick-actions button{width:100%}
.segment-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.segment-card{padding:22px;border-radius:28px}.segment-card small{font-weight:950;color:var(--primary-dark);text-transform:uppercase;letter-spacing:.05em}.segment-card>strong{display:block;font-size:42px;margin:8px 0 2px;color:#0d332f}.segment-card h2{margin:0;font-size:20px}.segment-card p{color:var(--muted);font-weight:760;line-height:1.45;min-height:42px}
.export-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.segment-mini-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.segment-mini-grid div{padding:16px;border-radius:18px;border:1px solid var(--line);background:#fff}.segment-mini-grid strong{display:block;font-size:28px;color:var(--primary-dark)}.segment-mini-grid span{font-weight:850;color:var(--muted)}
@media (max-width:980px){.segment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-passport{grid-template-columns:repeat(3,minmax(0,1fr))}.segment-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.today-grid{grid-template-columns:1fr}.passport-grid,.profile-passport{grid-template-columns:repeat(2,minmax(0,1fr))}.segment-grid{grid-template-columns:1fr}.quick-actions{grid-template-columns:1fr}.segment-mini-grid{grid-template-columns:1fr}.today-grid strong{font-size:30px}}

/* v4.2 contrast and abuse-control polish */
.welcome-card,
.today-card,
.refined-profile-hero,
.customer-pro-card .rank-chip{
  color:var(--off);
}
.welcome-card h1,
.welcome-card p,
.welcome-card span,
.welcome-card strong,
.welcome-card small,
.today-card h2,
.today-card p,
.today-card span,
.today-card small,
.today-card strong,
.today-card .section-title h2,
.today-card .section-title span,
.refined-profile-hero h1,
.refined-profile-hero h2,
.refined-profile-hero p,
.refined-profile-hero span,
.refined-profile-hero small,
.refined-profile-hero strong,
.customer-pro-card .rank-chip strong,
.customer-pro-card .rank-chip small{
  color:var(--off)!important;
}
.today-card .section-title span,
.today-grid small,
.today-grid span,
.welcome-card p,
.welcome-card span,
.rank-chip small,
.profile-xp-line{
  opacity:.94;
}
.today-grid>div{
  background:rgba(247,243,234,.15);
  border-color:rgba(247,243,234,.26);
}
.mini-callout{
  color:var(--off)!important;
  background:rgba(247,243,234,.16);
  border:1px solid rgba(247,243,234,.28);
}
.refined-profile-hero .progress-bar,
.today-card .progress-bar{
  background:rgba(247,243,234,.24);
}
.form-security-note{
  grid-column:1/-1;
  margin:0;
  padding:12px 14px;
  border-radius:16px;
  background:#f1fbf9;
  border:1px solid #d4efeb;
  color:#17423d;
  font-size:13px;
  font-weight:800;
  line-height:1.45;
}
@media (max-width:760px){
  .form-security-note{font-size:12px}
}


/* v4.3 email verification + staff management */
.verify-mail-card{
  margin:18px 0;
  padding:16px;
  border-radius:20px;
  background:linear-gradient(135deg,#ffffff,#eefbf9);
  border:1px solid #d8f1ed;
}
.verify-mail-card small{display:block;font-weight:900;color:var(--muted);margin-bottom:5px}
.verify-mail-card strong{display:block;font-size:18px;color:#173d38;word-break:break-word}
.local-dev-link{
  display:grid;
  gap:6px;
  margin:14px 0;
  padding:13px;
  border-radius:16px;
  background:#fff8e8;
  border:1px solid #f2ddb3;
}
.local-dev-link a{word-break:break-all;font-size:13px;font-weight:850}
.compact-resend{margin-top:10px;margin-bottom:12px}
.compact-resend .btn{width:100%}
table form{margin:0}
@media (max-width:760px){
  .grid-form{grid-template-columns:1fr}
  table{font-size:13px}
}

/* v4.4 responsive + iOS PWA guide + staff checkout polish */
html{font-size:16px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
button,input,select,textarea{font-size:16px}.page-shell{width:100%;max-width:1220px}.panel,.welcome-card,.qr-card,.customer-result,.scanner-card,.auth-card{min-width:0}.section-title{min-width:0}.section-title h2{min-width:0;overflow-wrap:anywhere}
.brand span,.nav,.row,.details div,.wallet-card,.passport-badge,.transaction-row{min-width:0}.brand strong,.brand small,.wallet-card span,.passport-badge small,.transaction-row span{overflow-wrap:anywhere}
.btn{touch-action:manipulation;-webkit-tap-highlight-color:transparent}.btn:active{transform:scale(.99)}
@media (max-width:420px){
  .page-shell{padding:8px}.topbar{padding:10px;border-radius:18px;gap:10px}.brand{gap:9px}.brand img{width:40px!important;height:31px!important}.brand strong{font-size:13px}.brand small{font-size:10px}.nav{gap:5px;margin-left:-2px;margin-right:-2px}.nav a{font-size:11px;padding:8px 9px}.auth-card,.panel,.welcome-card,.qr-card,.customer-result,.scanner-card,.feature-grid article{padding:17px;border-radius:22px}.welcome-card h1{font-size:28px}.auth-card h1,.page-panel h1{font-size:27px}.qr-card .qr{width:min(210px,76vw);border-width:9px}.qr-frame{padding:9px;border-radius:24px}.wallet-card,.stat{padding:15px;border-radius:20px}.today-grid>div{padding:14px;border-radius:18px}.passport-badge{padding:12px;border-radius:18px;min-height:112px}.pwa-modal{padding:10px}.pwa-modal-box{max-height:calc(100svh - 22px);overflow-y:auto}.staff-summary-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important}.staff-big-btn{min-height:54px;font-size:17px}.details.refined-details{grid-template-columns:1fr!important}
}
@media (min-width:421px) and (max-width:760px){
  .page-shell{padding:12px}.auth-card,.panel,.welcome-card,.qr-card,.customer-result,.scanner-card,.feature-grid article{padding:20px}.qr-card .qr{width:min(230px,72vw)}.staff-summary-strip{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (min-width:761px) and (max-width:1120px){
  .page-shell{padding:16px}.admin-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.wide-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* iOS install guide */
.ios-help{background:linear-gradient(180deg,#eefbf9,#ffffff);padding:15px;border-radius:20px;border-color:#cdeee9}.ios-steps{display:grid;gap:10px;margin-top:12px;text-align:left}.ios-step{display:grid;grid-template-columns:32px 1fr;gap:10px;align-items:start;padding:10px;border-radius:16px;background:#fff;border:1px solid #e1f2ef}.ios-step b{width:32px;height:32px;border-radius:12px;background:var(--primary);color:var(--off);display:grid;place-items:center;font-weight:950}.ios-step strong{display:block;color:#143c37;margin-bottom:3px}.ios-step span{display:block;color:var(--muted);font-weight:760;line-height:1.35}.verify-install-card{margin-top:18px;background:linear-gradient(135deg,#ffffff,#effaf8);border-color:#d3f0eb}.verify-install-card .btn{width:100%;margin-top:8px}.pwa-modal-box .eyebrow{margin-bottom:2px}

/* Staff: after QR, show the actual customer checkout first and minimize scrolling */
.staff-layout.staff-has-customer{grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);align-items:start;gap:16px}.staff-layout.staff-has-customer .staff-primary-card{order:1;grid-column:2;grid-row:1 / span 3}.staff-layout.staff-has-customer .staff-hero-compact{order:0;grid-column:1;margin:0;padding:22px}.staff-layout.staff-has-customer .scanner-compact{order:2;grid-column:1;margin:0;padding:20px;box-shadow:0 10px 26px rgba(7,55,50,.07)}.staff-hero-compact h1{font-size:27px;margin:8px 0 6px}.staff-hero-compact p{margin:0}.scanner-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:4px}.scanner-title strong{font-size:18px}.scanner-title small{color:var(--muted);font-weight:850}.scanner-compact #reader{max-height:220px;min-height:0}.staff-primary-card{scroll-margin-top:18px}.staff-customer-top{align-items:flex-start}.staff-summary-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}.staff-summary-strip div{border-radius:20px;padding:15px;background:linear-gradient(180deg,#f8fcfb,#fff);border:1px solid var(--line)}.staff-summary-strip small{display:block;color:var(--muted);font-weight:900}.staff-summary-strip strong{display:block;margin-top:3px;font-size:27px;color:var(--primary-dark);letter-spacing:-.04em}.staff-badge-row{margin-top:6px}.staff-quick-panel{margin:16px 0 10px;background:linear-gradient(135deg,#092f2b,#119085);border:0;color:var(--off);box-shadow:0 16px 38px rgba(11,111,104,.18)}.staff-quick-panel strong,.staff-quick-panel small{color:var(--off)}.quick-title{display:flex;justify-content:space-between;gap:10px;align-items:end;margin-bottom:12px}.quick-title small{opacity:.86;font-weight:850}.staff-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}.staff-big-btn{width:100%;min-height:58px;border-radius:18px;font-size:18px;box-shadow:0 10px 24px rgba(255,255,255,.07)!important;background:var(--off)!important;color:#0f514c!important}.staff-more-details{margin-top:14px;border:1px solid var(--line);border-radius:22px;background:#fff;overflow:hidden}.staff-more-details summary{cursor:pointer;list-style:none;padding:15px 17px;font-weight:950;color:#173d38;background:#f8fcfb}.staff-more-details summary::-webkit-details-marker{display:none}.staff-more-details summary:after{content:'Aç';float:right;color:var(--primary-dark)}.staff-more-details[open] summary:after{content:'Kapat'}.staff-more-details .details,.staff-more-details .rank-progress-block,.staff-more-details .action-grid{margin-left:16px;margin-right:16px}.staff-more-details .action-grid{margin-bottom:16px}
@media (max-width:980px){
  .staff-layout.staff-has-customer{grid-template-columns:1fr}.staff-layout.staff-has-customer .staff-primary-card{grid-column:1;grid-row:auto;order:0}.staff-layout.staff-has-customer .staff-hero-compact{grid-column:1;order:1}.staff-layout.staff-has-customer .scanner-compact{grid-column:1;order:2}.staff-hero-compact{display:none}.staff-summary-strip{grid-template-columns:repeat(4,minmax(0,1fr))}.staff-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}.staff-layout.staff-has-customer{margin-top:14px}.staff-primary-card{padding:20px}.staff-customer-top{display:grid;grid-template-columns:1fr auto}.staff-customer-top .rank-chip{justify-items:center;text-align:center;min-width:112px;padding:12px}
}
@media (max-width:760px){
  .staff-layout.staff-has-customer{gap:12px}.staff-customer-top{grid-template-columns:1fr;gap:12px}.staff-customer-top h2{font-size:28px}.staff-customer-top .rank-chip{justify-items:start;text-align:left;width:100%}.staff-summary-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.staff-summary-strip div{padding:13px;border-radius:18px}.staff-summary-strip strong{font-size:24px}.staff-quick-panel{padding:16px;border-radius:22px}.quick-title{display:grid}.staff-quick-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px}.staff-big-btn{min-height:54px;font-size:16px;padding:10px}.scanner-compact #reader{max-height:180px}.staff-more-details .details,.staff-more-details .rank-progress-block,.staff-more-details .action-grid{margin-left:12px;margin-right:12px}
}
