/* ============================================================
   ELEVATED — TICKETING MODAL STYLES
   ============================================================ */

.tk-modal {
  position: fixed; inset: 0; z-index: 1300;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.tk-modal.is-open { display: flex; }

.tk-modal__scrim {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
}

.tk-modal__card {
  position: relative;
  width: 100%; max-width: 640px;
  max-height: 92vh; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--ink-2, #0b0b11);
  border: 1px solid var(--line-2, rgba(255,255,255,0.08));
  animation: tk-rise .28s cubic-bezier(.2,.7,.2,1);
}
@keyframes tk-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.tk-modal__card::before, .tk-modal__card::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border: 1px solid var(--gold, #d4a64a); pointer-events: none;
}
.tk-modal__card::before { top: -8px; left: -8px; border-right: none; border-bottom: none; }
.tk-modal__card::after  { bottom: -8px; right: -8px; border-left: none; border-top: none; }

.tk-modal__close {
  position: absolute; top: 10px; right: 12px;
  width: 36px; height: 36px;
  background: none; border: 0; cursor: pointer;
  color: var(--bone-mute, #8a8a96);
  font-size: 26px; line-height: 1;
  transition: color .18s ease;
  z-index: 2;
}
.tk-modal__close:hover { color: var(--gold, #d4a64a); }

.tk-modal__head {
  padding: 26px 30px 18px;
  border-bottom: 1px solid var(--line-2, rgba(255,255,255,0.06));
}
.tk-modal__eyebrow {
  font-family: var(--f-body, system-ui);
  font-weight: 600; font-size: 11px;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-hot, #e8267c);
  display: block; margin-bottom: 8px;
}
.tk-modal__title {
  font-family: var(--f-display, serif);
  font-weight: 500; font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--bone, #f7f5ee);
  margin: 0 0 6px;
}
.tk-modal__sub {
  font-family: var(--f-body, system-ui);
  font-size: 12px; line-height: 1.5;
  color: var(--bone-mute, #8a8a96);
  margin: 0;
}

.tk-modal__embed {
  flex: 1 1 auto; min-height: 460px;
  position: relative; overflow: auto;
  background: #fff; /* Eventbrite iframe sits on white */
}
.tk-modal__loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  background: var(--ink-2, #0b0b11);
  color: var(--bone-mute, #8a8a96);
  font-family: var(--f-body, system-ui);
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  z-index: 1;
}
.tk-modal__embed.is-loading .tk-modal__loading { display: flex; }
.tk-modal__embed:not(.is-loading) .tk-modal__loading { display: none; }
.tk-modal__spinner {
  width: 28px; height: 28px;
  border: 2px solid rgba(255,255,255,0.12);
  border-top-color: var(--gold, #d4a64a);
  border-radius: 50%;
  animation: tk-spin 0.9s linear infinite;
}
@keyframes tk-spin { to { transform: rotate(360deg); } }
.tk-modal__widget { width: 100%; min-height: 580px; }
.tk-modal__widget iframe { width: 100% !important; min-height: 580px; border: 0; display: block; }

.tk-modal__fallback {
  padding: 60px 40px;
  text-align: center;
  background: var(--ink-2, #0b0b11);
  color: var(--bone, #f7f5ee);
}
.tk-modal__fallback p {
  font-family: var(--f-body, system-ui);
  font-size: 14px; line-height: 1.55;
  color: var(--bone-mute, #8a8a96);
  margin: 0 0 20px; max-width: 36ch; margin-left: auto; margin-right: auto;
}
.tk-modal__fallback-btn {
  display: inline-block;
  padding: 14px 24px;
  background: var(--gold, #d4a64a); color: var(--ink, #06060a);
  font-family: var(--f-body, system-ui);
  font-weight: 700; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none;
  transition: background .2s ease;
}
.tk-modal__fallback-btn:hover { background: var(--gold-hot, #e8267c); color: #fff; }

.tk-modal__success {
  padding: 70px 40px; text-align: center;
  background: var(--ink-2, #0b0b11);
  color: var(--bone, #f7f5ee);
}
.tk-modal__success-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold, #d4a64a); color: var(--ink, #06060a);
  font-size: 28px; font-weight: 800;
  margin-bottom: 16px;
}
.tk-modal__success h3 {
  font-family: var(--f-display, serif);
  font-weight: 500; font-size: 26px; letter-spacing: -0.02em;
  margin: 0 0 8px; color: var(--bone, #f7f5ee);
}
.tk-modal__success p {
  font-family: var(--f-body, system-ui);
  font-size: 14px; color: var(--bone-mute, #8a8a96);
  margin: 0;
}

.tk-modal__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: var(--ink-2, #0b0b11);
  border-top: 1px solid var(--line-2, rgba(255,255,255,0.06));
  font-family: var(--f-body, system-ui);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}
.tk-modal__external {
  color: var(--bone-mute, #8a8a96);
  text-decoration: none;
  transition: color .18s ease;
}
.tk-modal__external:hover { color: var(--gold, #d4a64a); }
.tk-modal__lock {
  color: var(--bone-mute, #8a8a96);
  letter-spacing: 0.08em;
}

@media (max-width: 600px) {
  .tk-modal { padding: 0; }
  .tk-modal__card { max-width: 100%; max-height: 100vh; height: 100vh; border: 0; }
  .tk-modal__card::before, .tk-modal__card::after { display: none; }
  .tk-modal__head { padding: 56px 22px 14px; }
  .tk-modal__embed { min-height: 0; }
}
