* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #f5f7fb;
  color: #101828;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px;
}

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

.brand {
  font-size: 28px;
  font-weight: 700;
}

.muted {
  color: #667085;
}

.card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(16,24,40,0.06);
  margin-bottom: 20px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  border: 0;
  background: #111827;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

.btn.light {
  background: #fff;
  color: #111827;
  border: 1px solid #d0d5dd;
}

.btn.blue {
  background: #1570ef;
}

.btn.red {
  background: #d92d20;
}

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d0d5dd;
  background: #fff;
  margin-top: 6px;
  margin-bottom: 16px;
}

label {
  font-weight: 600;
  font-size: 14px;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th, .table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #eaecf0;
  vertical-align: top;
}

.kpi {
  font-size: 34px;
  font-weight: 700;
}

.hero {
  padding: 60px 0 30px;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.05;
  margin: 0 0 12px;
}

.hero p {
  font-size: 18px;
  color: #667085;
  max-width: 780px;
}

.item-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid #eaecf0;
}

.item-title {
  font-size: 20px;
  font-weight: 700;
}

.item-desc {
  color: #667085;
  margin-top: 8px;
  line-height: 1.6;
}

.price {
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}

.total-box {
  background: linear-gradient(135deg, #0f172a, #1d2939);
  color: #fff;
  border-radius: 24px;
  padding: 28px;
}

.small {
  font-size: 13px;
  color: #667085;
}

.notice {
  padding: 14px 16px;
  border-radius: 14px;
  background: #fef3f2;
  color: #b42318;
  margin-bottom: 16px;
}

.success {
  padding: 14px 16px;
  border-radius: 14px;
  background: #ecfdf3;
  color: #027a48;
  margin-bottom: 16px;
}

.locked {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-size: 14px;
}

.footer {
  margin-top: 40px;
  padding: 18px 0 40px;
  color: #667085;
  font-size: 14px;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

pre.debug {
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 12px;
  overflow: auto;
}