@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* ===== All values from absorb main-computed.json ===== */

:root {
  --primary: #29CCA2;
  --primary-hover: #24B88F;
  --primary-light: rgba(41, 204, 162, 0.2);
  --date-red: #EC5751;
  --date-day-bg: #EBECED;
  --date-year-bg: #949494;
  --black: #000000;
  --text: #394247;
  --text-body: #333333;
  --text-muted: #8F9CA3;
  --text-light: #6B7280;
  --text-lighter: #9CA3AF;
  --border: #E3E6E8;
  --input-border: #E6E9EB;
  --input-text: #555555;
  --bg: #FFFFFF;
  --bg-ash: #F8F8F8;
  --bg-light: #F9FAFB;
  --bg-lighter: #F5F6F7;
  --footer-bg: #EEEEEE;
  --footer-link: #503FA5;
  --card-shadow: rgba(0, 0, 0, 0.07) 0 0 13px 0;
  --header-h: 40px;
  --radius-card: 24px;
  --radius-pill: 32px;
  --radius-round: 20px;
  --radius-input: 4px;
}

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

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-body);
  background: var(--bg);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

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

/* ===== Header: h=40, bg=white, padding=0 26px ===== */
.header {
  height: var(--header-h);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  transition: box-shadow 0.2s;
}

.header.scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ===== Login: bg=black, color=white, 14px/600, borderRadius=32px, h=24, padding=0 12px ===== */
.btn-login {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  height: 24px;
  background: var(--black);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-login:hover {
  background: #333;
}

/* ===== Date badge: w=94, borderRadius=8px ===== */
/* month: bg=#EC5751, fontSize=24px, lineHeight=32px */
/* day: bg=#EBECED, fontSize=32px, lineHeight=32px */
/* weekday: bg=#949494, fontSize=24px/16px, lineHeight=32px */
.date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 94px;
  border-radius: 8px;
  overflow: hidden;
  line-height: 32px;
}

.date-badge .month {
  background: var(--date-red);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  width: 100%;
  text-align: center;
  padding: 3px 0;
}

.date-badge .day {
  background: var(--date-day-bg);
  font-size: 28px;
  font-weight: 800;
  color: var(--black);
  width: 100%;
  text-align: center;
  padding: 2px 0;
}

.date-badge .weekday {
  background: var(--date-year-bg);
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  width: 100%;
  text-align: center;
  padding: 3px 0;
}

/* ===== BUY/CTA: bg=#29CCA2, color=black, 16px/700, borderRadius=32px, h=40, uppercase ===== */
.btn-buy {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  padding: 4px 12px;
  background: var(--primary);
  color: var(--black);
  border: 1px solid var(--primary);
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  gap: 4px;
}

.btn-buy:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(41, 204, 162, 0.3);
}

.btn-buy:active {
  transform: scale(0.97);
}

/* ===== Match card: borderRadius=24, padding=24 24 24 142, shadow, position=relative ===== */
.match-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px 24px 24px 142px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  box-shadow: var(--card-shadow);
}

.match-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
  border-color: var(--primary);
}

/* ===== Round item: h=40, borderRadius=20, border=1px solid #E3E6E8, shadow ===== */
.round-item {
  display: inline-grid;
  align-items: center;
  width: 100%;
  height: 40px;
  max-height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-round);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--card-shadow);
  position: relative;
}

.round-item:hover {
  border-color: var(--primary);
}

/* left: padding=15px 16px, gap=8px, flex */
.round-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 16px;
  padding-right: 8px;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  white-space: nowrap;
}

/* right: bg=#29CCA2, borderRadius with left curve, padding=0 20 0 30 */
.round-item-right {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: 20px 20px 20px 20px;
  padding: 0 16px 0 20px;
  height: 100%;
  white-space: nowrap;
  flex-shrink: 0;
}

/* tickets: 16px/700, color=black */
.round-tickets {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin-top: -3px;
}

/* ===== Filter bar container: bg=white, borderRadius=24, padding=24, gap=15 ===== */
.filter-bar {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

/* Filter input: bg=white, border=1px solid #E6E9EB, borderRadius=4, padding=6px 12px */
.filter-input {
  background: #fff;
  color: var(--input-text);
  padding: 6px 12px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-input);
  font-size: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.2s;
  height: 40px;
}

.filter-input:hover {
  border-color: var(--text-lighter);
}

/* ===== Widget/promo bar: bg=rgba(41,204,162,0.2), border=1px solid #29CCA2, borderRadius=24 ===== */
.widget-bar {
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
  padding: 16px 24px;
  display: flex;
  gap: 24px;
  position: relative;
}

/* Widget buttons - white variant: bg=white, 13px/700, borderRadius=32 */
.widget-btn-white {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  height: 40px;
  background: #fff;
  color: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

/* Widget buttons - black variant */
.widget-btn-black {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  height: 40px;
  background: var(--black);
  color: #fff;
  border: 1px solid var(--black);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

/* ===== SHOW MORE button: border=1px solid #E3E6E8, borderRadius=32, h=40, 16px/700 uppercase ===== */
.btn-show-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  background: transparent;
  color: var(--black);
  cursor: pointer;
  gap: 4px;
  transition: all 0.2s;
}

.btn-show-more:hover {
  background: var(--bg-light);
}

/* ===== Offer card ===== */
.offer-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  transition: all 0.2s;
}

.offer-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ===== Search overlay ===== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  animation: fadeIn 0.2s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ===== QtyModal ===== */
.qty-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s;
}

.qty-modal {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  text-align: center;
  animation: scaleIn 0.2s;
}

/* ===== Footer ===== */
.footer {
  background: var(--footer-bg);
  padding: 48px 0 24px;
}

.footer a {
  color: var(--footer-link);
  font-size: 14px;
  display: block;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #ddd;
  font-size: 12px;
  color: var(--text-lighter);
  text-align: center;
  line-height: 1.8;
}

/* ===== Floating buttons ===== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
}

.back-to-top.visible {
  display: flex;
}

.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 80px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 24px;
}

/* ===== Responsive ===== */

/* Tablet: 769-1024 */
@media (max-width: 1024px) {
  .hero-flex {
    flex-direction: column !important;
  }
  .hero-image {
    width: 100% !important;
  }
  .hero-right {
    width: 100% !important;
  }
  .hero-title-row {
    flex-direction: column !important;
    gap: 4px !important;
  }
  .hero-title-row h1 {
    font-size: 32px !important;
  }
  .hero-title-row p {
    font-size: 18px !important;
  }
  .view-tabs {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .seo-features-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile: <=768 */
@media (max-width: 768px) {
  /* Header */
  .header {
    height: 48px;
    padding: 0 12px;
  }

  /* Match cards */
  .match-card {
    padding: 14px;
    padding-left: 14px;
    border-radius: 16px;
  }
  .match-card-image-wrap {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    flex-direction: row !important;
    gap: 12px;
    margin-bottom: 12px;
  }
  .match-card-image {
    width: 80px !important;
    height: 80px !important;
    border-radius: 12px !important;
  }
  .date-badge {
    width: 80px;
  }
  .date-badge .month { font-size: 14px; padding: 2px 0; }
  .date-badge .day { font-size: 20px; }
  .date-badge .weekday { font-size: 12px; }

  /* Match grid: single column */
  .match-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Filter bar */
  .filter-bar {
    flex-direction: column;
    padding: 16px;
    gap: 10px;
    border-radius: 16px;
  }

  /* Widget bar */
  .widget-bar {
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 16px;
  }
  .widget-bar > div:last-child {
    text-align: left !important;
  }
  .widget-bar .widget-btn-white,
  .widget-bar .widget-btn-black {
    font-size: 11px;
    padding: 4px 8px;
    height: 36px;
  }

  /* Round items */
  .round-item {
    height: 36px;
    max-height: 36px;
    border-radius: 18px;
    margin-bottom: 8px;
  }
  .round-item-left {
    padding: 8px 12px;
    padding-right: 4px;
  }
  .round-item-right {
    padding: 0 12px 0 16px;
    border-radius: 18px;
  }
  .round-tickets {
    font-size: 13px;
  }

  /* View tabs */
  .view-tabs {
    grid-template-columns: repeat(4, 1fr) !important;
    height: 44px !important;
  }
  .view-tabs button {
    font-size: 13px !important;
    height: 36px !important;
  }
  .view-tabs button span {
    font-size: 18px !important;
  }

  /* Hero */
  .hero-flex {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .hero-image {
    width: 100% !important;
    flex-shrink: 1 !important;
  }
  .hero-right {
    width: 100% !important;
  }
  .hero-title-row {
    flex-direction: column !important;
    gap: 2px !important;
  }
  .hero-title-row h1 {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }
  .hero-title-row p {
    font-size: 14px !important;
    white-space: normal !important;
  }

  /* Checkout */
  .checkout-grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    overflow: hidden;
  }
  .checkout-sidebar {
    position: relative !important;
    top: auto !important;
    order: -1;
    padding-right: 0 !important;
    min-width: 0;
  }
  .checkout-main {
    padding-left: 0 !important;
    min-width: 0;
    overflow: hidden;
  }
  .checkout-main > div {
    padding: 16px !important;
  }
  .checkout-form-row {
    grid-template-columns: 1fr !important;
  }

  /* Ticket page detail */
  .ticket-page-grid {
    grid-template-columns: 1fr !important;
  }
  .ticket-page-grid > div:first-child {
    display: none !important;
  }
  .ticket-page-grid > div:last-child {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 12px !important;
  }
  .ticket-page-banner h1 {
    font-size: 18px !important;
  }
  .ticket-page-banner img {
    width: 50px !important;
    height: 50px !important;
  }
  .category-pills {
    flex-wrap: wrap !important;
  }
  .ticket-listing-card {
    flex-direction: column !important;
  }
  .ticket-listing-right {
    width: 100% !important;
    flex: 1 1 auto !important;
    border-left: none !important;
    border-top: 1px solid var(--border) !important;
    padding: 12px !important;
  }

  /* Quick links */
  .seo-features-grid {
    grid-template-columns: 1fr !important;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }

  /* Pay button */
  .pay-btn {
    width: 100% !important;
  }

  /* Floating buttons */
  .chat-widget {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .back-to-top {
    right: 16px;
    bottom: 64px;
    width: 36px;
    height: 36px;
  }
}

/* Small mobile: <=480 */
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
  .view-tabs {
    grid-template-columns: repeat(2, 1fr) !important;
    height: auto !important;
  }
  .view-tabs button {
    height: 40px !important;
  }
}
