:root{--background:#f3f6f7;--foreground:#111827;--muted:#667085;--line:#d8e0e6;--panel:#fff;--panel-strong:#eef5f3;--ink:#0d1b2a;--teal:#0d9488;--blue:#2563eb;--green:#12a150;--red:#e11d48;--amber:#f59e0b;--purple:#7c3aed;--shadow:0 22px 60px #0f172a21;--shadow-soft:0 12px 30px #0f172a14}*{box-sizing:border-box}html{background:var(--background);min-height:100%}body{min-height:100%;color:var(--foreground);background:linear-gradient(120deg,#0d948814 0 34%,#0000 34% 100%),linear-gradient(150deg,#0000 0 62%,#f59e0b1a 62% 100%),repeating-linear-gradient(90deg,#0f172a08 0 1px,#0000 1px 82px),#f4f7f8;margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,select,textarea{font:inherit}button{-webkit-tap-highlight-color:transparent}a{color:inherit}.auth-screen{grid-template-columns:minmax(0,1.1fr) minmax(320px,440px);align-items:stretch;gap:24px;min-height:100vh;padding:24px;display:grid}.landing-screen{grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);gap:24px;min-height:100vh;padding:24px;display:grid}.landing-hero,.landing-card{box-shadow:var(--shadow);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border:1px solid #94a3b838}.landing-hero{color:#fff;background:linear-gradient(90deg,#ffffff14 1px,#0000 1px) 0 0/70px 70px,linear-gradient(0deg,#ffffff0f 1px,#0000 1px) 0 0/70px 70px,linear-gradient(135deg,#0b1220 0%,#102a43 42%,#0d9488 100%);border-radius:34px;flex-direction:column;justify-content:space-between;min-height:calc(100vh - 48px);padding:34px;display:flex;position:relative;overflow:hidden}.landing-hero:after{content:"";clip-path:polygon(0 62%,12% 44%,24% 58%,39% 30%,52% 54%,68% 24%,82% 48%,100% 18%,100% 100%,0 100%);background:linear-gradient(135deg,#f59e0b42,#2563eb2e),#ffffff14;height:46%;position:absolute;inset:auto -8% -8% 18%}.landing-hero .brand,.landing-copy,.landing-actions{z-index:1;position:relative}.landing-hero .brand-name,.landing-hero .brand-subtitle,.landing-hero .eyebrow{color:#fff}.landing-copy{max-width:760px}.landing-copy h1{margin:10px 0 16px;font-size:clamp(2.7rem,8vw,6.8rem);line-height:.92}.landing-copy p{color:#ffffffbd;max-width:620px;font-size:1.08rem;line-height:1.75}.landing-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.secondary-link-button{color:#fff;background:#ffffff1f;border:1px solid #ffffff29;border-radius:16px;justify-content:center;align-items:center;min-height:46px;padding:0 16px;font-weight:800;text-decoration:none;display:inline-flex}.landing-card-grid{align-content:center;gap:16px;display:grid}.landing-card{background:#ffffffe6;border-radius:26px;align-content:space-between;min-height:176px;padding:22px;display:grid}.landing-card svg{color:var(--teal)}.landing-card h2{margin:18px 0 8px}.landing-card p{color:var(--muted);margin:0;line-height:1.55}.auth-panel,.auth-card,.form-panel,.panel,.profile-card,.owner-hero,.member-card,.bill-card,.payment-row,.empty-state{box-shadow:var(--shadow);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#ffffffe6;border:1px solid #94a3b838}.auth-panel{color:#fff;background:linear-gradient(90deg,#ffffff12 1px,#0000 1px) 0 0/72px 72px,linear-gradient(0deg,#ffffff0f 1px,#0000 1px) 0 0/72px 72px,linear-gradient(135deg,#0b1220 0%,#12343b 45%,#0f766e 100%);border-radius:32px;flex-direction:column;justify-content:space-between;min-height:calc(100vh - 48px);padding:32px;display:flex;position:relative;overflow:hidden}.auth-panel:after{content:"";clip-path:polygon(0 62%,12% 48%,24% 58%,37% 34%,52% 50%,66% 26%,82% 46%,100% 20%,100% 100%,0 100%);background:linear-gradient(135deg,#0000 0 35%,#ffffff2e 35% 36%,#0000 36% 100%),linear-gradient(35deg,#f59e0b2e,#0000 55%);height:38%;position:absolute;inset:auto 0 0}.auth-copy{z-index:1;max-width:720px;position:relative}.auth-copy h1{max-width:760px;margin:8px 0 14px;font-size:clamp(2.25rem,7vw,5.2rem);line-height:1}.auth-copy p{color:#ffffffbd;max-width:560px;font-size:1.05rem;line-height:1.7}.auth-card{border-radius:28px;flex-direction:column;align-self:center;gap:16px;padding:30px;display:flex}.auth-card h2{margin:0 0 4px;font-size:1.6rem}.auth-visual{z-index:1;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-width:620px;display:grid;position:relative}.visual-stat{background:#ffffff1c;border:1px solid #ffffff29;border-radius:22px;align-content:space-between;min-height:92px;padding:16px;display:grid}.visual-stat span{color:#ffffffad;font-size:.8rem;font-weight:800}.visual-stat strong{font-size:1.55rem}.auth-card.compact{min-width:min(420px,100vw - 32px);margin:auto}.verification-note{color:#0f766e;background:#e6f7f5;border:1px solid #0d94882e;border-radius:18px;align-items:flex-start;gap:12px;padding:14px;display:flex}.verification-note p{color:#475569;margin:4px 0 0;line-height:1.45}.brand{align-items:center;gap:12px;display:flex}.brand-mark,.avatar{color:#fff;background:linear-gradient(135deg, var(--teal), var(--blue));place-items:center;display:grid;box-shadow:0 14px 32px #0f766e3d}.brand-mark{border-radius:14px;width:48px;height:48px;font-weight:800}.brand-name,.brand-subtitle,.card-kicker,.eyebrow,.muted{margin:0}.brand-name{font-weight:800}.brand-subtitle,.muted,.screen-header p,.field span,.payment-row span,.member-card p,.bill-card p,.profile-card p{color:var(--muted)}.auth-panel .brand-subtitle,.auth-panel .brand-name,.auth-panel .eyebrow,.app-nav .brand-name{color:#fff}.app-nav .brand-subtitle{color:#ffffff94}.eyebrow,.card-kicker{color:var(--teal);text-transform:uppercase;font-size:.76rem;font-weight:800}.field{gap:7px;display:grid;position:relative}.field span{font-size:.82rem;font-weight:700}.field input,.field select,.field textarea{border:1px solid var(--line);width:100%;min-height:48px;color:var(--foreground);background:#f8fafc;border-radius:16px;outline:none;padding:0 14px}.search-field svg{color:var(--muted);pointer-events:none;position:absolute;bottom:15px;left:14px}.search-field input{padding-left:42px}.field textarea{resize:vertical;min-height:180px;padding:14px}.field input:focus,.field select:focus,.field textarea:focus{border-color:#0f766eb3;box-shadow:0 0 0 4px #0f766e1f}.primary-button,.secondary-button,.danger-button,.ghost-button,.text-button,.nav-button,.bottom-nav-button,.stat-card{cursor:pointer;border:0}.primary-button,.secondary-button,.danger-button,.ghost-button{border-radius:16px;justify-content:center;align-items:center;gap:8px;min-height:46px;padding:0 16px;font-weight:800;display:inline-flex}.primary-button{color:#fff;background:linear-gradient(135deg,#0f766e,#0ea5a4 58%,#2563eb);box-shadow:0 12px 26px #0d948838}.secondary-button,.ghost-button{color:var(--foreground);background:#eef5f3;border:1px solid #0f766e2e}.danger-button{color:#fff;background:linear-gradient(135deg, var(--red), #b91c1c)}.primary-button:disabled,.secondary-button:disabled{cursor:not-allowed;opacity:.56}.slim{min-height:40px}.full{width:100%}.text-button{width:fit-content;color:var(--teal);background:0 0;align-items:center;gap:6px;font-weight:800;display:inline-flex}.text-button.inline{padding:0}.policy-links,.button-row,.quick-actions,.toolbar,.header-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.policy-links{color:var(--muted);justify-content:center;font-size:.88rem}.button-row.center{justify-content:center}.app-shell{grid-template-columns:292px minmax(0,1fr);min-height:100vh;display:grid}.app-nav{-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);color:#fff;background:linear-gradient(#ffffff0f,#0000),#0b1220;border-right:1px solid #ffffff14;flex-direction:column;gap:22px;height:100vh;padding:24px;display:flex;position:sticky;top:0}.nav-list{flex:1;align-content:start;gap:8px;display:grid}.nav-button{color:#ffffffb3;text-align:left;background:0 0;border-radius:18px;align-items:center;gap:10px;width:100%;min-height:48px;padding:0 12px;font-weight:800;display:flex}.nav-button.active{color:#fff;background:linear-gradient(135deg,#0d94883d,#2563eb33);box-shadow:inset 0 0 0 1px #ffffff14}.nav-button.danger{color:var(--red)}.nav-icon{color:currentColor;background:#ffffff14;border-radius:14px;place-items:center;width:38px;height:36px;display:grid}.app-main{width:min(1220px,100%);margin:0 auto;padding:32px 32px 108px}.screen-header{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:22px;display:flex}.screen-header h1{margin:6px 0 4px;font-size:clamp(1.9rem,4vw,3rem);line-height:1.08}.stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px;display:grid}.stat-card{text-align:left;color:#0f172a;min-height:150px;box-shadow:var(--shadow-soft);border:1px solid #94a3b83d;border-radius:24px;align-content:space-between;gap:10px;padding:20px;display:grid;position:relative;overflow:hidden}.stat-card:before{content:"";opacity:.45;background:currentColor;width:6px;position:absolute;inset:0 auto 0 0}.stat-card span,.stat-card small{color:#475569;font-weight:700}.stat-card strong{font-size:clamp(1.5rem,3vw,2.2rem);line-height:1}.tone-neutral{background:#fff}.tone-blue{color:#1d4ed8;background:linear-gradient(135deg,#e0f2fe,#dbeafe)}.tone-green{color:#047857;background:linear-gradient(135deg,#dcfce7,#ccfbf1)}.tone-red{color:#be123c;background:linear-gradient(135deg,#fee2e2,#ffe4e6)}.tone-amber{color:#b45309;background:linear-gradient(135deg,#fef3c7,#ffedd5)}.panel,.form-panel,.profile-card,.owner-hero{border-radius:26px;padding:22px}.panel-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;display:flex}.panel-heading h2,.form-panel h2,.member-card h2,.bill-card h2,.profile-card h2{margin:0}.chart-panel{min-height:410px}.chart-panel.small{min-height:300px}.chart-panel canvas{max-height:318px}.toolbar{align-items:end;margin-bottom:18px}.toolbar .field{flex:1;min-width:180px}.quick-actions{margin-bottom:18px}.list-grid{gap:14px;display:grid}.member-card,.bill-card{border-radius:24px;padding:20px}.member-card{grid-template-columns:minmax(0,1fr) auto;gap:16px;display:grid}.member-card .button-row{grid-column:1/-1}.member-meta{color:var(--muted);justify-items:end;gap:8px;display:grid}.status-pill{width:fit-content;min-height:28px;color:var(--blue);background:#eef2ff;border-radius:999px;align-items:center;padding:6px 10px;font-size:.78rem;font-weight:900;display:inline-flex}.status-pill.success{color:#166534;background:#dcfce7}.status-pill.danger{color:#991b1b;background:#fee2e2}.payment-row{border-radius:22px;justify-content:space-between;align-items:center;gap:16px;min-height:86px;padding:14px 16px;display:flex}.payment-row.compact{box-shadow:none;background:#f8fafc;border-radius:14px}.payment-row div{gap:4px;display:grid}.form-panel{gap:16px;max-width:560px;display:grid}.calculation-card{background:#f1f5f9;border-radius:16px;justify-content:space-between;align-items:center;padding:14px;display:flex}.owner-hero{color:#fff;background:linear-gradient(90deg,#ffffff1f 1px,#0000 1px) 0 0/54px 54px,linear-gradient(0deg,#ffffff1a 1px,#0000 1px) 0 0/54px 54px,linear-gradient(135deg,#111827 0%,#0f766e 54%,#2563eb 100%);justify-content:space-between;align-items:end;gap:18px;min-height:220px;margin-bottom:18px;display:flex;position:relative;overflow:hidden}.owner-hero:after{content:"";clip-path:polygon(0 70%,14% 44%,24% 56%,38% 32%,52% 60%,68% 28%,82% 52%,100% 24%,100% 100%,0 100%);background:#ffffff1f;height:42%;position:absolute;inset:auto 0 0}.owner-hero>*{z-index:1;position:relative}.owner-hero p,.owner-hero .eyebrow{color:#ffffffd1}.owner-hero h2{margin:8px 0;font-size:clamp(2rem,5vw,3.4rem)}.bill-card{gap:12px;display:grid}.bill-card h2{font-size:clamp(2rem,7vw,3rem)}.profile-card{text-align:center;justify-items:center;gap:10px;margin-bottom:18px;display:grid}.avatar{border-radius:30px;width:86px;height:86px;font-size:2rem;font-weight:900}.profile-lines{color:var(--muted);gap:4px;display:grid}.profile-lines span{justify-content:center;align-items:center;gap:7px;display:inline-flex}.complaint-message{background:#f8fafc;border-radius:14px;margin-top:10px;padding:14px;color:#334155!important}.empty-state{color:var(--muted);border-radius:18px;padding:22px}.empty-state strong{color:var(--foreground)}.bottom-nav{display:none}.toast{z-index:80;width:min(420px,100vw - 32px);box-shadow:var(--shadow);text-align:center;border-radius:16px;justify-content:center;align-items:center;gap:8px;padding:14px 16px;font-weight:800;display:flex;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}.toast-success{color:#166534;background:#dcfce7}.toast-error{color:#991b1b;background:#fee2e2}.loading-line{background:#e2e8f0;border-radius:999px;height:8px;overflow:hidden}.loading-line:after{content:"";border-radius:inherit;background:var(--teal);width:45%;height:100%;animation:1.1s ease-in-out infinite alternate loading;display:block}@keyframes loading{0%{transform:translate(0)}to{transform:translate(125%)}}@media (max-width:960px){.landing-screen,.auth-screen{grid-template-columns:1fr}.landing-hero,.auth-panel{gap:70px;min-height:auto}.landing-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.app-shell{display:block}.app-nav{display:none}.app-main{padding:20px 16px 104px}.screen-header{flex-direction:column;align-items:stretch}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bottom-nav{z-index:60;padding:10px 10px calc(10px + env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);background:#ffffffe6;border-top:1px solid #94a3b847;gap:6px;display:flex;position:fixed;inset:auto 0 0;overflow-x:auto}.bottom-nav-button{min-width:68px;min-height:58px;color:var(--muted);background:0 0;border-radius:16px;place-items:center;gap:2px;font-weight:800;display:grid}.bottom-nav-button span{place-items:center;min-height:22px;display:grid}.bottom-nav-button small{font-size:.72rem}.bottom-nav-button.active{color:var(--teal);background:#e6f4f1}}@media (max-width:640px){.landing-screen,.auth-screen{padding:12px}.landing-hero,.landing-card,.auth-panel,.auth-card,.panel,.form-panel,.profile-card,.owner-hero,.member-card,.bill-card,.payment-row{border-radius:18px}.auth-card,.auth-panel,.form-panel,.panel,.profile-card,.owner-hero,.member-card,.bill-card{padding:16px}.landing-card-grid,.auth-visual{grid-template-columns:1fr}.landing-copy h1{font-size:clamp(2.2rem,14vw,3.8rem)}.landing-actions,.landing-actions .primary-button,.landing-actions .secondary-link-button{width:100%}.stats-grid{gap:10px}.stat-card{min-height:126px;padding:14px}.member-card{grid-template-columns:1fr}.member-meta{justify-items:start}.payment-row{flex-direction:column;align-items:flex-start}.owner-hero{flex-direction:column;align-items:stretch}.toolbar{display:grid}.toolbar .field,.toolbar button{width:100%}}
