:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#123044;background:#e8eff3;font-synthesis:none}
*{box-sizing:border-box}
html{font-size:16px}
body{margin:0;min-width:320px}
button,input{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed;opacity:.48}
button:focus-visible,input:focus-visible{outline:3px solid #48b7d8;outline-offset:2px}
#app{max-width:480px;min-height:100dvh;margin:auto;background:#f5f8fa;box-shadow:0 22px 80px rgba(8,40,61,.15)}
.shell{min-height:100dvh;display:flex;flex-direction:column}
.top{background:#093952;color:#fff;padding:calc(env(safe-area-inset-top) + 21px) 24px 24px;position:relative;overflow:hidden}
.top:after{content:"";position:absolute;width:210px;height:210px;border:1px solid rgba(255,255,255,.12);border-radius:50%;right:-122px;top:-140px;pointer-events:none}
.brandrow{display:flex;justify-content:space-between;align-items:center;gap:12px}
.brand{font-weight:900;letter-spacing:.06em;font-size:1.13rem;line-height:1}
.brand:before{content:"";display:inline-block;width:9px;height:18px;background:#40b4d2;border-radius:2px;transform:skew(-15deg);margin-right:10px;vertical-align:-3px}
.demo-badge{border:1px solid rgba(255,255,255,.28);color:#d5edf5;border-radius:50px;padding:6px 10px;letter-spacing:.1em;font-size:.71rem;font-weight:800}
.hero-copy{margin:31px 0 0}
.eyebrow{text-transform:uppercase;letter-spacing:.15em;color:#9fd5e3;font-weight:800;font-size:.72rem;margin:0 0 9px}
h1{font-size:1.85rem;line-height:1.13;letter-spacing:-.035em;margin:0;max-width:340px}
.hero-sub{color:#bfd4de;font-size:.9rem;line-height:1.48;margin:11px 0 0;max-width:360px}
.role-switch{display:grid;grid-template-columns:1fr 1fr;background:#e8f0f3;border-radius:14px;padding:4px;margin:18px 20px 0;gap:4px}
.role-switch button{border:0;background:transparent;color:#617687;border-radius:10px;min-height:44px;font-weight:750;font-size:.94rem}
.role-switch button.active{background:#fff;color:#0a3c55;box-shadow:0 2px 8px rgba(8,41,61,.1)}
.content{flex:1;padding:23px 20px 134px}
.content.guard-content{padding-bottom:40px}
.section-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}
h2{font-size:1.32rem;letter-spacing:-.028em;line-height:1.25;margin:0;color:#102f42}
.muted{color:#708494}
.small{font-size:.79rem;line-height:1.4}
.progress{display:flex;gap:5px;margin:0 0 25px}
.progress span{height:5px;flex:1;background:#dbe6eb;border-radius:20px}
.progress span.on{background:#26a7c8}
.progress-label{font-size:.74rem;color:#657d8d;text-transform:uppercase;letter-spacing:.12em;font-weight:800;margin:0 0 9px}
.product-list{display:grid;gap:11px}
.product{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid #dce7eb;border-radius:17px;padding:15px 14px;box-shadow:0 3px 12px rgba(15,57,77,.035)}
.product.selected{border-color:#81c8d8;background:#fcfeff}
.product-icon{width:45px;height:45px;flex:none;border-radius:13px;background:#dff2f6;color:#0d7895;display:grid;place-items:center}
.product-icon svg{width:22px;height:22px}
.product-info{min-width:0;flex:1}
.product-title{margin:0;color:#11364b;font-weight:800;font-size:.94rem;line-height:1.24}
.product-detail{color:#718595;font-size:.79rem;margin:4px 0 6px}
.price{font-size:.93rem;font-weight:800;color:#0a6884}
.qty-control{display:flex;align-items:center;gap:7px;flex:none}
.qty-control button{border:1px solid #d2e0e5;background:#fff;color:#0a536d;width:29px;height:29px;border-radius:9px;font-size:1.24rem;line-height:1;display:grid;place-items:center;padding:0}
.qty-control strong{min-width:14px;text-align:center;font-size:.9rem}
.note{display:flex;gap:10px;padding:13px 14px;background:#e9f4f7;border-radius:13px;color:#456b7e;font-size:.8rem;line-height:1.45;margin-top:18px}
.note svg{flex:none;margin-top:1px}
.footer{position:sticky;bottom:0;margin-top:auto;background:#fff;border-top:1px solid #dce8ec;padding:14px 20px calc(env(safe-area-inset-bottom) + 16px);box-shadow:0 -8px 22px rgba(12,52,71,.04);z-index:10}
.footer-row{display:flex;align-items:end;justify-content:space-between;margin:0 1px 13px}
.footer-row span{font-size:.8rem;color:#6d8493}
.footer-row strong{font-size:1.36rem;letter-spacing:-.035em;color:#123b51}
.primary{width:100%;border:0;background:#0c7d9b;color:white;min-height:51px;border-radius:12px;font-weight:800;box-shadow:0 5px 12px rgba(0,113,146,.18)}
.primary:hover:not(:disabled){background:#076985}
.secondary{width:100%;border:1px solid #bed6df;color:#0b607b;background:#fff;min-height:48px;border-radius:12px;font-weight:800}
.text-button{border:0;background:none;color:#0b6b87;font-weight:750;padding:6px 0}
.back{border:0;background:none;color:#38708a;font-size:.83rem;font-weight:750;padding:0}
.field{display:block;margin:0 0 16px}
.field-label{display:block;color:#31556a;font-size:.84rem;font-weight:750;margin-bottom:7px}
.field input{width:100%;border:1px solid #cbdce3;border-radius:11px;background:#fff;padding:13px 14px;color:#17394d;min-height:48px}
.field input::placeholder{color:#a2b0ba}
.form-card,.card{background:#fff;border:1px solid #dce7eb;border-radius:18px;padding:18px;box-shadow:0 3px 12px rgba(15,57,77,.035)}
.form-card{padding-bottom:4px}
.card-title{font-size:.98rem;font-weight:850;margin:0 0 17px}
.stack{display:grid;gap:12px}
.split{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.rule{height:1px;background:#e3ebef;margin:16px 0}
.line-label{font-size:.82rem;color:#667f8e;margin:0 0 4px}
.line-value{font-size:.95rem;font-weight:750;color:#163d52;margin:0}
.amount{font-size:1.75rem;font-weight:850;letter-spacing:-.035em;color:#0e536d}
.payment-top{display:flex;align-items:center;gap:13px;margin-bottom:17px}
.payment-icon{width:47px;height:47px;flex:none;display:grid;place-items:center;background:#dff2f6;color:#0c7895;border-radius:13px}
.payment-icon svg{width:24px;height:24px}
.bank-row{display:flex;justify-content:space-between;gap:12px;margin:13px 0;font-size:.85rem}
.bank-row span{color:#708594}
.bank-row strong{text-align:right;color:#183c50}
.status-card{padding:14px;border:1px solid #b6e6d5;border-radius:14px;background:#ebf9f1;display:flex;gap:10px;color:#1f7658;align-items:flex-start;margin-bottom:18px}
.status-card strong{font-size:.89rem}
.status-card p{font-size:.8rem;line-height:1.4;margin:3px 0 0;color:#4b816d}
.qr-wrap{background:#fff;border:1px solid #dce7eb;border-radius:20px;padding:22px 15px 19px;text-align:center}
.qr-wrap svg{display:block;width:min(100%,272px);height:auto;margin:auto;image-rendering:pixelated}
.qr-id{font-weight:850;letter-spacing:.08em;color:#15445d;margin:13px 0 3px}
.qr-hint{font-size:.81rem;color:#708695;margin:0}
.order-summary{margin-top:16px}
.order-summary .split{margin-bottom:12px}
.order-summary .split:last-child{margin-bottom:0}
.order-summary .split strong{font-size:.86rem;text-align:right}
.order-summary .split span{color:#708595;font-size:.83rem}
.camera-frame{height:270px;border:1.5px dashed #95c2cf;border-radius:20px;background:#102c3b;position:relative;display:grid;place-items:center;color:#b6d6df;overflow:hidden;margin:18px 0}
.camera-frame:before,.camera-frame:after{content:"";position:absolute;inset:35px;border:3px solid #51c7df;border-radius:17px;opacity:.8;pointer-events:none}
.camera-frame:after{inset:47px;border:0;border-top:1px solid rgba(100,214,231,.5);border-radius:0;top:50%;bottom:auto}
.camera-frame video{width:100%;height:100%;object-fit:cover}
.camera-empty{text-align:center;padding:24px;max-width:230px;font-size:.87rem;line-height:1.5}
.camera-empty svg{display:block;margin:0 auto 13px}
.camera-actions{display:grid;gap:10px}
.guard-card{margin-top:19px}
.verified-banner{background:#e8f8f0;color:#17704e;border:1px solid #b3e4ce;padding:14px;border-radius:14px;display:flex;align-items:center;gap:10px;font-weight:800;margin-bottom:16px}
.delivered-banner{background:#e7f1f7;color:#17617e;border-color:#b9d8e8}
.order-number{font-size:.77rem;font-weight:850;letter-spacing:.13em;color:#5f8293;margin:0 0 5px}
.guard-name{font-size:1.37rem;letter-spacing:-.02em;margin:0}
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px 10px}
.detail-grid .full{grid-column:1/-1}
.item-row{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #e8eff2;font-size:.88rem}
.item-row:last-child{border:0}
.item-row strong{text-align:right}
.alert{background:#fff6e8;color:#916421;border:1px solid #f2dfbc;border-radius:12px;padding:12px 13px;font-size:.79rem;line-height:1.45;margin-top:16px}
.error{background:#fff0ed;border:1px solid #f0c7bf;color:#a64f40;border-radius:11px;padding:11px 13px;font-size:.82rem;line-height:1.45;margin:12px 0}
.loading{display:flex;align-items:center;gap:11px;justify-content:center;color:#46778b;font-weight:750;font-size:.87rem;margin:14px 0}
.spinner{height:18px;width:18px;border:2px solid #b6dce6;border-top-color:#097997;border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:650px){body{padding:32px 0;background:radial-gradient(circle at 25% 20%,#d0e9ef,transparent 30%),#e8eff3}#app{min-height:min(850px,calc(100dvh - 64px));border-radius:24px;overflow:hidden}.shell{min-height:min(850px,calc(100dvh - 64px))}.top{padding-top:26px}}
@media(max-width:350px){.product{gap:8px;padding:12px 10px}.product-icon{width:36px;height:36px}.product-title{font-size:.87rem}.qty-control{gap:4px}}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}}
