:root{--g:#183d2d;--gold:#bd914d;--bg:#f7f6f0;--muted:#758078;--line:#e5e9e2}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#243129;font:15px var(--zh-font-body)}header{height:72px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(6vw,20px)}.brand{font-size:25px;font-weight:700;letter-spacing:-1px;color:var(--g);text-decoration:none}.brand span{color:var(--gold)}nav{display:flex;align-items:center;gap:22px}nav a,nav button{font:600 13px var(--zh-font-body);color:#425348;text-decoration:none;background:none;border:0;cursor:pointer}nav form{margin:0}.pill{background:var(--g);color:white;padding:11px 16px;border-radius:8px}main{max-width:850px;margin:0 auto;padding:55px 22px 70px}.hero{padding:65px 0;max-width:650px}.hero small,section small{font-size:11px;letter-spacing:2px;font-weight:700;color:var(--gold)}h1{font:700 clamp(38px,7vw,62px)/1.08 var(--zh-font-heading);color:var(--g);margin:17px 0}.hero h1 i{color:var(--gold)}.hero p,.welcome p{color:var(--muted);line-height:1.8;max-width:510px;margin:20px 0 30px}.btn{display:inline-flex;justify-content:center;background:var(--g);color:#fff;text-decoration:none;border:0;border-radius:8px;padding:14px 20px;font:600 14px var(--zh-font-body);cursor:pointer;min-height:46px}.secondary{background:white;color:var(--g);border:1px solid var(--line);width:100%}.reward{margin-top:45px;border-top:1px solid var(--line);padding-top:25px;color:var(--muted)}.reward b{font:700 30px var(--zh-font-heading);color:var(--g);margin:0 7px}.reward span{color:var(--gold);margin:0 15px}.card,.progress{background:white;border:1px solid var(--line);border-radius:16px;padding:32px;max-width:470px;margin:0 auto;box-shadow:0 10px 30px #173b2b09}.card h1{font-size:36px}.card form{display:grid;gap:17px;margin:22px 0}.card label{display:grid;gap:7px;font-size:12px;font-weight:700}.card input{padding:13px;border:1px solid #dce2db;border-radius:8px;font:14px var(--zh-font-body);width:100%}.card em{font-size:11px;color:var(--muted);font-weight:400}.card p{color:var(--muted);font-size:13px;line-height:1.7}.card form .btn,.card>.btn{width:100%}.or{text-align:center}.welcome h1{font-size:42px;margin:10px 0}.welcome p{margin:5px 0 25px}.progress{max-width:none;margin:0 0 35px}.number{font:700 50px var(--zh-font-heading);color:var(--g);margin:10px 0}.number span{font:500 19px var(--zh-font-body);color:var(--muted)}.track{height:10px;background:#edf0eb;border-radius:20px;overflow:hidden;margin:15px 0}.track div{height:100%;background:#548465;border-radius:20px}.progress p{font-size:13px;color:var(--muted)}.progress .pending{background:#fff4df;color:#79571e;padding:12px;border-radius:8px}.progress hr{border:0;border-top:1px solid var(--line);margin:22px 0}.progress b{color:var(--g);font-size:13px}h2{font:700 22px var(--zh-font-heading);color:var(--g)}h2 small{float:right;letter-spacing:0;color:var(--muted);font:12px var(--zh-font-body)}.history{background:white;border:1px solid var(--line);border-radius:13px;overflow:hidden}.history div{display:flex;align-items:center;gap:12px;padding:16px;border-bottom:1px solid var(--line)}.history div:last-child{border:0}.history span{flex:1;font-size:13px}.history b{font-size:13px;color:var(--g)}.history>p{padding:15px;color:var(--muted);font-size:13px}.admin{max-width:none;margin:0 0 30px}.notice{width:min(100%,470px);margin:0 auto 16px;padding:13px 16px;background:#fff4df;color:#79571e;border:1px solid #f0e4c9;border-radius:10px;font-size:13px;line-height:1.55;box-shadow:0 5px 18px #173b2b08}.notice-success{background:#edf6ef;color:#285b39;border-color:#d7e9db}.notice-error{background:#fff0ed;color:#8d382d;border-color:#f3d8d2}footer{text-align:center;border-top:1px solid var(--line);padding:24px;color:#929b93;font-size:11px}@media(max-width:600px){header{padding:0 16px}nav{gap:12px}nav a,nav button{font-size:11px}main{padding:35px 16px 55px}.hero{padding:45px 0}.card{padding:25px 20px}.progress{padding:23px}.welcome h1{font-size:35px}}
/* Admin customer management */
.admin-page{width:calc(100vw - 64px);max-width:1080px;position:relative;left:50%;transform:translateX(-50%);color:#243129}
.admin-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 0 28px}
.admin-heading .eyebrow{margin:0 0 9px;color:var(--gold);font-size:10px;font-weight:700;letter-spacing:2px}
.admin-heading h1{font-size:clamp(34px,5vw,46px);margin:0 0 9px}
.admin-intro{margin:0;color:var(--muted);font-size:14px;line-height:1.6}
.admin-heading-note{display:inline-flex;align-items:center;gap:9px;padding:10px 13px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#526258;font-size:12px;white-space:nowrap}
.admin-live-dot,.status-dot{width:8px;height:8px;display:inline-block;border-radius:50%;background:#4f8b62}
.customer-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:26px}
.customer-stat{padding:21px 24px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 24px #173b2b08}
.stat-label{display:block;color:#647168;font-size:12px;font-weight:600}
.stat-value{margin:8px 0 5px;color:var(--g);font:700 36px/1.1 var(--zh-font-heading);font-variant-numeric:tabular-nums}
.stat-foot{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px}
.status-dot.is-pending{background:#c18a35}
.customer-panel{overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 10px 30px #173b2b08}
.customer-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 26px 18px}
.customer-panel-head h2{margin:0 0 5px;font:700 23px var(--zh-font-heading)}
.customer-panel-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.record-limit{padding:6px 10px;border-radius:999px;background:#f3f5f1;color:#647168;font-size:10px;font-weight:700;white-space:nowrap}
.customer-filters{display:grid;grid-template-columns:minmax(220px,1fr) minmax(170px,220px) auto;align-items:end;gap:12px;margin:0;padding:18px 26px;background:#fafbf8;border-top:1px solid #edf0eb;border-bottom:1px solid #edf0eb}
.customer-filters label{display:grid;gap:7px;color:#526258;font-size:11px;font-weight:700}
.customer-filters input,.customer-filters select{width:100%;height:43px;padding:0 12px;border:1px solid #dce3da;border-radius:8px;background:#fff;color:#243129;font:13px var(--zh-font-body);outline:none}
.customer-filters input:focus,.customer-filters select:focus{border-color:#789783;box-shadow:0 0 0 3px #183d2d12}
.filter-actions{display:flex;align-items:center;gap:14px;min-height:43px}
.customer-apply{min-height:43px;padding:0 17px;font-size:12px}
.customer-clear{color:#647168;font-size:12px;font-weight:600;text-decoration:none}
.customer-clear:hover,.customer-empty a:hover{text-decoration:underline}
.customer-table-wrap{width:100%;overflow-x:auto}
.customer-table{width:100%;border-collapse:collapse;text-align:left}
.customer-table th{padding:13px 18px;background:#fff;color:#78837a;font-size:10px;font-weight:700;letter-spacing:.7px;text-transform:uppercase;border-bottom:1px solid var(--line)}
.customer-table td{padding:16px 18px;border-bottom:1px solid #edf0eb;vertical-align:middle}
.customer-table tbody tr:last-child td{border-bottom:0}
.customer-table tbody tr:hover{background:#fcfdfb}
.customer-table th:first-child,.customer-table td:first-child{padding-left:26px}
.customer-identity{display:flex;align-items:center;gap:12px;min-width:220px}
.customer-avatar{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:#edf3ed;color:var(--g);font:700 14px var(--zh-font-body)}
.customer-identity strong,.customer-identity small{display:block}
.customer-identity strong{color:#2c3b31;font-size:12px;font-weight:700}
.customer-identity small{margin-top:4px;color:#7b877e;font-size:11px;overflow-wrap:anywhere}
.customer-date{color:#68756c;font-size:11px;white-space:nowrap}
.account-status{display:inline-flex;align-items:center;gap:7px;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:700;white-space:nowrap}
.account-status>span{width:6px;height:6px;border-radius:50%;background:currentColor}
.status-active{background:#edf6ef;color:#326b43}
.status-pending{background:#fff5e5;color:#91651f}
.status-detail{display:block;margin:5px 0 0 2px;color:#8a948c;font-size:10px}
.actions-heading{text-align:right;padding-right:26px!important}
.customer-action-cell{text-align:right;padding-right:26px!important}
.customer-action-cell form{margin:0}
.customer-activate{min-height:37px;padding:0 13px;border-radius:7px;font-size:11px;white-space:nowrap}
.no-action{color:#9aa39b;font-size:10px}
.customer-footnote{margin:0;padding:14px 26px;border-top:1px solid #edf0eb;color:#89938b;font-size:10px;line-height:1.5}
.customer-empty{display:grid;justify-items:center;padding:42px 18px;text-align:center}
.empty-mark{display:grid;place-items:center;width:42px;height:42px;margin-bottom:12px;border-radius:50%;background:#f2f5f1;color:var(--g);font-size:25px}
.customer-empty strong{color:var(--g);font:700 18px var(--zh-font-heading)}
.customer-empty p{margin:7px 0 12px;color:var(--muted);font-size:12px}
.customer-empty a{color:var(--g);font-size:12px;font-weight:700;text-decoration:none}
@media(max-width:760px){
 .admin-page{width:calc(100vw - 32px)}
 .admin-heading{align-items:flex-start;flex-direction:column;gap:13px;margin-bottom:22px}
 .admin-heading-note{font-size:11px;padding:8px 11px}
 .customer-stats{gap:10px;margin-bottom:18px}
 .customer-stat{padding:16px}
 .stat-value{font-size:31px}
 .customer-panel-head{padding:20px 18px 15px}
 .customer-panel-head h2{font-size:21px}
 .customer-filters{grid-template-columns:1fr 1fr;padding:16px 18px;gap:11px}
 .customer-search{grid-column:1/-1}
 .filter-actions{grid-column:1/-1;justify-content:flex-start}
 .customer-table thead{display:none}
 .customer-table,.customer-table tbody,.customer-table tr,.customer-table td{display:block;width:100%}
 .customer-table tr{padding:13px 17px;border-bottom:1px solid #edf0eb}
 .customer-table tbody tr:last-child{border-bottom:0}
 .customer-table td,.customer-table th:first-child,.customer-table td:first-child{padding:7px 0;border:0;text-align:left}
 .customer-table td[data-label]::before{content:attr(data-label);display:block;margin:0 0 6px;color:#89938b;font-size:9px;font-weight:700;letter-spacing:.7px;text-transform:uppercase}
 .customer-identity{min-width:0}
 .customer-action-cell form{text-align:left}
 .customer-activate{width:100%;min-height:42px}
 .no-action{display:inline-block;padding:8px 0}
 .customer-footnote{padding:13px 18px}
}
@media(max-width:390px){
 .customer-stats{grid-template-columns:1fr}
 .customer-filters{grid-template-columns:1fr}
 .customer-search,.filter-actions{grid-column:1}
 .filter-actions{flex-wrap:wrap}
 .customer-apply{flex:1}
}

/* ZaleaHub visual system — warm chocolate, caramel and crema */
:root{--g:#5a321e;--gold:#b87836;--bg:#fff4df;--muted:#806e5c;--line:#ead9bd;--cream:#fff8eb;--chocolate:#4a2919;--caramel:#c18443;--coffee-shadow:#4b2a1817}
body{background:var(--bg);color:#39291f}
.site-header{height:auto;min-height:82px;padding:13px max(5vw,22px);background:#fff8eb;border-bottom:1px solid #ead9bd;gap:22px}
.brand{display:flex;align-items:center;gap:10px;color:var(--chocolate);font-size:20px;letter-spacing:-.8px;line-height:1}
.brand>span:last-child{display:grid;gap:4px}
.brand em{font-style:normal;color:#80501f}
.brand small{font:700 8px var(--zh-font-body);letter-spacing:1.4px;color:#65513d}
.brand-mark{display:grid;place-items:center;width:39px;height:39px;border:1.5px solid #b87836;border-radius:50%;color:#fff8eb;background:var(--chocolate);font:700 20px var(--zh-font-heading)}
.site-header nav{gap:clamp(12px,2vw,25px)}
.site-header nav a,.site-header nav button{font-size:12px;color:#604630;white-space:nowrap}
.site-header nav a:hover,.site-header nav button:hover{color:var(--gold)}
.site-header nav form{margin:0}
.site-header nav .nav-join{padding:11px 17px;border-radius:999px;background:var(--gold);color:white}
.site-header nav .nav-signout{padding:8px 0}
main{max-width:1120px;padding:42px 28px 76px}
.site-footer{padding:30px 20px 25px;background:var(--chocolate);color:#f7e8ce;text-align:center}
.footer-brand{font:700 23px var(--zh-font-heading);color:#fff8eb;text-decoration:none}
.footer-brand span{color:#d7a15e}
.site-footer p{margin:8px 0 17px;color:#e2c9a8;font-size:12px}
.site-footer small{color:#c6aa89;font-size:10px}
.btn{background:var(--gold);border-radius:999px;padding:13px 21px;min-height:46px;box-shadow:0 5px 14px #6b3b1c18}
.btn:hover{filter:brightness(1.05);transform:translateY(-1px)}
.card,.progress,.history{background:#fffaf0;border-color:#ead9bd;box-shadow:0 12px 30px var(--coffee-shadow)}
.card{border-radius:18px}
.card input,.customer-filters input,.customer-filters select{border-color:#e5d3b7;background:#fffdf8}
h1,h2,.card h1{color:var(--chocolate)}
.hero small,.welcome small,.eyebrow{color:var(--gold)}
.welcome h1{font-family:var(--zh-font-heading)}
.progress{border-radius:18px}
.track{background:#f0e3cd}
.track div{background:linear-gradient(90deg,#b87836,#d8a96a)}
.history{border-radius:15px}
.history div{border-color:#f0e3cd}
.notice{border-radius:12px}
.admin-page{color:#39291f}
.customer-panel,.customer-stat{background:#fffaf0;border-color:#ead9bd}
.customer-filters{background:#fbf0dc;border-color:#ead9bd}
.customer-table td{border-color:#f0e3cd}
.customer-table tbody tr:hover{background:#fffdf8}
.customer-avatar{background:#f1dfc2;color:#69401f}
.status-active{background:#edf3e6;color:#4c713f}
.status-pending{background:#fff0d5;color:#93601e}
.customer-apply,.customer-activate{background:var(--gold)}
/* Homepage */
.home-hero{position:relative;display:grid;grid-template-columns:1.08fr .92fr;align-items:center;gap:25px;min-height:440px;margin:-4px 0 58px;padding:45px 48px;border-radius:28px;overflow:hidden;background:#57331f;color:#fff3dc}
.hero-copy{position:relative;z-index:2;max-width:570px}
.home-hero .eyebrow,.rewards-banner .eyebrow{margin:0 0 15px;color:#e1b77d;font-size:10px;font-weight:700;letter-spacing:2px}
.home-hero h1{margin:0 0 17px;color:#fff4df;font:800 clamp(39px,5vw,62px)/1.04 var(--zh-font-heading);letter-spacing:-1.5px}
.home-hero h1 i,.rewards-banner h2 i{color:#e1b77d;font-style:normal}
.hero-lede{max-width:470px;color:#f0dfc5;font-size:15px;line-height:1.8}
.hero-actions{display:flex;flex-wrap:wrap;gap:11px;margin-top:25px}
.hero-primary{background:#fff2d8;color:#4b2a19;box-shadow:none}
.hero-secondary{background:#a96c31;color:#fff5e4;box-shadow:none}
.hero-promise{margin-top:24px;color:#e5cba8;font-size:11px;letter-spacing:.2px}
.hero-promise span{margin-right:7px}
.hero-art{position:relative;display:grid;place-items:center;min-height:340px;align-self:stretch;border-radius:48% 48% 24px 24px;background:linear-gradient(145deg,#f7dfb4,#d9ae78);overflow:hidden}
.hero-art:after{content:"";position:absolute;inset:auto -12% -30% -12%;height:48%;border-radius:50%;background:#b77c43}
.hero-art-glow{position:absolute;width:260px;height:260px;border-radius:50%;background:#fff2d7;opacity:.65;filter:blur(2px)}
.hero-cup{position:relative;z-index:2;width:190px;height:190px;margin-top:20px;border:8px solid #fff1d7;border-top:0;border-radius:18px 18px 55px 55px;background:linear-gradient(90deg,#9b5528,#d39a5a 45%,#8d4d28);box-shadow:0 22px 35px #47271355;transform:rotate(-5deg)}
.hero-cup:before{content:"";position:absolute;right:-58px;top:30px;width:55px;height:75px;border:12px solid #fff1d7;border-left:0;border-radius:0 45px 45px 0}
.cup-foam{position:absolute;top:-15px;left:-8px;width:190px;height:42px;border:7px solid #fff1d7;border-radius:50%;background:#d8b17e}
.cup-foam span{position:absolute;inset:7px 45px;border-radius:50%;background:#f8e8c8}
.cup-coffee{position:absolute;inset:20px 8px 10px;border-radius:0 0 45px 45px;background:linear-gradient(90deg,#81401f55,transparent 40%,#f2c17a44)}
.coffee-beans{position:absolute;z-index:2;color:#71401f;font-size:28px;letter-spacing:8px}
.beans-one{bottom:35px;left:13%}
.hero-art-caption{position:absolute;z-index:3;right:20px;bottom:22px;display:grid;gap:3px;color:#57331f;text-align:right}
.hero-art-caption small{font-size:8px;font-weight:700;letter-spacing:1.5px}
.hero-art-caption strong{font:700 19px var(--zh-font-heading)}
.coffee-section{margin-bottom:58px}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:20px}
.section-heading .eyebrow{margin:0 0 7px;font-size:10px;letter-spacing:1.8px;font-weight:700}
.section-heading h2{margin:0;font:700 clamp(26px,3.5vw,34px) var(--zh-font-heading)}
.section-heading>p{margin:0;color:var(--muted);font-size:12px;line-height:1.7;text-align:right}
.coffee-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.coffee-card{overflow:hidden;border:1px solid #ead9bd;border-radius:19px;background:#fffaf0;box-shadow:0 10px 25px var(--coffee-shadow)}
.product-art{position:relative;display:grid;place-items:center;height:190px;overflow:hidden}
.coffee-milk .product-art{background:linear-gradient(145deg,#f7dfb1,#eac38e)}
.coffee-caramel .product-art{background:linear-gradient(145deg,#ead7bd,#cda77e)}
.coffee-three .product-art{background:linear-gradient(145deg,#e9d6b4,#c6a17b)}
.product-spark{position:absolute;top:17px;left:18px;color:#9b652f;font-size:21px}
.product-cup{position:relative;width:105px;height:115px;border:6px solid #fff0d4;border-top:0;border-radius:10px 10px 34px 34px;background:linear-gradient(90deg,#8c4b28,#d49a5a 48%,#9b552c);box-shadow:0 14px 22px #6b3d2040;transform:rotate(-4deg)}
.product-cup:before{content:"";position:absolute;top:-9px;left:-6px;width:105px;height:25px;border:6px solid #fff0d4;border-radius:50%;background:#c38a50}
.product-cup:after{content:"";position:absolute;top:12px;right:-33px;width:32px;height:42px;border:7px solid #fff0d4;border-left:0;border-radius:0 28px 28px 0}
.product-cup i{position:absolute;top:0;left:20px;width:50px;height:12px;border-radius:50%;background:#f5e4c4}
.coffee-caramel .product-cup{background:linear-gradient(90deg,#a56b3b,#e0b77e 50%,#9a5d30)}
.coffee-three .product-cup{height:105px;background:linear-gradient(90deg,#714326,#b47b45 50%,#704022)}
.product-copy{padding:17px 19px 20px}
.product-copy small{color:#a36b36;font-size:9px;font-weight:700;letter-spacing:1.3px}
.product-copy h3{margin:6px 0;color:#4a2b1c;font:700 20px var(--zh-font-heading)}
.product-copy p{margin:0;color:#806e5c;font-size:12px;line-height:1.65}
.rewards-banner{display:grid;grid-template-columns:1fr 190px;align-items:center;gap:25px;margin-bottom:12px;padding:34px 42px;border-radius:22px;background:#ead5b5}
.rewards-banner h2{margin:0 0 12px;color:#4a2919;font:700 clamp(29px,4vw,40px)/1.1 var(--zh-font-heading)}
.rewards-banner>div:first-child>p:not(.eyebrow){max-width:590px;color:#70533b;font-size:13px;line-height:1.7}
.rewards-cta{margin-top:7px;background:#5a321e;color:#fff4df}
.reward-stamp{display:grid;justify-items:center;align-content:center;width:170px;height:170px;border:1px dashed #a87543;border-radius:50%;background:#fff0d6;color:#5a321e;box-shadow:inset 0 0 0 8px #fff0d6,inset 0 0 0 9px #d7b58a}
.reward-stamp strong{font:800 37px var(--zh-font-heading);line-height:1}
.reward-stamp span{font-size:8px;font-weight:700;letter-spacing:1.3px}
.reward-stamp b{margin:1px 0;color:#b87836;font-size:15px}
@media(max-width:760px){
 .site-header{align-items:flex-start;flex-direction:column;padding:14px 18px;gap:12px}
 .site-header nav{width:100%;gap:14px;overflow-x:auto;padding:2px 0 5px}
 .site-header nav a,.site-header nav button{font-size:11px}
 main{padding:27px 16px 52px}
 .home-hero{grid-template-columns:1fr;gap:20px;margin:0 0 38px;padding:30px 24px 20px;border-radius:22px}
 .home-hero h1{font-size:clamp(38px,10vw,52px)}
 .hero-lede{font-size:13px}
 .hero-art{min-height:245px;border-radius:45% 45% 18px 18px}
 .hero-cup{transform:scale(.82) rotate(-5deg);margin-top:0}
 .coffee-section{margin-bottom:38px}
 .section-heading{align-items:flex-start;flex-direction:column;gap:8px}
 .section-heading>p{text-align:left}
 .coffee-grid{grid-template-columns:1fr;gap:13px}
 .coffee-card{display:grid;grid-template-columns:42% 1fr;min-height:145px}
 .product-art{height:100%;min-height:145px}
 .product-cup{transform:scale(.78) rotate(-4deg)}
 .product-copy{align-self:center;padding:14px}
 .product-copy h3{font-size:18px}
 .rewards-banner{grid-template-columns:1fr;justify-items:start;padding:25px 23px;gap:18px}
 .reward-stamp{width:142px;height:142px;justify-self:center}
}
@media(max-width:390px){
 .coffee-card{grid-template-columns:39% 1fr}
 .product-copy h3{font-size:16px}
 .hero-actions .btn{width:100%}
 .rewards-banner{padding:22px 18px}
}

/* Customer lifecycle controls */
.customer-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.status-dot.is-suspended{background:#a45a3e}.status-dot.is-deleted{background:#8a8178}
.status-suspended{background:#f8e9e3;color:#914a35}.status-deleted{background:#eeeae5;color:#756d65}
.customer-actions{display:grid;justify-items:end;gap:9px;min-width:190px}
.customer-actions form{display:grid;justify-items:end;gap:7px;width:100%;margin:0}
.customer-actions form>input[type=text]{width:100%;max-width:210px;height:34px;padding:0 9px;border:1px solid #e5d3b7;border-radius:7px;font:11px var(--zh-font-body)}
.customer-activate,.customer-suspend{width:100%;max-width:210px;min-height:37px;font-size:11px}
.customer-suspend{background:#875039}
.delete-customer{width:100%;max-width:210px;text-align:right}
.delete-customer summary{display:inline-block;padding:6px 2px;color:#a34e3c;font-size:11px;font-weight:700;cursor:pointer;list-style:none}
.delete-customer summary::-webkit-details-marker{display:none}
.delete-customer summary:after{content:"⌄";margin-left:6px}
.delete-customer[open]{padding:10px;border:1px solid #e8c8bc;border-radius:9px;background:#fff8f5}
.delete-customer form{display:grid;gap:9px;margin:8px 0 0;text-align:left}
.delete-customer label{display:grid;gap:5px;color:#806e5c;font-size:10px;font-weight:700}
.delete-customer input{width:100%;height:36px;padding:0 9px;border:1px solid #e5cfc5;border-radius:7px;background:#fff;font:11px var(--zh-font-body)}
.delete-customer .customer-delete{width:100%;min-height:38px;background:#9b4937;font-size:11px}
@media(max-width:760px){
 .customer-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .customer-actions{justify-items:stretch;min-width:0;width:100%;gap:10px}
 .customer-actions form{justify-items:stretch}
 .customer-actions form>input[type=text],.customer-activate,.customer-suspend{max-width:none}
 .delete-customer{max-width:none;text-align:left}
 .delete-customer form{width:100%}
 .delete-customer .customer-delete{max-width:none}
}
@media(max-width:390px){.customer-stats{grid-template-columns:1fr}}

/* QR batch history */
.qr-batches{margin-top:34px}
.qr-batches-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:14px}
.qr-batches-heading h2{margin:0 0 5px}
.qr-batches-heading p{margin:0;color:var(--muted);font-size:12px;line-height:1.55}
.qr-batches-heading>span{flex:0 0 auto;padding:7px 11px;border:1px solid var(--line);border-radius:999px;background:#fffaf0;color:#806e5c;font-size:10px;font-weight:700}
.qr-batch-list{overflow:hidden;border:1px solid var(--line);border-radius:16px;background:#fffaf0;box-shadow:0 12px 30px var(--coffee-shadow)}
.qr-batch{display:grid;grid-template-columns:minmax(190px,1fr) 115px minmax(260px,auto);align-items:center;gap:20px;padding:17px 20px;border-bottom:1px solid #f0e3cd}
.qr-batch:last-child{border-bottom:0}
.qr-batch-id{display:flex;align-items:center;gap:12px;min-width:0}
.qr-batch-icon{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:11px;background:#f1dfc2;color:#69401f;font-size:19px}
.qr-batch-id strong,.qr-batch-id small,.qr-batch-usage strong,.qr-batch-usage small{display:block}
.qr-batch-id strong{color:var(--chocolate);font-size:12px;letter-spacing:.4px;overflow-wrap:anywhere}
.qr-batch-id small,.qr-batch-usage small{margin-top:4px;color:var(--muted);font-size:10px}
.qr-batch-usage strong{color:var(--chocolate);font-size:17px;font-variant-numeric:tabular-nums}
.qr-batch-usage strong span{color:#9b8975;font-size:12px;font-weight:500}
.qr-batch-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px;flex-wrap:wrap}
.qr-batch-actions .btn{min-height:38px;padding:0 14px;font-size:11px;white-space:nowrap}
.qr-batch-actions .qr-download-secondary{background:#fffaf0;color:var(--chocolate);border:1px solid var(--line);box-shadow:none}
.qr-unavailable{color:#9a8c7b;font-size:10px;white-space:nowrap}
.qr-batches-empty{padding:32px 20px;text-align:center}
.qr-batches-empty strong{color:var(--chocolate);font:700 17px var(--zh-font-heading)}
.qr-batches-empty p{margin:7px 0 0;color:var(--muted);font-size:12px}
@media(max-width:760px){
 .qr-batches-heading{align-items:flex-start}
 .qr-batch{grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:15px}
 .qr-batch-usage{grid-column:2;grid-row:1}
 .qr-batch-actions{grid-column:1/-1;justify-content:flex-start;padding-left:50px}
 .qr-batch-actions .btn{flex:1}
}
@media(max-width:390px){.qr-batch-actions{padding-left:0}.qr-batch-actions .btn{font-size:10px;padding:0 10px}}

/* Keep QR batch download labels optically centered inside their buttons. */
.qr-batch-actions .btn{align-items:center;justify-content:center;line-height:1;text-align:center;}

/* Customer-initiated QR camera scanner */
.scanner-entry{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 22px;margin:0 0 30px;padding:23px 25px;border:1px solid var(--line);border-radius:17px;background:#fffaf0;box-shadow:0 10px 26px var(--coffee-shadow)}
.scanner-entry>div:first-child small{color:var(--gold);font-size:9px;font-weight:700;letter-spacing:1.6px}
.scanner-entry h2{margin:5px 0;font:700 21px var(--zh-font-heading)}
.scanner-entry>div:first-child p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}
.scanner-entry>.btn{grid-column:2;grid-row:1;min-width:155px}
.scanner-privacy{grid-column:1/-1;margin:0;color:#897761;font-size:10px;line-height:1.5}
.qr-scanner-panel{grid-column:1/-1;max-width:440px;width:100%;margin:8px auto 0;padding:15px;border:1px solid var(--line);border-radius:13px;background:#fffdf8}
#qr-reader{width:100%;overflow:hidden;border:0!important}
#qr-reader video{border-radius:9px;object-fit:cover}
#qr-reader__dashboard_section_csr button{padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:#fff4df;color:var(--chocolate);font:600 12px var(--zh-font-body)}
.qr-scanner-status{margin:11px 0;color:var(--muted);font-size:12px;line-height:1.55;text-align:center}
.qr-scanner-stop{display:flex;margin:0 auto;min-height:38px;padding:0 20px;background:var(--chocolate);font-size:11px}
@media(max-width:600px){
 .scanner-entry{grid-template-columns:1fr;padding:19px;gap:13px}
 .scanner-entry>.btn{grid-column:1;grid-row:auto;width:100%}
 .scanner-privacy{grid-column:1}
 .qr-scanner-panel{padding:10px}
}


/* Authentication pages: branded Google action and animated coffee illustration */
.auth-scene{position:relative;isolation:isolate;display:grid;place-items:center;min-height:590px;padding:26px 12px;overflow:hidden}
.auth-scene:before{content:"";position:absolute;z-index:-2;width:min(690px,95vw);height:min(480px,75vw);border-radius:50%;background:radial-gradient(ellipse,#f2dfc2 0%,#f8ebd5 48%,transparent 72%);opacity:.8}
.auth-card{position:relative;z-index:2;width:min(100%,470px);backdrop-filter:blur(5px);background:rgba(255,250,240,.94)}
.coffee-atmosphere{position:absolute;z-index:-1;right:max(1%,calc(50% - 490px));top:50%;width:min(390px,42vw);height:350px;transform:translateY(-50%);opacity:.34;pointer-events:none}
.auth-coffee-art{width:100%;height:100%;overflow:visible;filter:drop-shadow(0 15px 16px #5a321e18)}
.steam{fill:none;stroke:#a77b55;stroke-width:7;stroke-linecap:round;opacity:0;stroke-dasharray:90;animation:coffee-steam 4.8s ease-in-out infinite}
.steam-two{animation-delay:1.2s}.steam-three{animation-delay:2.4s}
@keyframes coffee-steam{0%{opacity:0;transform:translateY(18px) scale(.92)}25%{opacity:.65}75%{opacity:.25}100%{opacity:0;transform:translateY(-34px) scale(1.08)}}
.coffee-orbit{position:absolute;display:block;width:8px;height:8px;border-radius:50%;background:#c18a55;opacity:.45;animation:coffee-float 7s ease-in-out infinite}
.orbit-one{top:16%;left:12%}.orbit-two{right:13%;bottom:18%;width:5px;height:5px;animation-delay:2.3s}
@keyframes coffee-float{0%,100%{transform:translate3d(0,8px,0);opacity:.15}50%{transform:translate3d(12px,-24px,0);opacity:.65}}
.google-button{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:49px;padding:10px 18px;border:1px solid #dadce0;border-radius:999px;background:#fff;color:#3c4043;font:600 14px var(--zh-font-body);cursor:pointer;box-shadow:0 1px 2px #3c40431a;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.google-button svg{width:19px;height:19px;flex:0 0 19px}
.google-button:hover{background:#f8faff;border-color:#c7d3e6;box-shadow:0 3px 9px #3c404320;transform:translateY(-1px)}
.google-button:focus-visible{outline:3px solid #8ab4f8;outline-offset:3px}
.google-button:disabled{opacity:.65;cursor:wait;transform:none}
.auth-divider{display:flex;align-items:center;gap:13px;margin:20px 0 16px;color:#9a8874;font-size:11px}
.auth-divider:before,.auth-divider:after{content:"";height:1px;flex:1;background:#eadcc7}
.auth-message{min-height:0;margin:9px 0 0!important;text-align:center}
.auth-footnote{margin:8px 0 12px!important;color:#95836e!important;font-size:10px!important;text-align:center}
.site-header nav .nav-join{transition:background .18s ease,color .18s ease,box-shadow .18s ease}
.site-header nav .nav-join:hover{background:#d49a5a;color:#fffaf0;box-shadow:0 3px 10px #8b552f25}
@media(max-width:760px){
 .auth-scene{min-height:0;padding:12px 0 22px}
 .coffee-atmosphere{right:-20%;top:48%;width:70vw;opacity:.2}
 .auth-card{width:min(100%,470px)}
}
@media(prefers-reduced-motion:reduce){
 .steam,.coffee-orbit{animation:none!important}
 .google-button,.site-header nav .nav-join{transition:none}
}


/* Real inJoy coffee photography on the public ZaleaHub landing page */
.home-hero{grid-template-columns:1.08fr .92fr;gap:28px}
.hero-art{min-height:390px;border-radius:34px;background:#d8b77f}
.hero-art:after{display:none}
.hero-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 48%;display:block}
.hero-art:before{content:"";position:absolute;z-index:1;inset:45% 0 0;background:linear-gradient(180deg,transparent 0%,rgba(48,25,12,.06) 42%,rgba(48,25,12,.4) 100%);pointer-events:none}
.hero-art-caption{z-index:2;right:22px;bottom:22px;padding:10px 13px;border-radius:10px;background:rgba(255,239,211,.84);backdrop-filter:blur(5px)}
.product-art{height:230px;background:#e5cfaa!important}
.product-photo{display:block;width:100%;height:100%;object-fit:cover;transition:transform .55s cubic-bezier(.2,.7,.2,1)}
.coffee-card:hover .product-photo{transform:scale(1.045)}
.coffee-card{background:#fffaf0}
@media(max-width:760px){
 .home-hero{grid-template-columns:1fr;padding:30px 24px;gap:24px}
 .hero-art{min-height:310px}
 .product-art{height:205px}
}
@media(prefers-reduced-motion:reduce){.product-photo{transition:none}}


/* ZaleaHub staff security and policy administration */
.security-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:22px 0 26px}
.security-kpi{display:grid;gap:7px;padding:18px 19px;border:1px solid #ead9bd;border-radius:15px;background:#fffaf0;box-shadow:0 8px 22px var(--coffee-shadow);text-decoration:none}
.security-kpi strong{color:var(--chocolate);font:700 29px var(--zh-font-heading)}
.security-kpi span{color:#806e5c;font-size:11px;font-weight:600}
.admin-security-card{margin:18px 0;padding:23px}
.admin-security-card h2{margin:0 0 15px;font:700 22px var(--zh-font-heading)}
.admin-security-card p{color:#806e5c;font-size:12px;line-height:1.65}
.security-settings-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.security-settings-form>label{display:grid;gap:7px;color:#70563d;font-size:11px;font-weight:700}
.security-settings-form input:not([type=checkbox]){width:100%;min-height:42px;padding:0 12px;border:1px solid #e5d3b7;border-radius:9px;background:#fffdf8;color:var(--chocolate);font:13px var(--zh-font-body)}
.security-settings-form fieldset{grid-column:1/-1;display:grid;gap:9px;padding:13px;border:1px solid #ead9bd;border-radius:11px}
.security-settings-form legend{padding:0 5px;color:#70563d;font-size:11px;font-weight:700}
.permission-option{display:flex;align-items:center;gap:8px;color:#806e5c;font-size:11px;font-weight:500}
.permission-option input{accent-color:#986334}
.security-settings-form>.btn{justify-self:start;grid-column:1/-1}
.btn-danger{background:#944b37;color:#fff8ed}
.btn-secondary{background:#ead9bd;color:#57331f;box-shadow:none}
.staff-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(220px,1.2fr) auto auto;align-items:center;gap:17px;padding:17px 0;border-bottom:1px solid #f0e3cd}
.staff-row:last-child{border-bottom:0}
.staff-row>div strong,.staff-row>div small{display:block}
.staff-row>div strong{color:var(--chocolate);font-size:13px}
.staff-row>div small{margin-top:5px;color:#806e5c;font-size:10px;overflow-wrap:anywhere}
.staff-row form{display:grid;gap:8px;margin:0}
.staff-row .btn{min-height:36px;padding:0 14px;font-size:10px;white-space:nowrap}
@media(max-width:760px){
 .security-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .security-kpi{padding:14px}
 .security-kpi strong{font-size:25px}
 .security-settings-form{grid-template-columns:1fr}
 .security-settings-form>.btn{grid-column:1}
 .staff-row{grid-template-columns:1fr;align-items:stretch;gap:12px}
 .staff-row form{padding:10px;border:1px solid #f0e3cd;border-radius:10px}
 .staff-row .btn{width:100%}
}
@media(max-width:390px){.security-kpis{grid-template-columns:1fr 1fr}.security-kpi span{font-size:10px}}

.security-status-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:9px 0;border-bottom:1px solid #f0e3cd}
.security-status-row:last-child{border-bottom:0}
.security-status-row p{margin:0}
.security-status-row .btn{min-height:36px;padding:0 14px;font-size:10px;white-space:nowrap}
@media(max-width:600px){.security-status-row{align-items:flex-start;flex-direction:column}.security-status-row .btn{width:100%}}


/* Responsive admin security workspace */
.security-page{width:100%;max-width:1120px;margin:0 auto;color:var(--chocolate)}
.security-page [hidden]{display:none!important}
.security-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 0 26px;padding:4px 0 2px}
.security-eyebrow{display:block;color:var(--gold);font-size:9px;font-weight:800;letter-spacing:1.8px}
.security-hero h1{margin:9px 0 7px;font:700 clamp(34px,5vw,46px)/1.08 var(--zh-font-heading);letter-spacing:-.6px}
.security-hero p{max-width:620px;margin:0;color:var(--muted);font-size:13px;line-height:1.65}
.security-hero-link{display:inline-flex;align-items:center;gap:10px;flex:0 0 auto;padding:11px 16px;border:1px solid var(--line);border-radius:999px;background:#fffaf0;color:var(--chocolate);font-size:11px;font-weight:700;text-decoration:none;transition:background .18s,border-color .18s}
.security-hero-link:hover{background:#f8ebd5;border-color:#d8bd96}
.security-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:0 0 23px}
.security-kpi{position:relative;display:flex;align-items:center;gap:12px;min-width:0;padding:17px 16px;border:1px solid var(--line);border-radius:15px;background:#fffaf0;box-shadow:0 8px 22px var(--coffee-shadow);text-decoration:none;transition:transform .18s,border-color .18s,box-shadow .18s}
.security-kpi:hover{transform:translateY(-2px);border-color:#d8bd96;box-shadow:0 12px 25px var(--coffee-shadow)}
.kpi-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:#f2e5d0;color:#82532d;font-size:19px;font-weight:700}
.kpi-alert .kpi-icon{background:#f8e7df;color:#a24c36}
.kpi-copy{display:grid;gap:3px;min-width:0}
.kpi-copy strong{color:var(--chocolate);font:700 26px/1 var(--zh-font-heading);font-variant-numeric:tabular-nums}
.kpi-copy small{color:var(--muted);font-size:10px;line-height:1.35;font-weight:600}
.kpi-arrow{margin-left:auto;color:#b49a7b;font-size:13px}
.security-panel{margin:0 0 18px;padding:25px 27px;border:1px solid var(--line);border-radius:18px;background:#fffaf0;box-shadow:0 10px 28px var(--coffee-shadow)}
.security-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:21px}
.security-panel-heading h2,.security-revoke-copy h2{margin:6px 0 5px;font:700 24px/1.2 var(--zh-font-heading);color:var(--chocolate)}
.security-panel-heading p,.security-revoke-copy p{margin:0;color:var(--muted);font-size:12px;line-height:1.6}
.security-panel-mark{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border:1px solid var(--line);border-radius:50%;color:#a58a68;font:600 11px var(--zh-font-body)}
.security-policy-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 22px}
.policy-field{display:grid;gap:9px;color:#624a34;font-size:12px;font-weight:700}
.policy-field>span:first-child{display:grid;gap:4px}
.policy-field small{color:#9a8874;font-size:10px;font-weight:400;letter-spacing:0}
.policy-input{display:flex;align-items:center;gap:10px;min-height:46px;padding:0 12px;border:1px solid #e5d3b7;border-radius:10px;background:#fffdf8}
.policy-input:focus-within{border-color:#b87836;box-shadow:0 0 0 3px #b8783618}
.policy-input input{width:100%;min-width:0;height:42px;padding:0;border:0!important;outline:0;background:transparent!important;color:var(--chocolate);font:600 14px var(--zh-font-body)}
.policy-input b{flex:0 0 auto;color:#9a8874;font-size:10px;font-weight:600}
.policy-form-footer{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:2px;padding-top:17px;border-top:1px solid #f0e3cd}
.policy-form-footer p{max-width:550px;margin:0;color:#8c7b68;font-size:10px;line-height:1.55}
.policy-form-footer .btn{flex:0 0 auto;min-height:42px;padding:0 19px;font-size:11px}
.security-revoke-panel{display:flex;align-items:center;justify-content:space-between;gap:20px;border-color:#ecd8cb;background:#fff8f4}
.security-revoke-copy h2{font-size:20px}
.security-revoke-copy p{max-width:650px}
.security-revoke-panel form{flex:0 0 auto;margin:0}
.security-revoke-panel .btn{min-height:42px;font-size:11px}
.btn-danger{background:#994b37;color:#fff8ed;box-shadow:none}
.btn-secondary{background:#f2e5d0;color:#68452b;border:1px solid #ead9bd;box-shadow:none}
.btn-quiet{background:#fffaf0;color:#684b32;border:1px solid #e6d6bd;box-shadow:none}
.btn-delete{background:#fff2ed;color:#9b4937;border:1px solid #efd3c9;box-shadow:none}
.security-issues-panel{padding-bottom:8px}
.security-issue-section{padding:18px 0;border-top:1px solid #f0e3cd;scroll-margin-top:24px}
.security-issue-heading{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.security-issue-heading h3{margin:0;color:var(--chocolate);font:700 16px var(--zh-font-heading)}
.security-count{display:inline-grid;place-items:center;min-width:24px;height:23px;padding:0 7px;border-radius:999px;background:#f2e5d0;color:#78522e;font-size:10px;font-weight:700}
.count-danger{background:#f8e7df;color:#a24c36}
.security-person-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:15px;padding:11px 0;border-bottom:1px solid #f5ecdf}
.security-person-row:last-child{border-bottom:0}
.security-person{display:flex;align-items:center;gap:10px;min-width:0}
.security-avatar,.staff-account-avatar{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:50%;background:#f1dfc2;color:#69401f;font-size:13px;font-weight:700}
.security-person>span:last-child,.security-account-identity>span:last-child{display:grid;gap:4px;min-width:0}
.security-person strong{color:var(--chocolate);font-size:11px}
.security-person small{color:var(--muted);font-size:10px;overflow-wrap:anywhere}
.security-state{padding:6px 9px;border-radius:999px;font-size:9px;font-weight:700;white-space:nowrap}
.state-danger{background:#f8e7df;color:#a24c36}
.state-warning{background:#fff0d5;color:#91601e}
.security-person-row form{margin:0}
.security-person-row .btn{min-height:35px;padding:0 12px;font-size:10px;white-space:nowrap}
.security-empty{display:flex;align-items:center;gap:9px;margin:12px 0 3px;color:#8b806f;font-size:11px}
.security-empty span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#edf3e6;color:#4c713f;font-weight:700}
.staff-invite-form{display:grid;gap:18px}
.staff-invite-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.staff-invite-fields>label{display:grid;gap:7px;color:#624a34;font-size:11px;font-weight:700}
.staff-invite-fields input{width:100%;height:45px;padding:0 13px;border:1px solid #e5d3b7;border-radius:10px;background:#fffdf8;color:var(--chocolate);font:13px var(--zh-font-body)}
.staff-invite-fields input:focus{outline:0;border-color:#b87836;box-shadow:0 0 0 3px #b8783618}
.staff-invite-fields input::placeholder{color:#b2a18c}
.staff-permission-picker{margin:0;padding:16px;border:1px solid #ead9bd;border-radius:13px}
.staff-permission-picker legend{padding:0 7px;color:#624a34;font-size:11px;font-weight:700}
.staff-permission-picker legend small{margin-left:6px;color:#9a8874;font-size:10px;font-weight:400;letter-spacing:0}
.staff-permission-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.staff-permission-choice{position:relative;display:flex;align-items:flex-start;gap:10px;min-width:0;min-height:84px;padding:13px;border:1px solid #eee1ce;border-radius:11px;background:#fffdf8;cursor:pointer;transition:border-color .18s,background .18s}
.staff-permission-choice:has(input:checked){border-color:#c99c66;background:#fff7e9}
.staff-permission-choice>input{position:absolute;opacity:0;width:1px;height:1px}
.permission-check{display:grid;place-items:center;flex:0 0 19px;width:19px;height:19px;border:1px solid #d7c5aa;border-radius:6px;background:white;color:transparent;font-size:11px}
.staff-permission-choice input:checked+.permission-check{border-color:#8c5a2e;background:#8c5a2e;color:white}
.staff-permission-choice input:focus-visible+.permission-check{outline:3px solid #b8783640;outline-offset:2px}
.staff-permission-choice>span:last-child{display:grid;gap:5px;min-width:0}
.staff-permission-choice strong{color:#63472e;font-size:10px;line-height:1.4}
.staff-permission-choice small{color:#9a8874;font-size:9px;line-height:1.45;letter-spacing:0}
.staff-invite-footer{display:flex;align-items:center;justify-content:space-between;gap:15px}
.staff-invite-footer p{margin:0;color:#9a8874;font-size:10px;line-height:1.5}
.staff-invite-footer .btn{min-height:43px;padding:0 18px;font-size:11px}
.staff-directory-heading{align-items:center;margin-bottom:17px}
.staff-total{display:grid;justify-items:center;min-width:62px;padding:8px 12px;border-radius:12px;background:#f4e8d6;color:var(--chocolate);font:700 20px var(--zh-font-heading)}
.staff-total small{color:#927c62;font:600 9px var(--zh-font-body)}
.staff-directory-tools{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:10px;margin-bottom:15px}
.staff-search{display:flex;align-items:center;gap:9px;height:42px;padding:0 12px;border:1px solid #e5d3b7;border-radius:9px;background:#fffdf8;color:#9a8874}
.staff-search>span{font-size:20px}
.staff-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--chocolate);font:12px var(--zh-font-body)}
.staff-status-filter select{width:100%;height:42px;padding:0 11px;border:1px solid #e5d3b7;border-radius:9px;background:#fffdf8;color:#684b32;font:11px var(--zh-font-body)}
.staff-account-card{padding:18px 0;border-top:1px solid #f0e3cd}
.staff-account-top{display:flex;align-items:center;justify-content:space-between;gap:15px}
.staff-account-identity{display:flex;align-items:center;gap:11px;min-width:0}
.staff-account-avatar{width:40px;height:40px;flex-basis:40px;font-size:14px}
.staff-account-identity strong{color:var(--chocolate);font-size:12px;overflow-wrap:anywhere}
.staff-account-identity small{color:var(--muted);font-size:10px;overflow-wrap:anywhere}
.staff-account-status{display:inline-flex;align-items:center;gap:7px;padding:6px 9px;border-radius:999px;font-size:9px;font-weight:700;white-space:nowrap}
.staff-account-status i{width:6px;height:6px;border-radius:50%;background:currentColor}
.status-active{background:#edf3e6;color:#4c713f}
.status-suspended{background:#fff0d5;color:#91601e}
.status-deleted{background:#eeeae5;color:#756d65}
.staff-permissions-form{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;margin:15px 0 0;padding:13px;border:1px solid #eee1ce;border-radius:11px;background:#fffdf8}
.staff-card-section-title{grid-column:1/-1;color:#9a8874;font-size:8px;font-weight:800;letter-spacing:1.4px}
.staff-current-permissions{display:flex;align-items:center;flex-wrap:wrap;gap:9px 15px}
.staff-permission-toggle{display:inline-flex;align-items:center;gap:6px;color:#765b40;font-size:10px;cursor:pointer}
.staff-permission-toggle input{width:14px;height:14px;margin:0;accent-color:#8c5a2e}
.staff-save-permissions{min-height:35px;padding:0 13px;font-size:10px;white-space:nowrap}
.staff-account-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:11px}
.staff-account-actions form{margin:0}
.staff-account-actions .btn{min-height:34px;padding:0 12px;font-size:9px}
.staff-deleted-note{margin:13px 0 0;padding:11px 13px;border-radius:9px;background:#f2efea;color:#80766b;font-size:10px}
.staff-directory-empty{display:grid;justify-items:center;padding:34px 15px;text-align:center}
.staff-directory-empty>span{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#f2e5d0;color:#81552f;font-size:20px}
.staff-directory-empty strong{margin-top:12px;color:var(--chocolate);font:700 17px var(--zh-font-heading)}
.staff-directory-empty p,.staff-filter-empty{margin:6px 0 0;color:var(--muted);font-size:11px}
.staff-filter-empty{padding:20px;text-align:center}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){
 .security-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 .staff-permission-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
 .security-page{max-width:none}
 .security-hero{align-items:flex-start;flex-direction:column;gap:14px;margin-bottom:20px}
 .security-hero h1{font-size:36px}
 .security-hero p{font-size:12px}
 .security-hero-link{padding:9px 13px}
 .security-kpis{gap:9px;margin-bottom:15px}
 .security-kpi{gap:9px;padding:13px 11px;border-radius:12px}
 .kpi-icon{width:32px;height:32px;flex-basis:32px;border-radius:10px;font-size:16px}
 .kpi-copy strong{font-size:23px}
 .kpi-copy small{font-size:9px}
 .security-panel{padding:19px 16px;margin-bottom:14px;border-radius:15px}
 .security-panel-heading{margin-bottom:17px}
 .security-panel-heading h2{font-size:21px}
 .security-panel-heading p{font-size:11px}
 .security-policy-form{grid-template-columns:1fr;gap:13px}
 .policy-form-footer{grid-column:1;align-items:stretch;flex-direction:column}
 .policy-form-footer .btn{width:100%}
 .security-revoke-panel{align-items:stretch;flex-direction:column;gap:14px}
 .security-revoke-panel .btn{width:100%}
 .security-person-row{grid-template-columns:minmax(0,1fr) auto;gap:9px}
 .security-person-row .security-state{justify-self:end}
 .security-person-row form{grid-column:1/-1}
 .security-person-row form .btn{width:100%}
 .staff-invite-fields{grid-template-columns:1fr}
 .staff-permission-grid{grid-template-columns:1fr}
 .staff-permission-choice{min-height:0}
 .staff-invite-footer{align-items:stretch;flex-direction:column}
 .staff-invite-footer .btn{width:100%}
 .staff-directory-tools{grid-template-columns:1fr}
 .staff-account-top{align-items:flex-start}
 .staff-permissions-form{grid-template-columns:1fr}
 .staff-card-section-title{grid-column:1}
 .staff-current-permissions{display:grid;grid-template-columns:1fr 1fr;gap:11px}
 .staff-save-permissions{width:100%}
 .staff-account-actions{display:grid;grid-template-columns:1fr 1fr;justify-content:stretch}
 .staff-account-actions form:last-child{grid-column:1/-1}
 .staff-account-actions .btn{width:100%;min-height:38px}
}
@media(max-width:390px){
 .security-kpi{align-items:flex-start;flex-direction:column}
 .kpi-arrow{position:absolute;top:12px;right:12px}
 .staff-current-permissions{grid-template-columns:1fr}
 .staff-account-actions{grid-template-columns:1fr}
 .staff-account-actions form:last-child{grid-column:1}
 .security-person-row{grid-template-columns:1fr}
 .security-person-row .security-state{justify-self:start}
}
@media(prefers-reduced-motion:reduce){
 .security-kpi,.security-hero-link{transition:none}
}


/* ZaleaHub experience system — responsive and accessible refinement */
:root{--zh-forest:#183d2d;--zh-forest-deep:#102c20;--zh-gold:#bd914d;--zh-cream:#f7f6f0;--zh-paper:#fffdf8;--zh-ink:#243129;--zh-muted:#758078;--zh-border:#e5e9e2;--zh-shadow:0 12px 34px rgba(28,55,39,.07)}
html{scroll-behavior:smooth;scroll-padding-top:92px}
body{background:var(--zh-cream);color:var(--zh-ink);-webkit-font-smoothing:antialiased}
body>header.site-header{position:sticky;top:0;z-index:50;height:auto;min-height:74px;padding:12px max(4vw,20px);gap:22px;background:rgba(255,255,255,.96);border-bottom:1px solid rgba(24,61,45,.1);box-shadow:0 5px 22px rgba(28,55,39,.045);backdrop-filter:blur(14px)}
.site-header .brand{display:flex;align-items:center;gap:10px;flex-shrink:0;font:700 22px var(--zh-font-body);letter-spacing:-.8px;line-height:1;color:var(--zh-forest)}
.site-header .brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--zh-forest);color:#fff;font:700 21px var(--zh-font-heading)}
.site-header .brand>span:last-child{display:block}
.site-header .brand em{font-style:normal;color:var(--zh-gold)}
.site-header .brand small{display:block;margin-top:5px;color:#8b948c;font-size:8px;letter-spacing:1.65px;font-weight:700}
.site-header nav{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px}
.site-header nav>a,.site-header nav>form .nav-signout{display:inline-flex;align-items:center;justify-content:center;min-height:39px;padding:0 12px;border-radius:9px;color:#536258;font:600 12px var(--zh-font-body);transition:background .18s,color .18s}
.site-header nav>a:hover,.site-header nav>form .nav-signout:hover{background:#f1f5ef;color:var(--zh-forest)}
.site-header nav>a.nav-join{padding:0 17px;background:var(--zh-forest);color:#fff}
.site-header nav>a.nav-join:hover{background:#24563d;color:#fff}
.site-header nav>form{margin:0}
.mobile-nav-toggle{display:none}
main{width:min(100% - 48px,1180px);max-width:1180px;margin:0 auto;padding:42px 0 76px;min-height:65vh}
main>.notice{width:100%;max-width:none;margin:0 0 15px}
h1,h2,h3{overflow-wrap:break-word}
.btn{align-items:center;gap:8px;border-radius:10px;background:var(--zh-forest);box-shadow:0 5px 13px rgba(24,61,45,.11);transition:transform .18s,background .18s,box-shadow .18s}
.btn:hover{background:#24563d;box-shadow:0 8px 18px rgba(24,61,45,.15);transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
button:disabled{opacity:.62;cursor:wait}
:where(a,button,input,select,textarea,[tabindex]):focus-visible{outline:3px solid #bd914d;outline-offset:3px}
input,select,textarea{max-width:100%}
.welcome{max-width:780px;margin:0 auto 27px}
.welcome h1{letter-spacing:-.8px}
.card,.progress,.history,.customer-panel,.security-panel,.qr-batch{box-shadow:var(--zh-shadow)}
.site-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;background:#fff;border-top:1px solid var(--zh-border);padding:25px max(4vw,20px);text-align:left}
.site-footer .footer-brand{color:var(--zh-forest);font:700 19px var(--zh-font-body);letter-spacing:-.7px;text-decoration:none}
.site-footer .footer-brand span{color:var(--zh-gold)}
.site-footer p{margin:0;color:#77837a;font-size:11px}
.site-footer small{color:#929b93;font-size:10px}
.home-hero{align-items:center;padding:34px 0 62px;gap:clamp(28px,5vw,64px)}
.home-hero .hero-copy{max-width:580px}
.home-hero h1{font-size:clamp(42px,5.3vw,66px);letter-spacing:-1.8px;line-height:1.05}
.home-hero .hero-lede{max-width:500px;font-size:15px;line-height:1.85}
.hero-art{overflow:hidden;box-shadow:0 22px 55px rgba(75,48,25,.13)}
.coffee-section{padding:25px 0 72px}
.section-heading{align-items:end;gap:25px}
.section-heading h2{font-size:clamp(27px,3vw,36px);letter-spacing:-.5px}
.coffee-grid{gap:18px}
.coffee-card{overflow:hidden;border:1px solid #eee6d9;border-radius:18px;box-shadow:0 8px 25px rgba(75,48,25,.055);transition:transform .2s,box-shadow .2s}
.coffee-card:hover{transform:translateY(-3px);box-shadow:0 15px 32px rgba(75,48,25,.1)}
.product-copy{padding:20px 21px 23px}
.product-copy h3{font-size:20px}
.rewards-banner{border-radius:24px;box-shadow:0 18px 45px rgba(49,38,24,.12)}
.auth-scene{min-height:580px;gap:clamp(18px,5vw,60px)}
.auth-card{position:relative;z-index:2;width:min(100%,470px);border-radius:22px;box-shadow:0 22px 65px rgba(48,42,31,.1)}
.progress{max-width:none;border-radius:18px}
.history{border-radius:16px}
.scanner-entry{border:1px solid #e8e1d4;border-radius:18px;background:linear-gradient(120deg,#fffdf8,#f4eee3);box-shadow:var(--zh-shadow)}
.admin-page,.security-page{max-width:100%;width:100%;left:auto;transform:none}
.qr-batches-heading,.admin-heading{gap:18px}
.qr-batch{border:1px solid var(--zh-border);border-radius:15px;background:#fff;padding:17px 19px}
@media(max-width:900px){
 body>header.site-header{padding:11px 22px}
 .site-header nav{gap:3px}
 .site-header nav>a,.site-header nav>form .nav-signout{padding:0 9px;font-size:11px}
 main{width:min(100% - 36px,1180px);padding-top:32px}
 .home-hero{grid-template-columns:1fr 1fr}
 .home-hero h1{font-size:clamp(38px,5.3vw,54px)}
 .admin-page{width:100%}
}
@media(max-width:720px){
 body>header.site-header{min-height:68px;padding:10px 17px;gap:10px}
 .mobile-nav-toggle{display:flex;flex:0 0 40px;width:40px;height:40px;margin-left:auto;align-items:center;justify-content:center;flex-direction:column;gap:5px;border:1px solid var(--zh-border);border-radius:10px;background:#fff;cursor:pointer}
 .mobile-nav-toggle span{display:block;width:17px;height:2px;border-radius:2px;background:var(--zh-forest);transition:transform .2s,opacity .2s}
 .mobile-nav-toggle[aria-expanded=true] span:first-child{transform:translateY(7px) rotate(45deg)}
 .mobile-nav-toggle[aria-expanded=true] span:nth-child(2){opacity:0}
 .mobile-nav-toggle[aria-expanded=true] span:last-child{transform:translateY(-7px) rotate(-45deg)}
 .site-header nav{display:none;position:absolute;top:100%;left:0;right:0;padding:9px 17px 16px;background:#fff;border-bottom:1px solid var(--zh-border);box-shadow:0 15px 25px rgba(30,48,35,.09);align-items:stretch;flex-direction:column;gap:3px}
 .site-header nav.is-open{display:flex}
 .site-header nav>a,.site-header nav>form,.site-header nav>form .nav-signout{width:100%}
 .site-header nav>a,.site-header nav>form .nav-signout{justify-content:flex-start;min-height:43px;padding:0 13px;font-size:13px}
 .site-header nav>form .nav-signout{border-radius:9px}
 .site-header nav>a.nav-join{justify-content:center;margin-top:5px}
 main{width:min(100% - 32px,1180px);padding:27px 0 55px}
 .home-hero{grid-template-columns:1fr;padding:20px 0 43px;gap:24px}
 .home-hero h1{font-size:clamp(40px,10vw,58px)}
 .hero-art{min-height:290px;border-radius:22px}
 .section-heading{display:flex;align-items:flex-start;flex-direction:column}
 .coffee-grid{grid-template-columns:1fr;gap:14px}
 .product-art{height:220px}
 .rewards-banner{padding:28px 23px;border-radius:18px}
 .auth-scene{padding:10px 0 20px;min-height:0}
 .auth-card{padding:27px 21px}
 .admin-heading{align-items:flex-start;flex-direction:column}
 .customer-filters{grid-template-columns:1fr;padding:15px}
 .customer-panel-head{padding:19px 17px 15px}
 .customer-table th,.customer-table td{padding:12px}
 .security-hero{align-items:flex-start}
 .staff-permission-grid{grid-template-columns:1fr 1fr}
 .site-footer{align-items:flex-start;flex-direction:column;gap:9px;padding:23px 18px}
}
@media(max-width:430px){
 main{width:calc(100% - 28px);padding-top:22px}
 .site-header .brand{font-size:20px}
 .site-header .brand-mark{width:35px;height:35px}
 .home-hero h1{font-size:40px}
 .hero-art{min-height:245px}
 .auth-card{padding:24px 17px}
 .customer-stats,.security-kpis{grid-template-columns:1fr 1fr;gap:9px}
 .customer-stat{padding:15px}
 .staff-permission-grid{grid-template-columns:1fr}
 .staff-account-actions{grid-template-columns:1fr}
 .qr-batch{padding:14px}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto}
 *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}


/* Homepage polish: balanced hero spacing, clear contrast and gentle motion */
.home-hero{
  grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
  align-items:stretch;
  gap:clamp(28px,4.2vw,58px);
  min-height:500px;
  margin:0 0 clamp(42px,5.5vw,68px);
  padding:clamp(30px,4.6vw,58px);
  border:1px solid rgba(255,255,255,.08);
  border-radius:28px;
  background:
    radial-gradient(ellipse at 82% 12%,rgba(220,174,112,.18),transparent 35%),
    linear-gradient(125deg,#422719 0%,#603a25 58%,#754a2d 100%);
  box-shadow:0 22px 55px rgba(64,39,22,.13);
  color:#fff3dc;
}
.home-hero .hero-copy{align-self:center;max-width:570px;padding:5px 0}
.home-hero .eyebrow{margin-bottom:19px}
.home-hero h1{max-width:620px;margin:0 0 20px;font-size:clamp(42px,5vw,64px);line-height:1.08;letter-spacing:-1.7px}
.home-hero .hero-lede{max-width:480px;margin:0;color:#f1e1cb;font-size:clamp(14px,1.2vw,16px);line-height:1.8}
.home-hero .hero-actions{gap:12px;margin-top:29px}
.home-hero .hero-primary,.home-hero .hero-secondary{min-height:48px;padding:0 21px}
.home-hero .hero-primary{background:#fff2d8;color:#4b2a19}
.home-hero .hero-primary:hover{background:#fffaf0;color:#4b2a19}
.home-hero .hero-secondary{border:1px solid rgba(255,244,223,.22);background:rgba(255,244,223,.1);color:#fff5e4;box-shadow:none}
.home-hero .hero-secondary:hover{background:rgba(255,244,223,.18)}
.home-hero .hero-promise{margin-top:26px;color:#e8cfad;font-size:12px}
.home-hero .hero-art{align-self:stretch;min-height:390px;height:100%;border-radius:22px 22px 22px 72px;background:#d9b17d;box-shadow:0 18px 42px rgba(28,15,8,.2)}
.home-hero .hero-photo{object-position:center center}
.home-hero .hero-art-caption{right:18px;bottom:18px}
.coffee-section{padding:0 0 clamp(42px,5vw,66px)}
.section-heading{margin-bottom:24px}
.section-heading>p{margin:0 0 3px;color:#806e5c;font-size:13px;line-height:1.7}
.coffee-grid{align-items:stretch;gap:20px}
.coffee-card{height:100%;background:#fffaf0}
.coffee-card .product-art{height:clamp(190px,20vw,235px)}
.rewards-banner{margin-top:4px}
.home-hero .hero-copy,.home-hero .hero-art{animation:zh-home-enter .7s cubic-bezier(.2,.7,.2,1) both}
.home-hero .hero-art{animation-delay:.12s}
.coffee-card{animation:zh-card-enter .65s cubic-bezier(.2,.7,.2,1) both}
.coffee-card:nth-child(2){animation-delay:.1s}
.coffee-card:nth-child(3){animation-delay:.2s}
.reward-stamp{animation:zh-stamp-float 5s ease-in-out 1s infinite}
@keyframes zh-home-enter{from{opacity:0;transform:translateY(13px)}to{opacity:1;transform:translateY(0)}}
@keyframes zh-card-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes zh-stamp-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@media(max-width:900px){
 .home-hero{min-height:430px;padding:clamp(26px,4vw,38px);gap:25px}
 .home-hero h1{font-size:clamp(38px,5vw,52px)}
 .home-hero .hero-art{min-height:330px}
}
@media(max-width:720px){
 .home-hero{grid-template-columns:1fr;min-height:0;gap:25px;margin-bottom:42px;padding:27px 24px 23px;border-radius:22px}
 .home-hero .hero-copy{padding:3px 0}
 .home-hero h1{max-width:560px;font-size:clamp(39px,8.5vw,54px);line-height:1.08}
 .home-hero .hero-lede{max-width:560px;font-size:14px}
 .home-hero .hero-actions{margin-top:22px}
 .home-hero .hero-art{min-height:290px;height:clamp(270px,65vw,390px);border-radius:18px 18px 18px 48px}
 .coffee-section{padding-bottom:42px}
 .coffee-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .coffee-card .product-art{height:190px}
 .product-copy{padding:17px 16px 19px}
 .product-copy h3{font-size:18px}
}
@media(max-width:520px){
 .home-hero{padding:24px 19px 19px;gap:20px}
 .home-hero .eyebrow{font-size:9px;letter-spacing:1.6px}
 .home-hero h1{font-size:clamp(36px,10vw,46px);letter-spacing:-1.2px}
 .home-hero .hero-lede{font-size:13px;line-height:1.75}
 .home-hero .hero-actions{display:grid;grid-template-columns:1fr;gap:9px}
 .home-hero .hero-actions .btn{width:100%}
 .home-hero .hero-promise{margin-top:18px;font-size:11px}
 .home-hero .hero-art{min-height:245px;height:68vw;max-height:320px;border-radius:16px 16px 16px 38px}
 .coffee-grid{grid-template-columns:1fr;gap:14px}
 .coffee-card .product-art{height:220px}
 .section-heading{gap:8px}
 .section-heading h2{font-size:27px}
 .rewards-banner{gap:20px}
}
@media(prefers-reduced-motion:reduce){
 .home-hero .hero-copy,.home-hero .hero-art,.coffee-card,.reward-stamp{animation:none!important}
 .coffee-card,.product-photo{transition:none!important}
}


/* QR batch table: generated timestamp is a dedicated sortable-list column. */
.qr-batch{grid-template-columns:minmax(180px,1fr) 110px minmax(150px,auto) minmax(250px,auto)}
.qr-batch-timestamp strong{font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:760px){
 .qr-batch{grid-template-columns:minmax(0,1fr) auto;gap:10px 12px}
 .qr-batch-usage.qr-batch-timestamp{grid-column:1/-1;grid-row:2;text-align:left;padding-left:50px}
 .qr-batch-actions{grid-column:1/-1;grid-row:3;justify-content:flex-start;padding-left:50px}
}
@media(max-width:390px){
 .qr-batch-usage.qr-batch-timestamp{padding-left:0}
}


/* Keep per-batch QR actions aligned and wrap cleanly on narrow screens. */
.qr-batch-actions form{display:flex;align-items:center;margin:0}
.qr-batch-actions form .btn{min-height:38px}
@media(max-width:760px){
 .qr-batch-actions{gap:8px}
 .qr-batch-actions form{flex:1}
 .qr-batch-actions form .btn{width:100%}
}


/* Keep the header wordmark paintable immediately; it is the current LCP element. */
.site-header .brand,
.site-header .brand>span:last-child,
.site-header .brand em,
.site-header .brand small{
  font-family:var(--zh-font-body);
}
.site-header .brand{font-weight:700}
.site-header .brand small{font-weight:700}


/* Phase 1 customer dashboard */
.customer-dashboard{display:grid;gap:22px;max-width:900px;margin:0 auto}
.dashboard-welcome{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:8px 2px 5px}
.dashboard-eyebrow{display:block;margin:0 0 9px;color:#9a7546;font-size:9px;font-weight:800;letter-spacing:1.7px}
.dashboard-welcome h1{margin:0;color:var(--zh-forest);font:700 clamp(30px,5vw,43px)/1.12 var(--zh-font-heading);letter-spacing:-.7px}
.dashboard-welcome p{margin:9px 0 0;color:#748078;font-size:13px;line-height:1.6}
.dashboard-member-mark{display:grid;place-items:center;flex:0 0 54px;width:54px;height:54px;border:1px solid #e9dcc8;border-radius:17px;background:#fffaf0;color:#815a34;font:700 25px var(--zh-font-heading)}
.dashboard-loyalty{overflow:hidden;padding:clamp(22px,4vw,32px);border:1px solid #e9dfcf;border-radius:21px;background:linear-gradient(135deg,#fffdf8 0%,#f7eddd 100%);box-shadow:0 13px 34px rgba(62,43,25,.07)}
.dashboard-loyalty-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.dashboard-loyalty-top h2,.dashboard-scan-copy h2{margin:0;color:#4a2d1c;font:700 clamp(22px,3vw,29px)/1.2 var(--zh-font-heading)}
.dashboard-loyalty-top p,.dashboard-scan-copy p{margin:8px 0 0;color:#786c5c;font-size:12px;line-height:1.7}
.dashboard-progress-count{display:flex;align-items:baseline;gap:3px;flex-shrink:0;color:#927044}
.dashboard-progress-count strong{font:700 43px/1 var(--zh-font-heading);color:#55351f;font-variant-numeric:tabular-nums}
.dashboard-progress-count span{font-size:14px;color:#897965}
.dashboard-stamps{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:9px;margin:27px 0 15px}
.dashboard-stamp{position:relative;display:grid;place-items:center;aspect-ratio:1;min-width:0;border:1px dashed #d8c9b2;border-radius:13px;background:rgba(255,255,255,.58);color:#b9a991}
.dashboard-stamp>span{font-size:clamp(13px,2.4vw,21px);line-height:1}
.dashboard-stamp small{position:absolute;right:5px;bottom:3px;color:#a99b87;font-size:8px;font-weight:700}
.dashboard-stamp.is-earned{border:1px solid #765033;background:#68452d;color:#fff8eb;box-shadow:0 4px 10px rgba(74,45,28,.13)}
.dashboard-stamp.is-earned small{color:#e9d3b3}
.dashboard-progress-meta{display:flex;justify-content:space-between;gap:12px;color:#776b5b;font-size:11px}
.dashboard-progress-meta strong{color:#5b3c26}
.dashboard-progress-track{height:8px;margin-top:9px;overflow:hidden;border-radius:99px;background:#e8ddcd}
.dashboard-progress-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#967044,#bd914d);transition:width .35s ease}
.dashboard-status-note{display:grid;gap:4px;margin-top:19px;padding:13px 15px;border:1px solid #e7dac5;border-radius:11px;background:rgba(255,255,255,.58)}
.dashboard-status-note strong{color:#60452e;font-size:12px}
.dashboard-status-note span{color:#817463;font-size:11px;line-height:1.55}
.dashboard-status-note.is-pending{border-color:#ead7b2;background:#fff6e6}
.dashboard-scan-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 22px;padding:23px 25px;border:1px solid #e5e9e2;border-radius:18px;background:#fff;box-shadow:var(--zh-shadow)}
.dashboard-scan-copy h2{font-size:23px;color:var(--zh-forest)}
.dashboard-scan-copy p{max-width:490px;color:#778078}
.dashboard-scan-button{min-width:166px;min-height:48px;padding:0 19px}
.dashboard-scan-button span{font-size:18px}
.scanner-privacy{grid-column:1/-1;margin:3px 0 0;color:#90988f;font-size:10px;line-height:1.5}
.dashboard-scan-card .qr-scanner-panel{grid-column:1/-1;width:100%}
.dashboard-rewards,.dashboard-activity{display:grid;gap:13px}
.dashboard-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.dashboard-section-heading .dashboard-eyebrow{margin-bottom:5px}
.dashboard-section-heading h2{margin:0;color:var(--zh-forest);font:700 25px/1.2 var(--zh-font-heading)}
.dashboard-reward-count,.dashboard-total-count{flex-shrink:0;padding:6px 9px;border:1px solid #e6e9e3;border-radius:99px;background:#fff;color:#68766c;font-size:10px;font-weight:700}
.dashboard-reward-list,.dashboard-activity-list{overflow:hidden;border:1px solid #e5e9e2;border-radius:15px;background:#fff}
.dashboard-reward-item{display:flex;align-items:center;gap:13px;padding:17px 18px;border-bottom:1px solid #edf0eb}
.dashboard-reward-item:last-child,.dashboard-activity-row:last-child{border-bottom:0}
.dashboard-reward-icon,.dashboard-activity-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:#f7f0e5;font-size:18px}
.dashboard-reward-detail{flex:1;min-width:0}
.dashboard-reward-detail strong,.dashboard-empty-reward strong,.dashboard-activity-row strong,.dashboard-empty-activity strong{display:block;color:#35483b;font-size:12px}
.dashboard-reward-detail p,.dashboard-empty-reward p,.dashboard-empty-activity p{margin:5px 0 0;color:#7d877f;font-size:11px;line-height:1.6}
.dashboard-reward-status{flex-shrink:0;padding:6px 9px;border-radius:99px;background:#f1f3f0;color:#647168;font-size:9px;font-weight:800}
.dashboard-reward-status.status-pending{background:#fff4df;color:#8a642a}
.dashboard-reward-status.status-approved{background:#edf6ef;color:#326b43}
.dashboard-reward-status.status-claimed{background:#f0f1ef;color:#667168}
.dashboard-empty-reward,.dashboard-empty-activity{display:flex;align-items:center;gap:13px;padding:19px}
.dashboard-empty-reward>span{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:#f7f0e5;font-size:18px}
.dashboard-activity-row{display:flex;align-items:center;gap:12px;padding:14px 17px;border-bottom:1px solid #edf0eb}
.dashboard-activity-row>span:nth-child(2){flex:1;min-width:0}
.dashboard-activity-row small{display:block;margin-top:4px;color:#89938b;font-size:10px}
.dashboard-activity-row>b{color:#3f7651;font-size:13px;font-variant-numeric:tabular-nums}
.dashboard-empty-activity{display:block}
@media(max-width:620px){
 .customer-dashboard{gap:16px}
 .dashboard-welcome{padding:3px 1px}
 .dashboard-member-mark{flex-basis:44px;width:44px;height:44px;border-radius:14px}
 .dashboard-loyalty{padding:21px 17px;border-radius:17px}
 .dashboard-stamps{gap:5px;margin:23px 0 13px}
 .dashboard-stamp{border-radius:9px}
 .dashboard-stamp small{right:3px;bottom:2px;font-size:7px}
 .dashboard-progress-count strong{font-size:36px}
 .dashboard-scan-card{grid-template-columns:1fr;padding:20px 18px;gap:12px}
 .dashboard-scan-button{width:100%}
 .scanner-privacy{grid-column:1}
 .dashboard-section-heading h2{font-size:22px}
 .dashboard-reward-item{align-items:flex-start;gap:10px;padding:15px 13px}
 .dashboard-reward-icon{flex-basis:35px;width:35px;height:35px}
 .dashboard-reward-status{margin-left:auto}
}
@media(max-width:390px){
 .dashboard-stamps{gap:4px}
 .dashboard-stamp{border-radius:7px}
 .dashboard-stamp>span{font-size:12px}
 .dashboard-stamp small{font-size:6px}
 .dashboard-reward-item{flex-wrap:wrap}
 .dashboard-reward-detail{flex-basis:calc(100% - 50px)}
 .dashboard-reward-status{margin-left:45px}
}
@media(prefers-reduced-motion:reduce){.dashboard-progress-track span{transition:none}}


/* Phase 2 customer journey: clear confirmation, success and recovery states */
.journey-confirm,.journey-result{width:min(100%,560px);padding:clamp(24px,5vw,38px);border:1px solid #ead9bd;border-radius:20px;background:#fffaf0;box-shadow:0 14px 36px rgba(62,43,25,.08)}
.journey-confirm h1,.journey-result h1{margin:13px 0 12px;font-size:clamp(30px,6vw,39px);line-height:1.12}
.journey-confirm>p,.journey-result>p{color:#786c5c;font-size:13px;line-height:1.75}
.journey-confirm form{margin:24px 0 13px}
.journey-confirm form .btn,.journey-result>.btn{width:100%;min-height:50px}
.journey-confirm .journey-back{margin:16px 0 0;text-align:center}
.journey-back a{color:#79532f;font-size:12px;font-weight:700;text-decoration:none}
.journey-back a:hover{text-decoration:underline}
.journey-result-highlight{display:grid;gap:5px;margin:20px 0 22px;padding:15px 17px;border:1px solid #e7dac5;border-radius:12px;background:#f8f0e3}
.journey-result-highlight strong{color:#563b26;font-size:13px}
.journey-result-highlight span{color:#7d6c59;font-size:11px;line-height:1.6}
.auth-message{min-height:20px;color:#8d382d;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.auth-card form button:focus-visible,.journey-confirm button:focus-visible{outline-offset:4px}
@media(max-width:520px){
 .journey-confirm,.journey-result{padding:25px 19px;border-radius:17px}
 .journey-confirm form .btn,.journey-result>.btn{width:100%}
}

.dashboard-reward-ready{display:inline-flex;align-items:center;width:max-content;max-width:100%;margin-top:9px;padding:6px 9px;border:1px solid #d8e8d7;border-radius:999px;background:#eef6eb;color:#356344;font-size:9px;font-weight:800;letter-spacing:.45px}


/* Phase 3 retention: customer activity, reward updates and profile */
.retention-text-link{display:inline-flex;align-items:center;gap:7px;width:max-content;margin:2px 0 0;color:#79532f;font-size:12px;font-weight:800;text-decoration:none}
.retention-text-link:hover{text-decoration:underline}
.retention-updates{display:grid;gap:13px}
.retention-update-list,.retention-panel{overflow:hidden;border:1px solid #e5e9e2;border-radius:16px;background:#fff}
.retention-update-item{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid #edf0eb}
.retention-update-item:last-child{border-bottom:0}
.retention-update-item>div{flex:1;min-width:0}
.retention-update-item strong{display:block;color:#35483b;font-size:12px}
.retention-update-item p{margin:5px 0 0;color:#89938b;font-size:10px;line-height:1.5}
.retention-update-dot{flex:0 0 10px;width:10px;height:10px;border-radius:50%;background:#b7a68f}
.retention-update-dot.status-approved{background:#4f8a5c;box-shadow:0 0 0 4px #edf6ef}
.retention-update-dot.status-pending{background:#c28b3e;box-shadow:0 0 0 4px #fff5e4}
.retention-update-dot.status-claimed{background:#87928a;box-shadow:0 0 0 4px #f0f2ef}
.retention-empty{padding:23px 20px;color:#35483b}
.retention-empty strong{font-size:13px}
.retention-empty p{margin:6px 0 0;color:#7d877f;font-size:11px;line-height:1.65}
.retention-page{display:grid;gap:20px;width:min(100%,850px);margin:0 auto}
.retention-page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:5px 2px}
.retention-page-heading h1{margin:0;color:var(--zh-forest);font:700 clamp(30px,5vw,40px)/1.12 var(--zh-font-heading)}
.retention-page-heading p{margin:8px 0 0;color:#748078;font-size:12px;line-height:1.6}
.retention-stat{display:grid;justify-items:end;gap:2px;flex-shrink:0}
.retention-stat strong{color:#55351f;font:700 35px/1 var(--zh-font-heading)}
.retention-stat span{color:#89938b;font-size:10px}
.retention-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 20px;border-bottom:1px solid #edf0eb}
.retention-panel-heading h2{margin:0;color:var(--zh-forest);font:700 22px/1.2 var(--zh-font-heading)}
.retention-panel-heading p{margin:5px 0 0;color:#89938b;font-size:10px;line-height:1.5}
.retention-panel-heading>span{flex-shrink:0;color:#68766c;font-size:10px;font-weight:800}
.retention-history-row{display:flex;align-items:center;gap:13px;padding:15px 19px;border-bottom:1px solid #edf0eb}
.retention-history-row:last-child{border-bottom:0}
.retention-history-row>div{flex:1;min-width:0}
.retention-history-row strong{display:block;color:#35483b;font-size:12px}
.retention-history-row small{display:block;margin-top:4px;color:#89938b;font-size:10px}
.retention-history-row>b{flex-shrink:0;color:#3f7651;font-size:11px}
.retention-reward-symbol{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:12px;background:#f7f0e5;font-size:18px}
.retention-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 19px;border-top:1px solid #edf0eb;color:#7d877f;font-size:10px}
.retention-pagination a{color:#79532f;font-size:11px;font-weight:800;text-decoration:none}
.retention-pagination .is-disabled{color:#b3b9b3}
.retention-avatar{display:grid;place-items:center;flex:0 0 54px;width:54px;height:54px;border:1px solid #e9dcc8;border-radius:17px;background:#fffaf0;color:#815a34;font:700 25px var(--zh-font-heading)}
.retention-profile-form{display:grid;gap:9px;padding:21px}
.retention-profile-form label{margin-top:5px;color:#4b5b50;font-size:11px;font-weight:800}
.retention-profile-form input{width:100%;min-height:46px;padding:0 13px;border:1px solid #dfe5dd;border-radius:10px;background:#fff;color:#35483b;font:13px var(--zh-font-body)}
.retention-profile-form input:focus{outline:2px solid #b99668;outline-offset:2px}
.retention-profile-form input[readonly]{background:#f6f7f4;color:#7b857d}
.retention-profile-form>small{margin-top:-3px;color:#89938b;font-size:10px;line-height:1.55}
.retention-profile-form .btn{width:max-content;min-width:150px;min-height:44px;margin-top:12px}
.retention-profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.retention-profile-stats article{display:grid;gap:5px;padding:17px;border:1px solid #e5e9e2;border-radius:13px;background:#fff}
.retention-profile-stats strong{color:#55351f;font:700 22px/1.1 var(--zh-font-heading)}
.retention-profile-stats span{color:#89938b;font-size:10px}
.retention-profile-note{margin:0;color:#89938b;font-size:10px;line-height:1.6}
@media(max-width:600px){
 .retention-page{gap:15px}
 .retention-update-item{align-items:flex-start;padding:14px 13px;gap:9px}
 .retention-update-item .dashboard-reward-status{margin-left:auto}
 .retention-panel-heading{padding:16px 14px}
 .retention-history-row{gap:10px;padding:14px 12px}
 .retention-history-row .dashboard-activity-icon,.retention-reward-symbol{flex-basis:35px;width:35px;height:35px}
 .retention-profile-form{padding:17px}
 .retention-profile-stats{gap:7px}
 .retention-profile-stats article{padding:13px 10px}
 .retention-profile-stats strong{font-size:19px}
 .retention-profile-stats span{font-size:9px;line-height:1.4}
}

.retention-security-action{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 21px}
.retention-security-action>div{display:grid;gap:5px}
.retention-security-action strong{color:#35483b;font-size:12px}
.retention-security-action small{color:#89938b;font-size:10px;line-height:1.5}
@media(max-width:520px){.retention-security-action{align-items:flex-start;flex-direction:column;padding:16px}}


/* Customer profile refinement: clear hierarchy, comfortable form spacing, and small-screen fit. */
.retention-profile{width:min(100%,920px);gap:22px}
.retention-profile .retention-page-heading{padding:clamp(17px,3vw,27px);border:1px solid #e9dfcf;border-radius:18px;background:linear-gradient(120deg,#fffdf8 0%,#f7f0e4 100%)}
.retention-profile .retention-page-heading h1{font-size:clamp(32px,5vw,46px);letter-spacing:-.6px}
.retention-profile .retention-avatar{width:58px;height:58px;flex-basis:58px;border-radius:18px;box-shadow:0 5px 15px rgba(62,43,25,.06)}
.retention-profile .retention-panel{border-radius:18px;box-shadow:0 9px 26px rgba(32,54,39,.045)}
.retention-profile .retention-panel-heading{padding:22px 25px}
.retention-profile .retention-panel-heading h2{font-size:24px}
.retention-profile .retention-panel-heading p{font-size:11px}
.retention-profile .retention-profile-form{grid-template-columns:1fr;gap:10px;padding:24px 25px 25px}
.retention-profile .retention-profile-form label{margin-top:5px;font-size:12px}
.retention-profile .retention-profile-form input{min-height:50px;padding:0 15px;border-radius:11px;font:14px var(--zh-font-body)}
.retention-profile .retention-profile-form input:focus-visible{outline:3px solid rgba(189,145,77,.25);border-color:#b78a4d}
.retention-profile .retention-profile-form>small{font-size:10px}
.retention-profile .retention-profile-form .btn{min-width:168px;min-height:48px;margin-top:10px;border-radius:10px}
.retention-profile .retention-profile-stats{gap:13px}
.retention-profile .retention-profile-stats article{min-height:94px;align-content:center;padding:19px 21px;border-radius:15px;box-shadow:0 7px 20px rgba(32,54,39,.035)}
.retention-profile .retention-profile-stats strong{font-size:25px}
.retention-profile .retention-profile-stats span{font-size:11px}
.retention-profile .retention-security-action{padding:21px 25px}
.retention-profile .retention-security-action strong{font-size:13px}
.retention-profile .retention-security-action small{max-width:560px;font-size:11px}
.retention-profile .retention-text-link{flex-shrink:0;min-height:40px;align-items:center;padding:0 13px;border:1px solid #eadcc7;border-radius:9px;background:#fffaf2}
.site-header nav>a[aria-current="page"]{background:#f3f0e8;color:#234a36}
@media(max-width:600px){
 .retention-profile{gap:14px}
 .retention-profile .retention-page-heading{padding:17px 15px;border-radius:15px}
 .retention-profile .retention-page-heading h1{font-size:34px}
 .retention-profile .retention-avatar{width:45px;height:45px;flex-basis:45px;border-radius:14px;font-size:21px}
 .retention-profile .retention-panel{border-radius:15px}
 .retention-profile .retention-panel-heading{padding:17px 16px}
 .retention-profile .retention-panel-heading h2{font-size:21px}
 .retention-profile .retention-profile-form{padding:17px 16px 19px}
 .retention-profile .retention-profile-form input{min-height:48px;font-size:14px}
 .retention-profile .retention-profile-form .btn{width:100%;min-width:0}
 .retention-profile .retention-profile-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .retention-profile .retention-profile-stats article{min-height:82px;padding:12px 9px;border-radius:12px}
 .retention-profile .retention-profile-stats strong{font-size:19px;overflow-wrap:anywhere}
 .retention-profile .retention-profile-stats span{font-size:9px}
 .retention-profile .retention-security-action{padding:16px;gap:12px}
 .retention-profile .retention-text-link{width:100%;justify-content:center}
}
@media(max-width:360px){
 .retention-profile .retention-profile-stats{grid-template-columns:1fr}
 .retention-profile .retention-profile-stats article{min-height:68px}
}


/* Profile heading height fix: the global site-header rule must not constrain page headers. */
.retention-profile>header.retention-page-heading{
  height:auto;
  min-height:112px;
  width:100%;
  align-items:center;
  padding:20px clamp(18px,3.5vw,34px);
  overflow:visible;
}
.retention-profile>header.retention-page-heading>div:first-child{min-width:0}
.retention-profile>header.retention-page-heading h1{margin:0;line-height:1.08}
.retention-profile>header.retention-page-heading p{margin:9px 0 0;line-height:1.5}
@media(max-width:600px){
  .retention-profile>header.retention-page-heading{min-height:94px;padding:17px 15px}
  .retention-profile>header.retention-page-heading h1{font-size:clamp(30px,8vw,36px)}
  .retention-profile>header.retention-page-heading p{font-size:11px}
}

/* Sticky footer layout: keep the shared footer at the viewport bottom on short auth pages. */
html,body{min-height:100%}
body{min-height:100vh;display:flex;flex-direction:column}
body>main{flex:1 0 auto}
body>footer.site-footer{flex-shrink:0;margin-top:auto}


/* Staff landing dashboard */
.admin-home{width:min(100%,1040px);margin:0 auto}
.admin-home-heading{height:auto;min-height:130px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 27px;padding:27px 30px;border:1px solid #e9dfcf;border-radius:18px;background:linear-gradient(120deg,#fffdf8 0%,#f7f0e4 100%)}
.admin-home-eyebrow{color:#9a7546;font-size:10px;font-weight:800;letter-spacing:1.8px}
.admin-home-heading h1{margin:10px 0 8px;color:#234a36;font:700 clamp(32px,5vw,44px)/1.1 var(--zh-font-heading)}
.admin-home-heading p{margin:0;color:#78847b;font-size:13px;line-height:1.6}
.admin-home-role{flex-shrink:0;padding:8px 12px;border:1px solid #e8dcc8;border-radius:999px;background:#fffaf2;color:#79532f;font-size:9px;font-weight:800;letter-spacing:1px}
.admin-home-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.admin-home-card{display:grid;grid-template-columns:48px minmax(0,1fr);gap:13px 15px;align-items:center;min-width:0;padding:22px;border:1px solid #e5e9e2;border-radius:16px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 8px 24px rgba(23,59,43,.045);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.admin-home-card:hover{transform:translateY(-2px);border-color:#d5c2a4;box-shadow:0 13px 30px rgba(23,59,43,.08)}
.admin-home-card:focus-visible{outline:3px solid rgba(189,145,77,.35);outline-offset:3px}
.admin-home-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#f7f0e5;color:#79532f;font-size:25px}
.admin-home-card-copy{display:grid;gap:6px;min-width:0}
.admin-home-card-copy strong{color:#234a36;font:700 20px var(--zh-font-heading)}
.admin-home-card-copy small{color:#78847b;font-size:11px;line-height:1.6}
.admin-home-card-footer{grid-column:1/-1;display:flex;align-items:baseline;gap:8px;padding-top:13px;border-top:1px solid #edf0eb}
.admin-home-card-footer b{color:#234a36;font:700 25px var(--zh-font-heading)}
.admin-home-card-footer small{flex:1;color:#89938b;font-size:10px}
.admin-home-card-footer>span{color:#9a7546;font-size:18px}
.admin-home-note{margin:19px 2px 0;color:#89938b;font-size:10px;line-height:1.6}
@media(max-width:620px){.admin-home-heading{min-height:0;align-items:flex-start;flex-direction:column;padding:22px 19px;border-radius:15px}.admin-home-grid{grid-template-columns:1fr;gap:11px}.admin-home-card{padding:18px}.admin-home-card-copy strong{font-size:19px}}


/* Admin customer detail: account profile, milestone history and coffee activity */
.customer-detail-page{display:grid;gap:19px;width:min(100%,980px);margin:0 auto;color:#35483b}
.customer-detail-back{width:max-content;color:#79532f;font-size:12px;font-weight:800;text-decoration:none}
.customer-detail-back:hover{text-decoration:underline}
.customer-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:25px 28px;border:1px solid #e9dfcf;border-radius:18px;background:linear-gradient(120deg,#fffdf8 0%,#f7f0e4 100%)}
.customer-detail-identity{display:flex;align-items:center;gap:16px;min-width:0}
.customer-detail-avatar{display:grid;place-items:center;flex:0 0 58px;width:58px;height:58px;border:1px solid #e8dcc8;border-radius:17px;background:#fffaf2;color:#79532f;font:700 26px var(--zh-font-heading)}
.customer-detail-eyebrow{margin:0 0 6px;color:#9a7546;font-size:9px;font-weight:800;letter-spacing:1.6px}
.customer-detail-heading h1{margin:0;color:#234a36;font:700 clamp(28px,5vw,39px)/1.12 var(--zh-font-heading);overflow-wrap:anywhere}
.customer-detail-heading p:last-child{margin:6px 0 0;color:#78847b;font-size:12px;overflow-wrap:anywhere}
.customer-detail-status,.customer-detail-reward-status{flex-shrink:0;padding:7px 10px;border-radius:99px;font-size:9px;font-weight:800}
.customer-detail-status.status-active,.customer-detail-reward-status.status-approved{background:#edf6ef;color:#326b43}
.customer-detail-status.status-pending,.customer-detail-reward-status.status-pending{background:#fff4df;color:#8a642a}
.customer-detail-status.status-suspended{background:#fff0ed;color:#8d382d}
.customer-detail-status.status-deleted,.customer-detail-reward-status.status-claimed{background:#f0f2ef;color:#667168}
.customer-detail-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.customer-detail-stats article{display:grid;gap:5px;padding:18px 20px;border:1px solid #e5e9e2;border-radius:14px;background:#fff}
.customer-detail-stats span{color:#68766c;font-size:11px;font-weight:700}
.customer-detail-stats strong{color:#234a36;font:700 29px/1.1 var(--zh-font-heading);font-variant-numeric:tabular-nums}
.customer-detail-stats small{color:#89938b;font-size:9px;line-height:1.5}
.customer-detail-panel{overflow:hidden;border:1px solid #e5e9e2;border-radius:15px;background:#fff;box-shadow:0 8px 24px rgba(23,59,43,.035)}
.customer-detail-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:19px 22px;border-bottom:1px solid #edf0eb}
.customer-detail-panel-heading h2{margin:0;color:#234a36;font:700 22px/1.2 var(--zh-font-heading)}
.customer-detail-panel-heading p{margin:5px 0 0;color:#89938b;font-size:10px;line-height:1.5}
.customer-detail-panel-heading>span{flex-shrink:0;color:#68766c;font-size:10px;font-weight:800}
.customer-detail-info{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin:0;padding:4px 22px}
.customer-detail-info>div{display:grid;gap:5px;padding:14px 8px;border-bottom:1px solid #edf0eb;min-width:0}
.customer-detail-info dt{color:#89938b;font-size:10px;font-weight:700}
.customer-detail-info dd{margin:0;color:#35483b;font-size:12px;overflow-wrap:anywhere}
.customer-detail-timeline,.customer-detail-redemptions{display:grid}
.customer-detail-milestone,.customer-detail-redemptions article{display:flex;align-items:center;gap:12px;padding:15px 20px;border-bottom:1px solid #edf0eb}
.customer-detail-milestone:last-child,.customer-detail-redemptions article:last-child{border-bottom:0}
.customer-detail-milestone-icon,.customer-detail-coffee-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:#f7f0e5;color:#79532f;font-size:18px}
.customer-detail-milestone-copy,.customer-detail-redemptions article>div{display:grid;flex:1;gap:4px;min-width:0}
.customer-detail-milestone-copy strong,.customer-detail-redemptions strong{color:#35483b;font-size:12px}
.customer-detail-milestone-copy small,.customer-detail-redemptions small{color:#89938b;font-size:10px;line-height:1.5}
.customer-detail-redemptions article>b{flex-shrink:0;color:#3f7651;font-size:10px}
.customer-detail-empty{padding:22px;color:#35483b}
.customer-detail-empty strong{font-size:12px}
.customer-detail-empty p{margin:6px 0 0;color:#89938b;font-size:10px;line-height:1.6}
.customer-detail-footnote{margin:0;padding:0 20px 16px;color:#89938b;font-size:10px}
.customer-detail-link{display:grid;gap:4px;width:max-content;max-width:100%;color:inherit;text-decoration:none}
.customer-detail-link strong{color:#234a36}
.customer-detail-link small{color:#78847b}
.customer-detail-link>span{color:#9a7546;font-size:9px;font-weight:800}
.customer-detail-link:hover strong,.customer-detail-link:hover>span{text-decoration:underline}
.customer-detail-link:focus-visible{outline:2px solid #b99668;outline-offset:4px;border-radius:4px}
@media(max-width:620px){
 .customer-detail-page{gap:14px}
 .customer-detail-heading{align-items:flex-start;flex-direction:column;padding:20px 17px;border-radius:15px}
 .customer-detail-avatar{flex-basis:48px;width:48px;height:48px;border-radius:14px;font-size:22px}
 .customer-detail-stats{gap:7px}
 .customer-detail-stats article{padding:14px 10px;border-radius:12px}
 .customer-detail-stats strong{font-size:23px}
 .customer-detail-stats span{font-size:9px;line-height:1.4}
 .customer-detail-panel-heading{padding:16px}
 .customer-detail-panel-heading h2{font-size:20px}
 .customer-detail-info{grid-template-columns:1fr;padding:3px 15px}
 .customer-detail-info>div{padding:11px 3px}
 .customer-detail-milestone,.customer-detail-redemptions article{align-items:flex-start;gap:9px;padding:13px 12px}
 .customer-detail-milestone-icon,.customer-detail-coffee-icon{flex-basis:34px;width:34px;height:34px}
 .customer-detail-reward-status{padding:6px 7px;font-size:8px}
 .customer-detail-redemptions article>b{font-size:9px}
}


/* Customer detail header: override the shared 72px site-header rule. */
.customer-detail-page>header.customer-detail-heading{
  display:flex;
  width:100%;
  height:auto;
  min-height:112px;
  align-items:center;
  justify-content:space-between;
  overflow:visible;
  padding:22px 28px;
}
.customer-detail-page>header.customer-detail-heading .customer-detail-identity{
  min-width:0;
  align-items:center;
}
.customer-detail-page>header.customer-detail-heading .customer-detail-identity>div{
  min-width:0;
}
.customer-detail-page>header.customer-detail-heading .customer-detail-eyebrow{
  display:block;
  margin:0 0 7px;
  line-height:1.4;
}
.customer-detail-page>header.customer-detail-heading h1{
  margin:0;
  line-height:1.08;
}
.customer-detail-page>header.customer-detail-heading p:last-child{
  margin:7px 0 0;
  line-height:1.45;
}
@media(max-width:620px){
  .customer-detail-page>header.customer-detail-heading{
    min-height:0;
    align-items:flex-start;
    flex-direction:column;
    padding:19px 17px;
  }
}


/* Homepage: clear, customer-friendly loyalty mechanics */
.how-it-works{margin:0 0 58px;padding:clamp(24px,4vw,42px);border:1px solid #ead9bd;border-radius:25px;background:#fffaf0;box-shadow:0 12px 30px var(--coffee-shadow)}
.how-heading{max-width:650px;margin:0 auto 28px;text-align:center}
.how-heading .eyebrow{margin:0 0 9px;color:var(--gold);font-size:10px;font-weight:700;letter-spacing:2px}
.how-heading h2{margin:0;color:var(--chocolate);font:700 clamp(29px,4vw,42px)/1.15 var(--zh-font-heading)}
.how-heading h2 i{color:#b87836;font-style:normal}
.how-heading>p:last-child{max-width:520px;margin:11px auto 0;color:var(--muted);font-size:13px;line-height:1.7}
.how-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.how-step{position:relative;display:grid;grid-template-columns:34px 42px minmax(0,1fr);align-items:start;gap:11px;min-height:122px;padding:18px 16px;border:1px solid #efe2cd;border-radius:15px;background:#fffdf8}
.how-step-number{padding-top:4px;color:#b87836;font:700 12px var(--zh-font-body);letter-spacing:.5px}
.how-step-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#f5e8d2;color:#80501f;font-size:20px}
.how-step h3{margin:1px 0 6px;color:#4a2919;font:700 17px/1.25 var(--zh-font-heading)}
.how-step p{margin:0;color:#806e5c;font-size:11px;line-height:1.7}
.how-reward-note{display:flex;align-items:center;gap:13px;margin-top:17px;padding:17px 19px;border:1px solid #e7d2ae;border-radius:14px;background:#fbf0dc}
.how-reward-note>span{font-size:26px}
.how-reward-note p{flex:1;margin:0;color:#705337;font-size:12px;line-height:1.65}
.how-reward-note p strong{display:block;margin-bottom:2px;color:#4a2919;font:700 17px var(--zh-font-heading)}
.how-join-link{flex-shrink:0;padding:11px 17px;border-radius:999px;background:#80501f;color:white;font-size:11px;font-weight:700;text-decoration:none;white-space:nowrap}
.how-join-link:hover{background:#684018}
@media(max-width:680px){
 .how-it-works{margin-bottom:38px;padding:23px 16px;border-radius:19px}
 .how-heading{margin-bottom:21px}
 .how-steps{grid-template-columns:1fr;gap:9px}
 .how-step{grid-template-columns:28px 38px minmax(0,1fr);min-height:0;padding:14px 12px;gap:9px}
 .how-step-icon{width:36px;height:36px;border-radius:10px}
 .how-step h3{font-size:16px}
 .how-step p{font-size:11px}
 .how-reward-note{align-items:flex-start;flex-wrap:wrap;padding:15px}
 .how-reward-note p{flex:1 1 calc(100% - 44px)}
 .how-join-link{margin-left:42px}
}


/* Homepage how-it-works: tighten the lead-in and standardize step-card rhythm. */
.how-heading{margin-bottom:20px}
.how-heading>p:last-child{margin-top:9px}
.how-steps{gap:14px}
.how-step{
  min-height:132px;
  padding:19px 18px;
  grid-template-columns:34px 42px minmax(0,1fr);
  gap:12px;
}
.how-step h3{font-size:19px;line-height:1.3;margin:0 0 7px}
.how-step p{font-size:12px;line-height:1.65}
@media(max-width:680px){
  .how-heading{margin-bottom:17px}
  .how-steps{gap:11px}
  .how-step{
    min-height:0;
    padding:15px 13px;
    grid-template-columns:28px 38px minmax(0,1fr);
    gap:10px;
  }
  .how-step h3{font-size:18px;line-height:1.3;margin:0 0 6px}
  .how-step p{font-size:12px;line-height:1.6}
}


/* Homepage: remove the oversized gap between coffee cards and loyalty steps. */
.coffee-section{
  margin-bottom:0;
  padding-bottom:14px;
}
.how-it-works{
  margin-top:0;
}
@media(max-width:760px){
  .coffee-section{padding-bottom:10px}
}


/* Typography tokens: one consistent font source across all ZaleaHub surfaces. */
:root{
  --zh-font-body:'DM Sans',Arial,sans-serif;
  --zh-font-heading:'Playfair Display',Georgia,serif;
}
