/* Casino Review Hub - Comprehensive Styles */

/* ===== RESET & BASE ===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', sans-serif;
  background: var(--gradient-bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

/* ===== DESIGN TOKENS ===== */

:root {
  --bg: #1a1a1a;
  --bg-alt: #2a2a2a;
  --bg-card: #242424;
  --text: #ffffff;
  --text-muted: #b0b0b0;
  --text-light: #e0e0e0;
  --muted: #888888;
  --primary: #d4af37;
  --primary-dark: #b8941f;
  --primary-light: #f5e07a;
  --accent: #2d2d2d;
  --accent-light: #3d3d3d;
  --warn: #ffa726;
  --danger: #ef5350;
  --success: #66bb6a;
  --card: #242424;
  --border: #3d3d3d;
  --border-gold: #d4af37;
  --border-gold-muted: rgba(212, 175, 55, 0.3);
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.2);
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --gap: 20px;
  --maxw: 1200px;
  --header-height: 80px;
  --mobile-vh: calc(var(--vh, 1vh) * 100);
  --gradient-primary: linear-gradient(135deg, #d4af37, #f5e07a);
  --gradient-card: linear-gradient(145deg, #242424, #2a2a2a);
  --gradient-bg: linear-gradient(180deg, #1a1a1a 0%, #1f1f1f 100%);
  --gradient-gold: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(245, 224, 122, 0.05));
}

/* ===== TYPOGRAPHY SCALE ===== */

.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-base { font-size: 16px; }
.text-lg { font-size: 20px; }
.text-xl { font-size: 28px; }
.text-2xl { font-size: 36px; }

/* ===== SEO OPTIMIZED COMPONENTS ===== */

.top-casinos-preview {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--gradient-card);
  border-radius: var(--radius);
  border: 2px solid var(--border-gold-muted);
  box-shadow: var(--shadow-gold);
}

.top-casinos-preview h3 {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.25rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.casino-list-seo {
  list-style: none;
  margin: 0;
  padding: 0;
}

.casino-item-seo {
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: var(--card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-gold-muted);
  transition: all 0.3s ease;
}

.casino-item-seo:hover {
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.casino-link-seo {
  text-decoration: none;
  color: var(--text-light);
  display: block;
  line-height: 1.4;
}

.casino-link-seo:hover {
  color: var(--primary);
}

.filter-summary-seo {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--gradient-card);
  border-radius: var(--radius);
  border: 2px solid var(--border-gold-muted);
  text-align: center;
  box-shadow: var(--shadow);
}

.filter-summary-seo h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.filter-keywords {
  font-weight: 500;
  color: var(--primary-light);
}

.casino-section-header {
  margin-bottom: 2rem;
  text-align: center;
  padding: 1.5rem;
  background: var(--gradient-gold);
  border-radius: var(--radius);
  border: 1px solid var(--border-gold-muted);
}

.casino-section-header h2 {
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 1.75rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.casino-section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: var(--text);
}

h1 { 
  font-size: 2.25rem; 
  color: var(--primary);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
h2 { 
  font-size: 1.875rem; 
  color: var(--primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
h3 { 
  font-size: 1.5rem;
  color: var(--primary-light);
}
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* ===== LAYOUT COMPONENTS ===== */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.grid {
  display: grid;
  gap: var(--gap);
}

.flex {
  display: flex;
  gap: var(--gap);
}

.flex-col {
  flex-direction: column;
}

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

/* ===== HEADER ===== */

.header {
  background: var(--gradient-card);
  border-bottom: 2px solid var(--border-gold-muted);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  height: var(--header-height);
  min-height: var(--header-height);
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__logo-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-gold-muted);
  box-shadow: var(--shadow);
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  background-clip: initial !important;
  color: initial !important;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.header__logo-main {
  font-size: 1.2rem;
  color: var(--text);
}

.header__logo-sub {
  font-size: 0.9rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
  letter-spacing: 1px;
}

.header__nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

/* Desktop navigation - hide mobile elements */
@media (min-width: 769px) {
  .header__nav {
    flex-direction: row; /* Override mobile column direction */
    position: static; /* Override mobile fixed positioning */
    background: none; /* Override mobile background */
    border: none; /* Override mobile border */
    padding: 0; /* Override mobile padding */
    transform: none; /* Override mobile transform */
    opacity: 1; /* Override mobile opacity */
    visibility: visible; /* Override mobile visibility */
    transition: none; /* Override mobile transition */
    max-height: none; /* Override mobile max-height */
    overflow: visible; /* Override mobile overflow */
  }
}

.header__link {
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.header__link:hover,
.header__link:focus {
  background: var(--card);
  color: var(--primary);
  transform: translateY(-2px);
}

.header__link--active {
  background: var(--primary);
  color: white;
}

.header__search {
  position: relative;
  display: none;
}

.header__search--desktop {
  display: block;
}

.header__search--mobile {
  display: none;
}

.header__search input {
  background: var(--bg-card);
  border: 2px solid var(--border-gold-muted);
  border-radius: var(--radius);
  padding: 0.75rem 1rem 0.75rem 3rem;
  color: var(--text);
  width: 280px;
  transition: all 0.3s ease;
}

.header__search input:focus {
  outline: none;
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
  width: 320px;
}

.header__search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

/* ===== MOBILE BURGER MENU ===== */

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.header__burger:hover,
.header__burger:focus {
  background: var(--card);
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.header__burger-line {
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.header__burger-line:not(:last-child) {
  margin-bottom: 4px;
}

/* Burger Animation */
.header__burger[aria-expanded="true"] .header__burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__burger[aria-expanded="true"] .header__burger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.header__burger[aria-expanded="true"] .header__burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== MOBILE NAVIGATION ===== */

.header__search--desktop {
  display: block;
}

.header__search--mobile {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.header__search--mobile input {
  width: 100%;
}

/* ===== BREADCRUMBS ===== */

.breadcrumbs {
  padding: 1rem 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.breadcrumbs__list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs__item:not(:last-child)::after {
  content: '›';
  margin-left: 0.5rem;
  color: var(--border);
}

.breadcrumbs__link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs__link:hover,
.breadcrumbs__link:focus {
  color: var(--primary);
}

.breadcrumbs__current {
  color: var(--text);
  font-weight: 500;
}

/* ===== HOME PAGE ===== */

.intro {
  background: var(--gradient-bg);
  padding: 3rem 0;
  text-align: center;
  border-bottom: 2px solid var(--border-gold-muted);
  position: relative;
  overflow: hidden;
}

.intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-gold);
  opacity: 0.1;
  z-index: 0;
}

.intro .container {
  position: relative;
  z-index: 1;
}

.intro__title {
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  font-size: 3.5rem;
  text-align: center;
  position: relative;
}

.intro__title .emoji {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  color: initial;
}

/* General emoji fix */
.emoji, 
[class*="emoji"],
span[style*="font-size"]:has-text("🎰"),
.logo-placeholder {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  background-clip: initial !important;
  color: initial !important;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.intro__title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.intro__subtitle {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  font-weight: 600;
}

.intro__description {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

.intro__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.intro__stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--gradient-card);
  border-radius: var(--radius);
  border: 2px solid var(--border-gold-muted);
  min-width: 140px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.intro__stat:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
  border-color: var(--border-gold);
}

.intro__stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.intro__stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== SECTION TITLES ===== */

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  text-align: center;
  color: var(--muted);
  font-size: 1.125rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FEATURED CASINOS ===== */

.featured-casinos {
  padding: 4rem 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.featured-card {
  background: var(--gradient-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-primary);
}

.featured-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 25px 60px rgba(246, 131, 24, 0.3);
}

.featured-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-card__header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.featured-card__logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.featured-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.featured-card__info {
  flex: 1;
}

.featured-card__name {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.featured-card__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating__text {
  color: var(--muted);
  font-size: 0.9rem;
}

.featured-card__bonus {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.featured-card__bonus-title {
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.featured-card__bonus-amount {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 800;
}

.featured-card__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.featured-card__highlight {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
}

.featured-card__actions {
  display: flex;
  gap: 1rem;
}

.featured-card__cta {
  flex: 1;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.9rem;
}

.featured-card__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(246, 131, 24, 0.4);
}

.featured-card__play {
  background: var(--bg);
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  white-space: nowrap;
}

.featured-card__play:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* ===== FILTERS ===== */

.filters {
  background: var(--bg-alt);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.filters__tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.filters__tabs::-webkit-scrollbar {
  height: 4px;
}

.filters__tabs::-webkit-scrollbar-track {
  background: var(--bg);
}

.filters__tabs::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.filters__tab {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.filters__tab:hover,
.filters__tab:focus {
  border-color: var(--primary);
  color: var(--primary);
}

.filters__tab--active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.filters__chip {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
  user-select: none;
}

.filters__chip:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.filters__chip--active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.filters__controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.filters__sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filters__sort select {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  color: var(--text);
  cursor: pointer;
}

.filters__sort select:focus {
  outline: none;
  border-color: var(--primary);
}

.filters__results {
  color: var(--muted);
  font-size: 14px;
}

/* ===== CASINO CARDS SECTION ===== */

section.casino-grid {
  padding: 4rem 0;
  background: var(--bg);
}

/* ===== CASINO TILES GRID ===== */

section.casino-grid .casino-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.casino-tile {
  background: var(--gradient-card);
  border: 2px solid var(--border-gold-muted);
  border-radius: var(--radius);
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 950px;
  height: 385px;
  margin: 0 auto;
  box-shadow: var(--shadow);
  display: block !important; /* Ensure cards are visible by default */
}

.casino-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-gold);
  border-color: var(--border-gold);
}

.tile-main {
  display: flex;
  height: 100%;
}

.tile-left {
  flex: 1;
  padding: 1.4rem 1.4rem 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--gradient-card);
  justify-content: space-between;
}

.tile-right {
  width: 475px;
  padding: 5px 1rem;
  background: var(--bg-card);
  border-left: 2px solid var(--border-gold-muted);
  overflow-y: auto;
}

.casino-logo {
  width: 85px;
  height: 85px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  border: 2px solid var(--border-gold-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px;
  box-shadow: var(--shadow);
}

.casino-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-placeholder {
  font-size: 2rem;
}

.casino-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.casino-info {
  flex: 1;
}

.casino-basic-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  justify-content: space-between;
  min-height: 0;
}

.casino-name {
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.safety-compact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.safety-compact .safety-icon {
  font-size: 0.9rem;
  margin-right: 0.25rem;
}

.safety-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.safety-compact .safety-score {
  font-size: 0.8rem;
  font-weight: 700;
}

.safety-compact .safety-level {
  font-size: 0.7rem;
  font-weight: 600;
}

.safety-index {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem;
}

.safety-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.safety-icon {
  font-size: 1.2rem;
}

.safety-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.safety-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}



.safety-label {
  color: var(--muted);
}

.safety-score {
  font-size: 1.5rem;
  font-weight: 700;
}

.safety-level {
  font-weight: 600;
  font-size: 0.875rem;
}

.casino-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 75px;
  overflow: hidden;
  flex: 1;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.2;
}

.highlight-bullet {
  color: var(--primary);
  font-weight: bold;
  flex-shrink: 0;
}

.bonus-section {
  background: var(--gradient-gold);
  border: 2px solid var(--border-gold-muted);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: auto;
  flex-shrink: 0;
  box-shadow: var(--shadow);
}

.bonus-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.bonus-amount {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.bonus-terms {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.action-buttons {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
  margin-bottom: 5px; /* фіксований відступ 5px від низу */
  flex-shrink: 0;
}

.btn-visit, .btn-review {
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
  transition: all 0.2s ease;
  flex: 1;
}

.btn-visit {
  background: var(--gradient-primary);
  color: var(--bg);
  border: 2px solid var(--border-gold);
  box-shadow: var(--shadow);
}

.btn-visit:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-review {
  background: var(--bg-card);
  color: var(--primary);
  border: 2px solid var(--border-gold-muted);
}

.btn-review:hover {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-gold);
}

.info-section {
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.show-all {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
}

.show-all:hover {
  text-decoration: underline;
}

.language-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.2rem;
  font-size: 0.7rem;
}

.lang-icon {
  font-size: 1rem;
  width: 20px;
}

.lang-label {
  color: var(--muted);
  min-width: 80px;
}

.lang-count {
  color: var(--primary);
  font-weight: 600;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.2rem;
}

.game-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.25rem;
  border-radius: var(--radius);
  font-size: 0.6rem;
  text-align: center;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
}

.game-icon.active {
  background: var(--bg-alt);
  color: var(--primary);
  border-color: var(--primary);
}

.game-icon span {
  font-size: 0.55rem;
  margin-top: 0.2rem;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  font-size: 0.6rem;
  border: 1px solid var(--border);
}

.payment-method span {
  font-weight: 500;
}

/* ===== SIDEBAR FILTERS ===== */

.casinos-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.sidebar-filters {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.filter-group {
  margin-bottom: 2rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-item {
  margin-bottom: 0.75rem;
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}

.filter-label:hover {
  background: var(--bg-alt);
}

.filter-checkbox {
  margin: 0;
}

.filter-icon {
  font-size: 1rem;
}

.filter-section {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.filter-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: background 0.2s ease;
}

.filter-header:hover {
  background: var(--border);
}

.filter-toggle {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.filter-section.open .filter-toggle,
.filter-section--open .filter-toggle {
  transform: rotate(180deg);
}

.filter-options {
  padding: 0.5rem 0;
  display: none;
}

.filter-section.open .filter-options,
.filter-section--open .filter-options {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 200px;
  }
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease;
}

.filter-option:hover {
  background: var(--bg-alt);
}

.filter-option input {
  margin: 0;
}

.filter-option input[type="checkbox"]:checked + span {
  font-weight: 600;
  color: var(--primary);
}

.filter-option input[type="checkbox"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.filter-count {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--bg-alt);
  padding: 0.125rem 0.375rem;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}

.casino-main {
  min-width: 0;
}

/* ===== RESPONSIVE SIDEBAR ===== */

@media (max-width: 1024px) {
  .casinos-layout {
    grid-template-columns: 1fr;
  }
  
  .sidebar-filters {
    position: static;
    order: -1;
    margin-bottom: 2rem;
  }
  
  .filter-group {
    margin-bottom: 1rem;
  }
  
  .filter-section {
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 768px) {
  .sidebar-filters {
    padding: 1rem;
  }
  
  .filter-title {
    font-size: 0.75rem;
  }
  
  .filter-header {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .filter-option {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* ===== NEW CONTENT SECTIONS ===== */

/* Trust Section */
.trust-section {
  padding: 4rem 0;
  background: var(--bg-alt);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.trust-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.trust-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.trust-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.trust-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.trust-card p {
  color: var(--muted);
  line-height: 1.6;
}

/* Rating Methodology Section */
.rating-methodology {
  padding: 4rem 0;
  background: var(--bg);
}

.methodology-content {
  margin-top: 2rem;
}

.methodology-intro {
  margin-bottom: 3rem;
  font-size: 1.125rem;
  color: var(--muted);
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.factor-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.factor-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.factor-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.factor-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.factor-card p {
  color: var(--muted);
  line-height: 1.6;
}

/* Best Casinos Features Section */
.best-casinos-features {
  padding: 4rem 0;
  background: var(--bg-alt);
}

.features-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.feature-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.feature-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.feature-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.feature-content p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.payment-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.payment-list li {
  padding: 0.5rem 0;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.payment-list li:last-child {
  border-bottom: none;
}

.expert-tip {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-top: 1rem;
  font-style: italic;
  color: var(--text);
}

.feature-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.highlight-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.highlight-box h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.checklist, .warning-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li, .warning-list li {
  padding: 0.5rem 0;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.checklist li:last-child, .warning-list li:last-child {
  border-bottom: none;
}

/* Responsible Gaming Section */
.responsible-gaming {
  padding: 4rem 0;
  background: var(--bg);
}

.responsible-content {
  margin-top: 2rem;
}

.responsible-tips h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text);
}

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

.tip-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.tip-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.tip-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.tip-card h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text);
}

.tip-card p {
  color: var(--muted);
  line-height: 1.6;
}

.help-resources {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.help-resources h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.help-resources p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.help-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.help-link {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.help-link:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* Responsive Design for New Sections */
@media (max-width: 1024px) {
  .features-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .feature-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
  
  .factors-grid {
    grid-template-columns: 1fr;
  }
  
  .tips-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .help-links {
    flex-direction: column;
  }
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.card:hover::before {
  transform: scaleX(1);
}

.card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card__logo {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.card__info {
  flex: 1;
}

.card__name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.card__bonus {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}

.card__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.rating__score {
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(246, 131, 24, 0.3);
}

.rating__stars {
  color: #ffd700;
  font-size: 18px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  letter-spacing: 2px;
}

.card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge {
  background: var(--bg-alt);
  color: var(--muted);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 12px;
  border: 1px solid var(--border);
}

.badge--primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.card__cta {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  text-decoration: none;
  text-align: center;
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card__cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.card__cta:hover::before {
  left: 100%;
}

.card__cta:hover,
.card__cta:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(246, 131, 24, 0.4);
}

/* ===== DETAIL PAGE ===== */

.detail {
  padding: 2rem 0;
}

.detail__hero {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.detail__hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.detail__header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.detail__logo {
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: #000000;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}

.detail__info {
  flex: 1;
}

.detail__name {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.detail__score {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.trust-score {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.125rem;
}

.detail__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.highlight {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

.detail__cta {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1.25rem 3rem;
  border-radius: var(--radius-lg);
  font-weight: 800;
  font-size: 1.25rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 10px 30px rgba(246, 131, 24, 0.3);
}

.detail__cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s;
}

.detail__cta:hover::before {
  left: 100%;
}

.detail__actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.detail__back {
  background: var(--bg);
  border: 2px solid var(--border);
  color: var(--text);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.detail__back:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.detail__cta:hover,
.detail__cta:focus {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 50px rgba(246, 131, 24, 0.5);
  animation: glow 1.5s ease-in-out infinite;
}

.detail__layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.detail__content {
  min-width: 0;
}

/* ===== TABLE OF CONTENTS ===== */

.toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  max-height: calc(100vh - var(--header-height) - 4rem);
  overflow-y: auto;
}

.toc__title {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.toc__list {
  list-style: none;
}

.toc__item {
  margin-bottom: 0.5rem;
}

.toc__link {
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 0;
  display: block;
  border-left: 2px solid transparent;
  padding-left: 1rem;
  transition: all 0.2s ease;
  font-size: 14px;
}

.toc__link:hover,
.toc__link:focus {
  color: var(--primary);
  border-left-color: var(--primary);
  padding-left: 1.25rem;
}

.toc__item--active .toc__link {
  color: var(--primary);
  border-left-color: var(--primary);
  font-weight: 500;
}

/* ===== CONTENT SECTIONS ===== */

.section {
  margin-bottom: 3rem;
  scroll-margin-top: calc(var(--header-height) + 2rem);
}

.section__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
  color: var(--text);
}

.section__content {
  color: var(--muted);
  line-height: 1.7;
}

.section__content p {
  margin-bottom: 1rem;
}

.section__content ul,
.section__content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.section__content li {
  margin-bottom: 0.5rem;
}

/* ===== QUICK FACTS ===== */

.quick-facts {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.quick-facts__title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.quick-facts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.quick-fact {
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  text-align: center;
}

.quick-fact__label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.quick-fact__value {
  font-weight: 600;
  color: var(--text);
}

/* ===== TABLES ===== */

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.table th {
  background: var(--bg-alt);
  font-weight: 600;
  color: var(--text);
}

.table td {
  color: var(--muted);
}

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

/* ===== PROS & CONS ===== */

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.pros,
.cons {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.pros {
  border-left: 4px solid var(--accent);
}

.cons {
  border-left: 4px solid var(--danger);
}

.pros__title,
.cons__title {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pros__title {
  color: var(--accent);
}

.cons__title {
  color: var(--danger);
}

.pros__list,
.cons__list {
  list-style: none;
}

.pros__item,
.cons__item {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pros__item::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
  flex-shrink: 0;
}

.cons__item::before {
  content: '✗';
  color: var(--danger);
  font-weight: bold;
  flex-shrink: 0;
}

/* ===== ACCORDION (FAQ) ===== */

.accordion {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.accordion__item {
  border-bottom: 1px solid var(--border);
}

.accordion__item:last-child {
  border-bottom: none;
}

.accordion__trigger {
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  text-align: left;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.accordion__trigger:hover {
  background: var(--bg-alt);
}

.accordion__trigger[aria-expanded="true"] {
  background: var(--bg-alt);
}

.accordion__icon {
  transition: transform 0.2s ease;
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(180deg);
}

.accordion__content {
  padding: 0 1.5rem 1.5rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== PAGINATION ===== */

.pagination {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.pagination__button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pagination__button:hover:not(:disabled) {
  background: var(--accent);
  transform: translateY(-1px);
}

.pagination__button:disabled {
  background: var(--border);
  cursor: not-allowed;
  transform: none;
}

/* ===== FOOTER ===== */

.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer__content {
  text-align: center;
}

.footer__title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--warn);
}

.footer__text {
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.footer__link {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__link:hover,
.footer__link:focus {
  color: var(--accent);
}

.footer__copyright {
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* ===== ANIMATIONS ===== */

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(246, 131, 24, 0.5); }
  50% { box-shadow: 0 0 30px rgba(246, 131, 24, 0.8); }
}

@media (prefers-reduced-motion: no-preference) {
  [data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  [data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .card:hover {
    transform: translateY(-8px) scale(1.02);
    animation: glow 2s ease-in-out infinite;
  }

  .intro__title {
    animation: fadeInUp 1s ease-out;
  }

  .intro__description {
    animation: fadeInUp 1s ease-out 0.2s both;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===== FOCUS STYLES ===== */

:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile and Tablet: up to 768px */
@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 2rem 1rem;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 200;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .header__nav.header__nav--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .header__burger {
    display: flex;
    order: 3;
  }

  .header__link {
    font-size: 1.125rem;
    padding: 1rem;
    text-align: center;
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 0.5rem;
  }
}

/* Mobile Portrait: 360px - 479px */
@media (max-width: 479px) {
  /* Prevent horizontal scroll */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .container {
    padding: 0 1rem;
    max-width: 100%;
    overflow-x: hidden;
  }

  .header__content {
    justify-content: space-between;
    align-items: center;
  }



  /* Mobile menu overlay */
  .header__nav--open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }

  .header__link {
    font-size: 1.125rem;
    padding: 1rem;
    border-radius: var(--radius);
    background: var(--card);
    text-align: center;
    border: 1px solid var(--border);
  }

  .header__search--desktop {
    display: none;
  }

  .header__search--mobile {
    display: block;
  }

  .intro {
    padding: 2rem 0;
  }

  .intro__title {
    font-size: 2.5rem;
  }

  .intro__title::after {
    width: 60px;
  }

  .intro__subtitle {
    font-size: 1.5rem;
  }
  


  .intro__stats {
    gap: 1rem;
  }

  .intro__stat {
    min-width: 100px;
    padding: 1rem;
  }

  .intro__stat-number {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .featured-card {
    padding: 1.5rem;
  }

  .featured-card__header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .featured-card__name {
    font-size: 1.5rem;
  }

  .featured-card__actions {
    flex-direction: column;
  }

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

  .detail__back,
  .detail__cta {
    text-align: center;
  }

  .filters {
    padding: 1rem 0;
  }

  .filters__tabs {
    gap: 0.5rem;
  }

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

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

  .card {
    padding: 1rem;
  }

  .detail__hero {
    padding: 1rem;
  }

  .detail__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

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

  .toc {
    position: static;
    order: -1;
    margin-bottom: 2rem;
  }

  .toc__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
  }

  .toc__link {
    padding: 0.5rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    border-left: 1px solid var(--border);
  }

  .quick-facts__grid {
    grid-template-columns: 1fr;
  }

  .pros-cons {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  /* Mobile Casino Tiles */
  .casino-tile {
    max-width: 100%;
    height: auto;
  }
  
  .tile-main {
    flex-direction: column;
  }
  
  .tile-right {
    width: 100%;
    border-left: none;
    border-top: 2px solid var(--border-gold-muted);
    padding: 1rem;
  }
  
  .tile-left {
    width: 100%;
    max-width: 100%;
  }
  
  .casino-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .casino-info {
    width: 100%;
  }
  
  .safety-compact {
    justify-content: center;
    gap: 0.25rem;
  }
  
  .safety-text {
    font-size: 0.8rem;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .action-buttons .btn-visit,
  .action-buttons .btn-review {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
  }

  /* Mobile styles for right section */
  .info-section {
    margin-bottom: 1rem;
  }

  .section-title {
    font-size: 0.65rem;
    margin-bottom: 0.5rem;
  }

  .language-item {
    font-size: 0.7rem;
    margin-bottom: 0.3rem;
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem;
  }

  .game-icon {
    padding: 0.2rem;
    font-size: 0.55rem;
  }

  .game-icon span {
    font-size: 0.5rem;
    margin-top: 0.15rem;
  }

  .payment-methods {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem;
  }

  .payment-method {
    padding: 0.2rem;
    font-size: 0.6rem;
  }
}

/* Mobile Landscape: 480px - 767px */
@media (min-width: 480px) and (max-width: 767px) {
  /* Prevent horizontal scroll */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .container {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  .header__burger {
    display: flex;
    order: 3;
  }

  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 2rem;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 200;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .header__nav.header__nav--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header__search--desktop {
    display: none;
  }

  .header__search--mobile {
    display: block;
  }

  .casino-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

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

  .toc {
    position: static;
    order: -1;
    margin-bottom: 2rem;
  }

  .toc__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .toc__link {
    padding: 0.5rem 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    border-left: 1px solid var(--border);
  }
  
  /* Mobile Casino Tiles for Landscape */
  .casino-tile {
    max-width: 100%;
    height: auto;
  }
  
  .tile-main {
    flex-direction: column;
  }
  
  .tile-right {
    width: 100%;
    border-left: none;
    border-top: 2px solid var(--border-gold-muted);
    padding: 1rem;
  }
  
  .tile-left {
    width: 100%;
    max-width: 100%;
  }
  
  .action-buttons {
    flex-direction: row;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  /* Mobile Landscape styles for right section */
  .info-section {
    margin-bottom: 1rem;
  }

  .section-title {
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
  }

  .language-item {
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
  }

  .games-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.3rem;
  }

  .game-icon {
    padding: 0.25rem;
    font-size: 0.6rem;
  }

  .game-icon span {
    font-size: 0.55rem;
    margin-top: 0.15rem;
  }

  .payment-methods {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.3rem;
  }

  .payment-method {
    padding: 0.25rem;
    font-size: 0.65rem;
  }
}

/* Tablet: 768px - 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
  .header__search--desktop {
    display: block;
  }

  .header__search--mobile {
    display: none;
  }

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

  .detail__layout {
    grid-template-columns: 1fr 250px;
    gap: 1.5rem;
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .header__search--desktop {
    display: block;
  }

  .header__search--mobile {
    display: none;
  }

  .casino-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .filters__chips {
    justify-content: center;
  }
}

/* Large Desktop: 1200px+ */
@media (min-width: 1200px) {
  .casino-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== UTILITIES ===== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

/* ===== NO JAVASCRIPT FALLBACK ===== */

/* Ensure all casino tiles are visible without JavaScript */
.casino-tile {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Ensure animations work without JavaScript by showing content immediately */
[data-animate] {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Show all filter options by default when JavaScript is disabled */
noscript .filter-options {
  display: block !important;
}

/* Alternative fallback for browsers that don't support noscript in CSS */
.no-js .filter-options {
  display: block !important;
}

/* Pagination button - hide by default if JS is disabled */
noscript .pagination__button {
  display: none;
}

/* No JavaScript message styling */
.no-js-message {
  display: none; /* Hidden by default, shown only via noscript */
  background: var(--gradient-gold);
  border: 2px solid var(--border-gold);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: var(--radius);
  text-align: center;
  color: var(--primary);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
  font-size: 1.2rem;
  color: var(--muted);
}

.error {
  background: var(--danger);
  color: white;
  padding: 1rem;
  border-radius: var(--radius);
  margin: 1rem 0;
}

.success {
  background: var(--accent);
  color: white;
  padding: 1rem;
  border-radius: var(--radius);
  margin: 1rem 0;
}

/* ===== PRINT STYLES ===== */

@media print {
  .header,
  .filters,
  .toc,
  .footer {
    display: none;
  }

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

  body {
    background: white;
    color: black;
  }

  .card,
  .section {
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}

/* ===== LOGIN MODAL STYLES ===== */
.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__login-btn {
  background: var(--gradient-primary);
  color: var(--bg);
  border: 2px solid var(--border-gold);
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  text-align: center;
}

.header__login-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.header__login-btn--mobile {
  margin: 1rem 0;
  width: 100%;
  justify-content: center;
}

.login-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  overflow-y: auto;
}

.login-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.login-modal__content {
  position: relative;
  max-width: 450px;
  margin: 2rem auto;
  background: var(--bg-card, #242424);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border, #3d3d3d);
  overflow: hidden;
}

.login-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--border, #3d3d3d);
}

.login-modal__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text, #ffffff);
}

.login-modal__close {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-muted, #b0b0b0);
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.login-modal__close:hover {
  background: var(--bg-alt, #2a2a2a);
  color: var(--text, #ffffff);
}

.login-modal__body {
  padding: 2rem;
}

.login-tabs {
  display: flex;
  margin-bottom: 2rem;
  border-radius: 8px;
  background: var(--bg-alt, #2a2a2a);
  padding: 4px;
}

.login-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: var(--text-muted, #b0b0b0);
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.login-tab.active {
  background: var(--primary, #d4af37);
  color: white;
}

.login-form {
  display: none;
}

.login-form.active {
  display: block;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text, #ffffff);
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border, #3d3d3d);
  border-radius: 6px;
  background: var(--bg, #1a1a1a);
  color: var(--text, #ffffff);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary, #d4af37);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.checkbox-group {
  margin-bottom: 2rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border, #3d3d3d);
  border-radius: 4px;
  background: var(--bg, #1a1a1a);
  flex-shrink: 0;
  position: relative;
  margin-top: 2px;
}

.checkbox-label input:checked + .checkmark {
  background: var(--primary, #d4af37);
  border-color: var(--primary, #d4af37);
}

.checkbox-label input:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.login-submit-btn {
  width: 100%;
  padding: 0.875rem;
  background: var(--primary, #d4af37);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.login-submit-btn:hover {
  background: var(--primary-dark, #b8941f);
  transform: translateY(-1px);
}

.login-switch {
  text-align: center;
  margin: 0;
  color: var(--text-muted, #b0b0b0);
  font-size: 0.9rem;
}

.login-switch a {
  color: var(--primary, #d4af37);
  text-decoration: none;
}

.login-switch a:hover {
  text-decoration: underline;
}

.success-message {
  text-align: center;
  padding: 2rem 1rem;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  background: #28a745;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 2rem;
  color: white;
  font-weight: bold;
}

.success-message h3 {
  margin: 0 0 1rem 0;
  color: var(--text, #ffffff);
}

.success-message p {
  margin: 0 0 2rem 0;
  color: var(--text-muted, #b0b0b0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .header__actions {
    display: none; /* Hide entire desktop actions section on mobile */
  }
  
  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 2rem 1rem;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 200;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }
  
  .header__nav.header__nav--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }
  
  .header__burger {
    display: flex;
    order: 3;
  }
  
  .header__search--desktop {
    display: none;
  }
  
  .header__search--mobile {
    display: block;
    width: 100%;
    order: 2; /* Search after login button */
  }
  
  .header__search--mobile input {
    width: 100%;
  }
  
  .header__login-btn--mobile {
    display: flex; /* Show mobile login button */
    order: 1; /* Login button before search */
    margin: 0.5rem 0;
    width: 100%;
    justify-content: center;
  }
  
  /* Hide desktop login button on mobile */
  .header__login-btn:not(.header__login-btn--mobile) {
    display: none;
  }
  
  .login-modal__content {
    margin: 1rem;
    max-width: none;
  }
  
  .login-modal__header,
  .login-modal__body {
    padding: 1.5rem;
  }
  
  .login-modal__title {
    font-size: 1.25rem;
  }
}

/* Desktop styles */
@media (min-width: 769px) {
  .header__actions {
    display: flex; /* Show desktop actions */
  }
  
  .header__nav {
    position: static;
    background: none;
    border: none;
    padding: 0;
    flex-direction: row;
    gap: 2rem;
    z-index: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: none;
    max-height: none;
    overflow: visible;
  }
  
  .header__burger {
    display: none;
  }
  
  .header__login-btn--mobile {
    display: none; /* Hide mobile login button on desktop */
  }
  
  .header__search--mobile {
    display: none; /* Hide mobile search on desktop */
  }
  
  .header__search--desktop {
    display: block; /* Show desktop search */
  }
}