/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #090914;
  color: #d4d4d8;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ========== Hero ========== */
.hero {
  background: linear-gradient(135deg, #0c1220 0%, #141428 50%, #0f1a2e 100%);
  border-bottom: 1px solid rgba(74, 222, 128, 0.12);
  padding: 48px 24px 40px;
  text-align: center;
}
.hero-inner { max-width: 680px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.25);
  color: #4ade80;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero h1 {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.hero-sub {
  display: block;
  color: #4ade80;
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 6px;
  letter-spacing: 0.5px;
}
.hero-meta {
  color: #71717a;
  font-size: 0.85rem;
  margin-top: 14px;
}

/* ========== Main ========== */
.main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 24px 40px;
}

/* ========== Notes (collapsible) ========== */
.notes {
  background: #111120;
  border: 1px solid #2a2a40;
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.notes[open] { border-color: rgba(251, 191, 36, 0.3); }
.notes-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: #a1a1aa;
  list-style: none;
  user-select: none;
  transition: color 0.2s;
}
.notes-toggle::-webkit-details-marker { display: none; }
.notes-toggle:hover { color: #d4d4d8; }
.notes-icon {
  font-size: 1.1rem;
  color: #fbbf24;
  line-height: 1;
}
.notes-chevron {
  margin-left: auto;
  width: 18px; height: 18px;
  position: relative;
}
.notes-chevron::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 7px; height: 7px;
  border-right: 2px solid #71717a;
  border-bottom: 2px solid #71717a;
  transform: translate(-50%, -60%) rotate(45deg);
  transition: transform 0.2s;
}
.notes[open] .notes-chevron::before {
  transform: translate(-50%, -40%) rotate(-135deg);
}
.notes-list {
  list-style: none;
  padding: 0 20px 16px 20px;
}
.notes-list li {
  padding: 7px 0 7px 18px;
  font-size: 0.82rem;
  color: #a1a1aa;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.notes-list li:last-child { border-bottom: none; }
.notes-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 14px;
  width: 5px; height: 5px;
  background: #fbbf24;
  border-radius: 50%;
}
.notes-link {
  color: #4ade80;
  text-decoration: underline;
  text-decoration-color: rgba(74,222,128,0.4);
  text-underline-offset: 2px;
  transition: color 0.15s;
}
.notes-link:hover { color: #86efac; text-decoration-color: rgba(74,222,128,0.7); }

/* ========== Toolbar (search + filters) ========== */
.toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: stretch;
  flex-wrap: wrap;
}
.search-wrap {
  flex: 1;
  min-width: 200px;
  position: relative;
}
.search-icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: #52525b;
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid #27272a;
  border-radius: 10px;
  background: #111120;
  color: #fff;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input::placeholder { color: #52525b; }
.search-input:focus {
  outline: none;
  border-color: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.08);
}
.filter-tabs {
  display: flex;
  gap: 0;
  background: #111120;
  border: 1px solid #27272a;
  border-radius: 10px;
  padding: 3px;
  flex-shrink: 0;
}
.tab {
  padding: 7px 14px;
  border-radius: 8px;
  background: transparent;
  color: #71717a;
  border: none;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: inherit;
  transition: all 0.15s;
  white-space: nowrap;
}
.tab:hover { color: #a1a1aa; }
.tab.active {
  background: #4ade80;
  color: #000;
  font-weight: 600;
}

/* ========== Status bar ========== */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 16px;
  color: #52525b;
  font-size: 0.78rem;
  flex-wrap: wrap;
  gap: 6px;
}
.status-bar strong { color: #4ade80; font-weight: 600; }

/* ========== Loading / Empty ========== */
.state-msg { text-align: center; padding: 80px 20px; color: #52525b; }
.state-msg .state-title { color: #71717a; font-weight: 600; font-size: 1.1rem; margin-bottom: 8px; }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid #1e1e30;
  border-top-color: #4ade80;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== Desktop Table ========== */
.table-wrap {
  background: #0e0e1c;
  border: 1px solid #1e1e30;
  border-radius: 12px;
  overflow: hidden;
}
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #1a1a2c;
}
th {
  background: #0b0b18;
  color: #71717a;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  position: sticky;
  top: 0;
  z-index: 2;
}
td { font-size: 0.87rem; }
tr:hover td { background: rgba(74, 222, 128, 0.03); }
.col-num { width: 44px; }
.col-price { width: 110px; text-align: right; }
.col-price + .col-price { border-left: 1px solid #1a1a2c; }
th.col-price { text-align: right; }
.row-num { color: #3f3f46; font-size: 0.78rem; font-weight: 500; }
.match-name {
  color: #e4e4e7;
  font-weight: 500;
  max-width: 340px;
}
.date { white-space: nowrap; color: #a1a1aa; font-size: 0.84rem; }
.venue { color: #71717a; font-size: 0.82rem; max-width: 220px; }
.price {
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  color: #4ade80;
  font-weight: 500;
  font-size: 0.85rem;
  text-align: right;
  white-space: nowrap;
}
.price-na { color: #52525b; font-style: italic; font-family: inherit; }
.special-label {
  display: inline-block;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: middle;
}

/* ========== Mobile Cards ========== */
.cards { display: none; }

.match-card {
  background: #111120;
  border: 1px solid #1e1e30;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.match-card:active { border-color: #27272a; }
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.card-num {
  background: #1a1a2e;
  color: #52525b;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 2px;
}
.card-title {
  color: #e4e4e7;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  flex: 1;
}
.card-meta {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: #71717a;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.card-meta-item { display: flex; align-items: center; gap: 5px; }
.card-meta-icon { opacity: 0.5; flex-shrink: 0; }
.card-prices {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.card-price-box {
  background: #0b0b18;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
}
.card-price-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #52525b;
  margin-bottom: 4px;
}
.card-price-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 0.88rem;
  color: #4ade80;
}
.card-price-value.na { color: #3f3f46; font-family: inherit; font-size: 0.78rem; }

/* ========== Footer ========== */
.footer {
  text-align: center;
  padding: 32px 24px;
  color: #3f3f46;
  font-size: 0.75rem;
  border-top: 1px solid #141420;
  margin-top: 24px;
  line-height: 1.8;
}

/* ========== Responsive ========== */
@media (max-width: 860px) {
  .hero { padding: 36px 20px 32px; }
  .hero h1 { font-size: 1.5rem; }
  .hero-sub { font-size: 0.95rem; }

  .main { padding: 20px 16px 32px; }

  .toolbar { flex-direction: column; }
  .filter-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .filter-tabs::-webkit-scrollbar { display: none; }

  /* Hide table, show cards */
  .table-wrap { display: none !important; }
  .cards[data-active] { display: block !important; }

  .status-bar { font-size: 0.73rem; }
}

@media (min-width: 861px) {
  .cards { display: none !important; }
}

/* ========== Seat Plan Button ========== */
/* Venue row layout */
.venue-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.venue-name { flex: 1; min-width: 0; }

.seat-plan-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: #4ade80;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.seat-plan-btn:hover {
  background: rgba(74, 222, 128, 0.18);
  border-color: rgba(74, 222, 128, 0.45);
}
.seat-plan-icon { width: 14px; height: 14px; display: block; flex-shrink: 0; }
.seat-plan-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #4ade80;
  letter-spacing: 0.3px;
}

/* Mobile cards: seat plan button in meta row */
@media (max-width: 860px) {
  .card-meta .seat-plan-btn {
    padding: 5px 12px;
  }
  .card-meta .seat-plan-icon { width: 16px; height: 16px; }
  .card-meta .seat-plan-label { font-size: 0.73rem; }
}

/* ========== Seat Plan Lightbox ========== */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox-overlay.lightbox-open { opacity: 1; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 8px;
  z-index: 2;
  transition: background 0.15s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}
.lightbox-open .lightbox-img { transform: scale(1); }

/* ========== Clickable prices & match names ========== */
.price.clickable, .match-name.clickable {
  cursor: pointer;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.price.clickable {
  text-decoration: underline;
  text-decoration-color: rgba(74,222,128,0.35);
  text-underline-offset: 3px;
}
.price.clickable:hover { color: #86efac; text-decoration-color: rgba(74,222,128,0.7); }
.match-name.clickable:hover { color: #fff; }
.card-price-box.clickable, .card-title.clickable { cursor: pointer; }
.card-price-box.clickable:active { background: #141428; }
.card-title.clickable:active { color: #fff; }

/* Mobile card prices as links */
.card-price-box.clickable .card-price-value:not(.na) {
  text-decoration: underline;
  text-decoration-color: rgba(74,222,128,0.35);
  text-underline-offset: 3px;
}
.card-price-box.clickable:hover .card-price-value:not(.na) {
  text-decoration-color: rgba(74,222,128,0.7);
}

/* ========== Lead Modal ========== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.modal-overlay.modal-open { opacity: 1; }

.modal-content {
  background: #111120;
  border: 1px solid #252540;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
}
.modal-open .modal-content { transform: translateY(0) scale(1); }

/* Scrollbar */
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb { background: #27272a; border-radius: 3px; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #52525b;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.modal-close:hover { color: #d4d4d8; background: rgba(255,255,255,0.05); }

/* Match info header */
.modal-match-info {
  background: #0b0b18;
  border: 1px solid #1e1e30;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.modal-match-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.modal-seat-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #252540;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, opacity 0.15s;
}
.modal-seat-thumb:hover { border-color: #4ade80; opacity: 0.85; }
.modal-match-name {
  color: #e4e4e7;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.modal-match-details { display: flex; align-items: center; gap: 10px; }
.modal-badge {
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.25);
  color: #4ade80;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 5px;
}
.modal-price {
  font-family: 'JetBrains Mono', monospace;
  color: #4ade80;
  font-weight: 500;
  font-size: 0.88rem;
}

.modal-hint {
  color: #71717a;
  font-size: 0.76rem;
  line-height: 1.45;
  margin-bottom: 14px;
  padding: 8px 12px;
  background: rgba(251, 191, 36, 0.06);
  border-left: 2px solid rgba(251, 191, 36, 0.35);
  border-radius: 0 6px 6px 0;
}

/* Form */
.form-group { margin-bottom: 12px; }
.form-row-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-label {
  display: block;
  color: #a1a1aa;
  font-size: 0.73rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}
.req { color: #f87171; }
.form-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #27272a;
  border-radius: 8px;
  background: #0b0b18;
  color: #fff;
  font-size: 0.85rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: #3f3f46; }
.form-input:focus {
  outline: none;
  border-color: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.08);
}
.form-input.input-error { border-color: #f87171; }
.form-input.input-error:focus { box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1); }

.form-textarea { resize: vertical; min-height: 56px; }

.field-error {
  display: block;
  color: #f87171;
  font-size: 0.73rem;
  margin-top: 4px;
  min-height: 0;
}
.form-error { text-align: center; margin-top: 10px; }

/* Phone row */
.phone-row { display: flex; gap: 6px; align-items: center; }
.phone-code { width: 100px; flex-shrink: 0; padding-right: 2px; }
.phone-number { flex: 1; }

/* WhatsApp checkbox under phone */
.wa-check {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  margin-top: 6px;
  user-select: none;
}
.wa-check input { display: none; }
.wa-checkmark {
  width: 16px;
  height: 16px;
  border: 1.5px solid #3f3f46;
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}
.wa-check input:checked ~ .wa-checkmark {
  background: #4ade80;
  border-color: #4ade80;
}
.wa-check input:checked ~ .wa-checkmark::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.wa-text {
  color: #71717a;
  font-size: 0.78rem;
  transition: color 0.15s;
}
.wa-check input:checked ~ .wa-text { color: #a1a1aa; }

/* Communication pills */
.comm-pills { display: flex; gap: 0; background: #0b0b18; border: 1px solid #27272a; border-radius: 8px; padding: 2px; }
.comm-pill {
  flex: 1;
  text-align: center;
  cursor: pointer;
}
.comm-pill input { display: none; }
.comm-pill span {
  display: block;
  padding: 7px 8px;
  border-radius: 6px;
  color: #71717a;
  font-size: 0.78rem;
  font-weight: 500;
  transition: all 0.15s;
}
.comm-pill:hover span { color: #a1a1aa; }
.comm-pill.active span {
  background: #4ade80;
  color: #000;
  font-weight: 600;
}

/* Submit button */
.form-submit {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #4ade80;
  color: #000;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  margin-top: 2px;
}
.form-submit:hover { background: #86efac; }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 4px;
}

/* Thank you view */
#leadThankYou { text-align: center; padding: 20px 0; }
.thankyou-icon {
  width: 64px;
  height: 64px;
  line-height: 64px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.12);
  color: #4ade80;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 20px;
  border: 2px solid rgba(74, 222, 128, 0.3);
}
.thankyou-title {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.thankyou-msg {
  color: #a1a1aa;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 6px;
}
.thankyou-sub {
  color: #52525b;
  font-size: 0.82rem;
  margin-bottom: 24px;
}
.thankyou-close { max-width: 200px; margin: 0 auto; }

/* Modal responsive */
@media (max-width: 520px) {
  .modal-content { padding: 20px 16px; max-height: 93vh; }
  .form-row-2col { grid-template-columns: 1fr; gap: 0; }
  .comm-pill span { padding: 6px 6px; font-size: 0.74rem; }
}
