@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');
:root{font-family:Vazirmatn,Tahoma,sans-serif;color:#17231f;background:#f3f6f3;font-synthesis:none;text-rendering:optimizeLegibility}
*{box-sizing:border-box}body{margin:0;min-height:100vh;background:linear-gradient(180deg,#eaf1ec 0,#f6f7f4 240px)}button,input,select{font:inherit}button{cursor:pointer}.shell{max-width:760px;margin:0 auto;padding:14px 14px 28px}.topbar{display:flex;align-items:center;gap:12px;background:#132c28;color:white;border-radius:20px;padding:14px 16px;box-shadow:0 12px 30px #132c281c}.brand-mark{width:42px;height:42px;border-radius:14px;background:#e8bc69;color:#19352e;display:grid;place-items:center;font-size:26px;font-weight:800}.brand-copy{display:flex;flex-direction:column;gap:2px;min-width:0}.brand-copy strong{font-size:17px}.brand-copy small{color:#c7d7d0;font-size:11px;line-height:1.6}.top-pill{margin-right:auto;background:#294a40;color:#dcece3;border:1px solid #45665a;padding:5px 10px;border-radius:30px;font-size:11px;white-space:nowrap}.demo-panel{margin:12px 0;background:#fff9ec;border:1px solid #ead9b5;border-radius:16px;padding:12px 14px}.demo-title{font-weight:800;font-size:13px;margin-bottom:8px}.demo-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.demo-controls label{font-size:11px;color:#625843;display:flex;flex-direction:column;gap:5px}.demo-controls select{width:100%;border:1px solid #e4d6b8;border-radius:10px;background:white;padding:8px;font-size:12px;color:#27342f}.demo-panel>small{display:block;color:#86785b;font-size:10px;margin-top:8px}.hidden{display:none!important}.loading{text-align:center;padding:70px 0;color:#6c7972}.loader{width:26px;height:26px;border:3px solid #d3ded7;border-top-color:#1b6250;border-radius:50%;margin:0 auto 12px;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.hero{background:#173d34;color:white;border-radius:22px;padding:20px;margin-top:14px;position:relative;overflow:hidden}.hero:after{content:"";position:absolute;left:-42px;top:-50px;width:180px;height:180px;border:1px solid #ffffff20;border-radius:50%;box-shadow:0 0 0 25px #ffffff08,0 0 0 50px #ffffff05}.eyebrow{font-size:11px;color:#c0d8cc}.balance{font-size:34px;font-weight:800;letter-spacing:-1px;margin:3px 0}.balance-unit{font-size:12px;color:#c0d8cc}.hero-row{display:flex;align-items:end;justify-content:space-between;gap:8px}.btn{border:0;border-radius:12px;padding:10px 14px;font-weight:700;font-size:12px;background:#dfb767;color:#26352e}.btn.dark{background:#173d34;color:#fff}.btn.light{background:#e8f0eb;color:#22453a}.btn.ghost{background:#f2f5f2;color:#43554b}.btn.danger{background:#fff0ee;color:#aa4033}.btn:disabled{opacity:.55;cursor:not-allowed}.section{margin-top:16px}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.section-head h2{font-size:15px;margin:0}.muted{color:#76837c;font-size:11px}.store-strip{display:flex;gap:8px;overflow:auto;padding:2px 0 6px}.store-chip{white-space:nowrap;border:1px solid #dce5de;background:white;border-radius:30px;padding:8px 13px;font-size:11px;color:#496057}.store-chip.active{background:#173d34;color:white;border-color:#173d34}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product{background:#fff;border:1px solid #e8ede8;border-radius:16px;overflow:hidden;min-width:0}.product-img{height:122px;background:#eaf0eb;display:grid;place-items:center;color:#789084;font-size:32px;overflow:hidden}.product-img img{width:100%;height:100%;object-fit:cover}.product-body{padding:10px}.product-title{font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.product-store{font-size:10px;color:#829087;margin-top:3px}.product-bottom{display:flex;align-items:center;justify-content:space-between;gap:4px;margin-top:9px}.price{font-size:11px;font-weight:700}.reward{font-size:10px;color:#996b1d;background:#fff4dc;border-radius:8px;padding:4px 6px;white-space:nowrap}.card{background:white;border:1px solid #e6ece7;border-radius:17px;padding:14px}.qr-card{display:flex;align-items:center;gap:14px}.qr-card img{width:116px;height:116px;background:white;border:1px solid #edf0ed;border-radius:12px;padding:6px}.qr-info{min-width:0}.qr-info strong{display:block;font-size:13px}.qr-info p{font-size:11px;color:#6f7b74;line-height:1.8}.code-pill{display:inline-block;background:#f0f3f0;padding:5px 9px;border-radius:9px;font-weight:700;letter-spacing:1px}.history{display:flex;flex-direction:column;gap:8px}.history-item{display:flex;align-items:center;justify-content:space-between;gap:10px;background:white;border:1px solid #e8ede8;border-radius:12px;padding:10px 12px}.history-item strong{display:block;font-size:11px}.history-item small{display:block;color:#849087;font-size:9px;margin-top:3px}.plus{color:#17734f;font-weight:800;font-size:12px;direction:ltr}.minus{color:#b24c40;font-weight:800;font-size:12px;direction:ltr}.nav{display:flex;gap:7px;margin:14px 0 2px}.nav button{flex:1;padding:10px 5px;border:1px solid #e0e8e1;background:white;color:#65736b;border-radius:11px;font-size:11px}.nav button.active{background:#173d34;color:white;border-color:#173d34}.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.stat{background:white;border:1px solid #e7ece8;border-radius:14px;padding:12px}.stat small{display:block;color:#819087;font-size:10px}.stat strong{display:block;font-size:18px;margin-top:4px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.field{display:flex;flex-direction:column;gap:5px}.field.full{grid-column:1/-1}.field label{font-size:10px;color:#69776f}.field input,.field select{width:100%;border:1px solid #dfe7e0;border-radius:10px;padding:10px;background:#fff;outline:none;font-size:12px}.field input:focus,.field select:focus{border-color:#5a9a7b}.form-actions{display:flex;gap:8px;margin-top:10px}.form-actions .btn{flex:1}.product-row{display:flex;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid #edf0ed}.product-row:last-child{border:0}.mini-img{width:42px;height:42px;border-radius:10px;overflow:hidden;background:#edf2ed;flex:none;display:grid;place-items:center}.mini-img img{width:100%;height:100%;object-fit:cover}.product-row-copy{min-width:0;flex:1}.product-row-copy strong{display:block;font-size:11px}.product-row-copy small{display:block;color:#819087;font-size:9px;margin-top:3px}.scanbox{margin-top:9px;border:1px dashed #c8d7ce;border-radius:12px;padding:10px;background:#f8faf8}.scanbox p{font-size:10px;color:#728078}.scan-result{font-size:11px;color:#176447;margin-top:6px}.admin-store{display:flex;justify-content:space-between;gap:8px;padding:10px 0;border-bottom:1px solid #edf0ed;font-size:11px}.admin-store:last-child{border:0}footer{text-align:center;color:#99a49d;font-size:9px;padding:22px 0 4px}.toast{position:fixed;bottom:18px;left:50%;transform:translate(-50%,20px);background:#173d34;color:white;border-radius:12px;padding:10px 15px;font-size:11px;box-shadow:0 8px 30px #0002;opacity:0;pointer-events:none;transition:.2s;z-index:20;max-width:90vw;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}.empty{text-align:center;padding:20px;color:#88948d;font-size:11px}.error-box{background:#fff0ee;border:1px solid #f2d3ce;color:#9e493e;border-radius:12px;padding:12px;font-size:11px;line-height:1.8}
@media(max-width:420px){.shell{padding:10px}.demo-controls{grid-template-columns:1fr 1fr}.demo-controls label:first-child{grid-column:1/-1}.product-img{height:108px}.hero{padding:17px}.balance{font-size:29px}.qr-card{align-items:flex-start}.qr-card img{width:100px;height:100px}}
