:root {
  --bg: #07111f;
  --panel: rgba(12, 24, 43, 0.88);
  --panel-soft: #0f1d33;
  --text: #e5edf8;
  --muted: #91a4c2;
  --line: rgba(148, 163, 184, 0.18);
  --primary: #5eead4;
  --primary-ink: #06281f;
  --danger: #f87171;
  --warning: #fbbf24;
  --success: #4ade80;
  --outstanding: #60a5fa;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(94, 234, 212, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 20%),
    linear-gradient(180deg, #07111f 0%, #091426 100%);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
.shell { max-width: 1320px; margin: 0 auto; padding: 24px; }
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 10px 0 24px;
}
.brand-group { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #60a5fa); color: #06281f; font-weight: 800;
}
.brand-title { font-size: 1.05rem; font-weight: 800; }
.brand-title.large { font-size: 1.6rem; }
.brand-subtitle, .muted, .small { color: var(--muted); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-user { color: var(--muted); }
.flash-stack { display: grid; gap: 10px; margin-bottom: 16px; }
.flash {
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,0.04);
}
.flash-success { border-color: rgba(74, 222, 128, 0.35); }
.flash-error { border-color: rgba(248, 113, 113, 0.35); }
.panel, .hero-card, .invoice-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}
.hero-card {
  display: grid; grid-template-columns: 1.2fr .9fr; gap: 24px; padding: 30px;
  min-height: calc(100vh - 130px); align-items: center;
}
.hero-card h1, .panel h1, .panel h2 { margin: 8px 0 12px; }
.hero-card h1 { font-size: clamp(2.2rem, 5vw, 4.1rem); line-height: 1.02; max-width: 10ch; }
.lead { max-width: 60ch; color: #c5d3e7; font-size: 1.05rem; line-height: 1.7; }
.eyebrow {
  display: inline-flex; padding: 6px 10px; border-radius: 999px; background: rgba(94, 234, 212, 0.12);
  color: var(--primary); font-size: .83rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
}
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.info-pill {
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); padding: 10px 14px; border-radius: 999px;
}
.login-panel, .panel { padding: 24px; }
.form-grid { display: grid; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label span { display: block; margin-bottom: 8px; color: #d7e2f1; font-weight: 600; }
input, select, textarea {
  width: 100%; background: rgba(255,255,255,0.04); color: var(--text); border: 1px solid var(--line);
  padding: 13px 14px; border-radius: 14px; outline: none;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: rgba(94, 234, 212, 0.5); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px;
  padding: 12px 16px; border: 1px solid transparent; font-weight: 700; cursor: pointer;
}
.btn-small { padding: 9px 12px; font-size: .92rem; }
.btn-primary { background: linear-gradient(135deg, var(--primary), #60a5fa); color: var(--primary-ink); }
.btn-secondary { background: rgba(255,255,255,0.04); border-color: var(--line); color: var(--text); }
.btn-danger { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.35); color: #fecaca; }
.btn-oauth { background: rgba(255,255,255,0.05); border-color: var(--line); color: var(--text); }
.divider { display: grid; place-items: center; margin: 16px 0; color: var(--muted); }
.oauth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.note-box {
  padding: 14px; border-radius: 16px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: #c9d6e8;
}
.page-grid.two-col { display: grid; grid-template-columns: .95fr 1.25fr; gap: 20px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: #c4d4e7; font-size: .92rem; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex; padding: 6px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; text-transform: capitalize;
  border: 1px solid transparent;
}
.badge-outstanding { background: rgba(96,165,250,.12); color: #bfdbfe; border-color: rgba(96,165,250,.35); }
.badge-paid { background: rgba(74,222,128,.12); color: #bbf7d0; border-color: rgba(74,222,128,.35); }
.badge-cancelled { background: rgba(248,113,113,.12); color: #fecaca; border-color: rgba(248,113,113,.35); }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.stat-card {
  padding: 18px; border-radius: 18px; background: rgba(255,255,255,0.04); border: 1px solid var(--line);
}
.stat-card span { display: block; color: var(--muted); margin-bottom: 10px; }
.stat-card strong { font-size: 1.65rem; }
.stack-lg { display: grid; gap: 20px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; }
.checkbox-row input { width: auto; }
.invoice-shell { display: grid; gap: 16px; }
.invoice-toolbar { display: flex; justify-content: space-between; align-items: center; }
.invoice-card { padding: 30px; }
.invoice-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.invoice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.invoice-table th, .invoice-table td { padding-left: 0; }
.invoice-total { margin-top: 20px; text-align: right; font-size: 1.5rem; font-weight: 800; }
.mt-lg { margin-top: 20px; }
@media (max-width: 980px) {
  .hero-card, .page-grid.two-col, .grid-2, .stats-grid, .oauth-grid, .invoice-grid, .invoice-head {
    grid-template-columns: 1fr;
  }
  .topbar, .nav-actions, .invoice-toolbar { flex-direction: column; align-items: flex-start; }
  .hero-card { min-height: auto; }
}

.stack-md { display: grid; gap: 16px; }
.section-rule { border: 0; border-top: 1px solid var(--line); margin: 8px 0 4px; }
