/* ============================================
   SPINBET CASINO - EXACT STYLE COPY
   Colors matched from screenshot
   ============================================ */

/* CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* CSS Variables - Exact colors from screenshot */
:root {
  /* Backgrounds */
  --bg-main: #0F0E13;
  --bg-sidebar: #1A1825;
  --bg-card: #1E1D24;
  --bg-card-hover: #252430;
  --bg-input: #13121A;

  /* Accent colors */
  --yellow-primary: #F7C948;
  --yellow-hover: #FFD966;
  --purple-accent: #6C5DD3;
  --purple-light: #8B7FE8;

  /* Text colors */
  --text-white: #FFFFFF;
  --text-gray: #A8A8B3;
  --text-muted: #6E6E7A;

  /* Borders */
  --border-card: 1px solid rgba(255, 255, 255, 0.06);
  --border-active: 1px solid var(--purple-accent);

  /* Gradients */
  --gradient-promo-1: linear-gradient(135deg, #1A4B3E 0%, #0D2922 100%);
  --gradient-promo-2: linear-gradient(135deg, #2D1B4E 0%, #1A1030 100%);
  --gradient-promo-3: linear-gradient(135deg, #4A1942 0%, #2A1028 100%);

  /* Shadows */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-button: 0 4px 15px rgba(247, 201, 72, 0.3);

  /* Sizes */
  --sidebar-width: 220px;
  --header-height: 70px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
}

/* Base styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-main);
  color: var(--text-gray);
  line-height: 1.6;
  font-size: 15px;
  min-height: 100vh;
}

a {
  color: var(--yellow-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--yellow-hover);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   LAYOUT STRUCTURE
   ============================================ */
.page-wrapper {
  display: flex;
  min-height: 100vh;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  border-right: var(--border-card);
}

.sidebar-header {
  padding: 20px;
  border-bottom: var(--border-card);
}

.sidebar-tabs {
  display: flex;
  gap: 8px;
}

.sidebar-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: 20px;
  color: var(--text-gray);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-tab.active {
  background: var(--bg-card);
  color: var(--text-white);
}

.sidebar-tab:hover {
  color: var(--text-white);
}

.sidebar-tab svg,
.sidebar-tab img {
  width: 16px;
  height: 16px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 15px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-gray);
  font-size: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-item:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.03);
}

.nav-item.active {
  color: var(--text-white);
  background: rgba(108, 93, 211, 0.15);
  border-left: 3px solid var(--purple-accent);
}

.nav-item img,
.nav-item svg {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.nav-item:hover img,
.nav-item:hover svg {
  opacity: 1;
}

.nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 10px 20px;
}

/* ============================================
   MAIN CONTENT AREA
   ============================================ */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  height: var(--header-height);
  background: var(--bg-main);
  border-bottom: var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo img {
  height: 65px;
  width: auto;
}

.header-logo span {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-white);
}

.header-logo span em {
  color: var(--yellow-primary);
  font-style: normal;
}

.header-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: var(--border-radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-white);
}

.btn-primary {
  background: var(--yellow-primary);
  color: #000;
}

.btn-primary:hover {
  background: var(--yellow-hover);
  box-shadow: var(--shadow-button);
  color: #000;
}

.btn-purple {
  background: var(--purple-accent);
  color: var(--text-white);
}

.btn-purple:hover {
  background: var(--purple-light);
}

/* ============================================
   CONTENT CONTAINER
   ============================================ */
.content-container {
  padding: 25px 30px;
  max-width: 1400px;
}

/* ============================================
   PROMO BANNERS
   ============================================ */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.promo-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  display: block;
}

.promo-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.promo-card:hover img {
  transform: scale(1.03);
}

.promo-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--yellow-primary);
  color: #000;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.promo-btn:hover {
  background: var(--yellow-hover);
  color: #000;
}

.promo-btn-outline {
  background: transparent;
  border: 1px solid var(--text-white);
  color: var(--text-white);
}

.promo-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}

/* ============================================
   CATEGORY TABS
   ============================================ */
.category-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.category-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: none;
  border-radius: 20px;
  color: var(--text-gray);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-tab:hover {
  color: var(--text-white);
}

.category-tab.active {
  background: var(--purple-accent);
  color: var(--text-white);
}

.category-tab img {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

.providers-btn {
  margin-left: auto;
  padding: 10px 20px;
  background: var(--bg-card);
  border: var(--border-card);
  border-radius: var(--border-radius-sm);
  color: var(--text-white);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.providers-btn:hover {
  background: var(--bg-card-hover);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.section-label img {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

/* ============================================
   GAMES GRID
   ============================================ */
.games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  margin-bottom: 40px;
}

.game-card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

.game-card-image {
  aspect-ratio: 1;
  overflow: hidden;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-card-image img {
  transform: scale(1.05);
}

.game-card-info {
  padding: 12px;
}

.game-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================
   TEXT CONTENT SECTIONS
   ============================================ */
.text-section {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 35px;
  margin-bottom: 25px;
  border: var(--border-card);
}

.text-section h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 20px;
  line-height: 1.3;
}

.text-section h2 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-white);
  margin-top: 35px;
  margin-bottom: 18px;
  padding-top: 25px;
  border-top: var(--border-card);
}

.text-section h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.text-section h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--yellow-primary);
  margin-top: 28px;
  margin-bottom: 15px;
}

.text-section h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-white);
  margin-top: 20px;
  margin-bottom: 12px;
}

.text-section p {
  color: var(--text-gray);
  margin-bottom: 16px;
  line-height: 1.7;
}

.text-section ul,
.text-section ol {
  margin-bottom: 18px;
  padding-left: 0;
}

.text-section ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text-gray);
}

.text-section ul li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 16px;
  width: 6px;
  height: 6px;
  background: var(--yellow-primary);
  border-radius: 50%;
}

.text-section ol {
  counter-reset: list-counter;
}

.text-section ol li {
  padding: 8px 0 8px 35px;
  position: relative;
  color: var(--text-gray);
  counter-increment: list-counter;
}

.text-section ol li::before {
  content: counter(list-counter) ".";
  position: absolute;
  left: 8px;
  color: var(--yellow-primary);
  font-weight: 600;
}

.text-section strong {
  color: var(--text-white);
  font-weight: 600;
}

.text-section em {
  font-style: italic;
  color: var(--text-muted);
}

.text-section hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 35px 0;
}

/* CTA Boxes */
.cta-box {
  background: linear-gradient(135deg, rgba(108, 93, 211, 0.2) 0%, rgba(108, 93, 211, 0.05) 100%);
  border: 1px solid var(--purple-accent);
  border-left: 4px solid var(--yellow-primary);
  border-radius: var(--border-radius);
  padding: 25px 30px;
  margin: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  flex-wrap: wrap;
}

.cta-box-text {
  flex: 1;
  min-width: 250px;
}

.cta-box-text p {
  margin: 0;
  color: var(--text-white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.cta-box .cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--yellow-primary);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(247, 201, 72, 0.3);
}

.cta-box .cta-button:hover {
  background: var(--yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 201, 72, 0.4);
}

@media (max-width: 600px) {
  .cta-box {
    flex-direction: column;
    text-align: center;
  }

  .cta-box-text {
    min-width: 100%;
  }

  .cta-box .cta-button {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   TABLES
   ============================================ */
.text-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  background: var(--bg-input);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.text-section table th,
.text-section table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.text-section table th {
  background: rgba(108, 93, 211, 0.2);
  color: var(--text-white);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.text-section table td {
  color: var(--text-gray);
  font-size: 14px;
}

.text-section table tr:last-child td {
  border-bottom: none;
}

.text-section table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-item {
  background: var(--bg-input);
  border-radius: var(--border-radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  border: var(--border-card);
}

.faq-question {
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-question h4 {
  margin: 0;
  color: var(--yellow-primary);
  font-size: 15px;
  font-weight: 600;
  flex: 1;
}

.faq-toggle {
  color: var(--yellow-primary);
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 22px 18px;
  color: var(--text-gray);
  line-height: 1.7;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ============================================
   TRUST LINKS
   ============================================ */
.trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

.trust-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-input);
  border-radius: 6px;
  color: var(--text-gray);
  font-size: 13px;
  transition: all 0.2s ease;
}

.trust-link:hover {
  background: var(--bg-card-hover);
  color: var(--yellow-primary);
}

/* ============================================
   IMAGES IN CONTENT
   ============================================ */
.content-image {
  border-radius: var(--border-radius);
  margin: 25px 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.content-image img {
  width: 100%;
  height: auto;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 25px 0;
}

.image-grid img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
}

/* Two-column layout: text left, image right */
.content-with-image-right {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin: 25px 0;
}

.content-with-image-right .content-text {
  flex: 1;
}

.content-with-image-right .content-text p,
.content-with-image-right .content-text ul {
  margin-bottom: 15px;
}

.content-with-image-right .content-text ul {
  list-style: disc;
  padding-left: 20px;
}

.content-with-image-right .content-text ul li {
  margin-bottom: 8px;
}

.content-with-image-right .content-image-side {
  flex: 0 0 45%;
  max-width: 45%;
}

.content-with-image-right .content-image-side img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

@media (max-width: 900px) {
  .content-with-image-right {
    flex-direction: column;
  }

  .content-with-image-right .content-image-side {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
}

/* Two-column layout: text left, small image right (1/3 width) */
.content-with-image-small {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin: 25px 0;
}

.content-with-image-small .content-text {
  flex: 1;
}

.content-with-image-small .content-text p {
  margin-bottom: 15px;
}

.content-with-image-small .content-text p:last-child {
  margin-bottom: 0;
}

.content-with-image-small .content-text ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 15px;
}

.content-with-image-small .content-text ul li {
  margin-bottom: 8px;
}

.content-with-image-small .content-image-small {
  flex: 0 0 30%;
  max-width: 30%;
}

.content-with-image-small .content-image-small img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

@media (max-width: 768px) {
  .content-with-image-small {
    flex-direction: column;
  }

  .content-with-image-small .content-image-small {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-sidebar);
  border-top: var(--border-card);
  padding: 40px 30px;
  margin-top: 50px;
}

.footer-content {
  max-width: 1200px;
}

.footer-text {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 25px;
}

.footer-links a {
  color: var(--text-gray);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--yellow-primary);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 12px;
  padding-top: 20px;
  border-top: var(--border-card);
}

/* ============================================
   UPDATE BADGE
   ============================================ */
.update-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(247, 201, 72, 0.1);
  border: 1px solid rgba(247, 201, 72, 0.3);
  border-radius: 20px;
  color: var(--yellow-primary);
  font-size: 12px;
  font-style: italic;
  margin-bottom: 20px;
}

/* ============================================
   MOBILE MENU TOGGLE
   ============================================ */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.mobile-menu-toggle img {
  width: 24px;
  height: 24px;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1400px) {
  .games-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1200px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  :root {
    --sidebar-width: 0px;
  }

  .sidebar {
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    visibility: hidden;
  }

  .sidebar.active {
    transform: translateX(0);
    visibility: visible;
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Header Mobile */
  .header {
    height: 60px;
    padding: 0 12px;
  }

  .header-logo img {
    height: 45px;
  }

  .header-logo span {
    font-size: 18px;
  }

  .mobile-menu-toggle {
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
  }

  .btn {
    padding: 10px 18px;
    font-size: 13px;
    min-height: 44px;
  }

  /* Content Container */
  .content-container {
    padding: 20px 15px;
  }

  /* Text Section */
  .text-section {
    padding: 22px 18px;
  }

  .text-section h1 {
    font-size: 26px;
  }

  .text-section h2 {
    font-size: 22px;
  }

  .text-section p {
    font-size: 14px;
    line-height: 1.7;
  }

  .text-section ul li,
  .text-section ol li {
    padding: 6px 0 6px 24px;
  }

  .text-section ul li::before {
    left: 6px;
  }

  /* Games Grid */
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .game-card-title {
    font-size: 13px;
  }

  /* Category Tabs with Scroll Indicators */
  .category-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .category-tab {
    flex-shrink: 0;
    padding: 12px 18px;
    font-size: 14px;
    min-height: 44px;
  }

  .providers-btn {
    display: none;
  }

  /* Tables */
  .text-section table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .text-section table th,
  .text-section table td {
    padding: 10px 14px;
    font-size: 13px;
  }

  /* Promo Grid */
  .promo-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  /* FAQ Accordion */
  .faq-question {
    padding: 18px 16px;
    min-height: 56px;
  }

  .faq-question h4 {
    font-size: 14px;
    line-height: 1.4;
    padding-right: 10px;
  }

  .faq-toggle {
    font-size: 22px;
    min-width: 28px;
    min-height: 28px;
  }

  .faq-answer {
    padding: 0 16px 18px;
    font-size: 14px;
    line-height: 1.65;
  }

  /* CTA Box */
  .cta-box {
    padding: 20px 18px;
    gap: 18px;
  }

  .cta-box-text p {
    font-size: 15px;
  }

  .cta-box .cta-button {
    min-height: 48px;
    padding: 14px 24px;
  }

  /* Footer */
  .footer {
    padding: 30px 15px;
  }

  .footer-text {
    font-size: 12px;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }

  .footer-links a {
    display: inline-block;
    padding: 10px 0;
    min-height: 44px;
    line-height: 24px;
    font-size: 14px;
  }

  /* Nav Items Touch Targets */
  .nav-item {
    padding: 14px 20px;
    min-height: 48px;
  }

  .sidebar-tab {
    padding: 12px 18px;
    min-height: 44px;
  }

  /* Image layouts */
  .content-image {
    margin: 20px 0;
  }

  .content-image img {
    border-radius: 10px;
  }
}

/* Large phones (600px) */
@media (max-width: 600px) {
  .cta-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cta-box-text {
    min-width: 100%;
  }

  .cta-box .cta-button {
    width: 100%;
    justify-content: center;
  }

  .content-with-image-small {
    flex-direction: column;
  }

  .content-with-image-small .content-image-small {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
}

/* Small phones (480px) */
@media (max-width: 480px) {
  /* Header */
  .header {
    height: 56px;
  }

  .header-logo img {
    height: 40px;
  }

  .header-logo span {
    font-size: 16px;
  }

  .btn {
    padding: 10px 14px;
    font-size: 12px;
  }

  .header-buttons .btn-outline span {
    display: none;
  }

  /* Content */
  .content-container {
    padding: 15px 12px;
  }

  .text-section {
    padding: 18px 14px;
  }

  .text-section h1 {
    font-size: 22px;
  }

  .text-section h2 {
    font-size: 19px;
  }

  .text-section h3 {
    font-size: 17px;
  }

  .text-section p {
    font-size: 14px;
  }

  /* Games Grid */
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .game-card-info {
    padding: 8px;
  }

  .game-card-title {
    font-size: 12px;
  }

  /* Category Tabs */
  .category-tab {
    padding: 10px 14px;
    font-size: 13px;
  }

  /* Promo */
  .promo-grid {
    gap: 12px;
  }

  /* FAQ */
  .faq-question {
    padding: 16px 14px;
  }

  .faq-question h4 {
    font-size: 13px;
  }

  /* CTA */
  .cta-box {
    padding: 18px 14px;
    border-left-width: 3px;
  }

  .cta-box-text p {
    font-size: 14px;
  }

  .cta-box .cta-button {
    padding: 12px 20px;
    font-size: 13px;
  }

  /* Footer */
  .footer {
    padding: 25px 12px;
  }

  /* Section labels */
  .section-label {
    font-size: 13px;
  }

  /* Update badge */
  .update-badge {
    font-size: 11px;
    padding: 4px 10px;
  }
}

/* Very small phones (374px) - iPhone SE etc */
@media (max-width: 374px) {
  .header {
    height: 52px;
    padding: 0 10px;
  }

  .header-logo img {
    height: 36px;
  }

  .header-logo span {
    font-size: 14px;
  }

  .btn {
    padding: 8px 12px;
    font-size: 11px;
  }

  .content-container {
    padding: 12px 10px;
  }

  .text-section {
    padding: 14px 10px;
  }

  .text-section h1 {
    font-size: 20px;
  }

  .text-section h2 {
    font-size: 17px;
  }

  .text-section h3 {
    font-size: 15px;
  }

  .games-grid {
    gap: 6px;
  }

  .game-card-info {
    padding: 6px;
  }

  .game-card-title {
    font-size: 11px;
  }

  .category-tab {
    padding: 8px 12px;
    font-size: 12px;
  }

  .faq-question {
    padding: 14px 12px;
  }

  .faq-question h4 {
    font-size: 12px;
  }

  .cta-box {
    padding: 14px 12px;
  }

  .cta-box-text p {
    font-size: 13px;
  }

  .cta-box .cta-button {
    padding: 10px 16px;
    font-size: 12px;
  }
}

/* ============================================
   SIDEBAR OVERLAY (MOBILE)
   ============================================ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99;
}

.sidebar-overlay.active {
  display: block;
}

/* ============================================
   LANDSCAPE MOBILE
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
  .header {
    height: 50px;
  }

  .header-logo img {
    height: 35px;
  }

  .sidebar {
    height: 100vh;
    overflow-y: auto;
  }

  .text-section {
    padding: 18px 20px;
  }

  .faq-question {
    padding: 14px 16px;
    min-height: 48px;
  }

  .cta-box {
    padding: 16px 20px;
  }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover transforms on touch */
  .game-card:hover {
    transform: none;
  }

  .game-card:hover .game-card-image img {
    transform: none;
  }

  .promo-card:hover img {
    transform: none;
  }

  .nav-item:hover {
    background: transparent;
  }

  .category-tab:hover {
    background: transparent;
  }

  /* Add active state feedback */
  .game-card:active {
    transform: scale(0.98);
    opacity: 0.9;
  }

  .btn:active {
    transform: scale(0.97);
  }

  .nav-item:active {
    background: rgba(255, 255, 255, 0.05);
  }

  .category-tab:active {
    background: rgba(108, 93, 211, 0.2);
  }

  .cta-button:active {
    transform: scale(0.98);
  }

  .faq-question:active {
    background: rgba(255, 255, 255, 0.03);
  }
}

/* ============================================
   REDUCED MOTION PREFERENCE
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   PERFORMANCE OPTIMIZATIONS
   ============================================ */
.sidebar {
  will-change: transform;
}

@media (max-width: 768px) {
  /* Reduce shadows on mobile for better performance */
  .game-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .game-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  }

  .content-image {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }

  .cta-box .cta-button {
    box-shadow: 0 2px 10px rgba(247, 201, 72, 0.25);
  }
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  margin: 16px 0 8px;
  font-size: 14px;
  color: #9aa3ad;
}
.breadcrumbs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.breadcrumbs a {
  color: #c9cfd6;
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: #F7C948;
  text-decoration: underline;
}
.breadcrumbs [aria-current="page"] {
  color: #e8ecf1;
}
.breadcrumbs-sep {
  color: #5b6470;
}

/* ---- Authority grid ---- */
.authority-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 28px;
  margin: 24px 0 16px;
}
.authority-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 110px;
  color: #9aa3ad;
  font-size: 12px;
  text-align: center;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.authority-logo:hover {
  opacity: 1;
  color: #e8ecf1;
}
.authority-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 4px;
}
