:root {
  --bg: #f5f6f1;
  --paper: #ffffff;
  --ink: #202020;
  --muted: #6f756f;
  --line: #e1e4df;
  --green: #04c853;
  --amber: #f6a91a;
  --dark: #202020;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(246, 169, 26, 0.28), transparent 32rem),
    linear-gradient(135deg, #f5f6f1 0%, #ffffff 60%, #edf8f1 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

.user-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 28px 16px 42px;
}

.user-header {
  margin-bottom: 18px;
}

.user-header a {
  display: inline-flex;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(32, 32, 32, 0.08);
  color: var(--ink);
  padding: 8px 12px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.user-header p {
  margin: 0 0 6px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.user-header h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1;
}

.user-header span {
  display: block;
  max-width: 620px;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.lookup-card,
.summary-grid article,
.order-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(20, 24, 20, 0.08);
}

.lookup-card {
  padding: 16px;
}

.lookup-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
}

label span,
.summary-grid span,
.order-meta span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--ink);
  padding: 13px;
  outline: 0;
}

input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(246, 169, 26, 0.18);
}

.lookup-form button {
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  padding: 14px 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.summary-grid article {
  padding: 18px;
}

.summary-grid strong {
  display: block;
  margin-top: 7px;
  font-size: 28px;
}

.orders-list {
  display: grid;
  gap: 12px;
}

.order-card {
  overflow: hidden;
}

.order-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.order-head h2 {
  margin: 0 0 6px;
  font-size: 18px;
}

.order-head p,
.empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.badge {
  display: inline-flex;
  height: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.badge.paid {
  background: rgba(4, 200, 83, 0.13);
  color: #057936;
}

.badge.pending {
  background: rgba(246, 169, 26, 0.18);
  color: #9a6200;
}

.badge.canceled {
  background: rgba(217, 65, 65, 0.12);
  color: #d94141;
}

.order-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px;
}

.order-meta strong {
  display: block;
  margin-top: 5px;
}

.tickets {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 16px 16px;
}

.ticket {
  border-radius: 999px;
  background: #202020;
  color: #fff;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.empty-state {
  padding: 24px;
}

.empty-state strong {
  font-size: 20px;
}

.confirmation-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.confirmation-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.confirmation-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 20, 0.62);
  backdrop-filter: blur(7px);
}

.confirmation-sheet {
  position: relative;
  width: min(100%, 430px);
  border: 1px solid rgba(4, 200, 83, 0.22);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(20, 24, 20, 0.25);
  padding: 28px;
  text-align: center;
  overflow: hidden;
}

.confirmation-sheet::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--green), var(--amber));
}

.confirmation-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(32, 32, 32, 0.08);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.confirmation-icon {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 12px auto 18px;
  place-items: center;
  border-radius: 999px;
  background: rgba(4, 200, 83, 0.14);
  color: var(--green);
}

.confirmation-icon svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
}

.confirmation-sheet p {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.confirmation-sheet h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
}

.confirmation-sheet span {
  display: block;
  margin: 12px auto 22px;
  color: var(--muted);
  line-height: 1.5;
}

.confirmation-action {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .lookup-form,
  .summary-grid,
  .order-meta {
    grid-template-columns: 1fr;
  }

  .order-head {
    flex-direction: column;
  }

  .confirmation-sheet {
    padding: 26px 20px 22px;
  }

  .confirmation-sheet h2 {
    font-size: 25px;
  }
}
