:root{color-scheme:dark;--bg: #0c0f14;--panel: #151a22;--text: #e8ecf1;--muted: #8b96a8;--accent: #5eead4;--danger: #f87171;--border: #2a3341;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg);color:var(--text)}#root{max-width:28rem;margin:0 auto;padding:1.25rem 1rem 2rem}h1{font-size:1.25rem;font-weight:600;margin:0 0 1rem}.panel{background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:1rem;margin-bottom:1rem}.row{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}button{background:var(--panel);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:.5rem .75rem;font-size:.875rem;cursor:pointer}button.primary{background:#134e4a;border-color:var(--accent);color:var(--accent)}button.danger{background:rgba(248,113,113,.12);border-color:#f871718c;color:var(--danger)}button.danger:hover:not(:disabled){background:rgba(248,113,113,.2);border-color:var(--danger)}button.danger-strong{background:#7f1d1d;border-color:var(--danger);color:#fecaca}button.danger-strong:hover:not(:disabled){background:#991b1b}button:disabled{opacity:.5;cursor:not-allowed}.danger-icon{display:inline-flex;align-items:center;justify-content:center;width:1.1rem;height:1.1rem;margin-right:.35rem;font-weight:700;line-height:1}.muted{color:var(--muted);font-size:.8125rem}.error{color:var(--danger);font-size:.875rem}.balance{font-size:2rem;font-weight:700;letter-spacing:-.02em}.mnemonic-box{margin-top:.5rem;padding:.75rem;background:#0a0d12;border-radius:8px;border:1px solid var(--border);font-size:.875rem;line-height:1.5;word-break:break-word}input,textarea{width:100%;background:#0a0d12;border:1px solid var(--border);border-radius:8px;color:var(--text);padding:.5rem .65rem;font-size:.875rem}textarea.restore-input{min-height:5.5rem;resize:vertical;line-height:1.45}label{display:block;font-size:.75rem;color:var(--muted);margin-bottom:.25rem}.field{margin-bottom:.75rem}.invoice-qr{display:block;max-width:100%;margin:.75rem auto 0;border-radius:8px}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.75rem;word-break:break-all}.modal-backdrop{position:fixed;inset:0;z-index:100;display:flex;align-items:flex-start;justify-content:center;padding:1.5rem 1rem;background:rgba(0,0,0,.72)}.modal-card{width:100%;max-width:22rem;margin-top:2rem;background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:1rem;box-shadow:0 12px 40px #00000073}.status-pills{display:flex;flex-direction:column;gap:.35rem;margin-bottom:.75rem}.status-pill{display:inline-flex;align-items:center;gap:.5rem;font-size:.75rem;line-height:1.2;padding:.35rem .6rem;border-radius:999px;border:1px solid var(--border);background:rgba(255,255,255,.02);color:var(--text);word-break:break-word}.status-pill-dot{width:.55rem;height:.55rem;border-radius:50%;flex-shrink:0;background:currentColor;opacity:.85}.status-pill--running{color:#9aa4b2}.status-pill--running .status-pill-dot{background:#9aa4b2;animation:status-pill-pulse 1.2s ease-in-out infinite}.status-pill--ready{color:var(--accent);border-color:#5eead473;background:rgba(94,234,212,.08)}.status-pill--ready .status-pill-dot{background:var(--accent)}.status-pill--empty{color:#f2c365;border-color:#f2c36573;background:rgba(242,195,101,.08)}.status-pill--empty .status-pill-dot{background:#f2c365}.status-pill--error{color:var(--danger);border-color:#f8717173;background:rgba(248,113,113,.08)}.status-pill--error .status-pill-dot{background:var(--danger)}@keyframes status-pill-pulse{0%,to{opacity:.35;transform:scale(.85)}50%{opacity:1;transform:scale(1)}}.app-header{position:sticky;top:0;z-index:70;display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin:-1.25rem -1rem 1rem;padding:1rem;background:var(--bg)}.brand{cursor:pointer;border-radius:8px;padding:.15rem .35rem;margin:-.15rem -.35rem;user-select:none;outline:none}.brand:hover h1{color:var(--accent)}.brand:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.menu-wrap{position:relative}.menu-button{width:2.5rem;height:2.5rem;padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:1.25rem;line-height:1}.menu-overlay{position:fixed;inset:0;z-index:50;background:transparent}.menu-dropdown{position:absolute;top:calc(100% + .5rem);right:0;z-index:60;min-width:10rem;background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:.35rem;box-shadow:0 12px 40px #00000073;display:flex;flex-direction:column;gap:.15rem}.menu-dropdown button{background:transparent;border:1px solid transparent;text-align:left;padding:.5rem .75rem;border-radius:6px;color:var(--text);cursor:pointer}.menu-dropdown button:hover{background:#0a0d12;border-color:var(--border)}.menu-dropdown button.active{color:var(--accent);border-color:var(--accent);background:rgba(94,234,212,.08)}.back-link{background:transparent;border:none;color:var(--accent);padding:.25rem 0;margin-bottom:.5rem;font-size:.875rem;cursor:pointer}.back-link:hover{text-decoration:underline}.action-bar{position:fixed;left:0;right:0;bottom:0;z-index:40;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:.5rem;padding:.75rem 1rem calc(.75rem + env(safe-area-inset-bottom));background:var(--panel);border-top:1px solid var(--border);max-width:28rem;margin:0 auto}.action-pill{height:3rem;border-radius:999px;background:#134e4a;border:1px solid var(--accent);color:var(--accent);font-size:1rem;font-weight:600;cursor:pointer}.action-pill:hover{background:#155e58}.action-scan{width:3.25rem;height:3.25rem;border-radius:999px;background:var(--accent);border:1px solid var(--accent);color:#0c0f14;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}.action-scan:hover{filter:brightness(1.05)}body{padding-bottom:calc(4.5rem + env(safe-area-inset-bottom))}.home-main{min-height:calc(100vh - 10rem - env(safe-area-inset-bottom));display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.5rem;text-align:center}.balance-center{display:flex;flex-direction:column;align-items:center;gap:.25rem}.balance-big{font-size:3.5rem;font-weight:700;letter-spacing:-.03em;line-height:1}.balance-unit{color:var(--muted);font-size:1rem;letter-spacing:.02em}.home-lnaddr{text-align:center;max-width:100%;word-break:break-all}.scan-video-wrap{position:relative;width:100%;aspect-ratio:1 / 1;background:#000;border-radius:10px;overflow:hidden}.scan-video{width:100%;height:100%;object-fit:cover}.pill-group{display:flex;flex-wrap:wrap;gap:.4rem}.pill{padding:.4rem .85rem;border-radius:999px;border:1px solid var(--border);background:#0a0d12;color:var(--text);font-size:.8125rem;line-height:1.1;cursor:pointer;transition:border-color .12s ease,background .12s ease,color .12s ease}.pill:hover:not(:disabled){border-color:var(--accent)}.pill--selected{background:rgba(94,234,212,.12);border-color:var(--accent);color:var(--accent)}.pill--selected:hover:not(:disabled){background:rgba(94,234,212,.18)}.input-with-action{display:flex;gap:.5rem;align-items:flex-start}.input-with-action textarea,.input-with-action input{flex:1}.toast-stack{position:fixed;top:1rem;left:50%;transform:translate(-50%);z-index:200;display:flex;flex-direction:column;gap:.5rem;width:calc(100% - 2rem);max-width:26rem;pointer-events:none}.toast{pointer-events:auto;padding:.65rem .9rem;border-radius:10px;border:1px solid;font-size:.875rem;line-height:1.35;box-shadow:0 8px 24px #00000073;word-break:break-word;animation:toast-in .18s ease-out}.toast--success{background:rgba(34,197,94,.16);border-color:#22c55e8c;color:#86efac}.toast--error{background:rgba(248,113,113,.16);border-color:#f8717199;color:#fca5a5}@keyframes toast-in{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.tab-strip{display:flex;gap:0;background:#0a0d12;border:1px solid var(--border);border-radius:999px;padding:.25rem;margin-bottom:.9rem}.tab-strip__btn{flex:1;padding:.45rem .9rem;border:none;background:transparent;color:var(--text);font-size:.8125rem;font-weight:500;border-radius:999px;cursor:pointer;transition:background .12s ease,color .12s ease}.tab-strip__btn:hover:not(:disabled){color:var(--accent)}.tab-strip__btn--active{background:rgba(94,234,212,.12);color:var(--accent)}.step-indicator{display:flex;align-items:center;gap:.4rem;margin-bottom:.75rem}.step-dot{width:10px;height:10px;border-radius:50%;background:transparent;border:1px solid var(--border);transition:background .12s ease,border-color .12s ease}.step-dot.done{background:var(--accent);border-color:var(--accent);opacity:.5}.step-dot.active{background:var(--accent);border-color:var(--accent);box-shadow:0 0 0 3px #5eead433}.step-label{font-size:.75rem;color:var(--muted, #888);margin-left:.35rem}.wizard-share-url{display:block;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.7rem;background:#0a0d12;border:1px solid var(--border);border-radius:8px;padding:.5rem .6rem;word-break:break-all;margin:.5rem 0 .75rem}.wizard-btn-row{display:flex;flex-direction:column;gap:.5rem}.wizard-btn-row>button{width:100%}.print-batch-preview{display:flex;flex-direction:column;gap:.75rem;margin-bottom:1rem}.voucher-card-print{position:relative;border:1px solid var(--border);border-radius:12px;background:linear-gradient(to right,#1a3a5c 66.67%,#f7931a 66.67%);color:#e8ecf1;display:flex;align-items:stretch;overflow:hidden;min-height:140px}.voucher-card-print .voucher-num{position:absolute;top:6px;right:8px;font-size:.65rem;opacity:.55;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.voucher-card-print .vc-qr-zone{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px;gap:4px;min-width:0}.voucher-card-print .vc-qr-zone .qr-wrap{background:#fff;padding:4px;border-radius:4px;line-height:0}.voucher-card-print .vc-qr-zone .qr-wrap img{display:block;width:60px;height:60px}.voucher-card-print .vc-qr-zone:last-child .qr-wrap img{width:90px;height:90px}.voucher-card-print .qr-placeholder{width:60px;height:60px;background:#f4f4f4;border-radius:2px}.voucher-card-print .vc-qr-zone:last-child .qr-placeholder{width:90px;height:90px}.voucher-card-print .vc-qr-label{font-size:.65rem;text-transform:uppercase;letter-spacing:.06em;opacity:.65}.voucher-card-print .vc-center{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1rem .75rem;text-align:center;gap:4px;min-width:0}.voucher-card-print .vc-bolt{font-size:1.5rem}.voucher-card-print .vc-title{font-size:.9rem;font-weight:700;color:#f7931a;letter-spacing:.05em}.voucher-card-print .vc-qr-zone:last-child .vc-title{color:#fff}.voucher-card-print .vc-batch-name{font-size:.75rem;opacity:.75}.voucher-card-print .vc-divider{width:60%;height:1px;background:rgba(247,147,26,.25);margin:2px 0}.voucher-card-print .vc-expiry{font-size:.7rem;opacity:.7}.voucher-card-print .vc-cta{font-size:.75rem;font-weight:600;color:#f7931a;margin-top:2px}.voucher-card-print .vc-separator{width:1px;background:rgba(255,255,255,.18);margin:0;flex-shrink:0}@page{size:A4 portrait;margin:10mm}@media print{*{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}body,#root{background:#fff!important;color:#000!important;max-width:none!important;padding:0!important;margin:0!important}.no-print,.app-header,.toast-stack,.panel,.modal-backdrop{display:none!important}.print-batch-preview{display:block!important;padding:0;margin:0;gap:0}.voucher-card-print{width:100%;height:69.25mm;border-radius:0;border-top:none;border-bottom:1px dashed #555;border-left:1px dashed #555;border-right:1px dashed #555;background:linear-gradient(to right,#1a3a5c 66.67%,#f7931a 66.67%)!important;color:#e8e8f0!important;page-break-inside:avoid}.print-batch-preview>.voucher-card-print:first-child{border-top:1px dashed #555}.print-batch-preview>.voucher-card-print:nth-child(4n){page-break-after:always}.voucher-card-print .vc-qr-zone{padding:3mm;gap:1mm}.voucher-card-print .vc-qr-zone .qr-wrap{padding:3px;line-height:0}.voucher-card-print .vc-qr-zone:first-child .qr-wrap img{width:34mm!important;height:34mm!important}.voucher-card-print .vc-qr-zone:last-child .qr-wrap img{width:48mm!important;height:48mm!important}.voucher-card-print .vc-qr-label{font-size:6pt}.voucher-card-print .vc-center{padding:3mm 2mm;gap:1.5mm}.voucher-card-print .vc-bolt{font-size:18pt}.voucher-card-print .vc-title{font-size:11pt;color:#f7931a!important}.voucher-card-print .vc-qr-zone:last-child .vc-title{color:#fff!important}.voucher-card-print .vc-batch-name{font-size:8pt}.voucher-card-print .vc-divider{height:.3mm;margin:.5mm 0;background:rgba(247,147,26,.3)}.voucher-card-print .vc-expiry{font-size:7pt}.voucher-card-print .vc-cta{font-size:8pt;color:#f7931a!important;margin-top:1mm}.voucher-card-print .vc-separator{width:.3mm;background:rgba(255,255,255,.22)!important;margin:0}.voucher-card-print .voucher-num{color:#ffffff8c}}.kash-pwa-bar{position:fixed;left:.75rem;right:.75rem;bottom:max(.75rem,env(safe-area-inset-bottom,0px));z-index:1000;max-width:28rem;margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;padding:.75rem .875rem;background:linear-gradient(135deg,rgba(11,18,32,.97),rgba(26,32,48,.97));border:1px solid rgba(94,234,212,.35);border-radius:14px;box-shadow:0 18px 48px #00000073,0 0 0 1px #5eead40d;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);animation:kashPwaBarIn .28s ease-out both}@keyframes kashPwaBarIn{0%{transform:translateY(12px);opacity:0}to{transform:translateY(0);opacity:1}}.kash-pwa-bar__text{flex:1 1 auto;display:flex;flex-direction:column;gap:.125rem;font-size:.8125rem;line-height:1.3;color:var(--text);min-width:10rem}.kash-pwa-bar__text strong{font-weight:700;background:linear-gradient(90deg,#5eead4,#facc15 60%,#f7931a);-webkit-background-clip:text;background-clip:text;color:transparent}.kash-pwa-bar__text span{color:var(--muted)}.kash-pwa-bar__actions{display:flex;gap:.375rem;flex:0 0 auto}.kash-pwa-bar__btn{padding:.45rem .75rem;font-size:.8125rem;font-weight:600;border-radius:8px;border:1px solid var(--border);background:var(--panel);color:var(--text);cursor:pointer}.kash-pwa-bar__btn--primary{background:linear-gradient(135deg,#134e4a,#1e3a8a);border-color:#5eead48c;color:#ecfeff;box-shadow:0 0 0 1px #5eead426,0 6px 18px #5eead414}.kash-pwa-bar__btn--primary:hover:not(:disabled){background:linear-gradient(135deg,#0f766e,#1e40af)}.kash-pwa-bar__btn--ghost{background:transparent;color:var(--muted);border-color:transparent}.kash-pwa-bar--update{border-color:#facc1573}
