:root {
  --brand-red: #c8102e;
  --ink-dark: #101317;
  --ink-mid: #3a4552;
  --paper: #f4f6fb;
  --card: #ffffff;
  --shadow: 0 20px 60px rgba(15, 18, 25, 0.12);
  --border: 1px solid rgba(12, 16, 22, 0.08);
  --sticky-offset: 72px;
}

html {
  background: #0f1115;
  overflow-x: hidden;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink-dark);
  background: #ffffff;
  min-height: 100vh;
  position: static;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

body::before,
body::after {
  content: none;
}

body::before {
  top: -120px;
  right: -120px;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.25), rgba(200, 16, 46, 0));
}

body::after {
  bottom: -140px;
  left: -140px;
  background: radial-gradient(circle, rgba(16, 19, 23, 0.16), rgba(16, 19, 23, 0));
}

.topbar {
  background: #0f1115;
  color: #f4f6fb;
  font-size: 0.9rem;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-link {
  color: inherit;
  text-decoration: none;
}

.topbar-link:hover,
.topbar-link:focus {
  color: #fff;
}

.site-header {
  background: #f4f6fb;
  border-bottom: var(--border);
  position: static;
}

.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #f4f6fb;
}

.site-shell {
  position: static;
}

.navbar-brand img {
  height: 22px;
}

.nav-link {
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-dark);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--brand-red);
  background: rgba(200, 16, 46, 0.08);
}

.hero-section {
  padding: 3rem 0 2.5rem;
  position: relative;
  background: linear-gradient(120deg, rgba(16, 19, 23, 0.65), rgba(16, 19, 23, 0.25)),
    url("https://static.mgtickets.eu/images/MGTickets_placeholder_2026_2.jpg") center/cover no-repeat;
  min-height: 250px;
}


.hero-section form {
  max-width: 720px;
  margin: 0 auto;
}

.hero-section .input-group {
  gap: 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 19, 23, 0.12);
  background: #fff;
  padding: 0.35rem;
  box-shadow: 0 12px 30px rgba(15, 18, 25, 0.08);
}

.hero-section .form-control {
  border: none;
  background: transparent;
  box-shadow: none;
  padding-left: 1rem;
}

.hero-section .form-control:focus {
  border: none;
  box-shadow: none;
}

.hero-section .btn-brand {
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-red);
}

.hero-title {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-mid);
}

.search-card {
  background: rgba(255, 255, 255, 0.92);
  padding: 2rem;
  border-radius: 1.5rem;
  border: var(--border);
  box-shadow: 0 18px 40px rgba(15, 18, 25, 0.12);
}

.form-control,
.input-group-text {
  border-radius: 0;
  border-color: rgba(16, 19, 23, 0.12);
}

.input-group-text {
  background: #f2f4f8;
}

.form-control:focus {
  border-color: rgba(200, 16, 46, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(200, 16, 46, 0.12);
}

.btn-brand {
  background: linear-gradient(120deg, #d41437, #b70e2d);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
}

.btn-brand:hover,
.btn-brand:focus {
  background: linear-gradient(120deg, #b70e2d, #9f0d26);
  color: #fff;
}

.btn-outline-brand {
  border: 1px solid var(--brand-red);
  color: var(--brand-red);
  font-weight: 600;
  border-radius: 999px;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
  background: var(--brand-red);
  color: #fff;
}

.section-title {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 2vw, 2.3rem);
  margin: 0;
}

.event-card {
  background: var(--card);
  border-radius: 1.4rem;
  overflow: hidden;
  border: var(--border);
  box-shadow: 0 12px 30px rgba(15, 18, 25, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 18, 25, 0.12);
}

.event-detail-card,
.event-order-card,
.event-info-card {
  background: var(--card);
  border-radius: 0;
  border: var(--border);
  box-shadow: 0 12px 30px rgba(15, 18, 25, 0.08);
}

.event-detail-image {
  height: 320px;
  overflow: hidden;
}

.event-detail-card,
.event-order-card,
.event-info-card {
  overflow: hidden;
}

.event-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-detail-body {
  padding: 2rem;
  display: grid;
  gap: 0.6rem;
}

.event-detail-title {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  margin-bottom: 0.25rem;
}

.event-detail-meta {
  margin: 0;
  color: var(--ink-mid);
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.event-detail-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-red);
  margin: 0.4rem 0 0.6rem;
}

.event-info-panel {
  background: #f6f7fb;
  border: 1px solid rgba(16, 19, 23, 0.08);
  border-radius: 18px;
  padding: 1.4rem;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 1fr);
}

.event-info-main {
  display: grid;
  gap: 0.4rem;
}

.event-detail-text {
  color: var(--ink-mid);
  margin: 0;
}

.event-order-card,
.event-info-card {
  padding: 1.8rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.event-order-card .card-header {
  background: #0f1115;
  color: #fff;
  padding: 1rem 1.8rem;
  margin: -1.8rem -1.8rem 1.2rem;
}

.event-order-card .card-header h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(200, 16, 46, 0.1);
  color: var(--brand-red);
  font-weight: 700;
}

.pill.outline {
  background: transparent;
  border: 1px solid rgba(200, 16, 46, 0.35);
}

.event-order-sub {
  color: var(--ink-mid);
  margin-bottom: 1.5rem;
}

.ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ticket-name {
  margin: 0;
  font-weight: 600;
}

.ticket-price {
  margin: 0;
  color: var(--ink-mid);
}

.ticket-qty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ticket-qty .qty-btn {
  border-radius: 999px;
  background: #f2f4f8;
  border: 1px solid rgba(16, 19, 23, 0.12);
  padding: 0.35rem 0.75rem;
  touch-action: manipulation;
}

.ticket-qty .qty-input {
  width: 70px;
  text-align: center;
  border-radius: 999px;
  border: 1px solid rgba(16, 19, 23, 0.12);
}

.order-summary {
  display: grid;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #f7f8fb;
  margin-bottom: 1.2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}

.summary-row.muted {
  color: var(--ink-mid);
  font-size: 0.85rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.info-label {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

.info-value {
  margin: 0.2rem 0 0;
  font-weight: 600;
}

.event-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  color: var(--ink-mid);
}

.event-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
  color: var(--ink-mid);
}

.related-section {
  margin-top: 3rem;
}

.event-mobile-bar {
  display: none;
}

@media (max-width: 991px) {
  .event-order-col {
    display: none;
  }

  .event-mobile-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0f1115;
    color: #fff;
    padding: 0.8rem 0;
    z-index: 1100;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .event-mobile-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .event-mobile-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
  }

  .event-mobile-title {
    font-size: 0.85rem;
    font-weight: 600;
  }

  .event-mobile-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
  }

  .event-mobile-form {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .event-mobile-form .ticket-qty {
    gap: 0.3rem;
  }

  .event-mobile-form .qty-input {
    width: 56px;
    background: #fff;
  }

  .events-page {
    padding-bottom: 7rem;
  }
}

@media (min-width: 992px) {
  .event-info-panel {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }
}

.event-order-col {
  position: static;
}

.event-image {
  position: relative;
  padding: 0;
  background: #f2f2f4;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  height: 230px;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.event-body .btn {
  margin-top: auto;
}

.event-body h3 {
  font-size: 1.05rem;
  margin: 0;
  font-weight: 700;
}

.meta {
  color: var(--ink-mid);
  font-size: 0.85rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
}

.sold-overlay {
  position: absolute;
  top: 12px;
  right: 0;
  background: rgba(200, 16, 46, 0.85);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 999px 0 0 999px;
  font-size: 0.75rem;
  box-shadow: 0 6px 14px rgba(27, 27, 27, 0.15);
}

.footer {
  background: #0f1115;
  color: #f7f2ed;
  padding: 3rem 0 2rem;
}

.footer-link {
  color: #f7f2ed;
  text-decoration: none;
}

.footer-link:hover,
.footer-link:focus {
  color: var(--brand-red);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer h4 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.footer p {
  color: rgba(247, 242, 237, 0.8);
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-form {
  display: grid;
  gap: 0.75rem;
}

.footer-form .form-control {
  background: #1c2129;
  border: 1px solid rgba(247, 242, 237, 0.2);
  color: #fff;
}

.footer-form .form-control::placeholder {
  color: rgba(247, 242, 237, 0.6);
}

.footer-bottom {
  border-top: 1px solid rgba(247, 242, 237, 0.12);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(247, 242, 237, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

@media (max-width: 991px) {
  .hero-section {
    padding: 2.5rem 0 2rem;
  }

  .hero-section form {
    padding: 0;
  }

  .navbar-nav {
    padding-top: 1rem;
  }
}

@media (min-width: 992px) {
  .topbar-link {
    pointer-events: none;
    cursor: default;
  }
}
