/*
  css/pages.css
  Page-specific styles.
*/

/* =============================================
   HOME HERO — Premium Split-Screen Layout
   ============================================= */

/* --- Base Hero Section --- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #020815 0%, #0a1628 40%, #0d1f3c 100%);
  padding: 0;
  min-height: auto;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(34, 197, 94, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(14, 165, 233, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* --- Split Layout Container --- */
.hero__split {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-height, 72px));
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* --- LEFT: Content Side --- */
.hero__content {
  flex: 0 0 48%;
  max-width: 48%;
  padding: 4rem 2rem 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero__card {
  max-width: 560px;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  display: flex;
  flex-direction: column;
  gap: 0;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Title & Text --- */
.hero__title {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  color: #ffffff;
  letter-spacing: -0.03em;
  font-weight: 800;
  text-align: left;
}

.hero__subtitle {
  font-size: 1.05rem;
  color: rgba(248, 250, 252, 0.65);
  max-width: 480px;
  margin: 0 0 1.75rem 0;
  line-height: 1.65;
  text-align: left;
}

.cityBadge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  font-weight: 600;
  margin-bottom: 1.25rem;
  font-size: 0.8rem;
  border: 1px solid rgba(34, 197, 94, 0.2);
  letter-spacing: 0.02em;
  width: fit-content;
}

/* --- Location Notice (inside hero) --- */
.hero__notice {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero__notice-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.hero__location-btn {
  background: transparent !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
  color: #22c55e !important;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero__location-btn:hover {
  background: rgba(34, 197, 94, 0.12) !important;
  border-color: #22c55e !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.15);
}

/* --- Search Form (inside hero) --- */
.hero__search-form {
  background: rgba(255, 255, 255, 0.06) !important;
  padding: 1.25rem !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  margin-bottom: 1.25rem !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  max-width: 100% !important;
  align-items: stretch !important;
}

.hero__search-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  width: 100%;
}

.hero__search-form .field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.4rem;
}

.hero__search-form .field input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.hero__search-form .field input::placeholder {
  color: rgba(248, 250, 252, 0.4);
}

.hero__search-form .field input:focus {
  outline: none;
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.hero__search-btn {
  width: 100%;
  padding: 0.85rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border: none;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.hero__search-btn:hover {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
  transform: translateY(-1px);
}

/* --- Explore Button --- */
.hero__explore-btn {
  align-self: flex-start;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__explore-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
}


@media (min-width: 768px) {
  .hero {
    background-image: 
      linear-gradient(90deg, rgba(2, 8, 21, 0.6) 0%, rgba(2, 8, 21, 0.4) 50%, rgba(2, 8, 21, 0) 80%),
      url("../assets/images/hero_bg_desktopview.png");
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
  }
}

/* =============================================
   HERO — MOBILE (below 768px)
   ============================================= */
@media (max-width: 767px) {
  .hero {
    background: none;
    padding: 0;
    min-height: auto;
  }

  .hero::before {
    display: none;
  }

  .hero__split {
    flex-direction: column;
    min-height: auto;
  }

  /* Hide desktop image on mobile */
  .hero__image-side {
    display: none;
  }

  /* Mobile: Portrait background image */
  .hero__content {
    flex: 1;
    max-width: 100%;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    background-image: url("../assets/images/hero_bg_mobileview.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
  }

  .hero__card {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    animation: none;
  }

  /* --- Mobile: Top Overlay Text (above the player) --- */
  .hero__card .cityBadge,
  .hero__card .hero__title,
  .hero__card .hero__subtitle {
    position: relative;
    z-index: 2;
  }

  .hero__card .cityBadge {
    margin: 0 auto;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .hero__title {
    text-align: center !important;
    font-size: 1.85rem;
    padding: 0 1.25rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  }

  .hero__subtitle {
    text-align: center !important;
    font-size: 0.9rem;
    padding: 0 1.5rem;
    margin: 0 auto 0 auto;
    max-width: 340px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  }

  /* --- Spacer to push content below the player --- */
  .hero__card .hero__notice,
  .hero__card .hero__search-form,
  .hero__card .hero__explore-btn {
    position: relative;
    z-index: 2;
  }

  /* Push the form content down to sit below the player area */
  .hero__card .hero__notice {
    margin-top: 52vh;
  }

  /* --- Mobile: Floating Glass Card for form --- */
  .hero__notice {
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 0.85rem;
    background: rgba(8, 17, 31, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  }

  .hero__search-form {
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 1rem;
    background: rgba(8, 17, 31, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    padding: 1.25rem !important;
  }

  .hero__search-fields {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hero__explore-btn {
    align-self: center !important;
    margin-bottom: 1.75rem;
    font-size: 0.85rem;
  }

  /* Mobile hero gradient overlay for text readability (top portion) */
  .hero__content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(2, 8, 21, 0.7) 0%, rgba(2, 8, 21, 0.3) 60%, transparent 100%);
    z-index: 1;
    pointer-events: none;
  }

  /* Bottom gradient for form area blending */
  .hero__content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(0deg, rgba(2, 8, 21, 0.95) 0%, rgba(2, 8, 21, 0.7) 40%, transparent 100%);
    z-index: 1;
    pointer-events: none;
  }
}

/* --- Search Bar (Floating — non-hero pages) --- */
.searchBar {
  background: rgba(255, 255, 255, 0.07);
  padding: 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  display: flex;
  gap: 1rem;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.searchBar--full {
  width: 100%;
  max-width: 100%;
}

.searchBar .field {
  flex: 1;
  min-width: 200px;
}

.searchBar input,
.searchBar select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-inv);
  padding: 0.95rem 1rem;
  font-size: 1rem;
}

.searchBar input::placeholder,
.searchBar select::placeholder {
  color: rgba(248, 250, 252, 0.6);
}

.searchBar input:focus,
.searchBar select:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.14);
}

.searchBar button {
  padding: 0.95rem 2rem;
  border-radius: var(--radius-full);
}


/* Page Headers */
.pageHeader {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .pageHeader {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

.pageTitle {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-inv);
  letter-spacing: -0.03em;
  margin: 0;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 767px) {
  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Turf Detail */
.turfDetail__header {
  margin-bottom: 2rem;
}

.turfDetail__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
  background: #e2e8f0;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

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

/* =========================================
   FEEDBACK & ABOUT PAGES
   ========================================= */

/* Feedback Cards (Grid) */
.feedback-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.feedback-card {
  display: block;
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.feedback-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.feedback-card__content {
  background: var(--bg-elevated);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: all 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
}

.feedback-card:hover .feedback-card__content {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feedback-card input:checked+.feedback-card__content,
.feedback-card.selected .feedback-card__content {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.12);
  /* mint green tint */
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.feedback-card__icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.feedback-card__title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}

/* System font for specific fields */
.input--system-font,
.input--system-font::placeholder {
  font-family: var(--font-system) !important;
}

/* Star Rating */
.rating-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.star-rating {
  font-size: 2.5rem;
  /* Larger Click Area */
  color: #e2e8f0;
  /* Gray-200 */
  display: flex;
  gap: 0.5rem;
  cursor: pointer;
  width: fit-content;
  user-select: none;
}

.star-rating .star {
  transition: transform 0.1s, color 0.1s;
  pointer-events: auto;
  /* Ensure clickable */
}

.star-rating .star:hover {
  transform: scale(1.2);
  color: #fcd34d;
  /* Amber-300 */
}

.star-rating .star.active {
  color: #fbbf24;
  /* Amber-400 */
}

/* Animations */
.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  80% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Utility for text sizes */
.textSm {
  font-size: 0.875rem;
}

.textLg {
  font-size: 1.125rem;
}

.textCenter {
  text-align: center;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Standardized Checkbox Grid */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  /* Better for multiline */
  gap: 0.75rem;
  font-weight: 400;
  cursor: pointer;
  user-select: none;
  font-size: 0.95rem;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  /* Align with first line of text */
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* Duration & Slots */
.durationOptions,
.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.durationBtn,
.slotBtn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.9rem;
}

/* Payment & Checkout */
.payPage {
  padding: 3rem 0;
  max-width: 1000px;
  margin: 0 auto;
}

/* Progress Steps */
.paySteps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.payStep {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.4;
}

.payStep--active {
  opacity: 1;
}

.payStep__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.payStep--active .payStep__num {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-primary);
}

.payStep__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Checkout Layout */
.checkoutGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 800px) {
  .checkoutGrid {
    grid-template-columns: 1.5fr 1fr;
  }
}

.checkoutBox {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.checkoutBox__title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--secondary);
}

/* Order Summary */
.orderRef {
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 2px dashed var(--border);
  margin-bottom: 1.5rem;
}

.orderRef__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
}

.orderRef__value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  font-family: var(--font-system);
  margin: 0.5rem 0;
}

/* Payment Card Area */
.payAction {
  gap: 1.5rem;
}

.payAction__info {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Trust Badges */
.trustStack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.trustTile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.trustTile__icon {
  font-size: 1.25rem;
}

.trustTile__text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
}

.durationBtn:hover,
.slotBtn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.durationBtn[aria-pressed="true"],
.slotBtn[aria-pressed="true"] {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}

.slotBtn:disabled {
  background: rgba(255, 255, 255, 0.04);
  color: #7c8b99;
  border-color: transparent;
  cursor: not-allowed;
}

/* Booking Overlay */
.bookingOverlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 8, 21, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1rem;
  animation: fadeIn 0.3s ease-out;
}

.bookingOverlay[hidden] {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.bookingOverlay__card {
  background: var(--bg-elevated);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 400px;
  width: 100%;
  border: 1px solid var(--border);
}

.bookingOverlay__spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.bookingOverlay__title {
  color: var(--secondary);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Dashboard Cards */
.statCard {
  background: var(--bg-elevated);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.statCard__label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.statCard__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary);
  margin-top: 0.5rem;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table th {
  background: var(--bg-elevated);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
}


.table tr:last-child td {
  border-bottom: none;
}

/* Responsive Table Overhaul */
.table-container {
  width: 100%;
  margin-bottom: 2rem;
  overflow: visible;
  /* We use card-view instead of horizontal scroll */
}

.table {
  width: 100%;
  border-collapse: collapse;
}

@media (max-width: 768px) {
  .table-responsive {
    display: block;
    width: 100%;
  }

  .table-responsive thead {
    display: none;
    /* Hide headers on mobile */
  }

  .table-responsive tbody,
  .table-responsive tr,
  .table-responsive td {
    display: block;
    width: 100%;
  }

  .table-responsive tr {
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem;
  }

  .table-responsive td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    white-space: normal;
    min-width: 0;
    width: 100%;
  }

  .table-responsive td:last-child {
    border-bottom: 0;
  }

  .table-responsive td::before {
    content: attr(data-label);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-right: 1.5rem;
    text-align: left;
    flex-shrink: 0;
  }
}

.table th,
.table td {
  white-space: nowrap;
}

/* Image Carousel in components.css handles this now */

/* --- Landing Page Enhancements --- */

/* SVG Animations */
.hero__animations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  color: var(--primary);
  /* Inherit theme color */
}

.hero__svg {
  position: absolute;
  opacity: 0.12;
  /* Subtle but visible */
}

.svg-fill {
  fill: currentColor;
}

.svg-stroke {
  stroke: currentColor;
}

/* Main Scene Container */
.hero__svg--scene {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  max-width: 1200px;
}

/* Kicking Leg Animation */
.anim-leg-group {
  animation: kickLeg 3.5s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

@keyframes kickLeg {

  0% {
    transform: rotate(0deg);
  }

  20% {
    transform: rotate(-50deg);
  }

  /* Wind up back */
  35% {
    transform: rotate(55deg);
  }

  /* Explosive kick forward */
  50% {
    transform: rotate(15deg);
  }

  /* Follow through */
  100% {
    transform: rotate(0deg);
  }
}

/* Ball Shot Animation */
.anim-ball-shot {
  animation: ballShot 3.5s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
  transform-box: fill-box;
}

@keyframes ballShot {

  0%,
  32% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }

  35% {
    /* Kick moment - ball leaves foot */
    transform: translate(20px, -15px) scale(1);
    opacity: 1;
  }

  60% {
    /* Mid-flight toward goal */
    transform: translate(420px, -90px) scale(0.75);
    opacity: 1;
  }

  75% {
    /* Approaching goal */
    transform: translate(530px, -120px) scale(0.65);
    opacity: 1;
  }

  85% {
    /* Hits net */
    transform: translate(560px, -100px) scale(0.6);
    opacity: 0.3;
  }

  100% {
    transform: translate(560px, -100px) scale(0.6);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {

  .anim-leg-group,
  .anim-ball-shot {
    animation: none;
  }
}

/* How It Works */
.howItWorks {
  padding: 4rem 0;
  background: rgba(255, 255, 255, 0.03);
}

.stepsGrid {
  display: grid;

  /* --- Premium Analytics UI --- */
  .analytics-hero {
    background: linear-gradient(135deg, var(--primary), #065f46 100%);
    padding: 3rem;
    border-radius: var(--radius-lg);
    color: white;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
  }

  .analytics-hero::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
  }

  .analytics-hero h2 {
    color: white;
    margin-bottom: 0.5rem;
  }

  .analytics-hero p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
  }

  .premium-card {
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }

  .metric-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .metric-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
  }

  .metric-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
  }

  .metric-trend {
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }

  .trend--up {
    color: #059669;
  }

  .trend--down {
    color: #dc2626;
  }

  .chart-container-premium {
    position: relative;
    height: 300px;
    width: 100%;
  }

  .top-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
  }

  .top-list-item:last-child {
    border-bottom: none;
  }

  .top-list-info {
    display: flex;
    flex-direction: column;
  }

  .top-list-name {
    font-weight: 600;
    color: var(--text-main);
  }

  .top-list-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
  }

  .top-list-value {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
  }

  .progress-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
    width: 100%;
  }

  .progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 3px;
    transition: width 1s ease-out;
  }

  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stepCard {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.stepCard:hover {
  transform: translateY(-5px);
}

.stepCard__icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  color: var(--primary);
}

.stepCard__title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-inv);
}


/* --- SaaS SaaS Analytics Upgrade --- */
.analytics-section-premium {
  padding: 1rem 0;
  animation: fadeIn 0.5s ease-out;
}

.filter-bar {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form__input,
.filter-control {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  -webkit-text-fill-color: var(--text-main);
  color-scheme: dark;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-width: 150px;
}

.form__input option,
.filter-control option {
  color: var(--text-main);
  background: var(--bg-elevated);
}

.filter-control:focus,
.form__input:focus {
  outline: none;
  border-color: var(--primary);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.premium-metric-card {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.metric-icon-box {
  width: 32px;
  height: 32px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.metric-comparison {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.comparison--pos {
  color: #059669;
}

.comparison--neg {
  color: #dc2626;
}

.comparison--neu {
  color: var(--text-muted);
}

.insight-card {
  border-left: 4px solid var(--primary);
  background: rgba(16, 185, 129, 0.12);
}

.insight-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.insight-item:last-child {
  border-bottom: none;
}

.insight-icon {
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Skeleton Loading State */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1.25rem;
  margin-bottom: 0.5rem;
}

.skeleton-title {
  height: 2rem;
  width: 60%;
  margin-bottom: 1rem;
}

.skeleton-chart {
  height: 250px;
  width: 100%;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: inherit;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Tournaments & Corporate Events CSS --- */

/* Hero modules */
.module-hero {
  position: relative;
  background: var(--brand-gradient);
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  color: white;
  margin-bottom: 2rem;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.module-hero h1 {
  color: white;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.module-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* Tournament cards */
.tournament-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.tournament-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tournament-card__image-wrapper {
  position: relative;
  height: 180px;
  width: 100%;
}

.tournament-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tournament-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.tournament-card__sport {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.tournament-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tournament-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.tournament-card__venue {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.tournament-card__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.tournament-card__detail-item span {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
}

.tournament-card__detail-item strong {
  color: var(--text-main);
  font-size: 0.9rem;
}

/* Category cards for Corporate */
.corporate-category-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.corporate-category-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.corporate-category-card.active {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.12);
  box-shadow: 0 0 0 2px var(--primary);
}

.corporate-category-card__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.corporate-category-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

/* Corporate activity card */
.corporate-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.corporate-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.corporate-card__image-wrapper {
  position: relative;
  height: 180px;
}

.corporate-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.corporate-card__category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--primary);
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.corporate-card__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.corporate-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.corporate-card__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
  flex: 1;
}

.corporate-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.corporate-card__feature-badge {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-light);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Detail page template styling */
.module-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .module-details-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.detail-info-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.detail-info-card h2 {
  color: var(--secondary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #f0fdf4;
  padding-bottom: 0.5rem;
}

.detail-sidebar-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.detail-meta-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.detail-meta-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--primary);
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.detail-meta-content span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.detail-meta-content strong {
  font-size: 1rem;
  color: var(--text-main);
}

/* Responsive card button grouping */
.card-btn-group {
  display: flex;
  gap: 1rem;
  width: 100%;
}

.card-btn-group .btn {
  flex: 1;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .card-btn-group {
    flex-direction: column;
    gap: 0.75rem;
  }
  .card-btn-group .btn {
    flex: none;
    width: 100%;
  }
}