* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Stack Sans Text Variable", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 0%, rgba(38,87,255,.16), transparent 28%),
    radial-gradient(circle at 84% 4%, rgba(124,58,237,.14), transparent 25%),
    #f3f5f9;
  color: #111827;
}
a { color: inherit; text-decoration: none; }
.nav {
  position: sticky; top: 18px; z-index: 10;
  width: min(1200px, calc(100% - 32px)); margin: 18px auto 0;
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
  background: rgba(255,255,255,.78); border: 1px solid rgba(255,255,255,.8);
  border-radius: 26px; padding: 12px; backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(15,23,42,.08);
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 900; letter-spacing: -.06em; }
.mark { width: 42px; height: 42px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,#2657ff,#7c3aed); box-shadow: 0 12px 28px rgba(38,87,255,.28); }
.links { display: flex; justify-content: center; gap: 6px; overflow-x: auto; }
.links a { color: #6b7280; font-size: 13px; font-weight: 850; padding: 10px 12px; border-radius: 999px; white-space: nowrap; }
.links a.active, .links a:hover { background: #111827; color: white; box-shadow: 0 12px 26px rgba(17,24,39,.18); }
.actions { display: flex; gap: 8px; }
button, .button { border: 0; background: #2657ff; color: white; padding: 11px 14px; border-radius: 14px; font-weight: 850; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
button.secondary, .button.secondary { background: white; color: #111827; border: 1px solid #e5e7eb; box-shadow: none; }
button.danger, .button.danger { background: #dc2626; }
main { width: min(1200px, calc(100% - 32px)); margin: 28px auto 48px; }
.hero-grid { display: grid; grid-template-columns: 1.4fr .75fr; gap: 18px; margin-bottom: 18px; }
.card, .hero { background: rgba(255,255,255,.88); border: 1px solid #e5e7eb; border-radius: 24px; padding: 22px; box-shadow: 0 20px 60px rgba(15,23,42,.08); backdrop-filter: blur(18px); }
.hero { border-radius: 30px; }
.dark { background: #111827; color: white; }
.dark p, .dark .label { color: #cbd5e1; }
.eyebrow { margin: 0; color: #2657ff; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
h1 { margin: 6px 0 0; font-size: clamp(28px, 4vw, 42px); line-height: 1; letter-spacing: -.06em; }
h2 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
p { color: #6b7280; line-height: 1.45; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border-radius: 999px; background: white; border: 1px solid #e5e7eb; color: #111827; font-size: 13px; font-weight: 850; }
.dark .chip { background: rgba(255,255,255,.1); color: white; border-color: rgba(255,255,255,.18); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 18px; }
.label { color: #6b7280; font-size: 13px; font-weight: 750; }
.value { margin-top: 8px; font-size: 30px; font-weight: 900; letter-spacing: -.05em; }
.note { margin-top: 8px; color: #6b7280; font-size: 13px; }
.charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 18px; }
.chart-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 16px; }
.kpi { font-size: 22px; font-weight: 900; letter-spacing: -.04em; }
.bars { height: 112px; display: flex; align-items: flex-end; gap: 10px; }
.bar-group { flex: 1; display: grid; gap: 6px; }
.bar-pair { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 88px; }
.bar { width: 9px; border-radius: 999px 999px 4px 4px; background: #2657ff; }
.bar.green { background: #0f9f6e; }
.bar-label { text-align: center; color: #6b7280; font-size: 11px; font-weight: 850; }
.donut-wrap { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; }
.donut { width: 112px; height: 112px; border-radius: 999px; background: conic-gradient(#0f9f6e 0 38%, #2657ff 38% 65%, #d97706 65% 80%, #ea580c 80% 90%, #dc2626 90% 100%); position: relative; }
.donut:after { content: ""; position: absolute; inset: 24px; border-radius: 999px; background: white; border: 1px solid #e5e7eb; }
.legend { display: grid; gap: 8px; font-size: 13px; font-weight: 850; color: #6b7280; }
.legend-row { display: flex; justify-content: space-between; gap: 12px; }
.legend-label { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 999px; background: #2657ff; }
.line-box { height: 118px; border: 1px solid #e5e7eb; border-radius: 16px; background: #f9fafc; padding: 14px; }
.notice { margin-bottom: 18px; border-radius: 22px; padding: 18px; border: 1px solid #ddd0ff; background: linear-gradient(135deg,#f1eaff,#fff); }
.notice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.notice-card { padding: 14px; border-radius: 18px; border: 1px solid #cdd8ff; background: linear-gradient(135deg,#fff,#e8edff); }
.notice-card.orange { border-color: #fed7aa; background: linear-gradient(135deg,#fff,#fff1e7); }
.table-card { margin-top: 18px; }
table { width: 100%; border-collapse: collapse; margin-top: 16px; }
th, td { padding: 14px 10px; border-bottom: 1px solid #e5e7eb; text-align: left; font-size: 14px; }
th { color: #6b7280; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.client { display: flex; align-items: center; gap: 10px; font-weight: 900; }
.avatar { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: #e8edff; color: #2657ff; font-weight: 900; }
.badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; border: 1px solid transparent; }
.purple { background: #f1eaff; color: #7c3aed; border-color: #ddd0ff; }
.orange { background: #fff1e7; color: #ea580c; border-color: #fed7aa; }
.red { background: #fdecec; color: #dc2626; border-color: #fecaca; }
.green { background: #e7f8f1; color: #0f9f6e; border-color: #bbf7d0; }
.blue { background: #e8edff; color: #2657ff; border-color: #cdd8ff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.field { display: grid; gap: 7px; margin-bottom: 14px; font-size: 13px; font-weight: 850; }
input, select, textarea { width: 100%; border: 1px solid #e5e7eb; border-radius: 14px; padding: 12px 13px; font-family: inherit; font-size: 14px; }
textarea { min-height: 110px; resize: vertical; }
.option-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.option { border: 1px solid #e5e7eb; border-radius: 16px; padding: 12px; background: white; }
.option.active { border-color: #cdd8ff; background: #e8edff; }
.pay-card { overflow: hidden; border-radius: 30px; background: white; border: 1px solid #e5e7eb; box-shadow: 0 20px 60px rgba(15,23,42,.08); }
.pay-head { padding: 24px; background: linear-gradient(135deg,#111827,#26324a); color: white; display: flex; justify-content: space-between; gap: 18px; }
.pay-head p { color: #cbd5e1; }
.pay-body { display: grid; grid-template-columns: 1fr .82fr; gap: 18px; padding: 24px; }
.amount { font-size: clamp(40px, 6vw, 64px); font-weight: 900; letter-spacing: -.07em; margin: 10px 0; }
.payment-method { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid #e5e7eb; border-radius: 18px; background: #f9fafc; padding: 14px; }
@media (max-width: 900px) {
  .nav { position: static; grid-template-columns: 1fr; width: calc(100% - 24px); margin-top: 12px; }
  .links { justify-content: flex-start; }
  .actions { display: grid; grid-template-columns: 1fr 1fr; }
  main { width: calc(100% - 24px); }
  .hero-grid, .stats, .charts, .notice-grid, .form-grid, .pay-body, .option-grid { grid-template-columns: 1fr; }
}
