/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #f8f4ff 0%, #e8f4fd 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid #e5e7eb;
  padding: 24px 0;
  position: relative;
  z-index: 100; /* Ensure header has high z-index */
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 4px;
}

.header-left p {
  color: #6b7280;
  font-size: 1rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 200; /* Higher z-index for header right section */
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #059669;
  font-size: 0.875rem;
}

.header-badge i {
  font-size: 1.25rem;
}

/* Header Selectors - IMPROVED STYLES */
.header-selectors {
  display: flex;
  gap: 16px;
  align-items: center;
  position: relative;
  z-index: 300; /* Even higher z-index for selectors */
}

.selector-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.selector-label {
  font-size: 0.75rem;
  color: #6b7280;
  font-weight: 500;
}

.custom-select {
  position: relative;
  display: inline-block;
  min-width: 140px;
  z-index: 400; /* High z-index for custom select */
}

.select-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
  width: 100%;
  justify-content: space-between;
  position: relative;
  z-index: 401;
}

.select-button:hover {
  border-color: #8b5cf6;
  background: #f9fafb;
}

.select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 10000; /* Base z-index for dropdowns */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease-in-out;
  margin-top: 4px;
  max-height: 300px;
  overflow-y: auto;
  min-width: 200px; /* Ensure minimum width */
}

.select-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto; /* Ensure dropdown is clickable */
}

.select-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f3f4f6;
  background: white;
  position: relative;
  z-index: 9998;
}

.select-option:last-child {
  border-bottom: none;
}

.select-option:hover {
  background: #f9fafb;
  color: #8b5cf6;
}

.select-option.active {
  background: #f0f9ff;
  color: #0369a1;
  font-weight: 500;
}

.select-option.hidden {
  display: none;
}

.flag-icon {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  background: #f3f4f6;
  display: inline-block;
  flex-shrink: 0;
}

/* Search input for country selector */
.country-search {
  position: sticky;
  top: 0;
  background: white;
  padding: 8px 12px;
  border-bottom: 1px solid #e5e7eb;
  z-index: 9997;
}

.country-search input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.875rem;
  outline: none;
}

.country-search input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 1px #8b5cf6;
}

.no-results {
  padding: 12px;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
  font-style: italic;
}

/* SPECIFIC Z-INDEX FOR LANGUAGE DROPDOWN - HIGHEST PRIORITY */
#languageDropdown {
  z-index: 10002 !important; /* Highest z-index for language dropdown */
}

/* SPECIFIC Z-INDEX FOR COUNTRY DROPDOWN - LOWER THAN LANGUAGE */
#countryDropdown {
  z-index: 10001 !important; /* Lower than language dropdown */
}

/* Search Section */
.search-section {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 24px;
  margin: 32px 0;
  position: relative;
  z-index: 50; /* Lower z-index than header */
}

.search-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 300px;
}

.search-input-wrapper i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

.search-input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #8b5cf6;
}

.controls-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.select-input {
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  font-size: 0.875rem;
  min-width: 180px;
  cursor: pointer;
}

.btn {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: #8b5cf6;
  color: white;
}

.btn-primary:hover {
  background: #7c3aed;
}

.btn-outline {
  background: white;
  color: #374151;
  border: 2px solid #e5e7eb;
}

.btn-outline:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

/* Filters Panel */
.filters-panel {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.filter-group label {
  display: block;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #8b5cf6;
}

.checkbox-item label {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  cursor: pointer;
}

/* Results Count */
.results-count {
  margin-bottom: 24px;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Loading Spinner */
.loading-spinner {
  text-align: center;
  padding: 60px 20px;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #8b5cf6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Casino Cards */
.casinos-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 10; /* Lower z-index than header */
}

.casino-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
}

.casino-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* FEATURED CASINO STYLING */
.casino-card.featured {
  border: 3px solid #f59e0b;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15);
  transform: scale(1.02);
}

.casino-card.featured:hover {
  box-shadow: 0 15px 35px rgba(245, 158, 11, 0.25);
}

.casino-card.featured::before {
  content: "⭐ FEATURED";
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.casino-card.featured .casino-header {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.casino-header {
  background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
  color: white;
  padding: 24px;
}

/* 3-Column Layout for Casino Header */
.casino-header-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  width: 100%;
}

/* Column 1: Logo + Name + Rating */
.casino-column-1 {
  display: flex;
  align-items: center;
  gap: 16px;
}

.casino-logo {
  width: 64px;
  height: 32px;
  object-fit: contain;
  background: white;
  border-radius: 4px;
  padding: 4px 8px;
}

.casino-details h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.casino-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.star {
  color: #fbbf24;
  font-size: 1rem;
}

.star.empty {
  color: #d1d5db;
}

.badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* Column 2: Description */
.casino-column-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.casino-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: center;
  max-width: 400px;
}

/* Column 3: Visit Button */
.casino-column-3 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* NEW: Compact View Styles */
.casino-compact-view {
  padding: 16px;
  border-bottom: 1px solid #e5e7eb;
  transition: opacity 0.3s ease-out, max-height 0.3s ease-out;
  max-height: 300px; /* Increased to accommodate mobile layout */
  opacity: 1;
  overflow: hidden;
}

/* Hide compact view when expanded */
.casino-card.expanded .casino-compact-view {
  max-height: 0;
  opacity: 0;
  padding: 0;
  border-bottom: none;
}

.compact-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1.5fr 1fr;
  gap: 16px;
  align-items: center;
}

.compact-bonus {
  padding: 12px;
  background: #f0fdf4;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
}

.compact-bonus h4 {
  font-size: 0.75rem;
  color: #166534;
  margin-bottom: 4px;
}

.compact-bonus p {
  font-size: 0.875rem;
  font-weight: 500;
  color: #15803d;
}

.compact-stats {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.compact-stat {
  text-align: center;
  padding: 8px;
  background: #f9fafb;
  border-radius: 8px;
  flex: 1;
}

.compact-stat i {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.compact-stat .stat-label {
  font-size: 0.65rem;
  color: #6b7280;
  margin-bottom: 2px;
}

.compact-stat .stat-value {
  font-weight: 600;
  font-size: 0.75rem;
  color: #1f2937;
}

.compact-pros {
  padding: 8px;
}

.compact-pros h4 {
  font-size: 0.75rem;
  color: #059669;
  margin-bottom: 4px;
}

.compact-pros-list {
  list-style: none;
  font-size: 0.75rem;
}

.compact-pros-list li {
  margin-bottom: 2px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.compact-pros-list li::before {
  content: "✓";
  color: #059669;
  font-weight: bold;
}

.compact-actions {
  display: flex;
  justify-content: flex-end;
}

/* Expanded Content */
.casino-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out, padding 0.3s ease-in-out;
  opacity: 0;
  padding: 0;
}

.casino-card.expanded .casino-content {
  max-height: 2000px; /* Large enough to fit all content */
  padding: 24px;
  opacity: 1;
}

.casino-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.bonus-section {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.bonus-section h4 {
  color: #166534;
  font-weight: 600;
  margin-bottom: 8px;
}

.bonus-section p {
  color: #15803d;
  font-weight: 500;
}

.description-section {
  margin-bottom: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
}

.description-section h4 {
  font-weight: 600;
  margin-bottom: 12px;
  color: #1f2937;
}

.description-section p {
  color: #4b5563;
  line-height: 1.6;
  font-size: 0.875rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-item {
  text-align: center;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
}

.stat-item i {
  font-size: 1.5rem;
  color: #6b7280;
  margin-bottom: 8px;
  display: block;
}

.stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.stat-value {
  font-weight: 600;
  font-size: 0.875rem;
  color: #1f2937;
}

/* Additional Stats Styling */
.additional-stats {
  margin-top: 8px;
  margin-bottom: 24px;
  background-color: #f8fafc;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #e2e8f0;
}

.additional-stats .stat-item {
  background: white;
  border: 1px solid #e5e7eb;
}

.additional-stats .stat-item i {
  color: #8b5cf6;
}

.additional-stats .stat-label {
  font-size: 0.7rem;
  font-weight: 500;
}

.additional-stats .stat-value {
  font-size: 0.8rem;
  color: #4b5563;
}

.features-section h4,
.payment-methods-section h4,
.withdrawal-methods-section h4,
.countries-section h4,
.states-section h4 {
  font-weight: 600;
  margin-bottom: 12px;
  color: #1f2937;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #f3f4f6;
  color: #374151;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  border: 1px solid #e5e7eb;
}

.tag.payment {
  background: #ede9fe;
  color: #7c3aed;
  border-color: #c4b5fd;
}

.tag.withdrawal {
  background: #e6f7ff;
  color: #0072b1;
  border-color: #91d5ff;
}

.tag.country {
  background: #fef3c7;
  color: #d97706;
  border-color: #fcd34d;
}

.tag.state {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.pros-cons {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pros h4 {
  color: #059669;
  font-weight: 600;
  margin-bottom: 12px;
}

.cons h4 {
  color: #dc2626;
  font-weight: 600;
  margin-bottom: 12px;
}

.pros ul,
.cons ul {
  list-style: none;
}

.pros li,
.cons li {
  font-size: 0.875rem;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pros li::before {
  content: "✓";
  color: #059669;
  font-weight: bold;
  margin-top: 2px;
}

.cons li::before {
  content: "✗";
  color: #dc2626;
  font-weight: bold;
  margin-top: 2px;
}

/* Countries and States Sections */
.countries-section,
.states-section {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.countries-section h4,
.states-section h4 {
  font-weight: 600;
  margin-bottom: 12px;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}

.countries-section h4::before {
  content: "🌍";
  font-size: 1rem;
}

.states-section h4::before {
  content: "🇺🇸";
  font-size: 1rem;
}

/* Bonus Terms */
.bonus-terms-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
  background: transparent;
  border: none;
}

.bonus-terms-section h4 {
  display: none;
}

.bonus-terms {
  font-size: 0.7rem;
  line-height: 1.4;
  color: #9ca3af;
  margin: 0;
  text-align: justify;
}

/* Desktop Hide Button */
.desktop-hide-button {
  display: block;
  margin-top: 16px;
  padding: 16px 0;
}

/* Mobile-Only Hide Button - ALWAYS VISIBLE WHEN EXPANDED */
.mobile-only-hide-button {
  display: none; /* Hidden by default */
  position: sticky;
  bottom: 0;
  background: white;
  border-top: 2px solid #e5e7eb;
  padding: 12px 16px;
  text-align: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.mobile-only-hide-button .btn {
  width: 100%;
  max-width: 300px;
  background: #8b5cf6 !important;
  color: white !important;
  border: 2px solid #8b5cf6 !important;
  padding: 12px 20px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
}

.mobile-only-hide-button .btn:hover {
  background: #7c3aed !important;
  border-color: #7c3aed !important;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
}

.no-results i {
  font-size: 3rem;
  margin-bottom: 16px;
  color: #d1d5db;
}

.no-results h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

/* Footer */
.footer {
  background: #1f2937;
  color: white;
  margin-top: 64px;
  padding: 48px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-section p {
  color: #d1d5db;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #374151;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

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

.mb-4 {
  margin-bottom: 16px;
}

.mt-4 {
  margin-top: 16px;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 8px;
}

.gap-4 {
  gap: 16px;
}

/* Style for untranslated content */
.no-translation {
  display: inline-block;
  font-size: 0.75rem;
  color: #e53e3e;
  background-color: #fed7d7;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
  font-style: italic;
}

/* Tooltip styles for "More Countries/States" */
.more-countries,
.more-states {
  position: relative;
  cursor: help;
  background: #f59e0b !important;
  color: white !important;
  border-color: #d97706 !important;
  font-weight: 500;
}

.more-countries:hover,
.more-states:hover {
  background: #d97706 !important;
}

/* Tooltip */
.more-countries::after,
.more-states::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  max-width: 300px;
  white-space: normal;
  line-height: 1.3;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 1000;
  margin-bottom: 5px;
}

/* Tooltip arrow */
.more-countries::before,
.more-states::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1f2937;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 1001;
}

/* Show tooltip on hover */
.more-countries:hover::after,
.more-countries:hover::before,
.more-states:hover::after,
.more-states:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Language Switcher Styles */
.language-switcher {
  position: relative;
  display: inline-block;
  margin-right: 16px;
}

.current-selection {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
  min-width: 160px;
}

.current-selection:hover {
  border-color: #8b5cf6;
  background: #f9fafb;
}

.language-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s;
  margin-top: 4px;
}

.language-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  text-decoration: none;
  color: #374151;
  font-size: 0.875rem;
  transition: background-color 0.2s;
  border-bottom: 1px solid #f3f4f6;
}

.lang-option:last-child {
  border-bottom: none;
}

.lang-option:hover {
  background: #f9fafb;
  color: #8b5cf6;
}

.lang-option.active {
  background: #f0f9ff;
  color: #0369a1;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .header-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .header-right {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  /* MOBILE Z-INDEX FIXES - COMPLETE HIERARCHY */
  @media (max-width: 768px) {
    .header-selectors {
      flex-direction: column;
      gap: 12px;
      align-items: center;
    }

    .custom-select {
      min-width: 160px;
    }

    .select-dropdown {
      max-height: 250px;
    }

    /* CRITICAL: Language dropdown gets the highest z-index */
    #languageDropdown {
      z-index: 20000 !important; /* HIGHEST priority */
    }

    /* Country dropdown gets lower z-index */
    #countryDropdown {
      z-index: 15000 !important;
    }

    /* IMPORTANT: Country button and display must have LOWER z-index than language dropdown */
    .selector-group:has(#countryButton) {
      z-index: 100 !important; /* Much lower than language dropdown */
    }

    #countryButton {
      z-index: 101 !important; /* Slightly higher than its container but much lower than language dropdown */
    }

    #currentCountry {
      z-index: 102 !important; /* Slightly higher than button but still much lower than language dropdown */
    }

    /* Language selector gets higher z-index than country selector */
    .selector-group:has(#languageButton) {
      z-index: 19000 !important; /* High but lower than the dropdown itself */
    }

    #languageButton {
      z-index: 19001 !important;
    }

    #currentLanguage {
      z-index: 19002 !important;
    }
  }

  .search-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input-wrapper {
    min-width: auto;
  }

  .controls-group {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Mobile: Stack the 3 columns vertically */
  .casino-header-content {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .casino-column-1 {
    justify-content: center;
  }

  .casino-column-3 {
    justify-content: center;
  }

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

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

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

  /* Featured badge positioning on mobile */
  .casino-card.featured::before {
    top: 8px;
    right: 8px;
    font-size: 0.7rem;
    padding: 4px 8px;
  }

  /* MOBILE COMPACT VIEW - FORCE VISIBILITY */
  .casino-compact-view {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: none !important;
    padding: 16px !important;
    border-bottom: 1px solid #e5e7eb !important;
  }

  /* Only hide when explicitly expanded */
  .casino-card.expanded .casino-compact-view {
    display: none !important;
  }

  .compact-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .compact-stats {
    justify-content: space-around;
  }

  .compact-actions {
    justify-content: center;
    margin-top: 8px;
  }

  /* Ensure toggle button is always visible and clickable on mobile */
  .toggle-details {
    display: inline-flex !important;
    visibility: visible !important;
    width: auto;
    padding: 8px 16px;
    font-size: 0.875rem;
    background: white !important;
    color: #374151 !important;
    border: 2px solid #e5e7eb !important;
  }

  /* MOBILE: Hide desktop button, show mobile button */
  .desktop-hide-button {
    display: none !important;
  }

  .casino-card.expanded .mobile-only-hide-button {
    display: block !important;
    visibility: visible !important;
  }

  /* MOBILE EXPANDED CONTENT - ENSURE FULL VISIBILITY */
  .casino-card.expanded .casino-content {
    display: block !important;
    visibility: visible !important;
    max-height: none !important;
    padding: 16px 16px 80px 16px !important; /* Extra bottom padding for sticky button */
    opacity: 1 !important;
    position: relative !important;
  }

  /* Ensure expanded content has proper spacing */
  .casino-card.expanded {
    margin-bottom: 20px !important;
  }

  .bonus-terms {
    font-size: 0.7rem;
    line-height: 1.3;
  }

  .more-countries::after,
  .more-states::after {
    max-width: 250px;
    font-size: 0.7rem;
    padding: 6px 10px;
  }

  .additional-stats {
    padding: 8px;
  }

  .additional-stats .stat-item {
    padding: 12px 8px;
  }

  .language-switcher {
    margin-right: 0;
  }

  .current-selection {
    min-width: 140px;
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .language-dropdown {
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 200px;
    z-index: 15000 !important; /* MUCH HIGHER z-index on mobile */
  }

  .language-dropdown.show {
    transform: translateX(-50%) translateY(0);
  }

  .header-badge {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.withdrawal-methods-section {
  margin-top: 16px;
  margin-bottom: 16px;
  background: transparent;
  border: none;
  padding: 0;
}

.withdrawal-methods-section h4 {
  font-weight: 600;
  margin-bottom: 12px;
  color: #1f2937;
}
