:root {
  --navy: #061526;
  --navy-soft: #0c2944;
  --panel: #fffdf8;
  --gold: #c99636;
  --gold-light: #f0d58b;
  --gold-soft: rgba(201, 150, 54, 0.12);
  --text: #102238;
  --muted: #596879;
  --line: #e8decb;
  --success: #137a4a;
  --danger: #9b2f2f;
  --shadow: 0 22px 60px rgba(5, 21, 38, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 10%, rgba(201, 150, 54, 0.16), transparent 26%),
    radial-gradient(circle at 92% 48%, rgba(12, 41, 68, 0.11), transparent 30%),
    #f7f3eb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button:disabled { cursor: not-allowed; opacity: 0.56; }

.lot-strip {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 18px;
  color: #fff;
  border-bottom: 2px solid var(--gold);
  background: linear-gradient(90deg, #03101d, #0c2d4c 50%, #03101d);
  text-align: center;
}
.lot-strip span { color: #d8e2eb; font-size: 13px; font-weight: 750; }
.lot-strip strong {
  min-width: 120px;
  padding: 7px 12px;
  color: #142233;
  border-radius: 9px;
  background: linear-gradient(135deg, #f6df9e, var(--gold));
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}
.lot-strip.countdown-ended strong { color: #fff; background: #9b2f2f; }

.shell { width: min(1180px, calc(100% - 28px)); margin: 0 auto; padding: 24px 0 52px; }
.hero {
  position: relative;
  aspect-ratio: 1536 / 376;
  overflow: hidden;
  border: 1px solid rgba(201, 150, 54, 0.4);
  border-radius: 24px;
  background: var(--navy);
  box-shadow: var(--shadow);
}
.hero-background {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 57%;
}
.hero-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: auto;
  height: 88%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.42));
}

.event-overview {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 0.7fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
  box-shadow: var(--shadow);
}
.overview-item { min-width: 0; padding: 18px 20px; background: rgba(255, 253, 248, 0.98); }
.overview-item:first-child { background: var(--navy); }
.overview-label {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.overview-value { color: var(--text); font-size: 14px; font-weight: 850; line-height: 1.35; }
.overview-item:first-child .overview-value {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}
.checkout-main, .summary-card {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.98);
  box-shadow: var(--shadow);
}
.checkout-main { border-radius: 22px; padding: 30px; }
.summary { position: sticky; top: 20px; }
.summary-card { overflow: hidden; border-radius: 22px; padding: 24px; }
.summary-card::before {
  content: "";
  display: block;
  height: 5px;
  margin: -24px -24px 22px;
  background: linear-gradient(90deg, var(--gold), #f3dda1, var(--gold));
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 9px;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 43px);
  line-height: 1.05;
}
h2 { margin-bottom: 8px; font-family: Georgia, "Times New Roman", serif; font-size: 25px; }
h3 { margin-bottom: 14px; font-size: 17px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.intro { max-width: 710px; margin-bottom: 23px; color: var(--muted); line-height: 1.62; }

.ticket-card {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(201, 150, 54, 0.48);
  border-radius: 18px;
  background: linear-gradient(135deg, #fffefa, #f8f0df);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}
.ticket-card > input { position: absolute; opacity: 0; pointer-events: none; }
.ticket-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(201, 150, 54, 0.19);
  border-radius: 50%;
}
.ticket-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}
.ticket-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
  padding: 7px 10px;
  color: #6f501a;
  border: 1px solid rgba(201, 150, 54, 0.32);
  border-radius: 999px;
  background: var(--gold-soft);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.ticket-badge svg { width: 15px; height: 15px; }
.ticket-title { margin: 0 0 8px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 25px; }
.ticket-description { max-width: 610px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.ticket-price { min-width: 190px; padding-left: 24px; border-left: 1px solid var(--line); text-align: right; }
.ticket-price small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 750; }
.ticket-price strong { display: block; color: var(--navy); font-size: 34px; line-height: 1; }
.ticket-price span { display: block; margin-top: 7px; color: var(--success); font-size: 11px; font-weight: 850; }

.lot-schedule { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.lot-schedule-item {
  padding: 12px 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.45;
}
.lot-schedule-item strong { display: block; color: var(--text); font-size: 12px; }
.lot-schedule-item.active { border-color: rgba(201, 150, 54, 0.62); background: var(--gold-soft); }

.section { padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; }
.section-heading svg { width: 20px; color: var(--gold); }
.section-heading h3 { margin: 0; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--muted); font-size: 12px; font-weight: 800; }
input, select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--text);
  border: 1px solid #dcd5c9;
  border-radius: 12px;
  outline: none;
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
input::placeholder { color: #87909a; }
input:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 150, 54, 0.1); }
.data-help-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  padding: 0;
  color: #8a611b;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.data-help-button svg { width: 16px; height: 16px; }

.payment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.payment-method-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: 0.2s ease;
}
.payment-method-card:hover, .payment-method-card.active { border-color: var(--gold); background: var(--gold-soft); }
.payment-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  color: #fff;
  border-radius: 11px;
  background: var(--navy-soft);
}
.payment-icon svg { width: 23px; }
.info-box {
  margin-bottom: 14px;
  padding: 14px 16px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #faf7f0;
  font-size: 13px;
  line-height: 1.5;
}
.info-box ul { margin: 0; padding-left: 18px; }
.btn-primary {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 18px;
  color: #0e1d2d;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(90deg, #bd8526, #f1d78f, #bd8526);
  box-shadow: 0 12px 28px rgba(6, 21, 38, 0.15);
  cursor: pointer;
  font-weight: 950;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.btn-primary:not(:disabled):hover { transform: translateY(-1px); filter: brightness(1.04); }
.hidden { display: none !important; }
.space-y-4 > * + * { margin-top: 14px; }

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.summary-row span:last-child { color: var(--text); text-align: right; font-weight: 850; }
.summary-card hr { margin: 18px 0; border: 0; border-top: 1px solid var(--line); }
.summary-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.summary-total strong { color: #8b621d; font-size: 24px; }
.summary-secure {
  margin-top: 18px;
  padding: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: center;
  font-size: 12px;
}
.event-mini {
  margin-top: 14px;
  padding-top: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.65;
}
.closed-box {
  padding: 24px;
  color: var(--danger);
  border: 1px solid rgba(155, 47, 47, 0.28);
  border-radius: 16px;
  background: rgba(155, 47, 47, 0.06);
  text-align: center;
}
.closed-box h2 { margin-bottom: 7px; }

.checkout-footer { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); text-align: center; }
.checkout-footer img { width: 144px; max-width: 60%; margin-bottom: 14px; }
.checkout-footer p { max-width: 610px; margin: 0 auto 10px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.checkout-footer a { color: #7d5819; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(3, 14, 25, 0.82);
  backdrop-filter: blur(8px);
}
.modal-card {
  width: min(440px, 100%);
  padding: 24px;
  border: 1px solid rgba(201, 150, 54, 0.45);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.modal-card h2 { color: var(--navy); }
.modal-card p { color: var(--muted); line-height: 1.6; }
.modal-header { display: flex; justify-content: space-between; gap: 12px; }
.modal-close { color: var(--muted); border: 0; background: none; cursor: pointer; font-size: 26px; }
.modal-action { width: auto; min-width: 104px; min-height: 44px; margin-left: auto; padding-inline: 22px; }
.pix-qr-frame {
  width: fit-content;
  margin: 16px auto;
  padding: 10px;
  border: 3px solid var(--gold);
  border-radius: 16px;
  background: #fff;
}
.pix-qr-frame img { display: block; width: 220px; height: 220px; }
.pix-copy { display: flex; gap: 8px; }
.pix-copy button {
  padding: 0 14px;
  color: #fff;
  border: 0;
  border-radius: 10px;
  background: var(--navy-soft);
  cursor: pointer;
  font-weight: 900;
}
.card-processing-message { color: var(--muted); text-align: center; font-size: 13px; }

@media (max-width: 920px) {
  .event-overview { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: 1fr; }
  .summary { position: static; grid-row: 1; }
}

@media (max-width: 620px) {
  .lot-strip { flex-wrap: wrap; gap: 7px 10px; }
  .lot-strip .countdown-copy { width: calc(100% - 132px); text-align: right; }
  .lot-strip .countdown-note { width: 100%; }
  .shell { width: min(100% - 18px, 1180px); padding-top: 12px; }
  .hero { border-radius: 16px; }
  .event-overview { grid-template-columns: 1fr; border-radius: 15px; }
  .checkout-main, .summary-card { padding: 19px; border-radius: 16px; }
  .ticket-grid { grid-template-columns: 1fr; gap: 18px; }
  .ticket-price { min-width: 0; padding: 16px 0 0; border-top: 1px solid var(--line); border-left: 0; text-align: left; }
  .lot-schedule { grid-template-columns: 1fr; }
  .field-grid, .payment-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .pix-copy { flex-direction: column; }
  .pix-copy button { min-height: 44px; }
}
