/* Cashway WebView — интерактивно демо (HTML + Alpine.js)
   Стиловете са общи за демото; цветовете идват от CSS променливи (токени),
   които Alpine задава на #screen според избраната тема. */
[x-cloak]{display:none!important}
svg.i{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
svg.i.s12{width:12px;height:12px}svg.i.s14{width:14px;height:14px}svg.i.s16{width:16px;height:16px}svg.i.s18{width:18px;height:18px}
svg.i.s20{width:20px;height:20px}svg.i.s22{width:22px;height:22px}svg.i.s28{width:28px;height:28px}svg.i.s40{width:40px;height:40px}
.tp{display:contents}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{font-family:Montserrat,system-ui,sans-serif;background:#e8e8ee;color:#1c1838;-webkit-font-smoothing:antialiased}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
input{font:inherit;color:inherit}
img{display:block}

/* ---------- page layout ---------- */
.page{height:100vh;display:flex;overflow:hidden}
.stagewrap{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;padding:20px 24px 16px;gap:16px}
.devbar{display:flex;align-items:center;gap:12px}
.devbar .seg2{width:240px;background:#fff;box-shadow:0 1px 3px rgba(28,23,56,.06)}
.devbar .seg2 button.on{background:#1c1838;color:#fff}
.devbar .seg2 button{display:flex;align-items:center;justify-content:center;gap:6px}
.devbar svg{width:16px;height:16px}
.devarea{flex:1;min-height:0;width:100%;display:flex;align-items:center;justify-content:center}
.devwrap{position:relative;flex:none}
.device{position:absolute;top:0;left:0;transform-origin:0 0}
.panel{width:340px;flex:none;background:#fff;box-shadow:-1px 0 0 #e1e0ea;height:100vh;display:flex;flex-direction:column}
.p-head{padding:24px 24px 16px;border-bottom:1px solid #eeeef4}
.p-body{flex:1;overflow-y:auto;padding:8px 24px 24px}
.p-foot{padding:16px 24px 20px;border-top:1px solid #eeeef4;background:#fff}
.panel h1{font-size:18px;font-weight:700;line-height:24px}
.panel .lead{font-size:12px;line-height:18px;color:#615e78;margin-top:4px}
.grp-p{padding:20px 0;border-bottom:1px solid #eeeef4;display:flex;flex-direction:column;gap:14px}
.grp-p:last-child{border-bottom:0}
.grp-p>h2{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#1c1838;display:flex;align-items:center;gap:8px}
.grp-p>h2 i{font-style:normal;width:20px;height:20px;border-radius:6px;background:#eeeef4;display:grid;place-items:center;font-size:11px;letter-spacing:0;color:#615e78}
.panel .field{margin-bottom:0}
.sub{margin:-4px 0 0 0;padding:12px;border-radius:12px;background:#f6f6fa}
.toggle .tt{display:flex;flex-direction:column;gap:2px}
.toggle .tt small{font-size:11px;font-weight:400;color:#615e78;line-height:15px}
.sysgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.sysgrid .pbtn{height:34px;font-size:12px}
.pbtn.primary{background:#1c1838;color:#fff;border-color:#1c1838}
.pbtn.primary:hover{background:#2e2950}
.field{margin-bottom:18px}
.field>label,.field .lbl{display:block;font-size:12px;font-weight:600;color:#615e78;margin-bottom:8px}
.seg2{display:flex;background:#eeeef4;border-radius:999px;padding:4px}
.seg2 button{flex:1;height:34px;border-radius:999px;font-size:12px;font-weight:600;color:#615e78}
.seg2 button.on{background:#fff;color:#1c1838;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.swatches{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.sw{width:32px;height:32px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #e1e0ea}
.sw.on{box-shadow:0 0 0 2px #1c1838}
.colors{display:flex;gap:10px}
.color{flex:1;display:flex;align-items:center;gap:8px;border:1px solid #e1e0ea;border-radius:10px;padding:6px 8px;font-size:12px}
.color input{width:28px;height:28px;border:0;padding:0;background:none;cursor:pointer}
.text-in{width:100%;height:40px;border:1px solid #e1e0ea;border-radius:10px;padding:0 12px;font-size:14px}
.toggle{text-align:left;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;font-weight:500}
.sw-t{width:44px;height:26px;border-radius:999px;background:#e1e0ea;position:relative;flex:none;transition:.2s}
.sw-t::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:.2s}
.sw-t.on{background:#1c1838}.sw-t.on::after{left:21px}
.panel .row-btns{display:flex;gap:8px}
.pbtn{flex:1;height:38px;border-radius:10px;border:1px solid #e1e0ea;font-size:12px;font-weight:600}
.pbtn:hover{background:#f6f6fa}
.panel .hint{font-size:11px;line-height:16px;color:#615e78;margin-top:10px}
.dis{opacity:.4;pointer-events:none}

/* ---------- phone ---------- */
.device{background:#121214;box-shadow:0 20px 60px rgba(28,23,56,.25)}
.device.phone{width:399px;height:836px;border-radius:56px;padding:12px}
.device.tablet{width:808px;height:1064px;border-radius:44px;padding:20px}
.device.phone::before,.device.phone::after{content:"";position:absolute;background:#1f1f22;width:3px;border-radius:2px}
.device.phone::before{left:-3px;top:230px;height:62px;box-shadow:0 75px 0 #1f1f22}
.device.phone::after{right:-3px;top:250px;height:96px}
.screen{width:100%;height:100%;overflow:hidden;position:relative;background:var(--bg-page);color:var(--text);display:flex;flex-direction:column}
.phone .screen{border-radius:44px}
.tablet .screen{border-radius:24px}
.island{position:absolute;top:11px;left:50%;transform:translateX(-50%);width:120px;height:35px;border-radius:18px;background:#000;z-index:50}
.tablet .island{display:none}
.tablet .status{padding:0 24px;height:32px;font-size:13px}
.caption{text-align:center;font-size:12px;color:#615e78}
.tablet .sec:has(>.tp>.card),.tablet .stack:has(>.tp>.card){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
.tablet .sec:has(>.tp>.card)>:not(.tp),.tablet .stack:has(>.tp>.card)>:not(.tp){grid-column:1/-1}
.tablet .body{padding-left:24px;padding-right:24px}
.tablet .chips,.tablet .slider{margin:0 -24px;padding-left:24px;padding-right:24px}
.tablet .slider{scroll-padding-left:24px}
.tablet .sheet{left:50%;right:auto;width:560px;transform:translateX(-50%);border-radius:24px 24px 0 0}
.tablet .sticky{padding-left:24px;padding-right:24px}

/* status bar */
.status{height:47px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:4px 28px 0 32px;font-size:15px;font-weight:600}
.status .sys{display:flex;gap:5px;align-items:center}
.status .sys i{display:block;height:11px;border-radius:2px;background:currentColor}
.status .sys i:nth-child(1){width:17px}.status .sys i:nth-child(2){width:15px}.status .sys i:nth-child(3){width:25px;height:12px;border-radius:3px}

/* host shell */
.host-top{flex:none;background:#fff;color:#1c1838;border-bottom:1px solid #e1e0ea}
.host-top .status{background:#fff;color:#1c1838}
.host-nav{height:52px;display:flex;align-items:center;gap:8px;padding:0 16px 0 12px}
.host-nav .t{flex:1;font-size:17px;font-weight:600}
.host-logo{font-size:11px;font-weight:500;color:#615e78;background:#eeeef4;border-radius:6px;padding:4px 8px}
.host-tabs{flex:none;background:#fff;border-top:1px solid #e1e0ea;padding-top:8px}
.host-tabs .tabs{display:flex}
.host-tabs .tab{flex:1;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:10px;font-weight:500;color:#615e78}
.host-tabs .tab.on{color:var(--primary);font-weight:600}
.host-tabs .home-ind{height:27px;display:flex;justify-content:center;align-items:flex-end;padding-bottom:8px}
.host-tabs .home-ind i{width:134px;height:5px;border-radius:3px;background:#1c1838}
.host-msg{position:absolute;inset:0;background:rgba(18,18,20,.5);display:flex;align-items:flex-end;z-index:60}

/* ---------- webview ---------- */
.wv{flex:1;min-height:0;display:flex;flex-direction:column;position:relative;background:var(--bg-page);overflow:hidden}
.hdr{height:56px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 16px;gap:8px;position:relative;z-index:5}
.hdr.brand{background:var(--header-bg);color:var(--on-primary)}
.hdr.white{background:var(--surface);color:var(--text);border-bottom:1px solid var(--border)}
.hdr .left{display:flex;align-items:center;gap:6px;min-width:0}
.hdr .title{font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hdr .right{display:flex;align-items:center;gap:8px;flex:none}
.icon-btn{width:40px;height:40px;display:grid;place-items:center;border-radius:999px}
.icon-btn:active{background:rgba(127,127,127,.15)}
.back{margin-left:-8px}
.pill{height:30px;display:flex;align-items:center;gap:6px;padding:0 6px 0 10px;border-radius:999px;font-size:14px;font-weight:600}
.hdr.brand .pill{background:rgba(255,255,255,.14)}
.hdr.brand .pill .w{color:var(--accent)}
.hdr.white .pill{background:var(--bg-subtle)}
.hdr.white .pill .w{color:var(--primary)}
.hdr .fav-dot{position:relative}
.hdr .fav-dot b{position:absolute;top:8px;right:8px;width:8px;height:8px;border-radius:50%;background:var(--cashback);border:2px solid currentColor}

.scroll{flex:1;overflow-y:auto;overflow-x:hidden;scrollbar-width:none}
.scroll::-webkit-scrollbar{display:none}
.body{padding:16px 16px 24px;display:flex;flex-direction:column;gap:24px}
.body.tight{gap:16px}
.has-sticky .body{padding-bottom:132px}
.sec{display:flex;flex-direction:column;gap:12px}
.sec-h{display:flex;align-items:center;justify-content:space-between}
.sec-h h2{font-size:17px;font-weight:600;line-height:22px}
.link{display:flex;align-items:center;gap:2px;font-size:12px;font-weight:600;color:var(--link)}
.link svg{width:16px;height:16px}

/* search & segmented */
.search{height:44px;border-radius:999px;background:var(--surface);border:1px solid var(--border);display:flex;align-items:center;gap:8px;padding:0 12px;color:var(--text2);font-size:14px;width:100%;text-align:left}
.search svg{width:20px;height:20px;flex:none}
.search input{flex:1;border:0;outline:0;background:none;font-size:14px;color:var(--text);min-width:0}
.search input::placeholder{color:var(--text2)}
.search.focus{border-color:var(--focus)}
.segs{display:flex;gap:2px;background:var(--bg-subtle);border-radius:999px;padding:4px 8px;height:44px}
.segs button{flex:auto;height:36px;border-radius:999px;font-size:12px;font-weight:600;color:var(--text2);padding:0 10px;line-height:14px}
.segs button.on{background:var(--surface);color:var(--link);box-shadow:0 1px 3px rgba(28,23,56,.08)}
.stack{display:flex;flex-direction:column;gap:12px}

/* chips */
.chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:0 16px}
.chips::-webkit-scrollbar{display:none}
.chips.wrap{flex-wrap:wrap;overflow:visible;margin:0;padding:0}
.chip{height:34px;flex:none;padding:0 12px;border-radius:999px;border:1px solid var(--border);background:var(--surface);font-size:12px;font-weight:600;color:var(--text);white-space:nowrap}
.chip.on{background:var(--subtle);border-color:var(--primary);color:var(--link)}

/* slider */
.slider{display:flex;align-items:flex-start;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -16px;padding:10px 16px 14px;scrollbar-width:none;scroll-padding-left:16px;cursor:grab;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.slider.drag{scroll-snap-type:none;cursor:grabbing}
.slider.drag *{pointer-events:none}
.slider::-webkit-scrollbar{display:none}
.slider>.card,.slider>.camp{scroll-snap-align:start;flex:none;width:280px}
.camp{position:relative;background:var(--surface);border-radius:16px;overflow:hidden;box-shadow:0 2px 12px rgba(28,23,56,.08);display:flex;flex-direction:column;text-align:left}
.camp .img{height:140px;background-size:cover;background-position:center;transform:scaleX(-1)}
.camp .clogo{position:absolute;right:0;top:121px;background:var(--surface);border-radius:10px 0 0 0;padding:8px 10px;display:flex}
.camp .clogo img{height:19px;width:auto;max-width:96px;object-fit:contain}
.camp .cc{padding:16px;display:flex;flex-direction:column;gap:6px}
.camp .eb{font-size:11px;font-weight:600;color:var(--link);line-height:14px}
.camp b{font-size:17px;font-weight:700;line-height:22px}
.camp p{font-size:13px;line-height:18px;color:var(--text2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.camp .btn{margin-top:6px}
.cbx{display:flex;align-items:center;gap:10px;font-size:14px;line-height:20px;text-align:left}
.cbx i{width:20px;height:20px;border-radius:6px;border:1.5px solid var(--border-strong,#A3A1B5);display:grid;place-items:center;flex:none;background:var(--surface)}
.cbx.on i{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}
.cbx i svg{width:14px;height:14px}
.inp input:disabled{background:var(--bg-subtle);color:var(--text2)}
.dots{display:flex;gap:6px;justify-content:center;margin-top:-4px}
.dots i{width:6px;height:6px;border-radius:3px;background:var(--border);transition:.2s;cursor:pointer}
.dots i.on{width:18px;background:var(--primary)}

/* cards */
.card{background:var(--surface);border-radius:16px;padding:16px;box-shadow:0 2px 12px rgba(28,23,56,.08);display:flex;flex-direction:column;gap:12px;text-align:left;width:100%}
button.card:active{transform:scale(.99)}
.logo{width:120px;height:24px;flex:none;display:flex;align-items:center}
.logo img{max-width:100%;max-height:100%;object-fit:contain;object-position:left center}
.card.offer .row{flex-wrap:nowrap}
.card.rec{position:relative}
.pin{position:absolute;top:-7px;right:-7px;width:22px;height:22px;border-radius:50%;background:var(--primary);color:var(--on-primary);display:grid;place-items:center;box-shadow:0 0 0 2px var(--surface)}
.pin svg{width:12px;height:12px}
.badge{height:22px;display:inline-block;line-height:20px;padding:0 8px;border-radius:999px;font-size:11px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:0 1 auto;min-width:48px;max-width:100%;border:1px solid}
.badge.ecomm{background:var(--ec-bg);color:var(--ec-fg);border-color:var(--ec-border)}
.badge.edenred{background:var(--ed-bg);color:var(--ed-fg);border-color:var(--ed-border)}
.row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.name{font-size:15px;font-weight:600;line-height:20px}
.cash{display:flex;align-items:baseline;gap:6px}
.cash b{font-size:20px;font-weight:800;color:var(--cashback);line-height:24px}
.cash span{font-size:12px;color:var(--text2)}
.hr{height:1px;background:var(--border)}
.desc{font-size:12px;line-height:16px;color:var(--text2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card .nv{gap:12px}
.card .nv .name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card .nv .cash{flex:none}
.card .odesc{font-size:14px;line-height:20px;font-weight:700;color:var(--text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.secs{display:flex;flex-direction:column;gap:40px}
.ftr{border-top:1px solid var(--border);padding-top:24px;display:flex;flex-direction:column;gap:16px}
.ftr .lk{display:flex;flex-wrap:wrap;gap:10px 16px}
.ftr .lk button{font-size:12px;line-height:16px;color:var(--text2);text-decoration:underline;text-underline-offset:2px}
.ftr small{font-size:11px;line-height:14px;color:var(--text2)}
.expr{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;line-height:16px;color:var(--text-expiry)}
.expr svg{width:16px;height:16px;color:var(--expiry)}
.prog{border-top:1px solid var(--border);padding-top:8px;display:flex;flex-direction:column;gap:6px}
.prog.checks{gap:8px}
.prog .lbls{display:flex;justify-content:space-between;font-size:12px;line-height:16px}
.prog .lbls b{font-weight:600}.prog .lbls span{color:var(--text2)}
.bars{display:flex;gap:4px}.bars i{flex:1;height:6px;border-radius:3px;background:var(--track)}.bars i.on{background:var(--fill)}
.cks{display:flex;gap:8px}
.cks i{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--track);color:var(--text-dis)}
.cks i.on{background:var(--fill);color:var(--on-primary)}
.cks svg{width:16px;height:16px}
.sk{background:var(--surface);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px}
.sk .r{display:flex;justify-content:space-between}
.sk i{display:block;border-radius:6px;background:linear-gradient(90deg,var(--bg-subtle),var(--border),var(--bg-subtle));background-size:200% 100%;animation:sh 1.2s infinite linear}
@keyframes sh{to{background-position:-200% 0}}

/* detail */
.hero{background:var(--surface);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px;box-shadow:0 2px 12px rgba(28,23,56,.08);position:relative}
.hero .nm{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.hero .nm .name{font-size:20px;line-height:24px}
.hero .nv .name{font-size:18px;line-height:24px;font-weight:700;flex:1;min-width:0}
.hero .odesc{font-size:15px;line-height:22px;font-weight:700;color:var(--text)}
.hero .odesc+p{margin-top:-4px}
.hero .cash b{font-size:24px;line-height:28px}
.hero p{font-size:14px;line-height:20px;color:var(--text2)}
.hero .fav{position:absolute;top:12px;right:8px;display:flex;align-items:center;gap:6px;padding:6px 8px;border-radius:999px;font-size:12px;font-weight:600;color:var(--link)}
.hero .fav:active{background:var(--subtle)}
.hero .fav svg{width:20px;height:20px}
.hero .fav.on svg{fill:currentColor}
.box{background:var(--surface);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px}
.box h3{font-size:17px;font-weight:600}
.rates{display:flex;flex-direction:column}
.rate{display:flex;align-items:center;gap:12px;padding:10px 0;font-size:14px;line-height:20px}
.rate+.rate{border-top:1px solid var(--border)}
.rate span{flex:1}
.rate s{font-size:12px;color:var(--text2);font-weight:500;margin-right:6px}
.rate b{font-size:15px;font-weight:700;color:var(--cashback)}
.li{display:flex;gap:10px;font-size:14px;line-height:20px}
.li svg{width:20px;height:20px;flex:none;margin-top:0}
.li.ok svg{color:var(--status-success-fg)}
.li .exp{color:var(--expiry)}.li .inf{color:var(--text2)}
.activated{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 10px;border-radius:999px;background:var(--status-success-bg);color:var(--status-success-fg);font-size:12px;font-weight:600}
.activated svg{width:14px;height:14px}

/* sticky */
.sticky{position:absolute;left:0;right:0;bottom:0;background:var(--surface);padding:12px 16px 24px;display:flex;flex-direction:column;gap:8px;box-shadow:0 -4px 24px rgba(28,23,56,.08);z-index:6}
.sticky .note{font-size:12px;line-height:16px;color:var(--text2);text-align:center}
.btn{height:48px;border-radius:10px;font-size:14px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 16px;width:100%}
.btn.p{background:var(--primary);color:var(--on-primary)}
.btn.p:active{background:var(--primary-pressed)}
.btn.s{background:var(--surface);border:1px solid var(--primary);color:var(--link)}
.btn.s:active{background:var(--subtle)}
.btn.g{color:var(--link)}
.btn.g:active{background:var(--subtle)}
.btn.done{background:var(--bg-subtle);color:var(--text2)}
.btn svg{width:18px;height:18px}

/* list toolbar */
.toolbar{display:flex;align-items:center;justify-content:space-between}
.toolbar .count{font-size:12px;font-weight:600;color:var(--text2)}
.fbtn{height:34px;display:flex;align-items:center;gap:6px;padding:0 12px;border-radius:999px;border:1px solid var(--border);background:var(--surface);font-size:12px;font-weight:600;color:var(--link)}
.fbtn svg{width:18px;height:18px}
.fbtn em{font-style:normal;min-width:18px;height:18px;border-radius:9px;background:var(--primary);color:var(--on-primary);font-size:11px;display:grid;place-items:center;padding:0 5px}

/* sheet */
.scrim{position:absolute;inset:0;background:rgba(28,24,56,.45);z-index:20;animation:fade .2s}
.sheet{position:absolute;left:0;right:0;bottom:0;background:var(--surface);border-radius:20px 20px 0 0;padding:8px 16px 24px;z-index:21;display:flex;flex-direction:column;gap:16px;box-shadow:0 -4px 24px rgba(28,23,56,.16);animation:up .25s ease-out}
.sheet .handle{width:36px;height:4px;border-radius:2px;background:var(--border);margin:0 auto}
.sheet .sh-h{display:flex;justify-content:space-between;align-items:center}
.sheet .sh-h h3{font-size:17px;font-weight:600}
.sheet .grp .lbl{font-size:12px;font-weight:600;color:var(--text2);margin-bottom:8px}
.sheet .foot{display:flex;gap:12px}
.sheet .foot .btn{flex:1}
@keyframes up{from{transform:translateY(100%)}}
@keyframes fade{from{opacity:0}}

/* empty */
.empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;padding:32px 16px}
.empty .ic{width:64px;height:64px;border-radius:32px;background:var(--subtle);color:var(--primary);display:grid;place-items:center}
.empty .ic svg{width:28px;height:28px}
.empty h3{font-size:17px;font-weight:600}
.empty p{font-size:14px;line-height:20px;color:var(--text2)}
.empty .btn{width:240px;margin-top:4px}

/* toast */
.toast{position:absolute;left:16px;right:16px;bottom:24px;background:var(--header-bg);color:var(--on-primary);border-radius:12px;padding:12px 16px;display:flex;gap:10px;align-items:center;font-size:14px;font-weight:600;z-index:40;animation:up2 .25s ease-out}
.hdr-white-toast .toast{background:#1c1838;color:#fff}
.toast svg{width:20px;height:20px;flex:none}
.toast.lift{bottom:132px}
@keyframes up2{from{transform:translateY(20px);opacity:0}}

/* cashback */
.bal{background:var(--surface);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:16px}
.bal .k{font-size:12px;color:var(--text2)}
.bal .big{font-size:32px;font-weight:800;line-height:38px;margin-top:2px}
.tiles{display:flex;gap:12px}
.tile{flex:1;background:var(--bg-subtle);border-radius:12px;padding:12px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;font-size:16px;font-weight:700}
.sbadge{height:22px;display:inline-flex;align-items:center;padding:0 8px;border-radius:999px;font-size:11px;font-weight:500}
.sbadge.ok{background:var(--status-success-bg);color:var(--status-success-fg)}
.sbadge.pend{background:var(--status-pending-bg);color:var(--status-pending-fg)}
.sbadge.rej{background:var(--status-error-bg);color:var(--status-error-fg)}
.kv{display:flex;justify-content:space-between;font-size:14px;line-height:20px}
.kv span{color:var(--text2)}.kv b{font-weight:600;text-align:right}
.alert{border-radius:12px;padding:12px 14px;display:flex;gap:10px;background:var(--status-pending-bg);text-align:left;width:100%}
.alert svg{width:20px;height:20px;flex:none;color:var(--status-pending-fg)}
.alert p{font-size:12px;line-height:18px}
.alert b{display:block;font-size:12px;font-weight:600;color:var(--link);margin-top:4px}
.tabs2{display:flex;border-bottom:1px solid var(--border)}
.tabs2 button{flex:1;height:44px;font-size:14px;font-weight:600;color:var(--text2);border-bottom:2px solid transparent;margin-bottom:-1px}
.tabs2 button.on{color:var(--text);border-color:var(--primary)}
.tx{background:var(--surface);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:12px;width:100%;text-align:left}
.tx .top{display:flex;align-items:center;gap:12px}
.tx .info{flex:1;min-width:0}
.tx .info b{display:block;font-size:14px;font-weight:600}
.tx .info span{font-size:12px;color:var(--text2)}
.tx .amt{display:flex;flex-direction:column;align-items:flex-end;gap:4px;font-size:14px;font-weight:600}
.tx .chev{width:20px;height:20px;color:var(--text2);transition:.2s}
.tx.open .chev{transform:rotate(90deg)}
.tx .det{background:var(--bg-subtle);border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:8px}
.tx .det .kv{font-size:12px;line-height:16px}
.month{font-size:12px;font-weight:600;color:var(--text2);text-transform:none;margin-bottom:-4px}
.settings{background:var(--surface);border-radius:16px;overflow:hidden}
.srow{display:flex;align-items:center;gap:12px;padding:14px 16px;width:100%;text-align:left}
.srow+.srow{border-top:1px solid var(--border)}
.srow svg{width:22px;height:22px;flex:none}
.srow .tx2{flex:1}
.srow .tx2 b{display:block;font-size:14px;font-weight:400}
.srow .tx2 span{font-size:12px;color:var(--text2)}
.srow .chev{width:20px;height:20px;color:var(--text2)}
.box .head{display:flex;justify-content:space-between;align-items:center}
.box .head button{font-size:12px;font-weight:600;color:var(--link)}
.box p.m{font-size:14px;line-height:20px;color:var(--text2)}
.inp{display:flex;flex-direction:column;gap:6px}
.inp label{font-size:12px;font-weight:600;color:var(--text2)}
.inp input{height:48px;border-radius:10px;border:1px solid var(--border);background:var(--surface);padding:0 14px;font-size:14px;outline:0;color:var(--text)}
.inp input:focus{border-color:var(--focus)}
.inp.err input{border-color:var(--status-error-fg)}
.inp .help{font-size:12px;color:var(--text2)}
.inp.err .help{color:var(--status-error-fg)}
.form-h{font-size:17px;font-weight:600}
.syspg{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;padding:0 16px 47px}
.syspg .ic{width:96px;height:96px;border-radius:50%;background:var(--subtle);color:var(--primary);display:grid;place-items:center;margin-bottom:4px}
.syspg .ic svg{width:40px;height:40px}
.syspg .eb{font-size:12px;font-weight:600;letter-spacing:.06em;color:var(--link);text-transform:uppercase}
.syspg h1{font-size:22px;line-height:28px;font-weight:700}
.syspg p{font-size:14px;line-height:20px;color:var(--text2);margin-bottom:12px}
.syspg .btn{width:100%;max-width:400px}
.syspg p{max-width:420px}
.syspg .tlink{font-size:14px;font-weight:600;color:var(--link);text-decoration:underline;text-underline-offset:3px;margin:-4px 0 12px}
.syspg.join .ic{background:var(--primary);color:var(--on-primary)}
.sysgrid .pbtn.wide{grid-column:1/-1}
.stackp{display:flex;flex-direction:column;gap:8px}
.stackp small{font-size:11px;color:#615e78;margin-bottom:-4px}

@media (max-width:860px){
  .page{flex-direction:column;height:auto;overflow:visible}
  .stagewrap{height:100vh}
  .panel{width:100%;height:auto;box-shadow:0 -1px 0 #e1e0ea}
  .p-body{overflow:visible}
}
@media (max-width:480px){
  body{background:#fff}
  .stagewrap{padding:0;height:100dvh}
  .devbar,.caption{display:none}
  .devwrap{width:100vw!important;height:100dvh!important}
  .device{position:static;transform:none!important;width:100vw!important;height:100dvh!important;border-radius:0!important;padding:0!important;box-shadow:none;background:none}
  .device::before,.device::after,.island{display:none}
  .screen{border-radius:0!important}
}
