:root{
  --bg:#f6f8fb;
  --panel:#ffffff;
  --ink:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;
  --soft:#f1f5f9;
  --blue:#2563eb;
  --cyan:#06b6d4;
  --green:#10b981;
  --amber:#f59e0b;
  --red:#ef4444;
  --dark:#08111f;
  --dark2:#0f1b2d;
  --shadow:0 20px 60px rgba(15,23,42,.08);
  --mono:"IBM Plex Mono",ui-monospace,monospace;
  --font:"Inter",system-ui,sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font);
  background:
    radial-gradient(circle at 78% 0,rgba(37,99,235,.10),transparent 32%),
    radial-gradient(circle at 25% 12%,rgba(6,182,212,.12),transparent 28%),
    var(--bg);
  color:var(--ink);
}

a{text-decoration:none;color:inherit}

.app-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
}

.sidebar{
  position:sticky;
  top:0;
  height:100vh;
  padding:24px 18px;
  border-right:1px solid var(--line);
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(18px);
  display:flex;
  flex-direction:column;
  gap:24px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px;
}

.brand-mark{
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  color:white;
  font-weight:800;
  background:linear-gradient(135deg,var(--blue),var(--cyan));
  box-shadow:0 14px 34px rgba(37,99,235,.28);
}

.brand strong{
  display:block;
  font-size:17px;
  letter-spacing:-.03em;
}

.brand small{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-top:2px;
}

.side-nav{
  display:grid;
  gap:6px;
}

.side-nav a{
  padding:11px 12px;
  border-radius:12px;
  color:#475569;
  font-size:14px;
  font-weight:600;
}

.side-nav a:hover,
.side-nav a.active{
  color:#0f172a;
  background:#eef6ff;
}

.side-card{
  margin-top:auto;
  padding:16px;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(180deg,#fff,#f8fafc);
}

.side-card span{
  display:block;
  font-family:var(--mono);
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--blue);
  margin-bottom:8px;
}

.side-card strong{
  display:block;
  font-size:15px;
}

.side-card p{
  margin:8px 0 0;
  color:var(--muted);
  line-height:1.5;
  font-size:12px;
}

.main{
  min-width:0;
  padding:34px;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:28px;
  margin-bottom:26px;
}

.eyebrow{
  font-family:var(--mono);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.14em;
  color:var(--blue);
  font-weight:700;
  margin:0 0 10px;
}

h1{
  max-width:900px;
  font-size:clamp(38px,5vw,72px);
  line-height:.95;
  letter-spacing:-.06em;
  margin:0;
}

.subhead{
  max-width:880px;
  margin:18px 0 0;
  font-size:18px;
  line-height:1.65;
  color:#475569;
}

.top-actions{
  display:flex;
  gap:10px;
  flex-shrink:0;
}

.btn{
  min-height:44px;
  padding:0 16px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:14px;
  border:1px solid var(--line);
}

.btn-primary{
  background:var(--ink);
  color:#fff;
  border-color:var(--ink);
}

.btn-secondary{
  background:#fff;
  color:var(--ink);
}

.hero-grid{
  display:grid;
  grid-template-columns:minmax(360px,.85fr) minmax(0,1.15fr);
  gap:18px;
  margin-bottom:22px;
}

.money-card,
.plain-card,
.panel,
.table-card{
  border:1px solid var(--line);
  background:rgba(255,255,255,.92);
  border-radius:26px;
  box-shadow:var(--shadow);
}

.money-card{
  padding:26px;
  background:
    radial-gradient(circle at 80% 0,rgba(16,185,129,.18),transparent 35%),
    linear-gradient(180deg,#fff,#f8fafc);
}

.card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}

.card-top b{
  color:#047857;
  background:#dcfce7;
  padding:6px 9px;
  border-radius:999px;
  font-size:11px;
}

.big-money{
  margin-top:20px;
  font-size:clamp(48px,7vw,86px);
  line-height:.9;
  letter-spacing:-.07em;
  font-weight:800;
  color:#047857;
}

.money-card p{
  color:#475569;
  line-height:1.55;
  font-size:14px;
}

.money-breakdown{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:22px;
}

.money-breakdown div{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:13px;
}

.money-breakdown span{
  display:block;
  color:var(--muted);
  font-size:11px;
}

.money-breakdown strong{
  display:block;
  margin-top:4px;
  font-size:18px;
}

.plain-card{
  padding:30px;
}

.section-tag{
  display:inline-flex;
  font-family:var(--mono);
  font-size:10px;
  color:var(--blue);
  background:#eff6ff;
  border:1px solid #bfdbfe;
  padding:7px 10px;
  border-radius:999px;
  text-transform:uppercase;
  letter-spacing:.12em;
  font-weight:700;
}

.plain-card h2,
.section h2,
.panel h2{
  margin:18px 0 12px;
  font-size:clamp(28px,3vw,44px);
  line-height:1.02;
  letter-spacing:-.045em;
}

.plain-card p,
.panel p{
  color:#475569;
  line-height:1.62;
  font-size:16px;
}

.flow-row{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:28px;
}

.flow-row div{
  padding:10px 12px;
  border-radius:12px;
  background:#f8fafc;
  border:1px solid var(--line);
  font-weight:700;
  font-size:13px;
}

.flow-row i{
  width:22px;
  height:2px;
  background:#cbd5e1;
}

.section{
  margin-top:22px;
}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:24px;
  margin-bottom:14px;
}

.section-head p:last-child{
  max-width:560px;
  color:#475569;
  line-height:1.6;
}

.table-card{
  overflow:hidden;
}

.table-row{
  display:grid;
  grid-template-columns:90px 1.7fr .8fr .8fr .9fr .9fr .8fr;
  gap:14px;
  align-items:center;
  padding:16px 18px;
  border-bottom:1px solid var(--line);
  font-size:14px;
}

.table-head{
  background:#f8fafc;
  color:#64748b;
  font-family:var(--mono);
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-weight:700;
}

.table-row.hot{
  background:linear-gradient(90deg,rgba(16,185,129,.08),transparent);
}

.table-row strong{
  font-weight:800;
}

.money{
  color:#047857;
  font-weight:800;
}

.pill{
  display:inline-flex;
  align-items:center;
  padding:6px 8px;
  border-radius:999px;
  background:#eef2ff;
  color:#3730a3;
  font-size:11px;
  font-weight:800;
}

.pill.urgent{
  background:#fee2e2;
  color:#991b1b;
}

.table-note{
  padding:13px 18px;
  font-size:12px;
  color:#64748b;
  background:#f8fafc;
}

.two-col{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.panel{
  padding:26px;
}

.payer-list{
  display:grid;
  gap:10px;
  margin-top:22px;
}

.payer-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:15px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#f8fafc;
}

.payer-item strong{
  display:block;
}

.payer-item span{
  display:block;
  color:var(--muted);
  font-size:13px;
  margin-top:3px;
}

.payer-item b{
  color:#047857;
  font-size:18px;
}

.dark-graph{
  background:
    radial-gradient(circle at 80% 0,rgba(6,182,212,.20),transparent 35%),
    linear-gradient(180deg,var(--dark2),var(--dark));
  color:#fff;
  border-color:rgba(255,255,255,.08);
}

.graph-head{
  display:flex;
  justify-content:space-between;
  color:#cbd5e1;
  margin-bottom:24px;
}

.graph-head span{
  font-family:var(--mono);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.12em;
}

.bar-row{
  display:grid;
  grid-template-columns:110px 1fr 80px;
  gap:12px;
  align-items:center;
  margin-bottom:18px;
  font-size:13px;
}

.bar-row div{
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.1);
  overflow:hidden;
}

.bar-row i{
  display:block;
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--cyan),var(--green));
}

.bar-row b{
  color:#86efac;
  text-align:right;
}

.graph-callout{
  margin-top:26px;
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,.08);
  color:#dbeafe;
  line-height:1.5;
}

.action-steps{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}

.step{
  padding:22px;
  border-radius:22px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}

.step span{
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:13px;
  background:#f1f5f9;
  color:#64748b;
  font-weight:800;
  font-family:var(--mono);
  font-size:12px;
}

.step.active span{
  background:#dcfce7;
  color:#047857;
}

.step h3{
  margin:18px 0 8px;
  font-size:20px;
  letter-spacing:-.03em;
}

.step p{
  margin:0;
  color:#64748b;
  line-height:1.55;
  font-size:14px;
}

.memo-paper{
  margin-top:22px;
  padding:22px;
  border-radius:20px;
  background:#fff;
  border:1px solid var(--line);
}

.memo-paper h3{
  margin:0 0 12px;
  font-size:22px;
}

.memo-paper ul{
  color:#334155;
  line-height:1.8;
  padding-left:18px;
}

.memo-paper button{
  border:0;
  border-radius:12px;
  background:var(--blue);
  color:#fff;
  font-weight:800;
  min-height:42px;
  padding:0 16px;
}

.integrity-list{
  display:grid;
  gap:10px;
  margin-top:20px;
}

.integrity-list div{
  display:flex;
  align-items:center;
  gap:10px;
  color:#334155;
  font-weight:700;
}

.integrity-list span{
  width:10px;
  height:10px;
  border-radius:999px;
  background:var(--green);
  box-shadow:0 0 0 4px rgba(16,185,129,.14);
}

.rise-in{
  animation:rise .45s ease both;
}

@keyframes rise{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:translateY(0)}
}

@media(max-width:1100px){
  .app-shell{grid-template-columns:1fr}
  .sidebar{
    position:relative;
    height:auto;
    flex-direction:row;
    align-items:center;
    overflow-x:auto;
  }
  .side-nav{display:flex;white-space:nowrap}
  .side-card{display:none}
  .hero-grid,.two-col{grid-template-columns:1fr}
  .action-steps{grid-template-columns:repeat(2,1fr)}
  .topbar{flex-direction:column}
}

@media(max-width:760px){
  .main{padding:20px}
  .sidebar{padding:14px}
  .top-actions{width:100%;flex-direction:column}
  .btn{width:100%}
  h1{font-size:42px}
  .money-breakdown,.action-steps{grid-template-columns:1fr}
  .table-card{overflow-x:auto}
  .table-row{min-width:980px}
}
