/* Các trang công khai của vé sự kiện: danh sách, đặt vé, kết quả, không tìm thấy */
.ev-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(199, 146, 62, 0.35) 0, rgba(199, 146, 62, 0) 28%),
    radial-gradient(circle at 15% 110%, rgba(26, 75, 140, 0.9) 0, rgba(26, 75, 140, 0) 55%),
    linear-gradient(135deg, #0b1a33 0%, #0f2d5c 60%, #1a4b8c 100%);
}

@keyframes slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.animate-slide-up { animation: slide-up .25s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.toast-in { animation: toast-in .2s ease-out; }
.grecaptcha-badge { visibility: hidden; }

/* Thẻ sự kiện */
.event-card__img { height: 180px; }
.event-card__img--empty { background: linear-gradient(135deg, #0f2d5c, #1a4b8c); }

/* Nút chính (ít nhất 44px) */
.ev-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 28px; border-radius: 999px;
  background: #1a4b8c; color: #fff; font-weight: 600; font-size: 14px; text-decoration: none;
}
.ev-btn:hover { background: #0f2d5c; }
.ev-btn:focus-visible { outline: 3px solid #7ab8e0; outline-offset: 2px; }

/* Trang kết quả */
.ev-badge {
  width: 56px; height: 56px; margin: 0 auto; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 700; color: #fff;
}
.ev-badge--ok { background: #087a55; }
.ev-badge--wait { background: #c7923e; }
.ev-badge--bad { background: #b42318; }
.ev-info { display: grid; grid-template-columns: 1fr; gap: 8px; border-top: 1px solid #eee; padding-top: 16px; }
.ev-info > div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.ev-info dt { color: #666; }
.ev-info dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* Trang không tìm thấy / lỗi */
.ev-plain { margin: 0; font-family: 'HoaBinhSansText', Arial, sans-serif; background: #f9fafb; color: #333; }
.ev-notfound { max-width: 480px; margin: 0 auto; padding: 64px 16px; text-align: center; }
.ev-notfound__logo { height: 56px; margin-bottom: 16px; }
.ev-notfound h1 { font-size: 22px; color: #0f2d5c; margin: 0 0 8px; }
.ev-notfound p { margin: 0 0 24px; color: #555; }

/* ── Trang đặt vé: bố cục theo FreeTicket (banner, thanh 3 bước, thẻ mục, thẻ Tóm tắt) ── */
.ev-hero--page { border-radius: 0; margin: 0; }

.ev-progress-wrap { position: sticky; top: 0; z-index: 30; margin-top: -28px; padding-bottom: 4px; pointer-events: none; }
.ev-progress {
  pointer-events: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
  background: #fff; border: 1px solid #e3e9ee; border-radius: 16px; padding: 8px;
  box-shadow: 0 10px 30px rgba(11, 26, 51, 0.16);
}
.ev-step { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: #667482; min-width: 0; }
.ev-step__n {
  flex: 0 0 30px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  background: #eef2f5; color: #667482; font-weight: 700; font-size: .85rem;
}
.ev-step__t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ev-step__t strong { font-size: .86rem; color: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-step__t small { font-size: .72rem; color: #8a96a2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-step.is-active { background: #e8f4fc; color: #0f2d5c; }
.ev-step.is-active .ev-step__n { background: #1a4b8c; color: #fff; }
.ev-step.is-done .ev-step__n { background: #087a55; color: #fff; font-size: 0; }
.ev-step.is-done .ev-step__n::before { content: "\2713"; font-size: .95rem; }
@media (max-width: 640px) {
  .ev-step { flex-direction: column; text-align: center; gap: 4px; padding: 6px 4px; }
  .ev-step__t small { display: none; }
}

.ev-card { background: #fff; border: 1px solid #e3e9ee; border-radius: 16px; padding: 20px; box-shadow: 0 2px 10px rgba(11, 26, 51, 0.04); }
@media (min-width: 640px) { .ev-card { padding: 24px; } }
.ev-card__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.ev-card__icon {
  flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  background: #e8f4fc; color: #1a4b8c;
}
.ev-card__icon svg { width: 22px; height: 22px; }
.ev-card__head h2 { margin: 0; font-size: 1.05rem; font-weight: 700; color: #0f2d5c; line-height: 1.3; }
.ev-card__head p { margin: 2px 0 0; font-size: .82rem; color: #667482; }

.ev-summary { background: #fff; border: 1px solid #e3e9ee; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(11, 26, 51, 0.1); }
.ev-summary__head { padding: 16px 20px; color: #fff; background: linear-gradient(135deg, #0b1a33 0%, #0f2d5c 60%, #1a4b8c 100%); }
.ev-summary__head p { margin: 0; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: #a8cce4; }
.ev-summary__head h2 { margin: 2px 0 0; font-size: 1.15rem; font-weight: 700; }
.ev-summary__ticket { border: 1px dashed #c9d4dd; border-radius: 12px; padding: 14px; background: #f8fafb; }

.ev-bar { height: 8px; border-radius: 999px; background: #e6edf2; overflow: hidden; }
.ev-bar > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #a8cce4, #084d82); transition: width .25s ease; }
