.apple-navbar{position:fixed;bottom:0;left:0;width:100vw;background:#ffffffe0;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);border-top:1px solid rgba(0,0,0,.08);z-index:1000;padding-bottom:env(safe-area-inset-bottom,0px);box-shadow:0 -4px 16px #0000000a;transition:all .3s cubic-bezier(.4,0,.2,1)}@media (min-width: 768px){.apple-navbar{bottom:18px;left:50%;transform:translate(-50%);width:calc(100% - 48px);max-width:560px;border-radius:32px;border:1px solid rgba(0,0,0,.1);box-shadow:0 20px 50px -10px #00000026}}.navbar-items{max-width:560px;margin:0 auto;display:flex;align-items:center;justify-content:space-around;height:64px;padding:0 8px}.nav-tab-btn{flex:1;height:58px;background:none;border:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#8e8e93;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);padding:4px 0;position:relative}.nav-tab-btn.active{color:#5e5ce6}.nav-tab-icon{display:flex;align-items:center;justify-content:center;position:relative;transition:transform .2s}.nav-tab-btn.active .nav-tab-icon{transform:scale(1.12)}.nav-tab-label{font-size:11px;font-weight:600;letter-spacing:.01em}.nav-badge{position:absolute;top:-4px;right:-8px;background:#ef4444;color:#fff;font-size:10px;font-weight:700;min-width:16px;height:16px;border-radius:9999px;display:flex;align-items:center;justify-content:center;padding:0 4px}.authview-container{min-height:100vh;width:100vw;background:#edebe4;display:flex;align-items:center;justify-content:center;padding:16px}.authview-card{background:#fff;border-radius:32px;padding:36px 30px;width:100%;max-width:420px;box-shadow:0 25px 50px -12px #00000026;display:flex;flex-direction:column;align-items:center;text-align:center;gap:22px;border:1px solid rgba(0,0,0,.05)}.authview-logo-sq{width:64px;height:64px;background:#1c1c1e;border-radius:16px;display:flex;align-items:center;justify-content:center;position:relative;box-shadow:0 10px 20px -5px #1c1c1e66}.authview-b{color:#fff;font-size:34px;font-weight:800;letter-spacing:-.04em;font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,sans-serif}.authview-dot{position:absolute;top:11px;right:13px;width:6px;height:6px;border-radius:50%;background:#5e5ce6}.authview-header h1{font-size:28px;font-weight:800;color:#111827;margin:0 0 6px}.authview-header p{font-size:14px;color:#6b7280;margin:0;line-height:1.4;max-width:320px}.authview-alert{width:100%;padding:10px 14px;border-radius:14px;font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:space-between;text-align:left}.authview-alert.error{background:#fef2f2;color:#dc2626;border:1px solid #fecaca}.authview-alert.success{background:#ecfdf5;color:#059669;border:1px solid #a7f3d0}.authview-alert button{background:none;border:none;color:inherit;font-size:18px;font-weight:700;cursor:pointer}.authview-form{width:100%;display:flex;flex-direction:column;gap:14px;text-align:left}.authview-field{display:flex;flex-direction:column;gap:6px}.authview-field label{font-size:13px;font-weight:700;color:#374151}.authview-field input{min-height:50px;border:1px solid #e5e7eb;border-radius:14px;padding:0 16px;font-size:16px;background:#f9fafb;color:#111827;transition:all .2s}.authview-field input:focus{outline:none;border-color:#5e5ce6;background:#fff;box-shadow:0 0 0 3px #5e5ce626}.authview-btn-group{display:flex;gap:10px;margin-top:8px}.btn-auth-cancel,.btn-auth-submit{flex:1;min-height:52px;border-radius:14px;border:none;font-size:16px;font-weight:700;cursor:pointer;transition:all .2s}.btn-auth-cancel{background:#f3f4f6;color:#4b5563}.btn-auth-cancel:hover{background:#e5e7eb}.btn-auth-submit{background:#1c1c1e;color:#fff;box-shadow:0 8px 18px -4px #1c1c1e59}.btn-auth-submit:hover:not(:disabled){background:#3a3a3c}.btn-auth-submit:disabled{opacity:.5;cursor:not-allowed}.authview-footer-switch{display:flex;align-items:center;gap:8px;font-size:14px;color:#6b7280;padding-top:14px;border-top:1px solid #f3f4f6;width:100%;justify-content:center}.btn-switch-mode{background:none;border:none;color:#5e5ce6;font-size:14px;font-weight:700;cursor:pointer}.btn-switch-mode:hover{text-decoration:underline}.auth-modal-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#00000073;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);z-index:9999;display:flex;align-items:center;justify-content:center;padding:16px}.auth-modal-card{background:#fff;border-radius:28px;padding:32px 28px;width:100%;max-width:420px;box-shadow:0 25px 50px -12px #00000040;display:flex;flex-direction:column;align-items:center;text-align:center;gap:20px;position:relative;border:1px solid rgba(0,0,0,.05)}.auth-logo-squircle{width:56px;height:56px;background:#1c1c1e;border-radius:14px;display:flex;align-items:center;justify-content:center;position:relative;box-shadow:0 8px 16px -4px #1c1c1e66}.auth-logo-text{color:#fff;font-size:28px;font-weight:800;letter-spacing:-.03em;font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,sans-serif}.auth-logo-dot{position:absolute;top:10px;right:12px;width:6px;height:6px;border-radius:50%;background:#5e5ce6}.auth-header h2{font-size:24px;font-weight:700;color:#111827;margin:0 0 6px}.auth-header p{font-size:14px;color:#6b7280;margin:0;line-height:1.4}.auth-guest-notice{background:#f3f4f6;border-radius:12px;padding:10px 14px;font-size:13px;color:#4b5563;display:flex;gap:8px;text-align:left;line-height:1.4}.auth-alert{width:100%;padding:10px 14px;border-radius:12px;font-size:13px;font-weight:500;text-align:left}.auth-alert.error{background:#fef2f2;color:#dc2626;border:1px solid #fecaca}.auth-alert.success{background:#ecfdf5;color:#059669;border:1px solid #a7f3d0}.auth-form{width:100%;display:flex;flex-direction:column;gap:14px}.auth-field{display:flex;flex-direction:column;text-align:left;gap:6px}.auth-field label{font-size:13px;font-weight:600;color:#374151}.auth-field input{min-height:48px;border:1px solid #e5e7eb;border-radius:14px;padding:0 16px;font-size:16px;background:#f9fafb;color:#111827;transition:all .2s}.auth-field input:focus{outline:none;border-color:#5e5ce6;background:#fff;box-shadow:0 0 0 3px #5e5ce626}.auth-btn-primary{width:100%;min-height:52px;border-radius:14px;border:none;background:#1c1c1e;color:#fff;font-size:16px;font-weight:700;cursor:pointer;transition:all .2s;margin-top:6px}.auth-btn-primary:hover:not(:disabled){background:#3a3a3c}.auth-btn-primary:disabled{opacity:.5;cursor:not-allowed}.auth-switch{display:flex;align-items:center;justify-content:center;gap:6px;font-size:14px;color:#6b7280}.auth-btn-switch{background:none;border:none;color:#5e5ce6;font-size:14px;font-weight:600;cursor:pointer}.auth-btn-switch:hover{text-decoration:underline}.auth-footer-actions{width:100%;padding-top:14px;border-top:1px solid #f3f4f6}.auth-btn-guest{background:#f3f4f6;color:#4b5563;border:none;border-radius:9999px;padding:10px 20px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s}.auth-btn-guest:hover{background:#e5e7eb;color:#111827}.tip-modal-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#00000073;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);z-index:9999;display:flex;align-items:center;justify-content:center;padding:16px}.tip-modal-card{background:#fff;border-radius:28px;padding:24px;width:100%;max-width:420px;box-shadow:0 25px 50px -12px #00000040;display:flex;flex-direction:column;gap:16px;border:1px solid rgba(0,0,0,.05);max-height:90vh;overflow-y:auto}.tip-top-bar{display:flex;align-items:center;justify-content:space-between;width:100%}.btn-modal-back,.btn-modal-close{background:#f3f4f6;border:none;border-radius:9999px;padding:6px 14px;font-size:13px;font-weight:700;color:#4b5563;cursor:pointer}.btn-modal-close{width:32px;height:32px;padding:0;display:flex;align-items:center;justify-content:center;font-size:18px}.tip-heart-badge{font-weight:800;font-size:14px;color:#e11d48}.tip-header-desc{text-align:center;display:flex;flex-direction:column;gap:4px}.tip-header-desc h3{font-size:22px;font-weight:800;color:#111827;margin:0}.tip-header-desc p{font-size:13px;color:#6b7280;margin:0;line-height:1.4}.payment-setup-box{background:#f9fafb;border:1px solid #e5e7eb;border-radius:18px;padding:14px;display:flex;flex-direction:column;gap:10px}.pay-setup-title{font-size:12px;font-weight:700;color:#4b5563;text-transform:uppercase;letter-spacing:.04em;text-align:left}.pay-channel-row{display:flex;align-items:center;justify-content:space-between;background:#fff;padding:10px 12px;border-radius:12px;border:1px solid #f3f4f6;gap:10px}.pay-info{display:flex;flex-direction:column;text-align:left;gap:2px}.pay-info b{font-size:13px;color:#111827}.pay-info span{font-size:12px;color:#6b7280;font-family:monospace}.btn-copy-pay{background:#f3f4f6;border:none;border-radius:8px;padding:6px 12px;font-size:12px;font-weight:700;color:#374151;cursor:pointer;white-space:nowrap}.btn-copy-pay:hover{background:#e5e7eb}.tip-form{width:100%;display:flex;flex-direction:column;gap:12px;text-align:left}.tip-label{font-size:12px;font-weight:700;color:#4b5563;text-transform:uppercase;letter-spacing:.04em}.tip-tiers-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.tip-tier-btn{min-height:44px;border:1px solid #e5e7eb;background:#f9fafb;border-radius:14px;font-size:15px;font-weight:700;color:#374151;cursor:pointer;transition:all .2s}.tip-tier-btn:hover{border-color:#e11d48;color:#e11d48}.tip-tier-btn.active{background:#e11d48;color:#fff;border-color:#e11d48;box-shadow:0 4px 10px #e11d4840}.tip-custom-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;font-weight:600;color:#4b5563}.tip-custom-row input{min-height:40px;border:1px solid #d1d5db;border-radius:10px;padding:0 12px;font-size:14px;width:140px;text-align:center}.tip-actions{display:flex;gap:10px;margin-top:4px}.btn-tip-cancel,.btn-tip-confirm{flex:1;min-height:46px;border-radius:14px;border:none;font-size:14px;font-weight:700;cursor:pointer}.btn-tip-cancel{background:#f3f4f6;color:#6b7280}.btn-tip-confirm{background:#e11d48;color:#fff;box-shadow:0 4px 12px #e11d4859}.tip-thank-you-box{background:#ecfdf5;border:1px solid #a7f3d0;color:#059669;padding:24px;border-radius:20px;width:100%;display:flex;flex-direction:column;gap:8px}.tip-thank-you-box h4{font-size:20px;margin:0;font-weight:800}.tip-thank-you-box p{margin:0;font-size:14px}.tutorial-modal-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#0000008c;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);z-index:10000;display:flex;align-items:center;justify-content:center;padding:16px}.tutorial-modal-card{background:#fff;border-radius:30px;padding:28px 24px;width:100%;max-width:420px;box-shadow:0 25px 50px -12px #00000059;display:flex;flex-direction:column;align-items:center;text-align:center;gap:20px;border:1px solid rgba(0,0,0,.05);position:relative}.tutorial-top-bar{display:flex;align-items:center;justify-content:space-between;width:100%}.btn-tut-back,.btn-tut-close{background:#f3f4f6;border:none;border-radius:9999px;padding:6px 14px;font-size:13px;font-weight:700;color:#4b5563;cursor:pointer}.btn-tut-close{width:32px;height:32px;padding:0;display:flex;align-items:center;justify-content:center;font-size:18px}.tut-step-ind{font-size:12px;font-weight:700;color:#9ca3af;text-transform:uppercase;letter-spacing:.05em}.tutorial-slide-content{display:flex;flex-direction:column;align-items:center;gap:8px;padding:10px 0}.tut-emoji{font-size:52px;margin-bottom:4px}.tutorial-slide-content h3{font-size:24px;font-weight:800;color:#111827;margin:0}.tut-sub{font-size:15px;font-weight:700;color:#5e5ce6;margin:0}.tut-desc{font-size:14px;color:#6b7280;margin:6px 0 0;line-height:1.5;max-width:320px}.tutorial-dots-row{display:flex;align-items:center;gap:8px}.tut-dot{width:8px;height:8px;border-radius:50%;background:#e5e7eb;cursor:pointer;transition:all .2s}.tut-dot.active{width:24px;border-radius:9999px;background:#5e5ce6}.tutorial-bottom-actions{width:100%}.btn-tut-next,.btn-tut-finish{width:100%;min-height:52px;border-radius:16px;border:none;font-size:16px;font-weight:700;cursor:pointer;transition:all .2s}.btn-tut-next{background:#1c1c1e;color:#fff}.btn-tut-next:hover{background:#3a3a3c}.btn-tut-finish{background:#059669;color:#fff;box-shadow:0 4px 14px #05966959}.btn-tut-finish:hover{background:#047857}.bot-tab{display:flex;flex-direction:column;height:calc(100dvh - 190px);min-height:420px;background:#fff;border-radius:28px;border:1px solid rgba(0,0,0,.05);box-shadow:0 10px 30px -14px #0000001f;overflow:hidden}@media (min-width: 768px){.bot-tab{height:calc(100vh - 250px)}}.bot-topbar{display:flex;align-items:center;gap:12px;padding:14px 16px 10px;border-bottom:1px solid #f1f5f9}.bot-avatar{width:40px;height:40px;border-radius:13px;background:linear-gradient(145deg,#1c1c1e,#3a3a3c);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:19px;position:relative;flex-shrink:0;box-shadow:0 4px 12px -3px #00000059}.bot-avatar i{position:absolute;top:7px;right:8px;width:6px;height:6px;border-radius:50%;background:#5e5ce6}.bot-avatar.big{width:64px;height:64px;border-radius:20px;font-size:30px;margin:0 auto 12px}.bot-avatar.big i{width:9px;height:9px;top:11px;right:12px}.bot-title{flex:1;min-width:0}.bot-title h2{margin:0;font-size:18px;font-weight:800;color:#111827;letter-spacing:-.02em;line-height:1.1}.bot-status{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:#6b7280;margin-top:2px}.bot-status i{width:7px;height:7px;border-radius:50%;background:#9ca3af}.bot-status.on i{background:#059669;box-shadow:0 0 0 3px #0596692e}.bot-status.chk i{background:#f59e0b;animation:blink 1s infinite}.bot-status.off i{background:#9ca3af}@keyframes blink{50%{opacity:.3}}.bot-top-actions{display:flex;gap:6px}.bot-icon-btn{width:36px;height:36px;border-radius:12px;border:1px solid #e5e7eb;background:#f9fafb;color:#4b5563;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .15s}.bot-icon-btn:hover{background:#f3f4f6}.bot-icon-btn.active{background:#eef2ff;color:#4f46e5;border-color:#c7d2fe}.bot-balance-strip{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:8px;padding:10px 16px;background:#fafafa;border-bottom:1px solid #f1f5f9}.bot-balance-strip>div{display:flex;flex-direction:column;min-width:0}.bbs-label{font-size:11px;font-weight:600;color:#9ca3af;text-transform:uppercase;letter-spacing:.04em}.bbs-val{font-size:15px;font-weight:800;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bbs-val.exp{color:#b91c1c;font-size:14px}.bbs-val.neg{color:#dc2626}.bot-messages{flex:1;overflow-y:auto;padding:16px 14px 8px;display:flex;flex-direction:column;gap:12px;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;background:radial-gradient(1200px 300px at 50% -100px,rgba(94,92,230,.05),transparent)}.bot-welcome{text-align:center;padding:28px 18px 10px;color:#4b5563}.bot-welcome h3{margin:0 0 6px;font-size:20px;font-weight:800;color:#111827}.bot-welcome p{margin:0 auto;font-size:14px;line-height:1.55;max-width:380px}.bmsg{display:flex;gap:8px;align-items:flex-end;max-width:100%;animation:pop .18s ease-out}@keyframes pop{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}.bmsg.me{justify-content:flex-end}.bmsg.sys{justify-content:center}.bmsg-av{width:26px;height:26px;border-radius:9px;background:#1c1c1e;color:#fff;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-bottom:2px}.bmsg-body{max-width:84%;display:flex;flex-direction:column;gap:6px;min-width:0}.bmsg.me .bmsg-body{align-items:flex-end}.bmsg-bubble{padding:10px 14px;font-size:15px;line-height:1.5;color:#111827;background:#f2f2f7;border-radius:20px 20px 20px 6px;word-break:break-word;overflow-wrap:anywhere}.bmsg.me .bmsg-bubble{background:#1c1c1e;color:#fff;border-bottom-left-radius:20px;border-bottom-right-radius:6px}.bmsg.sys .bmsg-bubble{background:transparent;color:#6b7280;font-size:12px;padding:2px 10px;text-align:center}.bmsg.err .bmsg-bubble{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}.bmsg-bubble.rtl{font-family:Noto Nastaliq Urdu,Jameel Noori Nastaleeq,-apple-system,sans-serif;line-height:1.9}.bmsg-bubble p{margin:0}.bmsg-bubble p+p{margin-top:6px}.bmsg-bubble ul{margin:6px 0 0;padding-left:18px}.bmsg-bubble li{margin:3px 0}.bmsg-bubble .bb-gap{height:6px}.bmsg-bubble .bb-h{font-weight:800;margin:6px 0 2px}.bmsg-bubble b{font-weight:800}.bmsg.me .bmsg-bubble b{color:#fff}.bmsg-bubble code{background:#0000000f;padding:1px 5px;border-radius:6px;font-size:13px}.bb-cursor{display:inline-block;width:7px;height:15px;background:#5e5ce6;border-radius:2px;margin-left:3px;vertical-align:-2px;animation:blink .9s infinite}.bmsg-bubble.typing{display:inline-flex;gap:5px;padding:14px 16px}.bmsg-bubble.typing i{width:7px;height:7px;border-radius:50%;background:#9ca3af;animation:bounce 1.2s infinite}.bmsg-bubble.typing i:nth-child(2){animation-delay:.15s}.bmsg-bubble.typing i:nth-child(3){animation-delay:.3s}@keyframes bounce{0%,60%,to{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}.bmsg-actions{display:flex;flex-wrap:wrap;gap:6px}.act-chip{font-size:12px;font-weight:700;padding:5px 10px;border-radius:9999px;background:#ecfdf5;color:#065f46;border:1px solid #a7f3d0}.act-chip.expense{background:#fef2f2;color:#991b1b;border-color:#fecaca}.act-chip.income{background:#ecfdf5;color:#065f46;border-color:#a7f3d0}.act-chip.info{background:#eef2ff;color:#3730a3;border-color:#c7d2fe}.act-chip.warn{background:#fffbeb;color:#92400e;border-color:#fde68a}.bmsg-foot{font-size:12px;color:#6b7280;padding:0 4px}.bot-chips{display:flex;gap:8px;overflow-x:auto;padding:8px 14px 4px;scrollbar-width:none;flex-shrink:0}.bot-chips::-webkit-scrollbar{display:none}.chip{flex-shrink:0;border:1px solid #e5e7eb;background:#fff;color:#374151;border-radius:9999px;padding:7px 12px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;transition:all .15s}.chip:hover:not(:disabled){background:#f3f4f6}.chip:disabled{opacity:.5;cursor:default}.bot-live{margin:4px 14px 0;padding:8px 12px;border-radius:14px;background:#fff1f2;color:#9f1239;font-size:13px;font-weight:600;display:flex;align-items:center;gap:8px}.bot-live .dot{width:8px;height:8px;border-radius:50%;background:#e11d48;animation:blink 1s infinite;flex-shrink:0}.bot-voice-err{margin:4px 14px 0;padding:8px 12px;border-radius:14px;background:#fffbeb;color:#92400e;font-size:13px;display:flex;gap:8px;align-items:center;border:1px solid #fde68a}.bot-voice-err button{margin-left:auto;border:none;background:none;font-size:18px;color:#92400e;cursor:pointer}.bot-composer{display:flex;align-items:flex-end;gap:8px;padding:10px 12px 12px;border-top:1px solid #f1f5f9;background:#fff;flex-shrink:0}.bot-composer textarea{flex:1;resize:none;border:1px solid #e5e7eb;background:#f9fafb;border-radius:20px;padding:11px 14px;font-size:16px;line-height:1.35;max-height:120px;min-height:44px;outline:none;color:#111827;font-family:inherit}.bot-composer textarea:focus{border-color:#a5b4fc;background:#fff;box-shadow:0 0 0 3px #5e5ce61f}.mic-btn,.send-btn{width:44px;height:44px;border-radius:50%;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;flex-shrink:0;transition:all .15s}.mic-btn{background:#f2f2f7;color:#1c1c1e}.mic-btn:hover{background:#e5e5ea}.mic-btn.live{background:#e11d48;color:#fff;box-shadow:0 0 0 6px #e11d482e;animation:pulse 1.4s infinite}@keyframes pulse{0%{box-shadow:0 0 #e11d4859}70%{box-shadow:0 0 0 12px #e11d4800}to{box-shadow:0 0 #e11d4800}}.send-btn{background:#1c1c1e;color:#fff}.send-btn:disabled{background:#d1d5db;cursor:default}.send-btn.stop{background:#dc2626}.wallet-tab-container{display:flex;flex-direction:column;gap:20px}.apple-balance-card{background:#fff;border-radius:28px;padding:24px 24px 20px;box-shadow:0 10px 30px -10px #00000014;border:1px solid rgba(0,0,0,.05);display:flex;flex-direction:column;gap:14px}.balance-top-row{display:flex;align-items:center;justify-content:space-between}.balance-tag{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#6b7280}.status-pill{font-size:12px;font-weight:700;padding:4px 12px;border-radius:9999px}.status-pill.pos{background:#ecfdf5;color:#059669}.status-pill.neg{background:#fef2f2;color:#dc2626}.balance-main-num{font-size:40px;font-weight:800;color:#111827;letter-spacing:-.04em;line-height:1}.opening-balance-sub{font-size:13px;color:#4b5563;margin-top:-6px}.balance-mode-selector-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:14px;border-top:1px solid #f3f4f6}.mode-select-box{display:flex;flex-direction:column;gap:8px;background:#f9fafb;padding:14px 12px;border-radius:18px;border:2px solid transparent;cursor:pointer;text-align:left;transition:all .2s cubic-bezier(.4,0,.2,1)}.mode-select-box:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000000f}.mode-select-box.active-mode-exp{background:#fff1f2;border-color:#e11d48;box-shadow:0 6px 16px -4px #e11d4840}.mode-select-box.active-mode-inc{background:#ecfdf5;border-color:#059669;box-shadow:0 6px 16px -4px #05966940}.mode-top-ind{display:flex;align-items:center;justify-content:space-between;width:100%}.mode-check{font-size:11px;font-weight:800;padding:3px 8px;border-radius:9999px;text-transform:uppercase}.active-mode-exp .mode-check{background:#e11d48;color:#fff}.active-mode-inc .mode-check{background:#059669;color:#fff}.sum-icon{width:32px;height:32px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:18px}.income-box .sum-icon{background:#d1fae5;color:#059669}.expense-box .sum-icon{background:#e0e7ff;color:#5e5ce6}.sum-info{display:flex;flex-direction:column}.sum-title{font-size:13px;color:#6b7280;font-weight:700}.sum-num{font-size:17px;font-weight:800;color:#111827}.mode-guide-hint{text-align:center;font-size:12px;color:#4b5563;background:#f3f4f6;padding:6px 12px;border-radius:9999px;width:fit-content;margin:0 auto}.speech-hero-card{background:#fff;border-radius:28px;padding:24px;box-shadow:0 10px 30px -10px #00000014;border:1px solid rgba(0,0,0,.05);display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px}.apple-speech-btn{width:100%;min-height:64px;border-radius:20px;border:none;background:#1c1c1e;color:#fff;font-size:18px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:12px;cursor:pointer;box-shadow:0 12px 24px -6px #1c1c1e66;transition:all .25s;padding:14px 24px}.apple-speech-btn.income-mode-btn{background:#059669;box-shadow:0 12px 24px -6px #05966966}.apple-speech-btn:hover{opacity:.95;transform:translateY(-1px)}.apple-speech-btn.listening{background:#ef4444;box-shadow:0 12px 24px -6px #ef444473;animation:apple-pulse 1.5s infinite}@keyframes apple-pulse{0%{box-shadow:0 0 #ef444480}70%{box-shadow:0 0 0 14px #ef444400}to{box-shadow:0 0 #ef444400}}.speech-state-display{width:100%;min-height:40px;display:flex;align-items:center;justify-content:center}.hero-hint{font-size:14px;color:#6b7280;margin:0;line-height:1.5}.live-bubble{display:flex;align-items:center;gap:8px;background:#f3f4f6;padding:10px 16px;border-radius:9999px;width:100%;justify-content:center}.red-dot{width:10px;height:10px;border-radius:50%;background:#ef4444;display:inline-block;animation:apple-blink 1s infinite}@keyframes apple-blink{0%,to{opacity:1}50%{opacity:.3}}.live-text{font-size:15px;font-weight:600;color:#1f2937;margin:0}.typing-quick-box{width:100%;background:#f9fafb;border:1px solid #e5e7eb;border-radius:20px;padding:14px;display:flex;flex-direction:column;gap:12px}.typing-header{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:700;color:#4b5563}.typing-hint-mini{font-size:11px;color:#6b7280;background:#e5e7eb;padding:2px 8px;border-radius:9999px}.typing-input-row{display:flex;gap:8px;align-items:center}.typing-input-row input{flex-grow:1;min-height:44px;border:1px solid #d1d5db;border-radius:12px;padding:0 14px;font-size:15px;background:#fff;color:#111827}.typing-input-row input:focus{outline:none;border-color:#5e5ce6}.friend-select-mini{min-height:44px;border:1px solid #d1d5db;border-radius:12px;padding:0 8px;font-size:13px;background:#fff;color:#374151;max-width:120px}.btn-type-submit{min-height:44px;background:#1c1c1e;color:#fff;border:none;border-radius:12px;padding:0 16px;font-size:14px;font-weight:700;cursor:pointer;transition:background .2s}.btn-type-submit.income{background:#059669}.btn-type-submit:hover{opacity:.9}.error-pill{width:100%;background:#fef2f2;border:1px solid #fecaca;color:#b91c1c;padding:10px 14px;border-radius:12px;display:flex;align-items:center;justify-content:space-between;font-size:14px;text-align:left}.error-pill button{background:none;border:none;color:#b91c1c;font-size:20px;font-weight:700;cursor:pointer}.quick-examples{width:100%;display:flex;flex-direction:column;gap:8px;padding-top:14px;border-top:1px dashed #e5e7eb}.quick-examples span{font-size:12px;font-weight:600;color:#9ca3af;text-transform:uppercase;letter-spacing:.05em}.chips-row{display:flex;flex-wrap:wrap;gap:6px;justify-content:center}.example-chip{background:#f3f4f6;color:#4b5563;font-size:12px;font-weight:500;padding:5px 12px;border-radius:9999px;cursor:pointer;transition:all .2s}.example-chip:hover{background:#e5e7eb;color:#111827}.recent-preview-section{display:flex;flex-direction:column;gap:12px}.preview-header{display:flex;align-items:center;justify-content:space-between;padding:0 4px}.preview-title-group{display:flex;align-items:center;gap:10px}.preview-title-group h3{font-size:18px;font-weight:700;color:#111827;margin:0}.btn-hide-show{background:#f3f4f6;border:none;border-radius:9999px;padding:4px 10px;font-size:12px;font-weight:600;color:#4b5563;cursor:pointer}.btn-hide-show:hover{background:#e5e7eb}.view-all-link{background:none;border:none;color:#5e5ce6;font-size:14px;font-weight:600;cursor:pointer}.view-all-link:hover{text-decoration:underline}.empty-preview-card{background:#fff;border-radius:24px;padding:36px 24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px;box-shadow:0 4px 12px #0000000a}.empty-emoji{font-size:32px}.empty-preview-card h4{font-size:18px;font-weight:700;margin:0;color:#1f2937}.empty-preview-card p{font-size:14px;color:#6b7280;margin:0;max-width:280px}.recent-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.recent-item{background:#fff;border-radius:18px;padding:14px 16px;display:flex;align-items:center;gap:14px;box-shadow:0 2px 8px #0000000a;border:1px solid rgba(0,0,0,.04)}.tx-icon-pill{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:20px;flex-shrink:0}.tx-icon-pill.income{background:#d1fae5;color:#059669}.tx-icon-pill.expense{background:#e0e7ff;color:#5e5ce6}.tx-main-text{display:flex;flex-direction:column;flex-grow:1;min-width:0}.tx-note{font-size:16px;font-weight:600;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tx-meta{font-size:12px;color:#6b7280}.tx-amount-side{flex-shrink:0}.tx-amt{font-size:16px;font-weight:700}.tx-amt.income{color:#059669}.tx-amt.expense{color:#111827}@media (max-width: 480px){.typing-input-row{flex-direction:column;align-items:stretch}.friend-select-mini{max-width:100%}}.ledger-tab-container{display:flex;flex-direction:column;gap:16px}.ledger-top-bar{display:flex;align-items:center;justify-content:space-between;padding:0 4px}.ledger-top-bar h2{font-size:24px;font-weight:800;color:#111827;margin:0}.btn-add-entry-toggle{background:#1c1c1e;color:#fff;border:none;border-radius:9999px;padding:8px 16px;font-size:13px;font-weight:700;cursor:pointer;transition:all .2s}.btn-add-entry-toggle:hover{background:#3a3a3c}.manual-entry-card{background:#fff;border-radius:24px;padding:20px;box-shadow:0 10px 25px -10px #00000014;border:1px solid rgba(0,0,0,.06);display:flex;flex-direction:column;gap:14px;animation:fadeIn .25s ease-out}@keyframes fadeIn{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.manual-entry-card h3{font-size:18px;font-weight:700;margin:0;color:#111827}.ledger-form{display:flex;flex-direction:column;gap:12px}.type-toggle-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#f3f4f6;padding:4px;border-radius:14px}.type-btn{min-height:44px;border:none;border-radius:10px;font-size:14px;font-weight:600;cursor:pointer;background:transparent;color:#6b7280;transition:all .2s}.type-btn.active-exp{background:#fff;color:#dc2626;box-shadow:0 2px 4px #0000000d}.type-btn.active-inc{background:#fff;color:#059669;box-shadow:0 2px 4px #0000000d}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form-field{display:flex;flex-direction:column;gap:5px}.form-field label{font-size:12px;font-weight:600;color:#4b5563}.form-field input,.form-field select{min-height:46px;border:1px solid #e5e7eb;border-radius:12px;padding:0 12px;font-size:16px;background:#f9fafb;color:#111827;transition:all .2s}.form-field input:focus,.form-field select:focus{outline:none;border-color:#5e5ce6;background:#fff}.btn-save-tx{min-height:50px;border-radius:14px;border:none;background:#1c1c1e;color:#fff;font-size:15px;font-weight:700;cursor:pointer;margin-top:4px}.ledger-toolbar{display:flex;flex-direction:column;gap:10px}.search-input-box{display:flex;align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:0 14px;min-height:48px;gap:10px;color:#6b7280}.search-input-box input{flex-grow:1;border:none;background:transparent;font-size:16px;color:#111827}.search-input-box input:focus{outline:none}.btn-clear-search{background:#f3f4f6;border:none;width:24px;height:24px;border-radius:50%;font-size:16px;font-weight:700;color:#4b5563;cursor:pointer;display:flex;align-items:center;justify-content:center}.filter-pills{display:flex;gap:8px;overflow-x:auto;padding:2px 0}.filter-pill{background:#f3f4f6;color:#4b5563;border:none;border-radius:9999px;padding:6px 14px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}.filter-pill.active{background:#1c1c1e;color:#fff}.ledger-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.ledger-item{background:#fff;border-radius:18px;padding:14px 16px;display:flex;align-items:center;gap:14px;box-shadow:0 2px 8px #0000000a;border:1px solid rgba(0,0,0,.04)}.ledger-icon-pill{width:42px;height:42px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:800;flex-shrink:0}.ledger-icon-pill.income{background:#d1fae5;color:#059669}.ledger-icon-pill.expense{background:#e0e7ff;color:#5e5ce6}.ledger-item-main{display:flex;flex-direction:column;flex-grow:1;min-width:0;gap:2px}.ledger-note{font-size:16px;font-weight:700;color:#111827;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ledger-sub{display:flex;align-items:center;gap:6px;font-size:12px;color:#6b7280}.ledger-category{background:#f3f4f6;padding:1px 8px;border-radius:9999px;font-weight:600;color:#4b5563}.ledger-amt-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.ledger-amt{font-size:16px;font-weight:800}.ledger-amt.income{color:#059669}.ledger-amt.expense{color:#111827}.btn-del-tx{width:36px;height:36px;border-radius:10px;border:none;background:transparent;color:#9ca3af;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s}.btn-del-tx:hover{background:#fef2f2;color:#ef4444}.ledger-empty-state{background:#fff;border-radius:24px;padding:36px 24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px;box-shadow:0 4px 12px #0000000a}.empty-icon-sq{font-size:36px}.ledger-empty-state h4{font-size:18px;font-weight:700;margin:0;color:#111827}.ledger-empty-state p{font-size:14px;color:#6b7280;margin:0;max-width:280px}.plan-tab{display:flex;flex-direction:column;gap:16px}.plan-card{background:#fff;border-radius:24px;padding:18px;border:1px solid rgba(0,0,0,.05);box-shadow:0 8px 25px -12px #00000014;display:flex;flex-direction:column;gap:12px}.plan-card.hero{background:linear-gradient(160deg,#1c1c1e,#2c2c2e);color:#fff;border:none}.health-row{display:flex;align-items:center;gap:16px}.health-ring{--pct: 0;width:72px;height:72px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:conic-gradient(#9ca3af calc(var(--pct) * 1%),#ffffff1f 0);position:relative}.health-ring:before{content:"";position:absolute;top:7px;right:7px;bottom:7px;left:7px;border-radius:50%;background:#1c1c1e}.health-ring span{position:relative;font-size:22px;font-weight:800}.health-ring.good{background:conic-gradient(#34d399 calc(var(--pct) * 1%),#ffffff1f 0)}.health-ring.ok{background:conic-gradient(#818cf8 calc(var(--pct) * 1%),#ffffff1f 0)}.health-ring.warn{background:conic-gradient(#fbbf24 calc(var(--pct) * 1%),#ffffff1f 0)}.health-ring.bad{background:conic-gradient(#f87171 calc(var(--pct) * 1%),#ffffff1f 0)}.health-text h2{margin:0;font-size:20px;font-weight:800;letter-spacing:-.02em}.health-text p{margin:2px 0 0;font-size:14px;color:#d1d5db}.health-text p.sub{font-size:12px;color:#9ca3af}.insight-list{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}.insight-list li{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.45;color:#e5e7eb}.insight-list li i{width:8px;height:8px;border-radius:50%;margin-top:6px;flex-shrink:0;background:#9ca3af}.insight-list li.alert i{background:#f87171;box-shadow:0 0 0 3px #f8717133}.insight-list li.warn i{background:#fbbf24}.insight-list li.good i{background:#34d399}.insight-list li.info i{background:#818cf8}.ask-bot-btn{align-self:flex-start;margin-top:4px;background:#ffffff1a;color:#fff;border:1px solid rgba(255,255,255,.18);border-radius:9999px;padding:9px 14px;font-size:13px;font-weight:700;cursor:pointer;transition:background .15s}.ask-bot-btn:hover{background:#ffffff2e}.pc-head{display:flex;align-items:center;justify-content:space-between}.pc-head h3{margin:0;font-size:17px;font-weight:800;color:#111827}.pc-add{border:1px solid #e5e7eb;background:#f9fafb;color:#1c1c1e;border-radius:9999px;padding:6px 12px;font-size:13px;font-weight:700;cursor:pointer}.pc-add:hover{background:#f3f4f6}.pc-empty{margin:0;font-size:14px;color:#6b7280;line-height:1.5}.pc-form{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px;background:#f9fafb;border-radius:16px}.pc-form input,.pc-form select{border:1px solid #e5e7eb;border-radius:12px;padding:10px 12px;font-size:15px;background:#fff;min-width:0}.pc-form input[type=text],.pc-form select{grid-column:1 / -1}.pc-form button{grid-column:1 / -1;background:#1c1c1e;color:#fff;border:none;border-radius:12px;padding:11px;font-weight:700;font-size:15px;cursor:pointer}.budget-list,.goal-list,.rem-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}.budget-list li,.goal-list li{display:flex;flex-direction:column;gap:6px}.bl-top{display:flex;align-items:center;gap:8px}.bl-name{font-weight:700;color:#111827;font-size:15px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bl-amt{font-weight:800;color:#111827;font-size:14px;white-space:nowrap}.bl-amt small{color:#9ca3af;font-weight:600}.bl-amt.over{color:#dc2626}.bl-amt.warning{color:#d97706}.bl-del{border:none;background:#f3f4f6;color:#6b7280;width:26px;height:26px;border-radius:50%;cursor:pointer;font-size:16px;line-height:1;flex-shrink:0}.bl-del:hover{background:#fee2e2;color:#b91c1c}.bar{height:9px;border-radius:9999px;background:#f3f4f6;overflow:hidden}.fill{height:100%;border-radius:9999px;background:linear-gradient(90deg,#5e5ce6,#7b7af0);transition:width .5s ease}.fill.warning{background:linear-gradient(90deg,#f59e0b,#fbbf24)}.fill.over{background:linear-gradient(90deg,#dc2626,#f87171)}.fill.goal{background:linear-gradient(90deg,#059669,#34d399)}.bl-sub{font-size:12.5px;color:#6b7280;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.link-btn{border:none;background:none;color:#4f46e5;font-weight:700;font-size:12.5px;cursor:pointer;padding:0}.inline-save{display:inline-flex;gap:6px;align-items:center}.inline-save input{width:100px;border:1px solid #e5e7eb;border-radius:10px;padding:6px 8px;font-size:14px}.inline-save button{border:none;background:#1c1c1e;color:#fff;border-radius:10px;padding:6px 10px;font-size:12.5px;font-weight:700;cursor:pointer}.inline-save button.ghost{background:#f3f4f6;color:#374151}.rem-list li{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:16px;background:#f9fafb}.rem-list li.today{background:#fffbeb}.rem-list li.overdue{background:#fef2f2}.rem-date{width:44px;text-align:center;display:flex;flex-direction:column;line-height:1;flex-shrink:0}.rem-date b{font-size:20px;font-weight:800;color:#111827}.rem-date span{font-size:11px;color:#6b7280;text-transform:uppercase;font-weight:700;margin-top:2px}.rem-main{flex:1;min-width:0;display:flex;flex-direction:column}.rem-what{font-weight:700;color:#111827;font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rem-sub{font-size:12.5px;color:#6b7280}.rem-list li.overdue .rem-sub{color:#b91c1c;font-weight:700}.rem-list li.today .rem-sub{color:#b45309;font-weight:700}.rem-done{border:none;background:#ecfdf5;color:#047857;width:30px;height:30px;border-radius:50%;font-weight:800;cursor:pointer;flex-shrink:0}.rem-done:hover{background:#d1fae5}.report-tab-container{display:flex;flex-direction:column;gap:20px}.report-header{display:flex;align-items:center;justify-content:space-between;padding:0 4px}.report-header h2{font-size:24px;font-weight:800;color:#111827;margin:0}.btn-export-csv{background:#1c1c1e;color:#fff;border:none;border-radius:9999px;padding:8px 16px;font-size:13px;font-weight:700;cursor:pointer;display:flex;align-items:center;gap:6px;transition:all .2s}.btn-export-csv:hover:not(:disabled){background:#3a3a3c}.btn-export-csv:disabled{opacity:.5;cursor:not-allowed}.apple-segmented-control{display:flex;background:#e5e7eb;border-radius:14px;padding:3px;gap:4px}.seg-btn{flex:1;min-height:40px;border:none;background:transparent;border-radius:11px;font-size:14px;font-weight:700;color:#6b7280;cursor:pointer;transition:all .2s}.seg-btn.active{background:#fff;color:#1c1c1e;box-shadow:0 2px 5px #00000014}.report-summary-card{background:#fff;border-radius:24px;padding:22px;box-shadow:0 8px 25px -10px #00000014;border:1px solid rgba(0,0,0,.05);display:flex;flex-direction:column;gap:14px}.report-summary-card h3{font-size:18px;font-weight:700;color:#111827;margin:0}.summary-rows{display:flex;flex-direction:column;gap:12px}.sum-line{display:flex;align-items:center;justify-content:space-between;font-size:15px;color:#4b5563;font-weight:500}.val-neutral{font-weight:700;color:#111827}.val-inc{font-weight:700;color:#059669}.val-exp{font-weight:700;color:#dc2626}.sum-line.total-line{padding-top:12px;border-top:1px solid #f3f4f6;font-size:17px;font-weight:800;color:#111827}.val-total.pos{color:#059669}.val-total.neg{color:#dc2626}.category-report-card,.breakup-report-card{background:#fff;border-radius:24px;padding:22px;box-shadow:0 8px 25px -10px #00000014;border:1px solid rgba(0,0,0,.05);display:flex;flex-direction:column;gap:16px}.category-report-card h3,.breakup-report-card h3{font-size:18px;font-weight:700;color:#111827;margin:0}.empty-cat-msg{padding:24px 0;text-align:center;color:#6b7280;font-size:14px}.category-bars-list{display:flex;flex-direction:column;gap:14px}.cat-bar-item{display:flex;flex-direction:column;gap:6px}.cat-label-row{display:flex;align-items:center;justify-content:space-between;font-size:14px}.cat-name{font-weight:600;color:#1f2937}.cat-amt{color:#4b5563}.cat-amt b{color:#111827}.cat-progress-bg{width:100%;height:10px;background:#f3f4f6;border-radius:9999px;overflow:hidden}.cat-progress-fill{height:100%;background:linear-gradient(90deg,#5e5ce6,#7b7af0);border-radius:9999px;transition:width .6s cubic-bezier(.4,0,.2,1)}.breakup-table-wrapper{overflow-x:auto}.apple-table{width:100%;border-collapse:collapse;text-align:left;font-size:14px}.apple-table th{padding:10px 8px;font-weight:700;color:#6b7280;border-bottom:2px solid #f3f4f6;text-transform:uppercase;font-size:12px;letter-spacing:.04em}.apple-table td{padding:14px 8px;border-bottom:1px solid #f3f4f6;vertical-align:middle}.apple-table tr:last-child td{border-bottom:none}.col-title{display:flex;flex-direction:column}.col-title b{font-weight:700;color:#111827;font-size:15px}.col-title span{font-size:12px;color:#9ca3af}.col-net{font-weight:800}.col-net.pos{color:#059669}.col-net.neg{color:#dc2626}.chat-modal-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#00000080;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);z-index:10000;display:flex;align-items:center;justify-content:center;padding:16px}.chat-modal-card{background:#fff;border-radius:28px;width:100%;max-width:440px;height:80vh;max-height:600px;box-shadow:0 25px 50px -12px #00000059;display:flex;flex-direction:column;border:1px solid rgba(0,0,0,.08);overflow:hidden}.chat-top-bar{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;background:#f9fafb;border-bottom:1px solid #e5e7eb;flex-shrink:0}.btn-chat-back,.btn-chat-close{background:#e5e7eb;border:none;border-radius:9999px;padding:6px 14px;font-size:13px;font-weight:700;color:#374151;cursor:pointer;transition:all .2s}.btn-chat-close{width:32px;height:32px;padding:0;display:flex;align-items:center;justify-content:center;font-size:18px}.chat-title-group{display:flex;flex-direction:column;align-items:center}.chat-title-group h3{font-size:16px;font-weight:800;color:#111827;margin:0}.chat-title-group span{font-size:11px;color:#059669;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.chat-messages-container{flex-grow:1;padding:16px;overflow-y:auto;display:flex;flex-direction:column;gap:12px;background:#fff}.chat-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;height:100%;color:#6b7280;gap:8px;padding:20px}.chat-empty-state span{font-size:40px}.chat-empty-state p{font-size:14px;margin:0;max-width:240px}.chat-bubble-row{display:flex;width:100%}.chat-bubble-row.me{justify-content:flex-end}.chat-bubble-row.them{justify-content:flex-start}.chat-bubble{max-width:75%;padding:10px 14px;border-radius:20px;display:flex;flex-direction:column;gap:4px;box-shadow:0 1px 2px #0000000d}.bubble-me{background:#5e5ce6;color:#fff;border-bottom-right-radius:4px}.bubble-them{background:#f3f4f6;color:#111827;border-bottom-left-radius:4px}.chat-bubble p{margin:0;font-size:15px;line-height:1.4;word-break:break-word}.chat-time{font-size:10px;opacity:.75;align-self:flex-end}.chat-input-bar{display:flex;align-items:center;padding:12px 16px;background:#f9fafb;border-top:1px solid #e5e7eb;gap:10px;flex-shrink:0}.chat-input-bar input{flex-grow:1;min-height:44px;border:1px solid #d1d5db;border-radius:9999px;padding:0 16px;font-size:15px;background:#fff;color:#111827}.chat-input-bar input:focus{outline:none;border-color:#5e5ce6}.btn-send-msg{background:#5e5ce6;color:#fff;border:none;border-radius:9999px;padding:0 18px;min-height:44px;font-size:14px;font-weight:700;cursor:pointer;transition:all .2s}.btn-send-msg:hover:not(:disabled){background:#4a48c4}.btn-send-msg:disabled{opacity:.4;cursor:not-allowed}.friends-tab-container{display:flex;flex-direction:column;gap:16px}.friends-top-bar{display:flex;align-items:center;justify-content:space-between;padding:0 4px}.friends-top-bar h2{font-size:24px;font-weight:800;color:#111827;margin:0}.btn-add-friend-toggle{background:#1c1c1e;color:#fff;border:none;border-radius:9999px;padding:8px 16px;font-size:13px;font-weight:700;cursor:pointer;transition:all .2s}.btn-add-friend-toggle:hover{background:#3a3a3c}.friends-summary-card{background:#fff;border-radius:24px;padding:18px 24px;box-shadow:0 8px 25px -10px #00000014;border:1px solid rgba(0,0,0,.05);display:flex;align-items:center;justify-content:space-around}.friend-stat{display:flex;flex-direction:column;align-items:center;gap:4px}.f-stat-label{font-size:12px;color:#6b7280;font-weight:600;text-transform:uppercase;letter-spacing:.04em}.f-stat-val{font-size:20px;font-weight:800}.f-stat-val.pos-val{color:#059669}.f-stat-val.neg-val{color:#dc2626}.friend-stat-divider{width:1px;height:36px;background:#e5e7eb}.add-friend-card{background:#fff;border-radius:24px;padding:20px;box-shadow:0 10px 25px -10px #00000014;border:1px solid rgba(0,0,0,.06);display:flex;flex-direction:column;gap:12px}.form-header-row{display:flex;align-items:center;justify-content:space-between}.add-friend-card h3{font-size:18px;font-weight:700;margin:0;color:#111827}.btn-mini-cancel{background:none;border:none;color:#6b7280;font-size:13px;font-weight:600;cursor:pointer}.btn-mini-cancel:hover{text-decoration:underline}.add-f-hint{font-size:13px;color:#6b7280;margin:0;line-height:1.4}.friend-alert{padding:10px 12px;border-radius:12px;font-size:13px;font-weight:600}.friend-alert.error{background:#fef2f2;color:#dc2626;border:1px solid #fecaca}.friend-form{display:flex;flex-direction:column;gap:12px}.direction-toggle-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#f3f4f6;padding:4px;border-radius:14px}.dir-btn{min-height:42px;border:none;border-radius:10px;font-size:13px;font-weight:600;cursor:pointer;background:transparent;color:#6b7280;transition:all .2s}.dir-btn.active-owes{background:#fff;color:#059669;box-shadow:0 2px 4px #0000000d}.dir-btn.active-owe{background:#fff;color:#dc2626;box-shadow:0 2px 4px #0000000d}.form-actions-row{display:flex;gap:10px;margin-top:4px}.btn-form-cancel{flex:1;min-height:48px;border-radius:14px;border:none;background:#f3f4f6;color:#6b7280;font-size:15px;font-weight:700;cursor:pointer}.btn-save-friend{flex:2;min-height:48px;border-radius:14px;border:none;background:#1c1c1e;color:#fff;font-size:15px;font-weight:700;cursor:pointer}.friends-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}.friend-card-item{background:#fff;border-radius:20px;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px;box-shadow:0 2px 8px #0000000a;border:1px solid rgba(0,0,0,.04);flex-wrap:wrap}.friend-info-col{display:flex;flex-direction:column;gap:2px}.friend-name{font-size:17px;font-weight:700;color:#111827}.friend-contact{font-size:13px;color:#6b7280;font-family:monospace}.friend-balance-col{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.friend-pill{font-size:13px;font-weight:700;padding:4px 12px;border-radius:9999px}.friend-pill.owes-you{background:#ecfdf5;color:#059669}.friend-pill.you-owe{background:#fef2f2;color:#dc2626}.friend-pill.settled{background:#f3f4f6;color:#6b7280}.friend-action-buttons{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.btn-msg-f{background:#e0e7ff;border:none;border-radius:10px;padding:6px 12px;font-size:12px;font-weight:700;color:#5e5ce6;cursor:pointer;transition:all .2s}.btn-msg-f:hover{background:#c7d2fe}.btn-adj-f,.btn-settle-f{background:#f3f4f6;border:none;border-radius:10px;padding:6px 12px;font-size:12px;font-weight:600;color:#374151;cursor:pointer}.btn-adj-f:hover,.btn-settle-f:hover{background:#e5e7eb}.btn-delete-f{background:none;border:none;color:#9ca3af;font-size:18px;font-weight:700;cursor:pointer;padding:0 4px}.btn-delete-f:hover{color:#ef4444}.friends-empty-state{background:#fff;border-radius:24px;padding:36px 24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px;box-shadow:0 4px 12px #0000000a}.adjust-modal-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#00000073;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:9999;display:flex;align-items:center;justify-content:center;padding:16px}.adjust-modal-card{background:#fff;border-radius:28px;padding:28px 24px;max-width:400px;width:100%;box-shadow:0 25px 50px -12px #00000040;display:flex;flex-direction:column;gap:16px}.adjust-modal-card h3{font-size:20px;font-weight:700;margin:0;color:#111827}.adjust-form{display:flex;flex-direction:column;gap:14px}.adj-type-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#f3f4f6;padding:4px;border-radius:14px}.adj-btn{min-height:44px;border:none;border-radius:10px;font-size:12px;font-weight:700;cursor:pointer;background:transparent;color:#6b7280}.adj-btn.active-lend{background:#fff;color:#059669;box-shadow:0 2px 4px #0000000d}.adj-btn.active-borrow{background:#fff;color:#dc2626;box-shadow:0 2px 4px #0000000d}.adj-actions{display:flex;gap:10px}.btn-adj-cancel,.btn-adj-confirm{flex:1;min-height:48px;border-radius:12px;border:none;font-size:15px;font-weight:700;cursor:pointer}.btn-adj-cancel{background:#f3f4f6;color:#4b5563}.btn-adj-confirm{background:#1c1c1e;color:#fff}.settings-tab-container{display:flex;flex-direction:column;gap:20px}.settings-header{padding:0 4px}.settings-header h2{font-size:24px;font-weight:800;color:#111827;margin:0}.settings-card{background:#fff;border-radius:24px;padding:22px 24px;box-shadow:0 8px 25px -10px #00000014;border:1px solid rgba(0,0,0,.05);display:flex;flex-direction:column;gap:16px}.account-card{display:flex;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px}.account-info{display:flex;align-items:center;gap:14px}.apple-avatar{width:52px;height:52px;border-radius:50%;background:#1c1c1e;color:#fff;font-size:22px;font-weight:800;display:flex;align-items:center;justify-content:center}.account-details h4{font-size:17px;font-weight:700;margin:0;color:#111827}.account-details p{font-size:13px;color:#6b7280;margin:2px 0 0;max-width:260px}.btn-sign-in-top{background:#5e5ce6;color:#fff;border:none;border-radius:9999px;padding:10px 18px;font-size:14px;font-weight:700;cursor:pointer;transition:all .2s}.btn-sign-in-top:hover{background:#4a48c4}.btn-sign-out{background:#f3f4f6;color:#4b5563;border:none;border-radius:9999px;padding:10px 18px;font-size:14px;font-weight:700;cursor:pointer;transition:all .2s}.btn-sign-out:hover{background:#e5e7eb;color:#111827}.card-top h3{font-size:18px;font-weight:700;margin:0;color:#111827}.card-top p{font-size:13px;color:#6b7280;margin:4px 0 0}.balance-form-row{display:flex;gap:12px}.input-with-currency{flex-grow:1;display:flex;align-items:center;background:#f9fafb;border:1px solid #e5e7eb;border-radius:14px;padding:0 14px;min-height:48px;gap:8px}.curr-tag{font-weight:700;color:#6b7280}.input-with-currency input{flex-grow:1;border:none;background:transparent;font-size:17px;font-weight:700;color:#111827}.input-with-currency input:focus{outline:none}.btn-save-setting{background:#1c1c1e;color:#fff;border:none;border-radius:14px;padding:0 20px;font-size:15px;font-weight:700;cursor:pointer;transition:all .2s;white-space:nowrap}.btn-save-setting:hover{background:#3a3a3c}.setting-row{display:flex;flex-direction:column;gap:6px}.setting-row label{font-size:13px;font-weight:600;color:#374151}.setting-row select{min-height:46px;border:1px solid #e5e7eb;border-radius:14px;padding:0 14px;font-size:15px;background:#f9fafb;color:#111827;cursor:pointer}.danger-card{border:1px solid #fee2e2}.btn-reset-danger{background:#fef2f2;color:#dc2626;border:1px solid #fecaca;border-radius:14px;min-height:50px;font-size:15px;font-weight:700;cursor:pointer;transition:all .2s}.btn-reset-danger:hover{background:#dc2626;color:#fff}.settings-footer{text-align:center;padding:10px 0 20px;font-size:12px;color:#9ca3af}.account-sub{font-size:13px;color:#6b7280;font-weight:600}.ai-status-pill{font-size:13px;font-weight:700;padding:6px 12px;border-radius:9999px;background:#f3f4f6;color:#6b7280}.ai-status-pill.online{background:#ecfdf5;color:#047857}.ai-status-pill.checking{background:#fffbeb;color:#b45309}.ai-status-pill.offline{background:#fef2f2;color:#b91c1c}.setting-hint{margin:0;font-size:13px;color:#6b7280;line-height:1.5}.more-tab{display:flex;flex-direction:column;gap:16px}.more-profile{display:flex;align-items:center;gap:14px;background:#fff;border-radius:24px;padding:18px;border:1px solid rgba(0,0,0,.05);box-shadow:0 8px 25px -12px #00000014}.more-avatar{width:52px;height:52px;border-radius:16px;background:#1c1c1e;color:#fff;font-weight:800;font-size:22px;display:flex;align-items:center;justify-content:center}.more-profile h2{margin:0;font-size:18px;font-weight:800;color:#111827}.more-profile span{font-size:13px;color:#6b7280;font-weight:600}.more-list{list-style:none;margin:0;padding:6px;background:#fff;border-radius:24px;border:1px solid rgba(0,0,0,.05);box-shadow:0 8px 25px -12px #00000014}.more-list li+li{border-top:1px solid #f3f4f6}.more-list button{width:100%;display:flex;align-items:center;gap:14px;padding:14px 12px;border:none;background:none;cursor:pointer;text-align:left;border-radius:18px}.more-list button:hover{background:#f9fafb}.more-ic{width:40px;height:40px;border-radius:12px;background:#f2f2f7;color:#1c1c1e;display:flex;align-items:center;justify-content:center;flex-shrink:0}.more-ic.heart{color:#e11d48;background:#fff1f2}.more-txt{flex:1;display:flex;flex-direction:column;min-width:0}.more-txt b{font-size:15px;font-weight:700;color:#111827}.more-txt small{font-size:12.5px;color:#6b7280}.more-chev{color:#c7c7cc;font-size:22px;font-weight:300}.more-footer{text-align:center;color:#9ca3af;font-size:12px;font-weight:600;padding:8px 0 4px}.app-container{max-width:600px;margin:0 auto;min-height:100vh;padding:16px 16px 100px;display:flex;flex-direction:column;gap:20px;position:relative;overflow-x:hidden;color:#1f2937}@media (min-width: 768px){body{background:#e9e7df}.app-container{margin:20px auto;background:#edebe4;border-radius:40px;box-shadow:0 20px 60px -15px #0000001a;border:1px solid rgba(0,0,0,.04);min-height:calc(100vh - 40px)}}.toast-notification{position:fixed;top:16px;left:50%;transform:translate(-50%);z-index:2000;background-color:#1c1c1e;color:#fff;padding:12px 24px;border-radius:9999px;font-size:14px;font-weight:600;box-shadow:0 10px 25px -5px #0000004d;animation:slideDown .25s ease-out;pointer-events:none;max-width:90vw;text-align:center}@keyframes slideDown{0%{opacity:0;transform:translate(-50%,-15px)}to{opacity:1;transform:translate(-50%)}}.app-header{display:flex;align-items:center;justify-content:space-between;padding:8px 4px}.header-brand{display:flex;align-items:center;gap:12px;cursor:pointer}.apple-b-logo{width:44px;height:44px;background:#1c1c1e;border-radius:12px;display:flex;align-items:center;justify-content:center;position:relative;box-shadow:0 4px 10px -2px #1c1c1e59;transition:transform .2s}.header-brand:hover .apple-b-logo{transform:scale(1.03)}.b-text{color:#fff;font-size:22px;font-weight:800;letter-spacing:-.03em;font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,sans-serif}.b-dot{position:absolute;top:8px;right:9px;width:5px;height:5px;border-radius:50%;background:#5e5ce6}.brand-titles h1{white-space:nowrap;font-size:22px;font-weight:800;margin:0;line-height:1.1;color:#111827;letter-spacing:-.02em}.brand-titles span{font-size:13px;color:#4b5563;font-weight:500}.header-right-actions{display:flex;align-items:center;gap:8px}.btn-tut-help{background:#f3f4f6;border:1px solid #e5e7eb;border-radius:9999px;padding:8px 12px;font-size:13px;font-weight:700;color:#374151;cursor:pointer;transition:all .2s}.btn-tut-help:hover{background:#e5e7eb}.btn-tip-heart{background:#fff1f2;border:1px solid #fecdd3;border-radius:9999px;width:40px;height:40px;display:flex;align-items:center;justify-content:center;font-size:18px;cursor:pointer;transition:all .2s;box-shadow:0 2px 4px #00000008}.btn-tip-heart:hover{transform:scale(1.08);background:#ffe4e6;border-color:#fb7185}.btn-auth-pill{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:9999px;padding:8px 14px;font-size:13px;font-weight:700;color:#1c1c1e;cursor:pointer;box-shadow:0 2px 6px #00000008;transition:all .2s;max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.btn-auth-pill:hover{background:#f9fafb;border-color:#d1d5db}.sync-dot{width:8px;height:8px;border-radius:50%;display:inline-block;flex-shrink:0}.sync-dot.online{background:#059669;box-shadow:0 0 0 3px #05966933}.sync-dot.guest{background:#9ca3af}.app-main{display:flex;flex-direction:column;gap:16px}.modal-overlay{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#00000073;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);z-index:3000;display:flex;align-items:center;justify-content:center;padding:20px}.modal-content{background:#fff;border-radius:28px;padding:28px 24px;max-width:400px;width:100%;box-shadow:0 25px 50px -12px #00000040;display:flex;flex-direction:column;gap:16px;text-align:center}.modal-content h3{font-size:20px;font-weight:700;color:#111827;margin:0}.modal-content p{font-size:14px;color:#4b5563;margin:0;line-height:1.5}.modal-actions{display:flex;gap:12px;margin-top:8px}.btn-cancel,.btn-reset-confirm{flex:1;min-height:48px;border-radius:14px;border:none;font-size:15px;font-weight:700;cursor:pointer;transition:all .2s}.btn-cancel{background:#f3f4f6;color:#4b5563}.btn-cancel:hover{background:#e5e7eb}.btn-reset-confirm{background:#ef4444;color:#fff}.btn-reset-confirm:hover{background:#dc2626}@media (max-width: 480px){.app-container{padding:12px 12px 90px}}.mode-switch{display:flex;background:#e5e5ea;border-radius:9999px;padding:3px;gap:2px}.mode-switch button{border:none;background:transparent;border-radius:9999px;padding:7px 12px;font-size:12.5px;font-weight:700;color:#6b7280;cursor:pointer;white-space:nowrap;transition:all .15s}.mode-switch button.on{background:#fff;box-shadow:0 2px 6px #00000014}.mode-switch button.on.exp{color:#b91c1c}.mode-switch button.on.inc{color:#047857}@media (max-width: 360px){.mode-switch button{padding:7px 9px;font-size:12px}}@media (max-width: 420px){.brand-titles h1{font-size:19px}.apple-b-logo{width:40px;height:40px}.header-brand{gap:9px}.mode-switch button{padding:7px 10px;font-size:12px}}*,*:before,*:after{box-sizing:border-box}html,body,#root{margin:0;padding:0;width:100%;min-height:100%;background:#edebe4;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif}body{display:block;place-items:initial;min-width:0;overflow-x:hidden;color-scheme:light;-webkit-text-size-adjust:100%}input,select,textarea,button{font-size:16px;font-family:inherit}
