:root {
  --ticket-gradient: linear-gradient(135deg, #d11f26, #050505);
}

body.tickets-body {
  font-family: var(--font-body);
  background: #ffffff;
  color: #111;
}

.tickets-hero {
  position: relative;
  min-height: 70vh;
  padding: clamp(120px, 12vw, 160px) 2vw clamp(60px, 6vw, 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-image: linear-gradient(135deg, rgba(209, 31, 38, 0.85), rgba(0, 0, 0, 0.9)), url('../media/images/murima-night-flyer.jpg');
  background-size: cover;
  background-position: center;
}

.tickets-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  color: #fff;
  margin-bottom: 0.6rem;
  letter-spacing: 0.12em;
}

.tickets-hero .hero-subtitle {
  font-size: 1.2rem;
  max-width: 520px;
  margin: 0 auto 1.6rem;
  color: rgba(255, 255, 255, 0.9);
}

.tickets-hero .hero-cta a {
  margin: 0 0.4rem;
}

.ticket-zone {
  padding: 4rem 0;
}

.ticket-card {
  background: var(--ticket-gradient);
  color: #ffffff;
  border-radius: 28px;
  padding: 2.5rem;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.9s ease forwards;
}

.ticket-card::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.ticket-highlight {
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.ticket-info {
  margin: 1.4rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.ticket-info strong {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  opacity: 0.8;
}

.ticket-info span {
  font-size: 1.2rem;
  display: block;
}

.payment-options {
  padding: 2rem 0 4rem;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.section-header p {
  margin: 0;
  text-align: center;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .payment-options .section-header p {
    white-space: nowrap;
  }
}

.ticket-guide {
  padding: 3rem 0;
  background: linear-gradient(180deg, rgba(6, 12, 36, 0.95), rgba(4, 8, 20, 0.95));
  color: #fafafa;
}

.ticket-guide .section-header h2,
.ticket-guide .section-header p {
  color: #fafafa;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
  margin-top: 2rem;
}

.guide-card {
  border-radius: 20px;
  padding: 1.8rem;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 25px 60px rgba(10, 10, 10, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.guide-card ol {
  margin: 0;
  padding-left: 1.4rem;
  line-height: 1.5;
}

.guide-card ol li + li {
  margin-top: 0.6rem;
}

.guide-note {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.guide-card--contact p {
  margin-bottom: 1rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}

.contact-list li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.contact-list span {
  display: inline-block;
  min-width: 90px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.7rem;
  opacity: 0.8;
}

.payment-option {
  background: #f7f7f7;
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.payment-option h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.payment-option p {
  color: #fff;
  flex: 1;
}

.payment-option button {
  margin-top: 0.8rem;
  width: fit-content;
}

.payment-actions {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 360px;
  gap: 0.5rem;
  margin: 0.8rem 0 0;
  align-items: center;
}

.payment-actions button {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
}

.payment-option--stripe {
  background: linear-gradient(135deg, #0a7bdf, #005b9c);
  color: #fefefe;
}

.payment-option--stripe button {
  border-color: rgba(255, 255, 255, 0.4);
}

.payment-option--mpesa {
  background: linear-gradient(135deg, #1f8a47, #0a5b30);
  color: #fefefe;
}

.payment-option--botim {
  background: linear-gradient(135deg, #2978ff, #1b4bdb);
  color: #fff;
}

.payment-details {
  margin: 1rem 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.payment-details dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.7;
}

.payment-details dd {
  margin: 0;
  font-size: 1rem;
}

.manual-payment-form {
  margin-top: 1.2rem;
  display: none;
  flex-direction: column;
  gap: 0.8rem;
}

.manual-payment-form.is-visible {
  display: flex;
}

.manual-payment-form label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.manual-payment-form input {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.manual-payment-form input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.manual-payment-form button {
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.manual-payment-form button.ready {
  animation: flicker-green 1.6s ease-in-out infinite;
  background: linear-gradient(135deg, #1f9c3b, #ffffff 40%, #1db954);
  color: #042004;
  box-shadow: 0 10px 25px rgba(31, 156, 59, 0.4);
}

@keyframes flicker-green {
  0% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.85;
  }
}

.ticket-form {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.ticket-form input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-size: 0.95rem;
}

.success-panel {
  margin-top: 3rem;
  padding: 2.5rem;
  border-radius: 22px;
  background: #050505;
  color: #fff;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
  display: none;
  position: relative;
  overflow: hidden;
}

.success-panel.is-visible {
  display: block;
}

.success-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(209, 31, 38, 0.35), rgba(0, 0, 0, 0.4));
  pointer-events: none;
}

.success-panel-inner {
  position: relative;
  z-index: 1;
}

.success-panel h3 {
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.ticket-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin: 1.6rem 0;
}

.ticket-summary div {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 12px;
}

.ticket-summary strong {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  opacity: 0.7;
}

.ticket-summary span {
  font-size: 1.2rem;
}

.ticket-qr-box {
  padding: 1.5rem;
  background: #fff;
  color: #111;
  border-radius: 18px;
  text-align: center;
  margin: 0 auto;
  width: 220px;
}

.ticket-qr-box p {
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .hero-content h1 {
    font-size: 2.4rem;
  }

  .success-panel {
    padding: 2rem;
  }
}
