/* FirewallBilling provider console: liquid glass over a slowly drifting light field. */
:root {
  --ink: #eef3ff; --muted: rgba(226, 234, 255, .62); --faint: rgba(226, 234, 255, .38);
  --glass: rgba(255, 255, 255, .075); --glass-2: rgba(255, 255, 255, .13); --edge: rgba(255, 255, 255, .16); --edge-hi: rgba(255, 255, 255, .42);
  --cyan: #67e8f9; --blue: #60a5fa; --violet: #a78bfa; --pink: #f0abfc;
  --green: #6ee7b7; --amber: #fcd34d; --red: #fca5a5;
  --radius: 26px; --radius-sm: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--ink); background: #060913; font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, sans-serif;
       -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ---------- the light field behind the glass ---------- */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
       background: radial-gradient(1200px 700px at 10% -10%, #14204a 0%, transparent 60%), radial-gradient(1000px 800px at 110% 110%, #2a1450 0%, transparent 55%), #060913; }
.orb { position: absolute; display: block; border-radius: 50%; filter: blur(70px); opacity: .55; mix-blend-mode: screen; }
.o1 { width: 520px; height: 520px; left: -120px; top: -80px; background: radial-gradient(circle at 30% 30%, #22d3ee, #1d4ed8 70%); animation: drift1 26s ease-in-out infinite alternate; }
.o2 { width: 620px; height: 620px; right: -160px; top: 18%; background: radial-gradient(circle at 60% 40%, #a855f7, #4c1d95 70%); animation: drift2 32s ease-in-out infinite alternate; }
.o3 { width: 420px; height: 420px; left: 30%; bottom: -160px; background: radial-gradient(circle, #f472b6, #7e22ce 70%); opacity: .38; animation: drift3 28s ease-in-out infinite alternate; }
.o4 { width: 300px; height: 300px; left: 55%; top: 6%; background: radial-gradient(circle, #34d399, #0e7490 70%); opacity: .28; animation: drift1 36s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(140px, 90px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-160px, 120px) scale(.9); } }
@keyframes drift3 { to { transform: translate(120px, -110px) scale(1.2); } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }

#app { position: relative; z-index: 1; }

/* ---------- glass ---------- */
.glass { position: relative; background: linear-gradient(155deg, var(--glass-2), var(--glass) 42%, rgba(255, 255, 255, .045));
         -webkit-backdrop-filter: blur(26px) saturate(170%); backdrop-filter: blur(26px) saturate(170%);
         border: 1px solid var(--edge); border-radius: var(--radius);
         box-shadow: inset 0 1px 0 var(--edge-hi), inset 0 -1px 0 rgba(255, 255, 255, .05), inset 1px 0 0 rgba(255, 255, 255, .06),
                     0 24px 60px -24px rgba(0, 0, 0, .65), 0 2px 6px rgba(0, 0, 0, .25); }
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
                 background: radial-gradient(120% 60% at 15% 0%, rgba(255, 255, 255, .16), transparent 55%); }
.glass > * { position: relative; }

h1, h2 { margin: 0; letter-spacing: -.02em; }
h2 { font-size: 16px; font-weight: 650; }
.muted { color: var(--muted); }
.block { display: block; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; }
.err { color: var(--red); font-size: 13px; margin: 8px 0 0; }
.empty { padding: 18px 4px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28);
       font: inherit; font-weight: 650; color: #071022; cursor: pointer;
       background: linear-gradient(135deg, #a5f3fc, #93c5fd 45%, #c4b5fd); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 8px 24px -8px rgba(103, 232, 249, .55);
       transition: transform .15s, box-shadow .15s, filter .15s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.ghost { color: var(--ink); background: rgba(255, 255, 255, .08); border-color: var(--edge); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn.ghost:hover { background: rgba(255, 255, 255, .14); }
.btn.sm { padding: 6px 12px; font-size: 12.5px; }
.btn.wide { width: 100%; margin-top: 18px; }
.btn.danger { color: var(--red); }
.icon { background: none; border: 0; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 12px 0 6px; }
input, select { width: 100%; padding: 11px 14px; border-radius: 14px; font: inherit; color: var(--ink);
                background: rgba(5, 10, 25, .45); border: 1px solid var(--edge); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); outline: none; }
input:focus, select:focus { border-color: rgba(103, 232, 249, .7); box-shadow: 0 0 0 4px rgba(103, 232, 249, .14), inset 0 1px 2px rgba(0, 0, 0, .35); }
select option { background: #0c1226; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--cyan); flex: none; padding: 0; box-shadow: none; }
label.check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-weight: 500; font-size: 13.5px; margin: 16px 0 0; }
select.slim { width: auto; padding: 8px 12px; border-radius: 999px; }

/* ---------- sign in ---------- */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.signin-card { width: min(400px, 100%); padding: 36px 32px 30px; text-align: left; }
.signin-card h1 { font-size: 26px; margin-top: 16px; }
.signin-card > .muted { margin: 2px 0 10px; }
.mark { width: 46px; height: 46px; border-radius: 15px; background: conic-gradient(from 210deg, var(--cyan), var(--blue), var(--violet), var(--pink), var(--cyan));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 30px -6px rgba(167, 139, 250, .7); }
.mark.sm { width: 30px; height: 30px; border-radius: 10px; }

/* ---------- shell ---------- */
#console { max-width: 1240px; margin: 0 auto; padding: 18px 20px 64px; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 16px; border-radius: 999px; position: sticky; top: 14px; z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand b { display: block; font-size: 14.5px; letter-spacing: -.01em; } .brand small { display: block; font-size: 11.5px; color: var(--muted); margin-top: -2px; }
.tabs { display: flex; gap: 4px; margin: 0 auto; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .08); }
.tab { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; font-size: 13.5px; padding: 7px 16px; border-radius: 999px; cursor: pointer; transition: color .15s, background .2s; }
.tab:hover { color: var(--ink); }
.tab.on { color: #071022; background: linear-gradient(135deg, rgba(236, 254, 255, .95), rgba(219, 234, 254, .9)); box-shadow: inset 0 1px 0 #fff, 0 6px 18px -6px rgba(103, 232, 249, .6); }
.me { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.notice { margin: 16px 0 0; padding: 12px 18px; border-radius: var(--radius-sm); }
.notice.bad { color: var(--red); }
#view { margin-top: 22px; }

.grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }   /* wide tables scroll inside their panel on phones */
.two-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.stack { display: grid; gap: 18px; }
.panel { padding: 20px 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.head-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- dashboard ---------- */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; }
.hero .label, .stat .label { font-size: 12.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.hero-value { font-size: clamp(38px, 6vw, 60px); font-weight: 780; letter-spacing: -.035em; line-height: 1.05; margin: 6px 0 12px; font-variant-numeric: tabular-nums;
              background: linear-gradient(180deg, #fff, #cfe0ff 70%, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-split { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 13.5px; }
.hero-split span, .legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; }
.dot.c1 { background: linear-gradient(135deg, #a5f3fc, #3b82f6); box-shadow: 0 0 12px rgba(103, 232, 249, .8); }
.dot.c2 { background: linear-gradient(135deg, #ddd6fe, #8b5cf6); box-shadow: 0 0 12px rgba(167, 139, 250, .8); }
.ring-wrap { flex: none; width: 150px; }
.ring { width: 100%; display: block; }
.ring circle { fill: none; stroke-width: 13; stroke-linecap: round; }
.ring-bg { stroke: rgba(255, 255, 255, .08); }
.ring-a { stroke: var(--cyan); filter: drop-shadow(0 0 6px rgba(103, 232, 249, .7)); }
.ring-b { stroke: var(--violet); filter: drop-shadow(0 0 6px rgba(167, 139, 250, .7)); }
.ring-big { fill: var(--ink); font-size: 24px; font-weight: 760; }
.ring-small { fill: var(--muted); font-size: 10.5px; }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.stat { padding: 16px 18px; border-radius: 22px; }
.stat .value { font-size: 22px; font-weight: 740; letter-spacing: -.02em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat .sub { font-size: 12px; color: var(--faint); }
.stat.warn .value { color: var(--amber); }
.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); }
.chart { width: 100%; height: auto; display: block; }
.grid-line { stroke: rgba(255, 255, 255, .07); }
.axis { fill: var(--faint); font-size: 11px; }
.leaders { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.leaders .row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.track { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .07); margin: 6px 0 4px; overflow: hidden; }
.track .bar { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--violet)); box-shadow: 0 0 14px rgba(103, 232, 249, .6); }
.watch { list-style: none; margin: 0; padding: 0; }
.watch li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.watch li:last-child { border-bottom: 0; }
.watch small { display: block; }

/* ---------- tables ---------- */
.table-panel { padding-bottom: 8px; }
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, .1); white-space: nowrap; }
td { padding: 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, .06); vertical-align: middle; white-space: nowrap; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(255, 255, 255, .04); }
tbody tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
td.acts { display: flex; gap: 6px; justify-content: flex-end; }
.owed { color: var(--amber); font-weight: 650; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; border: 1px solid transparent; backdrop-filter: blur(6px); }
.chip.green { color: var(--green); background: rgba(110, 231, 183, .12); border-color: rgba(110, 231, 183, .25); }
.chip.amber { color: var(--amber); background: rgba(252, 211, 77, .12); border-color: rgba(252, 211, 77, .25); }
.chip.red { color: var(--red); background: rgba(252, 165, 165, .12); border-color: rgba(252, 165, 165, .25); }
.chip.dim { color: var(--muted); background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); }

/* ---------- forms and modals ---------- */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.field.full, .check.full { grid-column: 1 / -1; }
.field small { display: block; margin-top: 5px; font-size: 12px; }
.form-foot, .modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.scrim { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(2, 4, 12, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .18s ease-out; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 24px 26px; animation: rise .22s cubic-bezier(.2, .9, .3, 1.2); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.modal-head h2 { font-size: 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .two-col, .settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  #console { padding: 12px 12px 48px; }
  .topbar { flex-wrap: wrap; border-radius: 24px; top: 8px; }
  .tabs { order: 3; width: 100%; overflow-x: auto; margin: 0; }
  .me #who { display: none; } .me { margin-left: auto; }
  .hero { flex-direction: column; align-items: flex-start; padding: 22px; }
  .ring-wrap { width: 120px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fields { grid-template-columns: 1fr; }
}

.keep { display: flex; align-items: center; gap: 8px; margin: 12px 0 2px; font-size: 13px; color: var(--muted); cursor: pointer; }
.keep input { width: 16px; height: 16px; margin: 0; accent-color: var(--violet); }
.qr-box { display: grid; place-items: center; padding: 12px; margin: 10px auto; background: #fff; border-radius: 16px; width: fit-content; }
.qr-box img { display: block; width: 220px; height: 220px; image-rendering: pixelated; }
.backup-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; padding: 14px 16px; margin-top: 8px; border: 1px dashed var(--edge-hi); border-radius: 14px; font: 15px ui-monospace, Consolas, monospace; }
.mono { font-family: ui-monospace, Consolas, monospace; }

/* delete buttons and read-only link boxes */
.btn.danger-fill { background: linear-gradient(135deg, #f87171, #b91c1c); color: #fff; }
.btn.sm.danger { color: var(--red); }
input.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; }
