:root{--bg: #0a1210;--surface: #111f1a;--surface-hover: #1a2e26;--border: #1f3d32;--text: #e8f5ef;--text-muted: #7a9e8e;--primary: #10b981;--primary-hover: #059669;--success: #34d399;--warning: #f59e0b;--danger: #ef4444;--accent: #6ee7b7}*{box-sizing:border-box;margin:0;padding:0}body{font-family:DM Sans,system-ui,sans-serif;background:var(--bg);color:var(--text);line-height:1.5;min-height:100vh}.app{display:flex;min-height:100vh}.sidebar{width:260px;background:var(--surface);border-right:1px solid var(--border);padding:1.5rem;display:flex;flex-direction:column}.logo{font-size:1.25rem;font-weight:700;margin-bottom:.25rem;color:var(--accent)}.logo-sub{font-size:.75rem;color:var(--text-muted);margin-bottom:2rem}.nav-link{display:block;padding:.75rem 1rem;color:var(--text-muted);text-decoration:none;border-radius:8px;margin-bottom:.25rem;transition:all .15s}.nav-link:hover,.nav-link.active{background:var(--surface-hover);color:var(--text)}.main{flex:1;padding:2rem;overflow-y:auto}.header{margin-bottom:2rem}.header h1{font-size:1.75rem;font-weight:600}.header p{color:var(--text-muted);margin-top:.25rem}.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin-bottom:2rem}.card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.25rem}.card-label{font-size:.8rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;margin-bottom:.5rem}.card-value{font-size:1.5rem;font-weight:700}.card-value.success{color:var(--success)}.card-value.warning{color:var(--warning)}.card-value.accent{color:var(--accent)}.table-container{background:var(--surface);border:1px solid var(--border);border-radius:12px;overflow:hidden}table{width:100%;border-collapse:collapse}th,td{padding:.875rem 1rem;text-align:left;border-bottom:1px solid var(--border)}th{font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);background:var(--surface-hover)}tr:last-child td{border-bottom:none}.badge{display:inline-block;padding:.2rem .6rem;border-radius:999px;font-size:.75rem;font-weight:500}.badge.captured,.badge.settled,.badge.approved{background:#10b98133;color:var(--success)}.badge.pending{background:#f59e0b33;color:var(--warning)}.badge.failed{background:#ef444433;color:var(--danger)}.badge.active{background:#10b98133;color:var(--primary)}.btn{padding:.625rem 1.25rem;border:none;border-radius:8px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .15s}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-hover)}.btn-secondary{background:var(--surface-hover);color:var(--text);border:1px solid var(--border)}.btn-secondary:hover{border-color:var(--primary)}.btn-secondary-sm{padding:.35rem .75rem;background:var(--surface-hover);color:var(--text);border:1px solid var(--border);border-radius:6px;font-size:.75rem;cursor:pointer}.btn-secondary-sm:hover{border-color:var(--primary)}.success-notice{background:#10b9811f;border:1px solid rgba(16,185,129,.35);color:var(--success);border-radius:8px;padding:.85rem 1rem;font-size:.9rem;margin-bottom:1rem}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:2rem}.login-card{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:2.5rem;width:100%;max-width:400px}.login-card h1{font-size:1.5rem;margin-bottom:.5rem}.login-card p{color:var(--text-muted);margin-bottom:2rem;font-size:.9rem}.form-group{margin-bottom:1.25rem}.form-group label{display:block;font-size:.875rem;margin-bottom:.5rem;color:var(--text-muted)}.form-group input,.form-group select{width:100%;padding:.75rem 1rem;background:var(--bg);border:1px solid var(--border);border-radius:8px;color:var(--text);font-size:.9rem}.form-group input:focus,.form-group select:focus{outline:none;border-color:var(--primary)}.error{color:var(--danger);font-size:.875rem;margin-bottom:1rem}.section-title{font-size:1.1rem;font-weight:600;margin-bottom:1rem}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:.5rem}.status-dot.ok{background:var(--success)}.status-dot.down{background:var(--danger)}.compliance-notice{background:#10b9811a;border:1px solid rgba(16,185,129,.25);border-radius:8px;padding:1rem;font-size:.85rem;color:var(--text-muted);margin-top:auto}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}@media (max-width: 900px){.grid-2{grid-template-columns:1fr}.sidebar{display:none}}.live-header{display:flex;align-items:center;gap:1.5rem;margin-bottom:1.5rem;flex-wrap:wrap}.live-indicator{display:flex;align-items:center;gap:.5rem;color:var(--success);font-weight:600;font-size:.9rem}.live-pulse{width:10px;height:10px;border-radius:50%;background:var(--success);animation:pulse 1.5s ease-in-out infinite}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.85)}}.live-updated{color:var(--text-muted);font-size:.85rem}.live-header select{padding:.5rem .75rem;background:var(--surface);border:1px solid var(--border);border-radius:8px;color:var(--text);font-size:.85rem}.bar-row{margin-bottom:1rem}.bar-row:last-child{margin-bottom:0}.bar-label{display:flex;justify-content:space-between;font-size:.85rem;margin-bottom:.35rem}.bar-label span{color:var(--text-muted)}.bar-track{height:8px;background:var(--bg);border-radius:4px;overflow:hidden}.bar-fill{height:100%;background:linear-gradient(90deg,var(--primary),var(--accent));border-radius:4px;transition:width .5s ease}.bar-meta{font-size:.75rem;color:var(--text-muted);margin-top:.25rem}.webhook-form{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.25rem}.checkbox-group{display:flex;flex-direction:column;gap:.5rem}.checkbox-label{display:flex;align-items:center;gap:.5rem;font-size:.9rem;cursor:pointer}.secret-notice{margin-top:1rem;background:#f59e0b1a;border:1px solid rgba(245,158,11,.3);border-radius:8px;padding:1rem;font-size:.85rem}.secret-notice code{display:block;margin:.5rem 0;padding:.5rem;background:var(--bg);border-radius:4px;word-break:break-all;font-size:.8rem}.btn-danger-sm{padding:.35rem .75rem;background:#ef444426;color:var(--danger);border:1px solid rgba(239,68,68,.3);border-radius:6px;font-size:.75rem;cursor:pointer}.btn-danger-sm:hover{background:#ef444440}.form-row{display:flex;gap:1rem}
