*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at top left,rgba(37,99,235,.08),transparent 28%),#f4f7fb;color:#111827;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,select{font-family:inherit}.app-main{width:100%;min-height:calc(100vh - 86px)}.topbar{width:100%;background:#ffffffe6;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);border-bottom:1px solid rgba(226,232,240,.95);position:sticky;top:0;z-index:999;box-shadow:0 12px 35px #0f172a14}.topbar-inner{min-height:86px;padding:0 36px;display:grid;grid-template-columns:280px 1fr auto;align-items:center;gap:28px}.brand{border:none;background:transparent;display:flex;align-items:center;gap:14px;cursor:pointer;padding:0;text-align:left}.brand-logo{width:48px;height:48px;border-radius:16px;background:linear-gradient(135deg,#020617,#1e293b);color:#fff;display:grid;place-items:center;font-size:25px;font-weight:900;box-shadow:0 12px 26px #0f172a38}.brand-copy{display:flex;flex-direction:column;gap:3px}.brand-copy strong{color:#0f172a;font-size:20px;letter-spacing:-.03em}.brand-copy small{color:#64748b;font-size:12px;font-weight:600}.nav-menu{display:flex;align-items:center;gap:8px}.nav-link{text-decoration:none;color:#475569;padding:12px 18px;border-radius:999px;font-size:14px;font-weight:800;transition:.2s ease}.nav-link:hover{background:#f1f5f9;color:#0f172a}.nav-link.active{background:#0f172a;color:#fff;box-shadow:0 12px 24px #0f172a2e}.nav-account{display:flex;align-items:center;justify-content:flex-end;gap:12px}.user-pill{display:flex;align-items:center;gap:10px;padding:7px 12px 7px 7px;border:1px solid #e2e8f0;background:#fff;border-radius:999px;box-shadow:0 8px 24px #0f172a0f}.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#2563eb,#4f46e5);color:#fff;font-size:16px;font-weight:900}.user-meta{display:flex;flex-direction:column;line-height:1.1;min-width:78px}.user-meta strong{font-size:13px;color:#0f172a}.role-badge{width:fit-content;margin-top:4px;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:900;text-transform:capitalize}.role-admin{background:#fee2e2;color:#991b1b}.role-user{background:#dcfce7;color:#166534}.role-read-only{background:#e0e7ff;color:#3730a3}.role-select{height:44px;min-width:132px;border:1px solid #dbe3ef;background:#fff;color:#0f172a;border-radius:999px;padding:0 14px;font-size:14px;font-weight:800;outline:none;cursor:pointer;box-shadow:0 8px 22px #0f172a0d}.logout-btn{height:44px;border:none;border-radius:999px;padding:0 18px;background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;font-size:14px;font-weight:900;cursor:pointer;box-shadow:0 12px 26px #dc262638;transition:.2s ease}.logout-btn:hover{transform:translateY(-1px)}.dashboard-page{padding:34px 32px 60px}.dashboard-header{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:26px}.section-label{margin:0 0 8px;color:#2563eb;font-size:13px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.dashboard-header h1{margin:0;font-size:42px;letter-spacing:-.04em;color:#0f172a}.dashboard-subtitle{margin:8px 0 0;color:#64748b;font-size:15px}.balance-box{min-width:240px;padding:20px 22px;border-radius:26px;background:#0f172a;color:#fff;box-shadow:0 18px 45px #0f172a38}.balance-box span{display:block;color:#cbd5e1;font-size:13px;margin-bottom:8px}.balance-box strong{font-size:28px}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:24px}.stat-card{display:flex;align-items:center;gap:16px;padding:22px;border-radius:28px;background:#fffffff0;border:1px solid rgba(226,232,240,.9);box-shadow:0 16px 40px #0f172a12}.stat-icon{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;color:#fff;font-size:24px;font-weight:900}.income-icon{background:linear-gradient(135deg,#16a34a,#22c55e)}.expense-icon{background:linear-gradient(135deg,#dc2626,#f97316)}.balance-icon{background:linear-gradient(135deg,#2563eb,#7c3aed)}.stat-card p{margin:0 0 6px;color:#64748b;font-size:14px;font-weight:800}.stat-card h2{margin:0;font-size:27px;color:#0f172a}.analytics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.analytics-card{min-height:430px;padding:26px;border-radius:30px;background:#fffffff2;border:1px solid rgba(226,232,240,.9);box-shadow:0 16px 40px #0f172a12;overflow:hidden}.full-card{grid-column:span 2}.card-title{margin-bottom:16px}.card-title h3{margin:0;color:#0f172a;font-size:21px}.card-title p{margin:6px 0 0;color:#64748b;font-size:13px}.empty-state{height:300px;border:1px dashed #cbd5e1;border-radius:24px;display:grid;place-items:center;text-align:center;color:#64748b;padding:20px;background:#f8fafc}.empty-state span{font-size:42px}.empty-state h4{margin:8px 0 4px;color:#0f172a;font-size:18px}.empty-state p{margin:0;font-size:14px}.recharts-wrapper text{font-size:12px;fill:#475569}@media(max-width:1100px){.topbar-inner{grid-template-columns:1fr;padding:18px 22px;gap:16px}.nav-menu,.nav-account{flex-wrap:wrap}.stats-grid,.analytics-grid{grid-template-columns:1fr}.full-card{grid-column:span 1}.dashboard-header{align-items:flex-start;flex-direction:column}.balance-box{width:100%}}@media(max-width:640px){.dashboard-page{padding:24px 16px 40px}.dashboard-header h1{font-size:34px}.stat-card,.analytics-card{border-radius:22px}.brand-copy strong{font-size:18px}.nav-link{padding:10px 14px}}.transactions-page{padding:34px 32px 60px}.transactions-header{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:24px}.transactions-header h1{margin:0;font-size:42px;letter-spacing:-.04em;color:#0f172a}.transactions-subtitle{margin:8px 0 0;color:#64748b;font-size:15px}.transactions-count{min-width:220px;padding:20px 22px;border-radius:26px;background:#0f172a;color:#fff;box-shadow:0 18px 45px #0f172a38}.transactions-count span{display:block;color:#cbd5e1;font-size:13px;margin-bottom:8px}.transactions-count strong{font-size:26px}.transaction-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:22px}.mini-stat{display:flex;align-items:center;gap:14px;padding:20px;border-radius:24px;background:#fffffff0;border:1px solid rgba(226,232,240,.9);box-shadow:0 16px 40px #0f172a12}.mini-dot{width:44px;height:44px;border-radius:16px;display:block}.income-dot{background:linear-gradient(135deg,#16a34a,#22c55e)}.expense-dot{background:linear-gradient(135deg,#dc2626,#f97316)}.balance-dot{background:linear-gradient(135deg,#2563eb,#7c3aed)}.mini-stat p{margin:0 0 5px;color:#64748b;font-size:13px;font-weight:800}.mini-stat strong{color:#0f172a;font-size:22px}.transaction-toolbar{display:flex;gap:12px;margin-bottom:16px}.search-input{width:min(420px,100%);height:48px;border:1px solid #dbe3ef;border-radius:16px;padding:0 16px;background:#fff;color:#0f172a;outline:none;font-size:14px;box-shadow:0 10px 24px #0f172a0a}.search-input:focus{border-color:#2563eb;box-shadow:0 0 0 4px #2563eb1f}.search-btn{height:48px;border:none;border-radius:16px;padding:0 20px;background:#0f172a;color:#fff;font-weight:900;cursor:pointer;box-shadow:0 12px 26px #0f172a29}.transaction-form{display:grid;grid-template-columns:140px 160px 1fr 1.4fr 170px 170px;gap:12px;padding:18px;border-radius:26px;background:#fffffff0;border:1px solid rgba(226,232,240,.9);box-shadow:0 16px 40px #0f172a12;margin-bottom:22px}.transaction-form input,.transaction-form select{height:46px;border:1px solid #dbe3ef;border-radius:15px;padding:0 14px;background:#fff;outline:none;font-size:14px}.transaction-form input:focus,.transaction-form select:focus{border-color:#2563eb;box-shadow:0 0 0 4px #2563eb1a}.transaction-form button{height:46px;border:none;border-radius:15px;background:linear-gradient(135deg,#2563eb,#4f46e5);color:#fff;font-weight:900;cursor:pointer;box-shadow:0 12px 26px #2563eb33}.readonly-note{padding:16px 18px;border-radius:20px;background:#eef2ff;color:#3730a3;border:1px solid #c7d2fe;font-weight:800;margin-bottom:22px}.transactions-card{padding:22px;border-radius:30px;background:#fffffff2;border:1px solid rgba(226,232,240,.9);box-shadow:0 16px 40px #0f172a12}.transactions-card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.transactions-card-header h3{margin:0;color:#0f172a;font-size:21px}.transactions-card-header span{color:#64748b;font-size:13px;font-weight:800}.transaction-row{height:74px;margin-bottom:12px;padding:12px 14px;border-radius:22px;background:#f8fafc;border:1px solid #e2e8f0;display:grid;grid-template-columns:48px 1fr 120px 150px auto;align-items:center;gap:14px}.tx-type{width:42px;height:42px;border-radius:15px;display:grid;place-items:center;color:#fff;font-weight:900}.tx-type.income{background:linear-gradient(135deg,#16a34a,#22c55e)}.tx-type.expense{background:linear-gradient(135deg,#dc2626,#f97316)}.tx-main{display:flex;flex-direction:column;gap:4px}.tx-main strong{color:#0f172a;font-size:15px}.tx-main span{color:#64748b;font-size:13px}.tx-date{color:#64748b;font-size:13px;font-weight:700}.tx-amount{font-size:16px;font-weight:900;text-align:right}.tx-amount.income{color:#16a34a}.tx-amount.expense{color:#dc2626}.delete-btn{height:38px;border:none;border-radius:14px;padding:0 14px;background:#fee2e2;color:#991b1b;font-weight:900;cursor:pointer}.delete-btn:hover{background:#fecaca}@media(max-width:1150px){.transaction-form{grid-template-columns:1fr 1fr}.transaction-stats{grid-template-columns:1fr}.transactions-header{align-items:flex-start;flex-direction:column}.transactions-count{width:100%}.transaction-row{grid-template-columns:44px 1fr;height:auto}.tx-date,.tx-amount,.delete-btn{justify-self:start}}@media(max-width:640px){.transactions-page{padding:24px 16px 40px}.transactions-header h1{font-size:34px}.transaction-toolbar{flex-direction:column}.search-btn{width:100%}.transaction-form{grid-template-columns:1fr}}.users-page{padding:34px 32px 60px}.section-label{margin:0 0 8px;color:#2563eb;font-size:13px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.users-header{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:24px}.users-header h1{margin:0;font-size:42px;letter-spacing:-.04em;color:#0f172a}.users-subtitle{margin:8px 0 0;color:#64748b;font-size:15px}.users-hero-card{min-width:220px;padding:20px 22px;border-radius:26px;background:#0f172a;color:#fff;box-shadow:0 18px 45px #0f172a38}.users-hero-card span{display:block;color:#cbd5e1;font-size:13px;margin-bottom:8px}.users-hero-card strong{font-size:30px}.users-stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:22px}.user-stat-card{display:flex;align-items:center;gap:14px;padding:20px;border-radius:24px;background:#fffffff0;border:1px solid rgba(226,232,240,.9);box-shadow:0 16px 40px #0f172a12}.user-stat-icon{width:46px;height:46px;border-radius:16px;display:grid;place-items:center;color:#fff;font-weight:900}.admin-icon{background:linear-gradient(135deg,#7c3aed,#2563eb)}.user-icon{background:linear-gradient(135deg,#16a34a,#22c55e)}.readonly-icon{background:linear-gradient(135deg,#f97316,#dc2626)}.user-stat-card p{margin:0 0 5px;color:#64748b;font-size:13px;font-weight:800}.user-stat-card strong{color:#0f172a;font-size:24px}.users-table-card{padding:22px;border-radius:30px;background:#fffffff2;border:1px solid rgba(226,232,240,.9);box-shadow:0 16px 40px #0f172a12}.users-table-header{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.users-table-header h3{margin:0;color:#0f172a;font-size:21px}.users-table-header p{margin:5px 0 0;color:#64748b;font-size:13px}.users-table-header span{color:#64748b;font-size:13px;font-weight:900}.users-list{display:flex;flex-direction:column;gap:12px}.user-row{min-height:82px;padding:16px;border-radius:24px;background:#f8fafc;border:1px solid #e2e8f0;display:grid;grid-template-columns:1.4fr 150px 220px 100px;align-items:center;gap:16px}.user-profile{display:flex;align-items:center;gap:14px}.user-avatar{width:48px;height:48px;border-radius:18px;display:grid;place-items:center;color:#fff;font-weight:900;font-size:18px}.user-avatar.admin{background:linear-gradient(135deg,#7c3aed,#2563eb)}.user-avatar.user{background:linear-gradient(135deg,#16a34a,#22c55e)}.user-avatar.read-only{background:linear-gradient(135deg,#f97316,#dc2626)}.user-profile strong{color:#0f172a;font-size:15px}.user-profile p{margin:4px 0 0;color:#64748b;font-size:13px}.role-badge{width:fit-content;padding:7px 12px;border-radius:999px;font-size:12px;font-weight:900;text-transform:capitalize}.role-badge.admin{background:#ede9fe;color:#5b21b6}.role-badge.user{background:#dcfce7;color:#166534}.role-badge.read-only{background:#ffedd5;color:#9a3412}.role-control{display:flex;flex-direction:column;gap:6px}.role-control label{color:#64748b;font-size:12px;font-weight:900}.role-control select{height:42px;border:1px solid #dbe3ef;border-radius:14px;padding:0 12px;background:#fff;color:#0f172a;font-weight:800;outline:none}.role-control select:focus{border-color:#2563eb;box-shadow:0 0 0 4px #2563eb1a}.user-status{color:#64748b;font-size:13px;font-weight:900;text-align:right}@media(max-width:1050px){.users-header{align-items:flex-start;flex-direction:column}.users-hero-card{width:100%}.users-stats-grid{grid-template-columns:1fr}.user-row{grid-template-columns:1fr;align-items:flex-start}.user-status{text-align:left}}@media(max-width:640px){.users-page{padding:24px 16px 40px}.users-header h1{font-size:34px}.users-table-card{border-radius:24px;padding:16px}}.auth-page{min-height:calc(100vh - 92px);padding:42px 32px;display:grid;place-items:center;background:radial-gradient(circle at top left,rgba(37,99,235,.11),transparent 30%),radial-gradient(circle at bottom right,rgba(124,58,237,.1),transparent 28%),#f4f7fb}.auth-shell{width:min(1080px,100%);display:grid;grid-template-columns:1fr 440px;gap:24px;align-items:stretch}.auth-brand-panel{position:relative;overflow:hidden;padding:42px;border-radius:34px;background:#0f172a;color:#fff;box-shadow:0 24px 70px #0f172a47}.auth-brand-panel:after{content:"";position:absolute;width:320px;height:320px;border-radius:999px;right:-110px;bottom:-120px;background:linear-gradient(135deg,#2563eb,#7c3aed);opacity:.65;filter:blur(2px)}.auth-logo{width:64px;height:64px;border-radius:22px;background:#fff;color:#0f172a;display:grid;place-items:center;font-size:32px;font-weight:950;margin-bottom:32px}.auth-brand-panel .section-label{color:#93c5fd}.auth-brand-panel h1{position:relative;z-index:1;margin:0;max-width:520px;font-size:48px;line-height:1.05;letter-spacing:-.05em}.auth-brand-panel p:not(.section-label){position:relative;z-index:1;max-width:520px;margin:18px 0 0;color:#cbd5e1;font-size:16px;line-height:1.7}.auth-points{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:10px;margin-top:32px}.auth-points span{padding:10px 13px;border-radius:999px;background:#ffffff1a;color:#e2e8f0;border:1px solid rgba(255,255,255,.12);font-size:13px;font-weight:800}.auth-card{padding:34px;border-radius:34px;background:#fffffff5;border:1px solid rgba(226,232,240,.95);box-shadow:0 24px 70px #0f172a1f}.auth-card-header{margin-bottom:24px}.auth-card-header h2{margin:0;color:#0f172a;font-size:36px;letter-spacing:-.04em}.auth-card-header span{display:block;margin-top:8px;color:#64748b;font-size:14px}.auth-form{display:flex;flex-direction:column;gap:16px}.form-group{display:flex;flex-direction:column;gap:7px}.form-group label{color:#334155;font-size:13px;font-weight:900}.form-group input,.form-group select{height:50px;border:1px solid #dbe3ef;border-radius:16px;padding:0 15px;background:#fff;color:#0f172a;outline:none;font-size:14px}.form-group input:focus,.form-group select:focus{border-color:#2563eb;box-shadow:0 0 0 4px #2563eb1c}.auth-submit{height:52px;border:none;border-radius:17px;background:linear-gradient(135deg,#2563eb,#4f46e5);color:#fff;font-weight:950;cursor:pointer;margin-top:6px;box-shadow:0 16px 34px #2563eb3d}.auth-submit:disabled{opacity:.65;cursor:not-allowed}.auth-switch{margin:22px 0 0;text-align:center;color:#64748b;font-size:14px}.auth-switch a{color:#2563eb;font-weight:900;text-decoration:none}.auth-switch a:hover{text-decoration:underline}@media(max-width:900px){.auth-shell{grid-template-columns:1fr}.auth-brand-panel h1{font-size:38px}}@media(max-width:640px){.auth-page{padding:24px 16px}.auth-brand-panel,.auth-card{border-radius:26px;padding:26px}.auth-brand-panel h1{font-size:34px}.auth-card-header h2{font-size:32px}}
