:root{--bg:#0f172a;--surface:#1e293b;--surface-2:#334155;--text:#f1f5f9;--text-muted:#94a3b8;--primary:#22c55e;--primary-hover:#16a34a;--danger:#ef4444;--border:#334155;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-family:Vazirmatn,system-ui,-apple-system,Segoe UI,Tahoma,sans-serif}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);min-height:100vh;margin:0}input,button{font-family:inherit;font-size:1rem}.app-shell{flex-direction:column;min-height:100vh;display:flex}.app-header{background:var(--surface);border-bottom:1px solid var(--border);z-index:10;position:sticky;top:0}.app-header-inner{flex-wrap:wrap;align-items:center;gap:1.5rem;max-width:900px;margin:0 auto;padding:.75rem 1rem;display:flex}.brand{font-weight:700}.nav-links{flex:1;gap:1rem;display:flex}.nav-links a{color:var(--text-muted);text-decoration:none}.nav-links a.active{color:var(--text);font-weight:600}.app-main{flex:1;width:100%;max-width:900px;margin:0 auto;padding:1rem}.centered-page{justify-content:center;align-items:center;min-height:100vh;padding:1rem;display:flex}.card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.25rem}.auth-card{width:100%;max-width:360px}.auth-card h1{margin-top:0;font-size:1.25rem}form label{color:var(--text-muted);margin-bottom:.35rem;font-size:.9rem;display:block}form input{border:1px solid var(--border);background:var(--bg);width:100%;color:var(--text);border-radius:8px;margin-bottom:.75rem;padding:.6rem .75rem}button{background:var(--primary);color:#052e16;cursor:pointer;border:none;border-radius:8px;width:100%;padding:.6rem 1rem;font-weight:600}button:hover:not(:disabled){background:var(--primary-hover)}button:disabled{opacity:.6;cursor:not-allowed}.link-button{color:var(--text-muted);background:0 0;width:auto;padding:.4rem 0;text-decoration:underline}.danger-button{background:var(--danger);color:#fff}.page{flex-direction:column;gap:1rem;display:flex}.page-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;display:flex}.page-header button{width:auto}.sub-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1rem;display:grid}.sub-card h2{margin-top:0;font-size:1.05rem}.balance-line{margin:.25rem 0;font-size:1.1rem;font-weight:600}.balance-toman{color:var(--text-muted);margin:0 0 .75rem}.card-actions{justify-content:space-between;align-items:center;gap:.75rem;display:flex}.card-actions a{color:var(--primary)}.card-actions button{width:auto;padding:.4rem .75rem}.error-text{color:var(--danger)}.hint-text{color:var(--text-muted);font-size:.9rem}.back-link{color:var(--text-muted);align-self:flex-start;text-decoration:none}.detail-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;display:grid}.detail-grid h2{color:var(--text-muted);margin-top:0;font-size:1rem}.qr-code{background:#fff;border-radius:8px;width:160px;height:160px;margin:0 auto .75rem;padding:8px;display:block}.link-input{border:1px solid var(--border);background:var(--bg);width:100%;color:var(--text);text-align:left;direction:ltr;border-radius:8px;padding:.5rem .6rem;font-family:monospace;font-size:.8rem}.inline-form{align-items:flex-start;gap:.5rem;display:flex}.inline-form input{flex:1;margin-bottom:0}.inline-form button{white-space:nowrap;width:auto}.table-wrapper{overflow-x:auto}table{border-collapse:collapse;background:var(--surface);border-radius:12px;width:100%;overflow:hidden}th,td{text-align:right;border-bottom:1px solid var(--border);padding:.75rem}th{color:var(--text-muted);font-size:.85rem;font-weight:600}.status-badge{border-radius:999px;padding:.2rem .6rem;font-size:.8rem;display:inline-block}.status-applied{color:#4ade80;background:#22c55e26}.status-paid{color:#facc15;background:#eab30826}.status-pending{color:var(--text-muted);background:#94a3b826}.status-failed{color:#f87171;background:#ef444426}@media (width<=480px){.app-header-inner{padding:.6rem .75rem}.app-main{padding:.75rem}.inline-form{flex-direction:column}.inline-form button{width:100%}}
