/* =============================================================================
   Reset & base
   ============================================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #f7f7f7;
  color: #1a1a1a;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

input {
  font-family: inherit;
  font-size: inherit;
}

svg {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================================================
   Header
   ============================================================================= */

.site-header {
  background: #3a3a3a;
  color: #fff;
}

.site-header-inner {
  height: 88px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-btn {
  padding: 8px;
  margin-left: -8px;
  transition: opacity 0.15s;
}
.menu-btn:hover {
  opacity: 0.8;
}
.menu-btn svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 64px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
}

.site-nav a {
  transition: opacity 0.15s;
}
.site-nav a:hover {
  opacity: 0.8;
}

@media (max-width: 640px) {
  .site-nav {
    gap: 16px;
    font-size: 14px;
  }
  .site-nav a:nth-child(2) {
    display: none;
  }
}

/* =============================================================================
   Main layout
   ============================================================================= */

.main {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px;
}

@media (max-width: 640px) {
  .main {
    padding: 24px 16px;
  }
}

/* =============================================================================
   Order confirmed
   ============================================================================= */

.order-confirmed {
  margin-bottom: 24px;
}

.order-confirmed-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.check-badge {
  width: 28px;
  height: 28px;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.check-badge svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.order-confirmed h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.15;
  margin: 0;
}

.order-confirmed-sub {
  font-size: 15px;
  color: #4a4a4a;
  line-height: 1.6;
  margin: 0;
}

.order-confirmed-sub .email {
  font-weight: 600;
  color: #1a1a1a;
}

/* =============================================================================
   Event alert (expandable)
   ============================================================================= */

.event-alert {
  background: #fef3e2;
  border: 1px solid #f5e6d3;
  border-radius: 6px;
  margin-bottom: 20px;
}

.event-alert-toggle {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px;
  text-align: left;
}

.event-alert-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.alert-badge {
  width: 20px;
  height: 20px;
  background: #f59e0b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.event-alert-text {
  flex: 1;
}

.event-alert-title {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 15px;
  margin-bottom: 2px;
}

.event-alert-summary {
  font-size: 14px;
  color: #4a4a4a;
  line-height: 1.35;
}

.event-alert-chevron {
  color: #4a4a4a;
  font-size: 24px;
  font-weight: 300;
  margin-left: 8px;
  line-height: 1;
}

.event-alert-body {
  padding: 0 16px 16px 48px;
  font-size: 14px;
  color: #4a4a4a;
}
.event-alert-body p {
  margin: 0 0 4px 0;
}

/* =============================================================================
   Ticket card
   ============================================================================= */

.ticket-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 32px;
}

.ticket-card-inner {
  padding: 20px;
}

.ticket-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.ticket-thumb {
  width: 56px;
  height: 56px;
  background: #f3f4f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ticket-thumb svg {
  width: 28px;
  height: 28px;
  color: #4b5563;
}

.ticket-title {
  flex: 1;
  min-width: 0;
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.35;
  margin: 2px 0 0 0;
}

.btn-ticket {
  background: #e5e5e5;
  color: #1a1a1a;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  transition: background-color 0.15s;
}
.btn-ticket:hover {
  background: #d5d5d5;
}

.ticket-meta {
  padding: 20px 0;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #4a4a4a;
}
.meta-row svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.meta-row span {
  font-size: 15px;
}

.ticket-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid #e5e7eb;
}

.btn-transfer {
  flex: 1;
  background: #fff;
  border: 1px solid #d0d0d0;
  color: #1a1a1a;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.15s;
}
.btn-transfer:hover {
  background: #f9fafb;
}

.btn-details {
  color: #4a4a4a;
  font-size: 14px;
  padding: 10px 16px;
  transition: color 0.15s;
}
.btn-details:hover {
  color: #1a1a1a;
}

.ticket-icon-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding-top: 16px;
}

.icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #4a4a4a;
  padding: 8px;
  transition: color 0.15s;
}
.icon-btn:hover {
  color: #1a1a1a;
}
.icon-btn svg {
  width: 24px;
  height: 24px;
}

/* =============================================================================
   SMS signup card
   ============================================================================= */

.sms-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.sms-card-inner {
  padding: 20px;
}

.sms-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px 0;
}

.sms-sub {
  font-size: 14px;
  color: #4a4a4a;
  margin: 0 0 16px 0;
  line-height: 1.45;
}

.sms-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sms-input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 15px;
  color: #1a1a1a;
  background: #fff;
}
.sms-input:focus {
  outline: 2px solid #3a3a3a;
  outline-offset: -1px;
  border-color: transparent;
}

.sms-submit {
  background: #3a3a3a;
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  transition: background-color 0.15s;
}
.sms-submit:hover {
  background: #2a2a2a;
}
.sms-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .sms-form {
    flex-direction: column;
  }
  .sms-submit {
    width: 100%;
  }
}

/* =============================================================================
   MomentScience API-powered modal (ported from demo-playhq)
   ============================================================================= */

.ms-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.ms-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.ms-modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transform: scale(0.95) translateY(12px);
  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.ms-modal-wrap.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.ms-card {
  width: 100%;
  max-width: 540px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  box-shadow:
    0 12px 40px rgba(40, 57, 142, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  overflow: hidden;
  font-family: inherit;
  text-align: center;
  position: relative;
}

.ms-card .ms-hero {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.ms-card .ms-body {
  padding: 0 28px 28px;
}

.ms-card .ms-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 40px;
  padding: 6px 16px 6px 6px;
  margin: -18px auto 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.ms-card .ms-pill img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.ms-card .ms-pill span {
  font-size: 12px;
  color: #1a1a2e;
  font-weight: 700;
}

.ms-card .ms-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  color: #1a1a2e;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.ms-card .ms-close:hover {
  background: #fff;
}

.ms-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 6px;
  line-height: 1.3;
}

.ms-card .ms-desc {
  font-size: 13px;
  color: rgba(26, 26, 46, 0.7);
  line-height: 1.5;
  margin: 0 0 20px;
}

.ms-card .ms-ctas {
  display: flex;
  gap: 10px;
}

.ms-card .ms-cta-yes {
  padding: 12px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  background: #28398e;
  border: none;
  color: #fff;
  cursor: pointer;
  flex: 1;
  transition: background 0.2s;
  font-family: inherit;
  text-align: center;
}
.ms-card .ms-cta-yes:hover {
  background: #1e2d75;
}

.ms-card .ms-cta-no {
  padding: 12px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  border: 2px solid rgba(26, 26, 46, 0.2);
  color: rgba(26, 26, 46, 0.6);
  cursor: pointer;
  flex: 1;
  transition: all 0.2s;
  font-family: inherit;
  text-align: center;
}
.ms-card .ms-cta-no:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(26, 26, 46, 0.3);
  color: #1a1a2e;
}

.ms-card .ms-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: 12px;
}
.ms-card .ms-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(26, 26, 46, 0.15);
}
.ms-card .ms-dots span.active {
  background: #28398e;
}

.ms-card .ms-powered {
  font-size: 10px;
  color: rgba(26, 26, 46, 0.35);
  margin-top: 14px;
}

@media (max-width: 768px) {
  .ms-modal-wrap {
    padding: 16px;
  }
  .ms-card {
    max-width: 100%;
  }
  .ms-card .ms-ctas {
    flex-direction: column;
  }
}

/* =============================================================================
   Hint toast
   ============================================================================= */

.hint-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  background: #1a1a1a;
  color: #fff;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 32px);
  animation: slide-in-up 0.3s ease-out;
}

.hint-toast[hidden] {
  display: none;
}

.hint-toast-icon {
  width: 20px;
  height: 20px;
  color: #22c55e;
  flex-shrink: 0;
}

.hint-toast p {
  font-size: 14px;
  margin: 0;
}

/* =============================================================================
   SMS confirmation flash
   ============================================================================= */

.sms-confirmation {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.15s ease-out;
}

.sms-confirmation[hidden] {
  display: none;
}

.sms-confirmation-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: scale-in 0.2s ease-out;
}

.sms-confirmation-check {
  width: 48px;
  height: 48px;
  color: #22c55e;
}

.sms-confirmation p {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}

/* =============================================================================
   Animations
   ============================================================================= */

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slide-in-up {
  from {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
