.kv-steps {
  position: sticky;
  top: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 22px;
  padding: 6px;
  border-radius: 999px;
  background: #050403;
  border: 1px solid rgba(227, 171, 58, 0.34);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}
.kv-steps ol {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 8px;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.kv-steps ol::-webkit-scrollbar { height: 0; display: none; }
.kv-steps li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 40px;
  margin: 0;
  padding: 0 16px;
  border-radius: 999px;
  color: rgba(247, 244, 238, 0.42);
  font-size: 13px;
  font-weight: 560;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.kv-steps li.is-on {
  background: linear-gradient(135deg, #c4922a, #e3ab3a 46%, #f6d889);
  color: #1a1204;
}
.kv-steps li.is-done { color: #f6d889; }
.kv-steps-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #f7f4ee;
  color: #1a1204;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.kv-steps-go b {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #1a1204;
  color: #f6d889;
  font-size: 11px;
}

.kv-sheet-back, .kvp-custom {
  position: fixed;
  inset: 0;
  z-index: 92;
  background: rgba(5, 4, 3, 0.62);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.kv-sheet-back.is-open, .kvp-custom.is-open { opacity: 1; pointer-events: auto; }
.kvp-custom {
  z-index: 94;
  background: #050403;
  overflow: auto;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.kvp-custom.is-open { transform: none; }
.kv-sheet {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 96;
  width: min(560px, calc(100% - 28px));
  max-height: min(760px, calc(100% - 36px));
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  border-radius: 28px;
  background: #100e0c;
  color: #f7f4ee;
  border: 1px solid rgba(227, 171, 58, 0.28);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -46%) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  font-family: Inter, sans-serif;
}
.kv-sheet.is-open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.kv-sheet-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.kv-sheet-top p { margin: 0; color: #e3ab3a; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.kv-sheet-top h2 {
  margin: 4px 0 0;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: 40px;
  line-height: 0.9;
  font-weight: 700;
}
.kv-x {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(247, 244, 238, 0.16);
  background: transparent;
  color: #f7f4ee;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.kv-due {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 8px;
}
.kv-due div {
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: rgba(227, 171, 58, 0.08);
}
.kv-due span, .kco-due span {
  display: block;
  color: rgba(247, 244, 238, 0.55);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kv-due strong, .kco-due strong {
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}
.kv-lines { overflow: auto; padding-right: 2px; }
.kv-line {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(247, 244, 238, 0.08);
}
.kv-line img { width: 84px; height: 84px; object-fit: contain; }
.kv-line h3 { margin: 0; font-size: 16px; font-weight: 650; }
.kv-line p { margin: 4px 0 10px; color: rgba(247, 244, 238, 0.62); font-size: 13px; }
.kv-line-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kv-line-actions button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(247, 244, 238, 0.14);
  background: transparent;
  color: #f7f4ee;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}
.kv-empty { margin: 12px 0 18px; color: rgba(247, 244, 238, 0.7); line-height: 1.5; }
.kv-fee-note { margin: 12px 0; color: rgba(247, 244, 238, 0.5); font-size: 13px; line-height: 1.45; }
.kv-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  background: linear-gradient(135deg, #9d711b, #e3ab3a 46%, #f6d889);
  color: #1a1204;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}
.kv-dock, .kv-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 70;
  transform: translateX(-50%) translateY(140%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.kv-dock.is-on, .kv-toast.is-on { transform: translateX(-50%) translateY(0); }
.kv-dock, .kv-toast {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  background: rgba(16, 14, 12, 0.94);
  color: #f7f4ee;
  border: 1px solid rgba(227, 171, 58, 0.32);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  font-family: Inter, sans-serif;
}
.kv-dock button, .kv-toast button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #9d711b, #e3ab3a 46%, #f6d889);
  color: #1a1204;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.kco-page {
  min-height: 100vh;
  background:
    radial-gradient(880px 380px at 70% 0%, rgba(227, 171, 58, 0.16), transparent 62%),
    #050403;
}
.kco-page .kv-steps, .kvs-page .kv-steps { position: static; width: min(1120px, calc(100% - 32px)); margin-bottom: 28px; }
.kvs-page { padding: calc(128px + env(safe-area-inset-top, 0px)) 0 88px; }
.kco-field, .kco-field input, .kco-row { box-sizing: border-box; min-width: 0; }
.kco-wrap {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: calc(116px + env(safe-area-inset-top, 0px)) 0 80px;
}
.kco-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}
.kco-main, .kco-summary, .kco-done {
  border: 1px solid rgba(227, 171, 58, 0.22);
  border-radius: 28px;
  padding: 28px 26px;
  background: rgba(16, 14, 12, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}
.kco-summary { position: sticky; top: 108px; }
.kco-main h1, .kco-done h1, .kco-summary h2 {
  margin: 6px 0 8px;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-weight: 700;
  line-height: 0.92;
}
.kco-main h1, .kco-done h1 { font-size: clamp(42px, 5vw, 64px); }
.kco-summary h2 { font-size: 28px; margin-top: 16px; }
.kco-lead { margin: 0 0 18px; color: rgba(247, 244, 238, 0.68); line-height: 1.5; }
#kco-pay-error, #kco-tax-error { margin: 0 0 12px; color: #f6d889; }
.kco-next:disabled { opacity: 0.45; cursor: default; }
.kco-due { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kco-due div { padding: 14px; border-radius: 18px; background: rgba(227, 171, 58, 0.08); }
.kv-totals { margin: 8px 0 0; padding: 0; list-style: none; }
.kv-totals li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(247, 244, 238, 0.08);
}
label.kco-field {
  display: block;
  margin: 0 0 14px;
  color: rgba(247, 244, 238, 0.78);
  font-size: 14px;
}
.kco-field input {
  width: 100%;
  height: 52px;
  margin-top: 6px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(247, 244, 238, 0.12);
  background: #050403;
  color: #f7f4ee;
  font: inherit;
  font-size: 16px;
}
.kco-field input:focus { outline: 2px solid rgba(227, 171, 58, 0.7); border-color: transparent; }
.kco-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 0.7fr); gap: 12px; }
.kco-main, .kco-summary { overflow: hidden; }
.kco-next, .kco-main button[type="submit"] {
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #9d711b, #e3ab3a 46%, #f6d889);
  color: #1a1204;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}
.kco-back {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f6d889;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
}
.kco-review p { margin: 0 0 14px; color: rgba(247, 244, 238, 0.78); line-height: 1.55; }
.kco-done { max-width: 640px; }
.kco-done a { color: #f6d889; }
@media (max-width: 800px) {
  .kv-steps { gap: 8px; padding: 5px; }
  .kv-steps ol { gap: 6px; }
  .kv-steps li { height: 36px; padding: 0 12px; font-size: 12px; }
  .kco-layout, .kco-row { grid-template-columns: 1fr; }
  .kco-summary { position: static; }
  .kv-due strong, .kco-due strong { font-size: 32px; }
}
