*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root{--bg:#fdfaf5;--surface:#f7f0e6;--surface-2:#ede5d4;--border:#ddd0bc;--text:#1e0e05;--text-2:#4a2c12;--muted:#7d5a38;--dim:#b8946a;--accent:#b8711a;--accent-h:#9e5f12;--accent-lt:#f3e4cc;--green:#3a7048;--error:#b03020;--shadow:0 2px 12px #1e0e0514;--shadow-lg:0 8px 32px #1e0e051f}html,body,#root{background:var(--bg);height:100dvh;color:var(--text);-webkit-text-size-adjust:100%;font-family:Inter,system-ui,sans-serif;font-size:16px;overflow:hidden}.connect-screen{background:var(--bg);justify-content:center;align-items:center;height:100dvh;padding:1.5rem;display:flex}.connect-card{background:var(--surface);border:1px solid var(--border);width:100%;max-width:420px;box-shadow:var(--shadow-lg);border-radius:24px;flex-direction:column;gap:1.1rem;padding:clamp(1.6rem,5vw,2.4rem);animation:.5s cubic-bezier(.34,1.4,.64,1) both cardIn;display:flex}@keyframes cardIn{0%{opacity:0;transform:translateY(20px)scale(.97)}to{opacity:1;transform:none}}.cup-wrap{flex-direction:column;align-items:center;gap:.5rem;display:flex}.cup-svg{width:72px;height:72px;overflow:visible}.cup-svg path{fill:none;stroke:var(--accent);stroke-linecap:round;stroke-linejoin:round}.steam{opacity:0;stroke:var(--accent);stroke-width:1.5px}.s1{animation:2s ease-in-out 1.4s infinite steamRise}.s2{animation:2s ease-in-out 1.7s infinite steamRise}.s3{animation:2s ease-in-out 2s infinite steamRise}@keyframes steamRise{0%{opacity:0;transform:translateY(0)}20%{opacity:.6}80%{opacity:.25}to{opacity:0;transform:translateY(-18px)}}.draw{stroke-dasharray:300;stroke-dashoffset:300px}.d1{animation:.9s cubic-bezier(.4,0,.2,1) .1s forwards draw}.d2{animation:.7s cubic-bezier(.4,0,.2,1) .7s forwards draw}.d3{animation:.5s cubic-bezier(.4,0,.2,1) 1.1s forwards draw}@keyframes draw{to{stroke-dashoffset:0}}.brand-name{color:var(--text);letter-spacing:-.01em;text-align:center;font-family:Playfair Display,Georgia,serif;font-size:clamp(1.3rem,5vw,1.6rem);font-weight:700}.brand-sub{color:var(--muted);letter-spacing:.1em;text-transform:uppercase;font-size:.72rem}.divider{align-items:center;gap:.75rem;margin:.1rem 0;display:flex}.divider span:first-child,.divider span:last-child{background:var(--border);flex:1;height:1px}.divider span:nth-child(2){background:var(--accent);border-radius:50%;width:5px;height:5px}.connect-hint{color:var(--text-2);text-align:center;font-size:.88rem;line-height:1.65}.connect-btn{background:var(--accent);color:#fff;cursor:pointer;touch-action:manipulation;letter-spacing:.01em;border:none;border-radius:12px;width:100%;min-height:50px;padding:.9rem;font-family:Inter,sans-serif;font-size:.95rem;font-weight:600;transition:background .18s,transform .12s,box-shadow .18s;box-shadow:0 4px 14px #b8711a47}.connect-btn:hover{background:var(--accent-h);box-shadow:0 6px 20px #b8711a61}.connect-btn:active{transform:scale(.98)}.connect-btn:disabled{background:var(--border);color:var(--dim);box-shadow:none;cursor:default}.connect-sub{color:var(--dim);text-align:center;font-size:.7rem}.connect-error{color:var(--error);text-align:center;font-size:.8rem;line-height:1.5}.spinner-wrap{color:var(--muted);flex-direction:column;align-items:center;gap:.9rem;padding:.5rem 0;font-size:.85rem;display:flex}.spinner{border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;width:36px;height:36px;animation:.75s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.chat-screen{background:var(--bg);flex-direction:column;display:flex;position:fixed;inset:0}.chat-header{padding:.8rem 1.2rem;padding-top:max(.8rem,env(safe-area-inset-top));border-bottom:1px solid var(--border);background:var(--surface);flex-shrink:0;align-items:center;gap:.8rem;display:flex;box-shadow:0 1px 4px #1e0e050f}.status-dot{background:var(--green);border-radius:50%;flex-shrink:0;width:9px;height:9px;animation:2.5s ease-out infinite pulse;box-shadow:0 0 #3a704866}@keyframes pulse{0%{box-shadow:0 0 #3a704866}70%{box-shadow:0 0 0 7px #3a704800}to{box-shadow:0 0 #3a704800}}.header-info{flex:1;min-width:0}.header-info strong{color:var(--text);font-family:Playfair Display,serif;font-size:.95rem;font-weight:600;display:block}.header-info span{color:var(--muted);margin-top:1px;font-size:.68rem;display:block}.balance-badge{background:var(--accent-lt);color:var(--accent);white-space:nowrap;border:1px solid #b8711a40;border-radius:20px;flex-shrink:0;padding:.3rem .75rem;font-size:.8rem;font-weight:600;transition:background .35s,transform .2s}.balance-badge.flash{background:#ffe0a0;transform:scale(1.06)}.messages{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;flex-direction:column;flex:1;gap:.85rem;padding:1.1rem 1rem;display:flex;overflow-y:auto}.messages::-webkit-scrollbar{width:4px}.messages::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px}.msg{word-break:break-word;border-radius:18px;max-width:min(80%,500px);padding:.75rem 1rem;font-size:clamp(.85rem,3.5vw,.9rem);line-height:1.65}.msg.hera{background:var(--surface);border:1px solid var(--border);color:var(--text);box-shadow:var(--shadow);border-bottom-left-radius:4px;align-self:flex-start;animation:.28s cubic-bezier(.34,1.3,.64,1) both slideL}.msg.hera p{margin:.25rem 0}.msg.hera p:first-child{margin-top:0}.msg.hera p:last-child{margin-bottom:0}.msg.hera strong{color:var(--text);font-weight:600}.msg.hera em{color:var(--text-2);font-style:italic}.msg.hera ul,.msg.hera ol{margin:.3rem 0 .3rem 1.2rem}.msg.hera li{margin:.15rem 0}.msg.hera h1,.msg.hera h2,.msg.hera h3{color:var(--text);margin:.4rem 0 .2rem;font-family:Playfair Display,serif;font-weight:700}.msg.hera hr{border:none;border-top:1px solid var(--border);margin:.5rem 0}.msg.hera code{background:var(--surface-2);border-radius:4px;padding:.1em .3em;font-family:monospace;font-size:.82em}.msg.user{background:var(--accent);color:#fff;border-bottom-right-radius:4px;align-self:flex-end;font-weight:500;animation:.22s cubic-bezier(.34,1.3,.64,1) both slideR}.msg.system{color:var(--dim);text-align:center;background:0 0;align-self:center;max-width:100%;padding:.1rem 0;font-size:.73rem;font-style:italic}@keyframes slideL{0%{opacity:0;transform:translate(-12px)}to{opacity:1;transform:none}}@keyframes slideR{0%{opacity:0;transform:translate(12px)}to{opacity:1;transform:none}}.msg.hera.typing{align-items:center;gap:5px;max-width:72px;padding:.75rem 1rem;display:flex}.msg.hera.typing span{background:var(--accent);border-radius:50%;width:7px;height:7px;animation:1.1s ease-in-out infinite bounce}.msg.hera.typing span:nth-child(2){animation-delay:.18s}.msg.hera.typing span:nth-child(3){animation-delay:.36s}@keyframes bounce{0%,60%,to{opacity:.4;transform:translateY(0)}30%{opacity:1;transform:translateY(-6px)}}.receipt-card{border:1.5px solid var(--accent);background:#fff;border-radius:18px 18px 18px 4px;align-self:flex-start;max-width:min(90%,480px);padding:1rem 1.1rem;animation:.32s cubic-bezier(.34,1.3,.64,1) both slideL;box-shadow:0 4px 16px #b8711a1f}.receipt-title{color:var(--accent);letter-spacing:.05em;text-transform:uppercase;margin-bottom:.5rem;font-family:Playfair Display,serif;font-size:.85rem;font-weight:700}.tx-id{color:var(--muted);word-break:break-all;margin-bottom:.6rem;font-family:monospace;font-size:.7rem}.receipt-links{flex-wrap:wrap;gap:.4rem;display:flex}.hashscan-btn,.share-btn{touch-action:manipulation;border-radius:8px;align-items:center;gap:.3rem;min-height:38px;padding:0 .9rem;font-size:.78rem;font-weight:600;text-decoration:none;transition:background .15s;display:inline-flex}.hashscan-btn{background:var(--accent-lt);color:var(--accent);border:1px solid #b8711a4d}.hashscan-btn:hover{background:#e8d0a8}.share-btn{background:var(--text);border:1px solid var(--text);color:#fff}.share-btn:hover{background:var(--text-2)}.chips{border-top:1px solid var(--border);background:var(--surface);scrollbar-width:none;flex-wrap:nowrap;flex-shrink:0;gap:.4rem;padding:.55rem 1rem;display:flex;overflow-x:auto}.chips::-webkit-scrollbar{display:none}.chip{border:1px solid var(--border);min-height:40px;color:var(--text-2);cursor:pointer;white-space:nowrap;touch-action:manipulation;background:#fff;border-radius:20px;flex-shrink:0;align-items:center;padding:0 .85rem;font-size:.78rem;font-weight:500;transition:background .12s,border-color .12s,color .12s;display:flex}.chip:hover,.chip:active{background:var(--accent-lt);border-color:var(--accent);color:var(--accent)}.input-row{padding:.75rem 1rem;padding-bottom:max(.75rem,env(safe-area-inset-bottom));border-top:1px solid var(--border);background:var(--surface);flex-shrink:0;gap:.6rem;display:flex}.input-row input{border:1.5px solid var(--border);color:var(--text);background:#fff;border-radius:24px;outline:none;flex:1;padding:.72rem 1.1rem;font-family:Inter,sans-serif;font-size:1rem;transition:border-color .18s,box-shadow .18s}.input-row input::placeholder{color:var(--dim)}.input-row input:focus{border-color:var(--accent);box-shadow:0 0 0 3px #b8711a1a}.input-row button{background:var(--accent);color:#fff;cursor:pointer;touch-action:manipulation;border:none;border-radius:24px;min-width:64px;min-height:48px;padding:0 1.2rem;font-family:Inter,sans-serif;font-size:.9rem;font-weight:600;transition:background .18s,transform .12s}.input-row button:hover{background:var(--accent-h)}.input-row button:active{transform:scale(.97)}@media (width<=480px){html,body,#root{overflow:auto}.connect-screen{padding-top:max(2rem,env(safe-area-inset-top));align-items:flex-start}.header-info span{display:none}}@media (height<=500px){.chips{display:none}}.chat-bg{pointer-events:none;z-index:0;position:absolute;inset:0;overflow:hidden}.messages{z-index:1;position:relative}.bubble{opacity:0;background:radial-gradient(circle at 35% 35%,#b8711a2e,#b8711a0a);border:1px solid #b8711a1a;border-radius:50%;animation:linear infinite bubbleRise;position:absolute;bottom:-20px}.bubble:first-child{width:10px;height:10px;animation-duration:9s;animation-delay:0s;left:8%}.bubble:nth-child(2){width:6px;height:6px;animation-duration:7s;animation-delay:1.2s;left:16%}.bubble:nth-child(3){width:14px;height:14px;animation-duration:11s;animation-delay:2.5s;left:24%}.bubble:nth-child(4){width:8px;height:8px;animation-duration:8s;animation-delay:.7s;left:33%}.bubble:nth-child(5){width:5px;height:5px;animation-duration:6s;animation-delay:3.1s;left:41%}.bubble:nth-child(6){width:12px;height:12px;animation-duration:10s;animation-delay:1.8s;left:50%}.bubble:nth-child(7){width:7px;height:7px;animation-duration:8.5s;animation-delay:4s;left:57%}.bubble:nth-child(8){width:9px;height:9px;animation-duration:7.5s;animation-delay:.4s;left:65%}.bubble:nth-child(9){width:15px;height:15px;animation-duration:12s;animation-delay:2s;left:72%}.bubble:nth-child(10){width:6px;height:6px;animation-duration:9s;animation-delay:3.5s;left:80%}.bubble:nth-child(11){width:11px;height:11px;animation-duration:8s;animation-delay:1s;left:88%}.bubble:nth-child(12){width:8px;height:8px;animation-duration:10s;animation-delay:5.5s;left:12%}.bubble:nth-child(13){width:5px;height:5px;animation-duration:7s;animation-delay:4.8s;left:28%}.bubble:nth-child(14){width:13px;height:13px;animation-duration:11s;animation-delay:6.2s;left:45%}.bubble:nth-child(15){width:7px;height:7px;animation-duration:9.5s;animation-delay:2.9s;left:60%}.bubble:nth-child(16){width:9px;height:9px;animation-duration:8s;animation-delay:.2s;left:75%}.bubble:nth-child(17){width:6px;height:6px;animation-duration:7s;animation-delay:7s;left:4%}.bubble:nth-child(18){width:10px;height:10px;animation-duration:9s;animation-delay:3.3s;left:92%}.bubble:nth-child(19){width:4px;height:4px;animation-duration:6.5s;animation-delay:5s;left:37%}.bubble:nth-child(20){width:8px;height:8px;animation-duration:10s;animation-delay:1.5s;left:55%}@keyframes bubbleRise{0%{opacity:0;transform:translateY(0)scale(.6)}15%{opacity:.55}75%{opacity:.2}to{opacity:0;transform:translateY(-520px)scale(1.1)}}.latte-glow{pointer-events:none;z-index:0;background:radial-gradient(circle,#b8711a12 0%,#0000 68%);border-radius:50%;width:480px;height:480px;animation:18s ease-in-out infinite alternate latteFloat;position:absolute;top:10%;left:50%;transform:translate(-50%,-10%)}@keyframes latteFloat{0%{opacity:.7;transform:translate(-50%)scale(1)}33%{opacity:1;transform:translate(-40%,5%)scale(1.08)}66%{opacity:.8;transform:translate(-60%,-5%)scale(.95)}to{opacity:.9;transform:translate(-50%,3%)scale(1.05)}}.receipt-card{border:1.5px solid var(--accent);background:linear-gradient(#fffef8 0%,#fdf9f0 100%);border-bottom-style:dashed;border-bottom-width:2px;position:relative}.receipt-card:before{content:"";background:repeating-linear-gradient(90deg, var(--accent) 0px, var(--accent) 6px, transparent 6px, transparent 10px);border-radius:4px 4px 0 0;height:4px;position:absolute;top:-1px;left:-1px;right:-1px}.receipt-card .receipt-title:before{content:"✦ ";font-size:.7rem}.receipt-card .receipt-title:after{content:" ✦";font-size:.7rem}.receipt-body{color:var(--text-2);margin:.4rem 0;font-size:.85rem;line-height:1.7}.receipt-body p{margin:.2rem 0}.receipt-body strong{color:var(--text);font-weight:600}.receipt-body hr{display:none}.receipt-divider{border:none;border-top:1.5px dashed var(--border);margin:.65rem 0}.download-hint{background:var(--accent-lt);border:1px solid #b8711a33;border-radius:14px;flex-direction:column;align-items:center;gap:.5rem;width:100%;margin-top:.5rem;padding:1rem;animation:.4s cubic-bezier(.34,1.4,.64,1) both cardIn;display:flex}.download-hint-text{color:var(--text-2);text-align:center;font-size:.78rem;line-height:1.5}.download-btn{background:var(--accent);color:#fff;text-align:center;touch-action:manipulation;border-radius:10px;justify-content:center;align-items:center;width:100%;padding:.65rem 1.1rem;font-size:.85rem;font-weight:600;text-decoration:none;transition:background .18s;display:inline-flex}.download-btn:hover{background:var(--accent-h)}.download-device{color:var(--dim);font-size:.68rem;font-style:italic}
