
:root {
  --red: #ed2939;
  --black: #090a0e;
  --dark: #12141a;
  --grey: #a5a7b0;
  --white: #fff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: Inter, sans-serif;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

/* NAVIGATION */

.navbar {
  min-height: 76px;
  padding: 0 7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #090a0e;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #252630;
}

.logo {
  color: white;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 32px;
  font-weight: 800;
  text-decoration: none;
}

.logo span,
h1 span,
h2 span {
  color: var(--red);
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

nav a {
  color: #ddd;
  text-decoration: none;
  font-size: 13px;
  transition: color .2s;
}

nav a:hover {
  color: var(--red);
}

.nav-button,
.primary-button {
  display: inline-block;
  background: var(--red);
  color: white;
  text-decoration: none;
  padding: 14px 22px;
  border: none;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 1px;
}

.menu-toggle {
  display: none;
  background: none;
  color: white;
  border: none;
  font-size: 26px;
}

/* HERO */

.hero {
  min-height: 650px;
  display: flex;
  align-items: center;
  padding: 75px 9%;
  background:
    linear-gradient(90deg, rgba(5,6,10,.97), rgba(5,6,10,.55), rgba(5,6,10,.2)),
    url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?w=1800") center/cover;
}

.hero-content {
  max-width: 700px;
}

.eyebrow {
  color: var(--red);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 3px;
}

h1,
h2,
h3 {
  font-family: "Barlow Condensed", sans-serif;
}

.hero h1 {
  font-size: clamp(55px, 8vw, 100px);
  line-height: .95;
  margin: 25px 0;
}

.hero-content > p {
  color: #ddd;
  font-size: 20px;
}

.hero-details {
  display: flex;
  gap: 30px;
  margin: 28px 0;
  font-size: 12px;
  font-weight: 800;
}

/* GENERAL SECTIONS */

.section {
  padding: 85px 8%;
}

.section-heading {
  text-align: center;
  margin-bottom: 42px;
}

.section-heading h2,
.about-section h2 {
  font-size: clamp(38px, 6vw, 65px);
  margin: 12px 0;
}

.section-heading p,
.about-section p {
  color: var(--grey);
}

.notice {
  color: #bbb;
  font-size: 10px;
  line-height: 1.6;
  margin-top: 18px;
}

.dark-notice {
  text-align: center;
}

/* TICKET CATEGORIES */

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ticket-card {
  background: var(--dark);
  border: 1px solid #30313a;
  padding: 26px 20px;
  min-height: 260px;
  transition: .25s;
}

.ticket-card:hover {
  transform: translateY(-5px);
  border-color: var(--red);
}

.ticket-label {
  color: var(--red);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 800;
}

.ticket-card h3 {
  font-size: 38px;
  margin: 22px 0 5px;
}

.ticket-card p {
  color: var(--grey);
  font-size: 12px;
  min-height: 35px;
}

.ticket-card h2 {
  font-size: 27px;
  margin: 17px 0;
}

.choose-button {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 12px;
  background: transparent;
  color: white;
  border: 1px solid #555;
  font-size: 10px;
  font-weight: 800;
  pointer-events: auto;
}

.choose-button:hover,
.choose-button.active-category {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

/* SEAT SELECTION */

.seat-section {
  background: #101116;
}

.seat-layout {
  max-width: 900px;
  margin: auto;
  background: #181a21;
  border: 1px solid #333540;
  padding: 25px;
}

.pitch {
  max-width: 500px;
  margin: 0 auto 35px;
  height: 90px;
  border: 2px solid #65a879;
  background: #183b29;
  display: grid;
  place-items: center;
  color: #b5e5c2;
  font-weight: 800;
  letter-spacing: 3px;
}

.seat-legend {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  color: #ccc;
  font-size: 11px;
  margin-bottom: 25px;
}

.seat-legend span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.seat-legend i {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 3px;
}

.available {
  background: #777d8b;
}

.selected {
  background: var(--red);
}

.unavailable {
  background: #333;
}

.seat-group {
  margin: 20px 0;
}

.seat-group h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.seat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0;
  flex-wrap: wrap;
}

.row-name {
  color: var(--grey);
  width: 30px;
  font-size: 11px;
}

.seat {
  width: 32px;
  height: 30px;
  border: none;
  border-radius: 5px 5px 2px 2px;
  background: #777d8b;
  color: white;
  font-size: 10px;
}

.seat:disabled {
  background: #333;
  cursor: not-allowed;
  color: #777;
}

.seat.active {
  background: var(--red);
}

.booking-summary {
  border-top: 1px solid #373943;
  padding-top: 22px;
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.booking-summary small {
  color: var(--grey);
  font-size: 10px;
}

.booking-summary h3 {
  font-size: 23px;
  margin-top: 5px;
}

/* BOOKING FORM */

.booking-form {
  max-width: 900px;
  margin: 35px auto;
  padding: 26px;
  background: #171920;
  border: 1px solid #30333d;
  border-radius: 12px;
}

.booking-form h2 {
  color: white;
  margin-bottom: 10px;
}

.booking-form p {
  color: #aaa;
  margin-bottom: 20px;
  font-size: 13px;
}

.booking-form input {
  display: block;
  width: 100%;
  padding: 14px;
  margin-bottom: 14px;
  background: #0f1015;
  border: 1px solid #383b45;
  border-radius: 6px;
  color: white;
  font-size: 14px;
}

.booking-form input:focus {
  outline: none;
  border-color: var(--red);
}

.booking-form button {
  padding: 14px 22px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
}

.booking-form button:hover {
  background: #c91e2d;
}

/* MY TICKET SECTION */

#my-ticket {
  background: #0c0d12;
}

/* TICKET RETRIEVAL FORM */

.ticket-lookup {
  width: 100%;
  max-width: 440px;
  margin: 25px auto;
  padding: 22px;
  background: #15151b;
  border: 1px solid #303039;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.ticket-lookup h3 {
  color: white;
  font-size: 23px;
  margin-bottom: 8px;
}

.ticket-lookup p {
  color: #aaa;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.ticket-lookup label {
  display: block;
  color: #eee;
  font-size: 12px;
  font-weight: 600;
  margin: 14px 0 7px;
}

.ticket-lookup input {
  display: block;
  width: 100%;
  padding: 12px;
  background: #09090d;
  border: 1px solid #393943;
  border-radius: 7px;
  color: white;
  font-size: 14px;
}

.ticket-lookup input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(243,38,61,.12);
}

.ticket-lookup button,
.ticket-actions button {
  width: 100%;
  margin-top: 18px;
  padding: 13px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.ticket-lookup button:hover,
.ticket-actions button:hover {
  background: #c91e2d;
}

.ticket-lookup button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* RETRIEVED DIGITAL TICKET */

.digital-ticket {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 22px auto;
  overflow: hidden;
  color: white;
  background: #111116;
  border: 1px solid #393942;
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0,0,0,.35);
}

/* Ticket header */

.bm-ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 13px 17px;
  background: #19191f;
  border-bottom: 1px solid #34343b;
}

.digital-brand {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 1px;
}

.digital-brand span {
  color: var(--red);
}

.bm-ticket-brand small {
  display: block;
  color: #999;
  font-size: 8px;
  letter-spacing: 1px;
  margin-top: 2px;
}

.bm-ticket-type {
  padding: 7px 9px;
  border: 1px solid var(--red);
  color: #ff5266;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  line-height: 1.5;
}

/* Match information */

.bm-ticket-match {
  padding: 16px 18px;
  text-align: center;
  background: linear-gradient(120deg, #1d1d25, #101015);
}

.bm-match-label {
  color: #ff5368;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
}

.bm-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 9px;
  margin: 15px 0;
}

.bm-teams h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(22px, 5vw, 30px);
  line-height: .95;
  font-weight: 800;
  margin: 0;
}

.bm-teams h2:first-child {
  text-align: left;
}

.bm-teams h2:last-child {
  text-align: right;
}

.bm-teams span {
  color: var(--red);
  font-weight: 900;
  font-size: 16px;
}

.bm-match-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: #bbb;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.5;
}

/* Ticket content */

.bm-ticket-body {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.bm-ticket-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px;
  background: white;
  border-radius: 8px;
  color: #111;
  text-align: center;
}

#ticketQrCode {
  min-height: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#ticketQrCode img,
#ticketQrCode canvas {
  width: 110px !important;
  height: 110px !important;
  max-width: 100%;
}

.bm-ticket-qr strong {
  margin-top: 7px;
  font-size: 9px;
}

.bm-ticket-qr small {
  margin-top: 3px;
  color: #666;
  font-size: 8px;
}

/* Ticket details */

.bm-ticket-info {
  min-width: 0;
  width: 100%;
  max-width: 310px;
  margin: auto;
  text-align: center;
}

.bm-ticket-number {
  padding-bottom: 10px;
  border-bottom: 1px dashed #444;
}

.bm-ticket-number small,
.bm-seat-grid small,
.bm-ticket-price small {
  display: block;
  color: #999;
  font-size: 8px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.bm-ticket-number strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
}

#ticketStatus {
  display: inline-block;
  margin-top: 5px;
  color: #57d69a;
  font-size: 9px;
  font-weight: 800;
}

/* Category, section, row and seat */

.bm-seat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  gap: 12px 18px;
  padding: 12px 0;
}

.bm-seat-grid > div {
  min-width: 0;
  text-align: center;
}

.bm-seat-grid strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 18px;
  overflow-wrap: anywhere;
}

/* Ticket price */

.bm-ticket-price {
  padding: 10px 0;
  border-top: 1px dashed #444;
  text-align: center;
}

.bm-ticket-price strong {
  color: #ff5368;
  font-size: 16px;
}

/* Secondary QR */

.bm-small-qr {
  display: none;
}

/* Barcode decoration */

.bm-ticket-barcode {
  padding: 8px 16px;
  text-align: center;
  background: #f5f5f5;
  color: #111;
}

.bm-barcode-lines {
  height: 24px;
  max-width: 260px;
  margin: 0 auto 5px;
  background: repeating-linear-gradient(
    90deg,
    #111 0px, #111 2px,
    transparent 2px, transparent 5px,
    #111 5px, #111 8px,
    transparent 8px, transparent 11px
  );
}

.bm-ticket-barcode small {
  font-size: 8px;
  letter-spacing: 1px;
  overflow-wrap: anywhere;
}

/* Ticket footer */

.digital-ticket-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px 17px;
  background: var(--red);
}

.digital-ticket-footer strong {
  font-size: 12px;
  letter-spacing: 1px;
}

.digital-ticket-footer span {
  font-size: 8px;
  font-weight: 700;
  text-align: right;
}

/* Ticket action and message */

.ticket-actions {
  width: 100%;
  max-width: 540px;
  margin: 12px auto;
}

.ticket-message {
  max-width: 540px;
  margin: 15px auto;
  color: #ccc;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

/* ABOUT */

.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.about-section p {
  line-height: 1.9;
  max-width: 500px;
}

.about-image {
  min-height: 320px;
  background: url("https://images.unsplash.com/photo-1508098682722-e99c43a406b2?w=1000") center/cover;
}

/* FINAL CALL TO ACTION */

.final-cta {
  text-align: center;
  padding: 85px 20px;
  background: linear-gradient(135deg, #210c11, #101116);
}

.final-cta h2 {
  font-size: clamp(42px, 7vw, 75px);
  margin: 20px;
}

/* FOOTER */

footer {
  padding: 40px 8%;
  text-align: center;
  border-top: 1px solid #30313a;
}

footer p {
  color: var(--grey);
  font-size: 12px;
  margin: 18px auto;
  max-width: 600px;
  line-height: 1.8;
}

footer small {
  color: #777;
}

/* TABLET */

@media (max-width: 850px) {
  .navbar {
    padding: 0 5%;
  }

  nav {
    gap: 14px;
  }

  .ticket-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-section {
    grid-template-columns: 1fr;
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .navbar {
    min-height: 68px;
    padding: 0 5%;
  }

  .logo {
    font-size: 28px;
  }

  .nav-button {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    width: 100%;
    padding: 22px;
    background: #101116;
    flex-direction: column;
    align-items: flex-start;
  }

  nav.open {
    display: flex;
  }

  .hero {
    min-height: 540px;
    padding: 55px 7%;
  }

  .hero h1 {
    font-size: clamp(48px, 13vw, 68px);
  }

  .hero-details {
    flex-direction: column;
    gap: 12px;
  }

  .section {
    padding: 58px 5%;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .ticket-grid {
    grid-template-columns: 1fr;
  }

  .ticket-card {
    min-height: auto;
  }

  .seat-layout {
    padding: 12px;
  }

  .seat {
    width: 27px;
    height: 27px;
  }

  .booking-form {
    padding: 18px;
  }

  .ticket-lookup {
    padding: 18px;
    margin: 20px auto;
  }

  /* Compact ticket on phones */

  .digital-ticket {
    width: 100%;
    max-width: 390px;
    margin: 18px auto;
    border-radius: 10px;
  }

  .bm-ticket-top {
    padding: 11px 13px;
  }

  .digital-brand {
    font-size: 24px;
  }

  .bm-ticket-match {
    padding: 13px 12px;
  }

  .bm-teams {
    gap: 7px;
    margin: 12px 0;
  }

  .bm-teams h2 {
    font-size: clamp(20px, 6vw, 26px);
  }

  .bm-ticket-body {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 13px;
  }

  .bm-ticket-qr {
    max-width: 130px;
    margin: 0 auto;
    padding: 8px;
  }

  #ticketQrCode {
    min-height: 105px;
  }

  #ticketQrCode img,
  #ticketQrCode canvas {
    width: 105px !important;
    height: 105px !important;
  }

  .bm-ticket-info {
    max-width: 280px;
  }

  .bm-seat-grid {
    gap: 10px 16px;
    padding: 10px 0;
  }

  .bm-seat-grid strong {
    font-size: 17px;
  }

  .bm-ticket-price {
    padding: 8px 0;
  }

  .bm-ticket-barcode {
    padding: 7px 12px;
  }

  .digital-ticket-footer {
    padding: 10px 12px;
  }

  .digital-ticket-footer strong {
    font-size: 10px;
  }

  .digital-ticket-footer span {
    font-size: 7px;
  }

  .ticket-actions {
    max-width: 390px;
  }

  .about-image {
    min-height: 230px;
  }

  .final-cta {
    padding: 65px 15px;
  }

  footer {
    padding: 35px 6%;
  }
}

/* VERY SMALL PHONES */

@media (max-width: 360px) {
  .bm-ticket-top {
    gap: 5px;
  }

  .bm-ticket-type {
    font-size: 8px;
    padding: 6px;
  }

  .bm-teams h2 {
    font-size: 19px;
  }

  .bm-match-meta {
    font-size: 8px;
  }

  .bm-seat-grid {
    gap: 9px;
  }
}

/* PRINT ONLY THE RETRIEVED TICKET */

@media print {
  @page {
    size: A5 portrait;
    margin: 8mm;
  }

  body.printing-ticket {
    background: white !important;
  }

  body.printing-ticket * {
    visibility: hidden !important;
  }

  body.printing-ticket #digitalTicket,
  body.printing-ticket #digitalTicket * {
    visibility: visible !important;
  }

  body.printing-ticket header,
  body.printing-ticket footer,
  body.printing-ticket main > section:not(#my-ticket),
  body.printing-ticket #my-ticket > *:not(#digitalTicket) {
    display: none !important;
  }

  body.printing-ticket #my-ticket {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
  }

  body.printing-ticket #digitalTicket {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    box-shadow: none !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    print-color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
  }
}
.capacity-display {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin: 25px 0;
  text-align: center;
}

.capacity-display div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.capacity-display strong {
  color: #ff3030;
  font-size: 28px;
  font-weight: 800;
}

.capacity-display span {
  font-size: 10px;
  letter-spacing: 1px;
}

@media (max-width: 480px) {
  .capacity-display {
    gap: 20px;
  }
}

/* BIG MATCH - FOUR STADIUM SIDES */

.stadium-side-group {
  background: #101116;
  border: 1px solid #343640;
  border-left: 4px solid var(--red);
  border-radius: 10px;
  padding: 20px;
  margin: 22px 0;
  overflow: hidden;
}

.stadium-side-group h3 {
  color: #fff;
  font-size: 25px;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.stadium-side-group h4 {
  color: #ff5368;
  font-size: 15px;
  margin: 18px 0 10px;
  letter-spacing: 1px;
}

.stadium-side-group p {
  color: var(--grey);
  font-size: 12px;
  padding: 10px 0;
}

.stadium-side-group .seat-row {
  padding: 9px;
  background: #191b23;
  border-radius: 7px;
  gap: 8px;
}

.stadium-side-group .seat {
  transition: transform .2s, background .2s;
}

.stadium-side-group .seat:not(:disabled):hover {
  background: var(--red);
  transform: translateY(-3px);
}

.stadium-side-group .seat.active {
  background: var(--red);
  box-shadow: 0 0 10px rgba(237,41,57,.4);
}

@media (max-width: 600px) {
  .stadium-side-group {
    padding: 12px;
    margin: 15px 0;
  }

  .stadium-side-group h3 {
    font-size: 20px;
  }

  .stadium-side-group .seat-row {
    gap: 5px;
    padding: 7px 4px;
  }
}

/* Compact stadium seat selector */

.stadium-side-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0;
}

.stadium-side-tab {
  padding: 12px 5px;
  border: 1px solid #444;
  border-radius: 8px;
  background: #171717;
  color: white;
  cursor: pointer;
}

.stadium-side-tab strong,
.stadium-side-tab small {
  display: block;
}

.stadium-side-tab small {
  font-size: 10px;
  margin-top: 5px;
}

.stadium-side-tab.active {
  background: #b90000;
  border-color: #ff3030;
}

.selected-side-heading {
  text-align: center;
  margin-top: 20px;
}

.selected-side-summary {
  text-align: center;
  font-size: 13px;
}

.seat-filter {
  display: block;
  width: min(100%, 320px);
  margin: 12px auto;
  padding: 12px;
  border-radius: 7px;
}

.seat-display {
  margin: 20px 0;
  text-align: center;
}

.compact-seat-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 6px;
  max-width: 650px;
  margin: 15px auto;
}

.compact-seat-grid .seat {
  min-width: 0;
  padding: 7px 2px;
  font-size: 11px;
}

@media (max-width: 480px) {
  .stadium-side-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-seat-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

