:root{--navy:#0f2a5c;--navy2:#1c3f7a;--orange:#e8731a;--silver:#c0c4cc;--gray:#6b6b6b;--bg:#f3f5f9;--card:#fff;--line:#e3e6ec;--green:#1f9d55;--red:#d93838;--radius:16px}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;background:#dfe3ea;font-family:"Inter","Noto Sans","Noto Sans Devanagari",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:#1d2433}
#app{max-width:480px;margin:0 auto;min-height:100%;background:var(--bg);position:relative;display:flex;flex-direction:column;box-shadow:0 0 40px rgba(0,0,0,.12)}
button{font:inherit;cursor:pointer;border:0}
input,select,textarea{font:inherit;width:100%;padding:12px 14px;border:1.5px solid var(--line);border-radius:12px;background:#fff;color:#1d2433;outline:none;transition:border .2s}
input:focus,select:focus,textarea:focus{border-color:var(--navy2)}
label{display:block;font-size:13px;font-weight:600;color:var(--gray);margin:14px 0 6px}
label .hi{font-weight:500;opacity:.8}
/* top bar */
#topbar{position:sticky;top:0;z-index:20;background:var(--navy);color:#fff;padding:10px 16px;display:flex;align-items:center;gap:10px;min-height:60px}
#topbar img.logo{height:40px;width:auto;display:block}
#topbar .title{font-weight:700;font-size:17px;flex:1;line-height:1.15}
#topbar .title small{display:block;font-weight:500;font-size:11.5px;color:var(--silver)}
#topbar .back{background:none;color:#fff;font-size:24px;padding:0 6px 0 0;line-height:1}
.pill{font-size:11px;font-weight:700;padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;white-space:nowrap}
.pill.dealer{background:var(--orange)}
.iconbtn{background:rgba(255,255,255,.12);color:#fff;border-radius:10px;padding:7px 9px;font-size:12px;font-weight:700}
/* main */
#view{flex:1;padding:14px 14px 96px;overflow-x:hidden}
.screen{animation:slidein .28s ease}
@keyframes slidein{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}
.card{background:var(--card);border-radius:var(--radius);padding:16px;margin-bottom:12px;box-shadow:0 1px 3px rgba(15,42,92,.06),0 4px 14px rgba(15,42,92,.05)}
h2{font-size:18px;margin:4px 2px 10px;color:var(--navy)}
h3{font-size:15px;margin:0 0 8px;color:var(--navy)}
.muted{color:var(--gray);font-size:13px}
.tiny{font-size:11.5px;color:var(--gray)}
.row{display:flex;align-items:center;gap:10px}
.between{justify-content:space-between}
.btn{display:block;width:100%;padding:14px;border-radius:12px;background:var(--orange);color:#fff;font-weight:700;font-size:15.5px;text-align:center;transition:transform .1s,filter .2s;text-decoration:none}
.btn:active{transform:scale(.98)}
.btn.navy{background:var(--navy2)}
.btn.ghost{background:#fff;color:var(--navy);border:1.5px solid var(--line)}
.btn.green{background:var(--green)}
.btn.red{background:#fff;color:var(--red);border:1.5px solid #f2c4c4}
.btn.sm{padding:9px 12px;font-size:13.5px;width:auto;display:inline-block}
.btns{display:flex;gap:8px}
.btns .btn{flex:1}
.demo-tag{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.4px;padding:2px 6px;border-radius:6px;background:#fff1e5;color:#b8560c;border:1px solid #f7cfaa;vertical-align:middle;text-transform:uppercase}
.real-tag{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.4px;padding:2px 6px;border-radius:6px;background:#e7f6ee;color:#16794a;border:1px solid #b9e3cb;vertical-align:middle;text-transform:uppercase}
/* login */
.login{min-height:100vh;background:linear-gradient(170deg,var(--navy) 0%,var(--navy2) 55%,#24508f 100%);color:#fff;padding:34px 22px 30px;margin:-14px -14px -96px;display:flex;flex-direction:column}
.login img{width:78%;max-width:300px;margin:6px auto 8px;display:block}
.tagline{text-align:center;font-weight:800;font-size:15px;line-height:1.4;margin:4px 0 22px;color:#fff}
.tagline span{display:block;color:var(--orange)}
.login .card{color:#1d2433}
.otp{display:flex;gap:10px;justify-content:center}
.otp input{width:56px;text-align:center;font-size:22px;font-weight:700;padding:12px 0}
/* hero rate */
.hero{background:linear-gradient(135deg,var(--navy) 0%,var(--navy2) 100%);color:#fff;border-radius:20px;padding:18px;margin-bottom:12px;position:relative;overflow:hidden}
.hero:after{content:"";position:absolute;right:-40px;top:-40px;width:160px;height:160px;border-radius:50%;background:rgba(232,115,26,.18)}
.hero .lbl{font-size:12.5px;color:var(--silver);font-weight:600}
.hero .big{font-size:38px;font-weight:800;letter-spacing:-.5px;margin:4px 0}
.hero .big small{font-size:15px;font-weight:600;color:var(--silver)}
.chg{display:inline-flex;align-items:center;gap:4px;padding:5px 10px;border-radius:999px;font-weight:800;font-size:13.5px}
.chg.down{background:rgba(217,56,56,.18);color:#ff9c9c}
.chg.up{background:rgba(31,157,85,.2);color:#7ee2a8}
.chg.flat{background:rgba(255,255,255,.15);color:#fff}
.hero .sizes{display:flex;gap:8px;margin-top:14px;position:relative;z-index:1}
.hero .sizes div{flex:1;background:rgba(255,255,255,.1);border-radius:12px;padding:9px 10px}
.hero .sizes b{display:block;font-size:17px}
.hero .sizes span{font-size:11px;color:var(--silver)}
.qa{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}
.qa button{background:#fff;border-radius:14px;padding:12px 4px 10px;color:var(--navy);font-size:11.5px;font-weight:700;box-shadow:0 1px 3px rgba(15,42,92,.08);line-height:1.25}
.qa .ic{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;margin:0 auto 6px;background:#eef2f9;font-size:19px}
.qa button:nth-child(1) .ic{background:#fff1e5}
/* brand list */
.brand{padding:0;overflow:hidden}
.brand .head{display:flex;align-items:center;gap:12px;padding:12px 14px;cursor:pointer}
.brand .lg{width:76px;height:48px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.brand .lg img{max-width:76px;max-height:46px;object-fit:contain}
.brand .nm{flex:1;min-width:0}
.brand .nm b{display:block;font-size:14.5px;color:var(--navy)}
.brand .pr{text-align:right}
.brand .pr b{font-size:16.5px;color:#1d2433;white-space:nowrap}
.brand .chev{transition:transform .25s;color:var(--gray);font-size:13px}
.brand.open .chev{transform:rotate(180deg)}
.brand .body{max-height:0;overflow:hidden;transition:max-height .35s ease;background:#fafbfd;border-top:1px solid transparent}
.brand.open .body{max-height:520px;border-top-color:var(--line)}
.brand .inner{padding:12px 14px}
table.sz{width:100%;border-collapse:collapse;font-size:13.5px}
table.sz td{padding:7px 4px;border-bottom:1px dashed var(--line)}
table.sz td:last-child{text-align:right;font-weight:700}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{padding:8px 12px;border-radius:999px;background:#fff;border:1.5px solid var(--line);font-size:13px;font-weight:700;color:var(--navy)}
.chip.on{background:var(--navy2);border-color:var(--navy2);color:#fff}
.calc .line{display:flex;justify-content:space-between;font-size:13.5px;padding:5px 0}
.calc .line.total{border-top:2px solid var(--navy);margin-top:6px;padding-top:9px;font-weight:800;font-size:16px;color:var(--navy)}
.note{background:#fff8ef;border:1px solid #f6dcbf;color:#8a4a12;border-radius:12px;padding:10px 12px;font-size:12.5px;line-height:1.45}
.note.blue{background:#eef3fb;border-color:#d3def0;color:#24406e}
/* requests */
.status{font-size:11px;font-weight:800;padding:4px 9px;border-radius:999px;white-space:nowrap}
.st-Submitted{background:#eef2f9;color:#2b4a85}
.st-Quoted{background:#fff1e5;color:#b8560c}
.st-Negotiating{background:#f3ecff;color:#6a3fc1}
.st-Confirmed{background:#e7f6ee;color:#16794a}
.st-Declined{background:#fdeaea;color:#b42424}
.steps{display:flex;gap:4px;margin:10px 0 2px}
.steps div{flex:1;height:5px;border-radius:3px;background:var(--line)}
.steps div.on{background:var(--orange)}
.req{cursor:pointer}
.sizerow{display:flex;gap:8px;align-items:center;margin-bottom:8px}
.sizerow select{flex:1.1}.sizerow input{flex:1}
.sizerow .x{background:#fdeaea;color:var(--red);border-radius:10px;width:40px;height:44px;font-size:18px;flex-shrink:0}
.addsize{background:none;color:var(--navy2);font-weight:700;font-size:14px;padding:6px 0}
/* thread */
.thread{display:flex;flex-direction:column;gap:8px;margin:8px 0}
.msg{max-width:82%;padding:10px 12px;border-radius:14px;font-size:13.5px;line-height:1.4}
.msg.client{align-self:flex-end;background:var(--navy2);color:#fff;border-bottom-right-radius:4px}
.msg.dealer{align-self:flex-start;background:#fff;border:1px solid var(--line);border-bottom-left-radius:4px}
.msg .p{font-size:17px;font-weight:800;display:block;margin-top:2px}
.msg .t{font-size:10.5px;opacity:.7;display:block;margin-top:4px}
.msg.client .p{color:#ffd2ad}.msg.dealer .p{color:var(--orange)}
.msg.sys{align-self:center;background:#e7f6ee;color:#16794a;font-weight:700;font-size:12.5px;max-width:95%;text-align:center}
/* contact */
.contact a{display:flex;align-items:center;gap:12px;padding:14px;border-radius:14px;text-decoration:none;color:#fff;font-weight:700;margin-bottom:10px;font-size:15px}
.contact a .ic{width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;font-size:20px}
.contact a small{display:block;font-weight:500;font-size:12px;opacity:.85}
.contact .call{background:var(--navy2)}.contact .wa{background:#1fa855}
/* stats */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}
.stats div{background:#fff;border-radius:14px;padding:12px 10px;box-shadow:0 1px 3px rgba(15,42,92,.08)}
.stats b{display:block;font-size:24px;color:var(--navy)}
.stats span{font-size:11.5px;color:var(--gray);font-weight:600}
.stats .hot b{color:var(--orange)}
/* bottom nav */
#bottomnav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;background:#fff;border-top:1px solid var(--line);display:flex;padding:6px 4px calc(6px + env(safe-area-inset-bottom));z-index:30;box-shadow:0 -4px 16px rgba(15,42,92,.06)}
#bottomnav:empty{display:none}
#bottomnav button{flex:1;background:none;color:#8a93a3;font-size:10.5px;font-weight:700;padding:4px 0;display:flex;flex-direction:column;align-items:center;gap:2px;position:relative}
#bottomnav button .ic{font-size:20px;line-height:26px;filter:grayscale(1);opacity:.7}
#bottomnav button.on{color:var(--navy)}
#bottomnav button.on .ic{filter:none;opacity:1}
#bottomnav button.on:before{content:"";position:absolute;top:-6px;width:28px;height:3px;border-radius:2px;background:var(--orange)}
#bottomnav .fab .ic{background:var(--orange);color:#fff;filter:none;opacity:1;width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-top:-20px;box-shadow:0 4px 12px rgba(232,115,26,.45);font-size:24px}
.badge{position:absolute;top:0;right:calc(50% - 20px);background:var(--red);color:#fff;font-size:10px;border-radius:999px;min-width:17px;height:17px;line-height:17px;padding:0 4px}
/* toast/sheet */
#toast{position:fixed;left:50%;bottom:92px;transform:translate(-50%,20px);background:#1d2433;color:#fff;padding:11px 16px;border-radius:12px;font-size:13.5px;opacity:0;transition:all .3s;z-index:60;max-width:90%;text-align:center;pointer-events:none}
#toast.show{opacity:1;transform:translate(-50%,0)}
#sheet-backdrop{position:fixed;inset:0;background:rgba(10,20,40,.45);opacity:0;pointer-events:none;transition:opacity .25s;z-index:40}
#sheet{position:fixed;left:50%;bottom:0;transform:translate(-50%,105%);width:100%;max-width:480px;background:#fff;border-radius:22px 22px 0 0;padding:18px 18px 28px;z-index:50;transition:transform .3s ease;max-height:85vh;overflow:auto}
#sheet{visibility:hidden}#sheet.open{transform:translate(-50%,0);visibility:visible}#sheet-backdrop.open{opacity:1;pointer-events:auto}
.grab{width:44px;height:5px;border-radius:3px;background:var(--line);margin:-6px auto 12px}
/* switch */
.switch{position:relative;width:46px;height:26px;border-radius:13px;background:var(--silver);transition:background .2s;flex-shrink:0}
.switch:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;transition:left .2s}
.switch.on{background:var(--orange)}.switch.on:after{left:23px}
.list-item{display:flex;align-items:center;gap:12px;padding:13px 2px;border-bottom:1px solid var(--line);cursor:pointer}
.list-item:last-child{border-bottom:0}
.list-item .ic{width:36px;height:36px;border-radius:10px;background:#eef2f9;display:flex;align-items:center;justify-content:center;font-size:17px;flex-shrink:0}
.list-item .tx{flex:1;font-weight:600;font-size:14.5px}
.list-item .tx small{display:block;font-weight:500;color:var(--gray);font-size:12px}
.foot{text-align:center;margin:18px 0 6px}
.foot img{width:150px}
.foot .tagline{color:var(--navy);font-size:13px;margin:6px 0 8px}
.foot .tagline span{color:var(--orange)}
.alert-banner{background:linear-gradient(90deg,#fff1e5,#fff);border:1px solid #f6cfa8;border-radius:14px;padding:12px;margin-bottom:12px;display:flex;gap:10px;align-items:center;font-size:13px}
.empty{text-align:center;padding:30px 10px;color:var(--gray)}
.empty .ic{font-size:40px}
svg text{font-family:inherit}
.chg.dk.down{background:#fdeaea;color:#c42b2b}.chg.dk.up{background:#e7f6ee;color:#16794a}.chg.dk.flat{background:#eef2f9;color:#2b4a85}
/* ---- production additions ---- */
:root{--down:#d93838}
a{color:var(--navy2)}
.call-tag{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.4px;padding:2px 6px;border-radius:6px;background:#eef2f9;color:#2b4a85;border:1px solid #d3def0;vertical-align:middle;text-transform:uppercase}
.oncall{font-size:20px}
.or{display:flex;align-items:center;gap:10px;margin:14px 0;color:var(--gray);font-size:12px}
.or:before,.or:after{content:"";flex:1;height:1px;background:var(--line)}
.gbtn{display:flex;align-items:center;justify-content:center;gap:10px}
.gbtn .g{width:22px;height:22px;border-radius:50%;background:conic-gradient(#ea4335 0 25%,#fbbc05 0 50%,#34a853 0 75%,#4285f4 0);color:#fff;font-weight:900;font-size:13px;display:inline-flex;align-items:center;justify-content:center}
.lnk{color:var(--navy2);font-weight:700;text-decoration:none;font-size:13.5px}
.login .lnk{color:var(--navy2)}
.spinner{width:38px;height:38px;border-radius:50%;border:4px solid rgba(255,255,255,.25);border-top-color:var(--orange);animation:spin 1s linear infinite;margin:30px auto}
.screen>.spinner,.card .spinner{border-color:#e3e6ec;border-top-color:var(--orange)}
.spinner.light{border-color:rgba(255,255,255,.25);border-top-color:var(--orange)}
@keyframes spin{to{transform:rotate(360deg)}}
.sizegrid{display:flex;flex-direction:column;gap:8px}
.sizegrid .row{gap:6px}
.sizegrid select{flex:1}.sizegrid input{flex:1}
.sizegrid.two{display:grid;grid-template-columns:1fr 1fr}
.sizegrid.two .ml{width:44px;flex-shrink:0}
.ml{font-size:12.5px;color:var(--gray);font-weight:700}
.del{background:#fdeaea;color:var(--red);border-radius:10px;width:40px;height:44px;font-size:16px;flex-shrink:0}
label.cb{display:inline-flex;align-items:center;gap:6px;margin:0;color:#1d2433;font-size:13.5px}
label.cb input{width:18px;height:18px;padding:0}
.st{font-size:11px;font-weight:800;padding:4px 9px;border-radius:999px;white-space:nowrap}
.st.sub{background:#eef2f9;color:#2b4a85}.st.quo{background:#fff1e5;color:#b8560c}.st.neg{background:#f3ecff;color:#6a3fc1}.st.ok{background:#e7f6ee;color:#16794a}.st.no{background:#fdeaea;color:#b42424}
.card>.msg{margin:8px 0}
.msg{display:block}
.msg.me{margin-left:auto;background:var(--navy2);color:#fff;border-bottom-right-radius:4px}
.msg.me .tiny{color:#d6def0}
.msg.them{margin-right:auto;background:#f5f7fb;border:1px solid var(--line);border-bottom-left-radius:4px}
.msg .mp{font-size:17px;font-weight:800;margin-top:2px}
.msg.me .mp{color:#ffd2ad}.msg.them .mp{color:var(--orange)}
.msg .mt{margin-top:4px;opacity:.85}
.msg.sys{margin-left:auto;margin-right:auto;text-align:center}
.msg.sys.decline{background:#fdeaea;color:#b42424}
.card.list{padding:4px 14px}
.card.list>button,.card.list>a{display:flex;justify-content:space-between;align-items:center;width:100%;background:none;padding:14px 2px;border-bottom:1px solid var(--line);font-weight:600;font-size:14.5px;color:#1d2433;text-decoration:none;text-align:left}
.card.list>:last-child{border-bottom:0}
.card.list span{color:var(--gray)}
.tagline.dk{color:var(--navy);margin:8px 0 0}
.qa:has(> :nth-child(2):last-child){grid-template-columns:1fr 1fr}
.foot a{color:var(--gray)}
.row input{flex:1}
/* ---------- order calculator ---------- */
.octile{display:flex;align-items:center;gap:12px;width:100%;text-align:left;background:linear-gradient(135deg,#f47b20,#e8650a);color:#fff;border:0;border-radius:18px;padding:14px 16px;margin-bottom:12px;box-shadow:0 6px 16px rgba(244,123,32,.28);cursor:pointer}
.octile .ic{width:46px;height:46px;border-radius:14px;background:rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;font-size:24px;flex:none}
.octile .tx{flex:1;display:flex;flex-direction:column}.octile b{font-size:17px}.octile small{font-size:12px;opacity:.92;margin-top:2px}
.octile .go{font-size:26px;font-weight:300}
.chips.ocb{flex-wrap:wrap}.chip.dis{opacity:.45;cursor:not-allowed;background:#f1f3f7}
.ocrows{display:flex;flex-direction:column;gap:8px;margin-top:10px}
.ocrow{display:grid;grid-template-columns:78px 1fr 98px;align-items:center;gap:10px}
.ocrow .sz b{font-size:20px;color:var(--navy)}.ocrow .sz .tiny{margin-top:1px}
.ocrow input{font-size:22px;font-weight:700;text-align:center;padding:10px 8px;height:52px;margin:0}
.ocrow .amt{text-align:right;font-weight:700;font-size:13.5px;color:var(--navy)}
.ocempty{background:#fff;border:2px dashed #d3def0;border-radius:16px;padding:18px;text-align:center;color:#5a6b8c;font-size:13.5px}
.bill{background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 1px 3px rgba(15,42,92,.08)}
.bill .bh{display:flex;justify-content:space-between;align-items:center;background:var(--navy);color:#fff;padding:12px 14px;font-size:13px}.bill .bh b{font-size:15px}
.bill table{width:100%;border-collapse:collapse;font-size:13.5px}
.bill th{font-size:11px;text-transform:uppercase;color:#5a6b8c;font-weight:700;padding:8px 10px;border-bottom:1px solid #e6ebf3;text-align:right}
.bill td{padding:8px 10px;border-bottom:1px solid #f0f3f8;text-align:right;font-variant-numeric:tabular-nums}
.bill th:first-child,.bill td:first-child{text-align:left}
.bill tfoot td{font-weight:800;color:var(--navy);border-bottom:0;background:#f6f8fc}
.bill .calc{padding:6px 14px}.bill .calc .line{font-variant-numeric:tabular-nums}.bill .calc .line.sub{border-top:1px dashed #d3def0;font-weight:700}
.bill .grand{display:flex;justify-content:space-between;align-items:center;background:#fff1e5;color:var(--navy);padding:14px;font-weight:800;font-size:14px;border-top:2px solid var(--navy)}
.bill .grand b{font-size:24px;color:#e8650a}
.bill .avg{padding:10px 14px 14px;font-size:12.5px;color:#5a6b8c;text-align:center}.bill .avg b{color:var(--navy)}
.btns.col{display:flex;flex-direction:column;gap:8px;margin-top:12px}.btns.col .btn{width:100%;text-align:center}
.btn.wa{background:#1fa855;color:#fff;border-color:#1fa855}
