/* Modern 2024 Design System */
:root {
  /* Modern Color Palette */
  --primary: #6366f1; /* Indigo - modern, professional */
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --accent: #f59e0b; /* Amber - warm, inviting */
  --accent-light: #fbbf24;
  
  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Background */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-dark: #0f172a; /* Slate 900 */
  --bg-card: #ffffff;
  
  /* Text */
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --text-inverse: #ffffff;
  
  /* Borders */
  --border-color: #e5e7eb;
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-sm: 8px;
  
  /* Shadows - Modern, subtle */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", var(--font-sans);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
/* Modern Layout Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Modern Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.025em;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: 2rem;
  font-weight: 700;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-weight: 500;
}

a:hover {
  color: var(--primary-dark);
}

/* Container */
.container {
  max-width: 1280px;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
}

/* Simple grid to replace Bootstrap */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -12px;
  margin-right: -12px;
}

.row > [class^="col-"],
.row > [class*=" col-"] {
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}

.col-12 { width: 100%; }
.col-md-6 { width: 100%; }
.col-lg-4 { width: 100%; }

@media (min-width: 768px) {
  .col-md-6 { width: 50%; }
}

@media (min-width: 1024px) {
  .col-lg-4 { width: 33.333%; }
}

/* Modern spacing */
section {
  margin-bottom: var(--spacing-2xl);
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.page-header {
  margin-bottom: var(--spacing-xl);
}

.page-header h1 {
  margin-bottom: var(--spacing-xs);
}

.page-header .lead {
  max-width: 65ch;
  margin-bottom: 0;
}
/* Modern Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-md) 0;
  position: sticky !important;
  top: 0 !important;
  z-index: 1030 !important;
  width: 100% !important;
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary) !important;
  letter-spacing: -0.02em;
  transition: color var(--transition-fast);
  text-decoration: none;
  margin-right: auto;
}

.navbar-brand:hover {
  color: var(--primary) !important;
}

.navbar-toggler {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 0.375rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-primary);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.navbar-toggler:hover {
  background: var(--gray-50);
  border-color: var(--primary);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25);
  outline: none;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
  transition: opacity 0.15s ease-in-out;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
}

.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

.navbar-nav {
  display: flex;
  flex-direction: row;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
  align-items: center;
}

.navbar-nav .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-md) !important;
  margin: 0 var(--spacing-xs);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
  font-size: 0.9375rem;
  text-decoration: none;
  display: block;
}

.navbar-nav .nav-link:hover {
  color: var(--primary) !important;
  background: var(--gray-50);
}

.navbar-nav .nav-link.active {
  color: var(--primary) !important;
  background: var(--gray-100);
}

/* Mobile Styles */
@media (max-width: 991.98px) {
  .navbar-toggler {
    display: inline-flex;
    order: 2;
  }

  .navbar-brand {
    order: 1;
  }

  .navbar-collapse {
    order: 3;
    width: 100%;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
  }

  .navbar-nav {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-nav .nav-link {
    width: 100%;
    padding: 0.875rem 1rem !important;
    margin: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .navbar-nav .nav-link:last-child {
    border-bottom: none;
  }

  /* Language switcher in mobile */
  .navbar-nav .dropdown {
    width: 100%;
  }

  .navbar-nav .dropdown .btn {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }

  .navbar-nav .dropdown-menu {
    position: static !important;
    transform: none !important;
    width: 100%;
    margin-top: 0.5rem;
    border: 1px solid var(--border-color);
    box-shadow: none;
  }
}

/* Ensure Bootstrap collapse works properly */
.navbar-collapse.collapse {
  display: none;
}

.navbar-collapse.collapsing {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease, padding 0.35s ease;
}

.navbar-collapse.collapse.show {
  display: flex !important;
  flex-direction: column;
}

/* Prevent layout shift during collapse */
.navbar-collapse {
  will-change: height;
  backface-visibility: hidden;
}

@media (min-width: 992px) {
  .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    flex-direction: row;
  }

  .navbar-toggler {
    display: none;
  }

  .navbar-nav {
    flex-direction: row;
  }

  .navbar-nav .nav-link {
    width: auto;
    border-bottom: none;
  }
}
/* Modern Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  border-radius: var(--border-radius-sm);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--text-inverse);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--bg-primary);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

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

.btn-outline-primary {
  background: var(--bg-primary);
  color: var(--primary);
  border-color: rgba(99, 102, 241, 0.4);
}

.btn-outline-primary:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-success {
  background: #16a34a;
  border-color: #16a34a;
  color: var(--text-inverse);
}

.btn-success:hover {
  background: #15803d;
  border-color: #15803d;
  color: var(--text-inverse);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(22, 163, 74, 0.3);
}

.btn-light {
  background: var(--bg-primary);
  border-color: var(--bg-primary);
  color: var(--primary-dark);
}

.btn-light:hover {
  background: var(--gray-100);
  border-color: var(--gray-100);
  color: var(--primary-dark);
}

/* Translucent button for use on image/gradient backgrounds */
.btn-glass {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--text-inverse);
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: var(--text-inverse);
  color: var(--text-inverse);
}
/* Modern Card Design */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  overflow: hidden;
  margin-bottom: var(--spacing-lg);
}


.card-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: var(--spacing-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.card-body {
  padding: var(--spacing-lg);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
  flex: 1;
  margin-right: var(--spacing-md);
}

.card-header-row {
  gap: var(--spacing-md);
}

.card-text {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

.card-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-md) var(--spacing-lg);
}

/* Blog post section cards: rich text lives in .post-content .card .card-text.
   .post-content has white-space: pre-wrap (forum); that preserves newlines in
   Action Text HTML and creates extra vertical gaps. Override here and reset
   paragraph margins (Trix/HTML defaults add margin-top on first p, etc.). */
.post-content .card .card-text {
  white-space: normal;
}

.post-content .card .card-text p {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.post-content .card .card-text p:last-child {
  margin-bottom: 0;
}

.post-content .card .card-text > *:first-child {
  margin-top: 0;
}

.post-content .card .card-text > *:last-child {
  margin-bottom: 0;
}

/* Casino grid + card */
.casino-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--spacing-lg);
}

.casino-card {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  overflow: visible;
}

.casino-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.casino-card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  padding: 1.25rem 1.5rem;
  background: var(--gray-50);
  border-bottom: 1px solid var(--border-color);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  overflow: hidden;
}

.casino-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

.casino-card:hover .casino-logo {
  transform: scale(1.04);
}

.casino-monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  color: var(--text-inverse);
  font-size: 2rem;
  font-weight: 800;
  box-shadow: var(--shadow-md);
}

.casino-card .card-body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  flex: 1;
}

.casino-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-md);
}

.casino-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  padding-top: 0.25rem;
}

.casino-card-title a {
  color: var(--text-primary);
  font-weight: inherit;
}

.casino-card-title a:hover {
  color: var(--primary);
}

.casino-card-rating {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.casino-card-rating .stars {
  font-size: 1rem;
}

.casino-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xs);
  margin-top: auto;
}

.casino-card-actions .btn {
  min-width: 0;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

/* Section heading with a trailing link (e.g. "View all casinos") */
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-xs) var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.section-heading h2 {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  margin: 0;
}

.section-heading-link {
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.section-heading-link::after {
  content: " →";
}

.top-5-casinos-section {
  margin: var(--spacing-2xl) 0;
}

/* Casino page: sticky summary next to the review */
.casino-sticky-cta {
  position: sticky;
  top: 6rem;
}

.casino-sticky-cta .card-body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.casino-sticky-cta-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

#review-form {
  scroll-margin-top: 6rem;
}

.casino-logo-preview {
  border: 1px solid var(--border-color);
  background: white;
  padding: 0.5rem;
}

.casino-hero-preview {
  border: 1px solid var(--border-color);
  background: white;
}

/* Casino Hero Section */
.casino-hero-wrapper {
  margin: -1.5rem -15px 0 -15px;
  overflow: hidden;
}

@media (min-width: 576px) {
  .casino-hero-wrapper {
    margin: -1.5rem calc(-1.5rem - 15px) 0 calc(-1.5rem - 15px);
  }
}

@media (min-width: 768px) {
  .casino-hero-wrapper {
    margin: -3rem calc(-3rem - 15px) 0 calc(-3rem - 15px);
  }
}

.casino-hero {
  position: relative;
  min-height: 280px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  padding: 3rem 1.5rem;
  overflow: hidden;
}

@media (min-width: 576px) {
  .casino-hero {
    padding: 3rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .casino-hero {
    min-height: 320px;
    padding: 4rem 3rem;
  }
}

.casino-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
  z-index: 1;
}

.casino-hero[style*="background-image"] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.casino-hero[style*="background-image"] .casino-hero-overlay {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0.75) 100%);
  backdrop-filter: blur(1px);
}

.casino-hero-content {
  position: relative;
  z-index: 2;
  color: white;
}

.casino-hero-logo {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

@media (min-width: 768px) {
  .casino-hero-logo {
    width: 120px;
    height: 120px;
    padding: 1rem;
  }
}

.casino-hero:hover .casino-hero-logo {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

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

.casino-hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .casino-hero-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 992px) {
  .casino-hero-title {
    font-size: 3rem;
  }
}

/* Prominent Hero Rating Card */
.casino-hero-rating-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.casino-hero-rating-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.casino-hero-rating-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
}

.casino-hero-rating-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.casino-hero-rating-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.casino-hero-rating-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.casino-hero-rating-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.casino-hero-rating-item-separator {
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.casino-hero-rating-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.casino-hero-rating-value-large {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  line-height: 1;
}

.casino-hero-rating-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #6366f1;
  line-height: 1;
}

.casino-hero-rating-divider {
  font-size: 1.5rem;
  font-weight: 600;
  color: #9ca3af;
  line-height: 1;
}

.casino-hero-rating-max {
  font-size: 1.25rem;
  font-weight: 600;
  color: #9ca3af;
  line-height: 1;
}

.casino-hero-rating-stars {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.casino-hero-rating-stars .stars {
  font-size: 1.25rem;
  filter: none;
}

.casino-hero-rating-count {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.casino-hero-rating-empty {
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

@media (max-width: 991px) {
  .casino-hero-rating-card {
    margin-top: 1.5rem;
  }
}

@media (max-width: 767px) {
  .casino-hero-rating-card {
    padding: 1.25rem;
  }
  
  .casino-hero-rating-number {
    font-size: 2rem;
  }
  
  .casino-hero-rating-title {
    font-size: 1rem;
  }
}

/* Section Rating Display (for review sections) */
.section-rating-display {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  min-width: 100px;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border: 2px solid rgba(99, 102, 241, 0.2);
  transition: all 0.3s ease;
}

.section-rating-display:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

.section-rating-label {
  font-size: 0.625rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.section-rating-value {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  line-height: 1;
}

.section-rating-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: #6366f1;
  line-height: 1;
}

.section-rating-divider {
  font-size: 1.125rem;
  font-weight: 600;
  color: #9ca3af;
  line-height: 1;
}

.section-rating-max {
  font-size: 1rem;
  font-weight: 600;
  color: #9ca3af;
  line-height: 1;
}

@media (max-width: 767px) {
  .section-rating-display {
    min-width: 80px;
    padding: 0.5rem 0.75rem;
  }
  
  .section-rating-number {
    font-size: 1.5rem;
  }
  
  .section-rating-label {
    font-size: 0.5625rem;
  }
}

.casino-hero-actions {
  margin-top: 1rem;
}

.casino-hero-actions .btn {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  font-weight: 600;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
}

.casino-hero-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.casino-hero-admin-actions {
  margin-top: 1rem;
}

.casino-hero-admin-actions .btn {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
}

.casino-hero-admin-actions .btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
  color: white;
}

/* Prominent Rating Card */
.casino-rating-card {
  border: 2px solid var(--primary);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.casino-rating-card:hover {
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
  transform: translateY(-2px);
}

.casino-rating-item {
  flex: 1;
  min-width: 200px;
}

.casino-rating-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.casino-rating-value {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.casino-rating-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-left: 0.5rem;
}

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

.casino-rating-stars .stars {
  font-size: 1.25rem;
}

.casino-rating-count {
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .casino-rating-value {
    flex-direction: row;
    align-items: center;
  }
  
  .casino-rating-number {
    font-size: 1.75rem;
  }
}

/* Review Card */
.review-card {
  border-left: 3px solid var(--primary);
  background: var(--bg-card);
}

.review-card .card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.review-card .card-text {
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Ranking Badge */
.ranking-badge-container {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
}

.ranking-badge {
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.ranking-badge::before {
  content: "#";
  font-weight: 600;
  opacity: 0.6;
  margin-right: 1px;
}

.ranking-badge--gold,
.ranking-badge--silver,
.ranking-badge--bronze {
  color: var(--text-inverse);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.ranking-badge--gold {
  background: linear-gradient(135deg, #fbbf24, #d97706);
}

.ranking-badge--silver {
  background: linear-gradient(135deg, #cbd5e1, #64748b);
}

.ranking-badge--bronze {
  background: linear-gradient(135deg, #f59e0b, #92400e);
}

@media (max-width: 575.98px) {
  .casino-card-media {
    height: 104px;
  }

  .casino-monogram {
    width: 56px;
    height: 56px;
    font-size: 1.5rem;
  }
}
/* Blog article reading page */

.article-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1100;
  pointer-events: none;
}

.article-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 80ms linear;
}

.article-page {
  --font-reading: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-heading: "Inter", var(--font-sans);
  padding-bottom: var(--spacing-xl);
}

.article-page h1,
.article-page h2,
.article-page h3 {
  font-family: var(--font-heading);
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--spacing-lg);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-breadcrumb__current {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Header */
.article-header {
  max-width: 760px;
  margin: 0 auto var(--spacing-xl);
}

.article-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin-bottom: var(--spacing-md);
}

.article-dek {
  font-family: var(--font-reading);
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  line-height: 1.55;
  text-wrap: pretty;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.article-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
}

.article-byline__text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.article-byline__author {
  font-weight: 600;
  color: var(--text-primary);
}

.article-byline__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.article-admin {
  display: flex;
  gap: 0.5rem;
  margin-top: var(--spacing-md);
}

/* Share buttons */
.article-share {
  display: flex;
  gap: 0.375rem;
}

.article-share__btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.article-share__btn[hidden] {
  display: none;
}

.article-share__btn:hover {
  color: var(--primary-dark);
  border-color: var(--primary-light);
  background: rgba(99, 102, 241, 0.06);
}

.article-share__btn.is-copied {
  color: #15803d;
  border-color: #86efac;
  background: #f0fdf4;
}

/* Hero */
.article-hero {
  margin: 0 0 var(--spacing-2xl);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: var(--gray-100);
  box-shadow: var(--shadow-md);
}

.article-hero img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

/* Layout: header and reading column, plus an optional table of contents */
.article-layout {
  max-width: 1040px;
  margin: 0 auto;
}

.article-header,
.article-body {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1100px) {
  .article-layout--with-toc {
    max-width: 1000px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    grid-template-areas:
      ".    header"
      "hero hero"
      "toc  body";
    column-gap: var(--spacing-2xl);
  }

  .article-layout--with-toc .article-header {
    grid-area: header;
    margin-left: 0;
  }

  .article-layout--with-toc .article-hero {
    grid-area: hero;
    width: 100%;
  }

  .article-layout--with-toc .article-toc {
    grid-area: toc;
  }

  .article-layout--with-toc .article-body {
    grid-area: body;
    margin-left: 0;
  }
}

.article-toc {
  display: none;
}

@media (min-width: 1100px) {
  .article-toc {
    display: block;
    position: sticky;
    top: 96px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
}

.article-toc__title {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.article-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--border-color);
}

.article-toc a {
  display: block;
  margin-left: -2px;
  padding: 0.35rem 0 0.35rem 0.875rem;
  border-left: 2px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-secondary);
}

.article-toc a:hover {
  color: var(--text-primary);
}

.article-toc a.is-active {
  color: var(--primary-dark);
  border-left-color: var(--primary);
}

/* Prose */
.prose {
  font-family: var(--font-reading);
  font-size: 1.1875rem;
  line-height: 1.75;
  color: #2d3440;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

.prose ::selection {
  background: rgba(245, 158, 11, 0.28);
}

.prose p,
.prose .trix-content > div {
  color: inherit;
  margin: 0 0 1.3em;
  text-wrap: pretty;
}

.prose h2 {
  position: relative;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 2.25em 0 0.6em;
  scroll-margin-top: 90px;
}

.prose h3 {
  font-size: 1.3rem;
  margin: 1.8em 0 0.5em;
}

.prose .article-section:first-child h2 {
  margin-top: 0;
}

.article-section {
  scroll-margin-top: 90px;
}

.article-section__lede {
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--text-secondary) !important;
}

.prose a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-decoration-color: rgba(99, 102, 241, 0.35);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.prose a:hover {
  text-decoration-color: currentColor;
}

.prose strong {
  color: var(--text-primary);
}

.prose ul,
.prose ol {
  margin: 0 0 1.25em;
  padding-left: 1.4em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose li::marker {
  color: var(--primary);
}

.prose blockquote {
  margin: 1.75em 0;
  padding: 0.25em 0 0.25em 1.25em;
  border-left: 4px solid var(--accent);
  font-size: 1.1875rem;
  font-style: italic;
  color: var(--text-primary);
}

.prose pre,
.prose code {
  font-size: 0.9em;
  background: var(--gray-100);
  border-radius: 6px;
}

.prose code {
  padding: 0.1em 0.35em;
}

.prose pre {
  padding: 1em;
  overflow-x: auto;
}

.prose img,
.prose action-text-attachment img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

.prose figure,
.article-figure {
  margin: 1.75em 0;
}

.prose figcaption {
  margin-top: 0.5em;
  font-size: 0.875rem;
  text-align: center;
  color: var(--text-muted);
}

.prose table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.prose th,
.prose td {
  padding: 0.6em 0.75em;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.prose hr {
  margin: 2.5em 0;
  border: 0;
  border-top: 1px solid var(--border-color);
}

.article-section__content {
  white-space: normal;
}

/* Callouts for links and sources */
.article-callout {
  margin: 1.5em 0;
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius);
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.18);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.article-callout--muted {
  background: var(--gray-50);
  border-color: var(--border-color);
}

.article-callout__label {
  margin: 0 0 0.5rem !important;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted) !important;
}

.article-callout ul,
.article-callout ol {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Article footer */
.article-footer {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.article-footer__share {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.article-author-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.article-author-card .forum-avatar {
  width: 48px;
  height: 48px;
  font-size: 1rem;
}

.article-author-card p {
  margin: 0;
  line-height: 1.35;
}

.article-author-card__label {
  font-size: 0.8125rem;
  color: var(--text-muted) !important;
}

.article-author-card__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary) !important;
}

/* More articles */
.article-more {
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--border-color);
}

.article-more__title {
  font-size: 1.5rem;
  margin: 0;
}

.article-more .blog-grid {
  margin-bottom: var(--spacing-xl);
}

.article-page .top-5-casinos-section .casino-card {
  height: 100%;
}

@media (max-width: 767.98px) {
  .prose {
    font-size: 1.0625rem;
    line-height: 1.75;
  }

  .article-hero {
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-xl);
  }

  .article-byline .article-share {
    width: 100%;
  }
}

/* Headings keep the sans face inside serif prose */
.prose h2,
.prose h3,
.article-callout,
.article-footer,
.article-responsible,
.article-toc-mobile {
  font-family: var(--font-sans);
}

.prose h2 {
  font-family: var(--font-heading);
}

/* Lead paragraph with a drop cap */
.article-section--lead .article-section__content > .trix-content > div:first-child,
.article-section--lead .article-section__content > p:first-child {
  font-size: 1.3125rem;
  line-height: 1.65;
  color: var(--text-primary);
}

.article-section--lead .article-section__content > :first-child::first-letter {
  float: left;
  margin: 0.08em 0.1em 0 0;
  font-family: var(--font-heading);
  font-size: 3.6em;
  font-weight: 800;
  line-height: 0.82;
  color: var(--primary);
}

/* Pull quotes */
.prose blockquote {
  position: relative;
  margin: 2.25em 0;
  padding: 0.5em 0 0.5em 2.25rem;
  border-left: 0;
  font-size: 1.375rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-primary);
}

.prose blockquote::before {
  content: "\201C";
  position: absolute;
  left: -0.25rem;
  top: -0.3em;
  font-family: var(--font-reading);
  font-size: 5.5rem;
  font-style: normal;
  line-height: 1;
  color: var(--accent);
}

/* Numbered table of contents */
.article-toc a {
  display: flex;
  gap: 0.5rem;
}

.article-toc__num {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gray-400);
  padding-top: 0.1rem;
}

.article-toc a.is-active .article-toc__num {
  color: var(--primary);
}

/* Table of contents on phones and tablets */
.article-toc-mobile {
  margin-bottom: var(--spacing-xl);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-card);
  font-size: 0.9375rem;
}

@media (min-width: 1100px) {
  .article-layout--with-toc .article-toc-mobile {
    display: none;
  }
}

.article-toc-mobile summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.125rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--text-primary);
}

.article-toc-mobile summary::-webkit-details-marker {
  display: none;
}

.article-toc-mobile summary::after {
  content: "";
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--gray-400);
  border-bottom: 2px solid var(--gray-400);
  transform: rotate(45deg);
  transition: transform var(--transition-fast);
}

.article-toc-mobile[open] summary::after {
  transform: rotate(-135deg);
}

.article-toc-mobile__count {
  padding: 0 0.45rem;
  border-radius: 999px;
  background: var(--gray-100);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.article-toc-mobile ol {
  margin: 0;
  padding: 0 1.125rem 0.875rem 2.5rem;
}

.article-toc-mobile li {
  margin-bottom: 0.35rem;
}

.article-toc-mobile a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}

.article-toc-mobile a:hover {
  color: var(--primary-dark);
}

/* Back to top */
.article-top-btn {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 1040;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.article-top-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.article-top-btn[hidden] {
  display: none;
}

/* Zoomable images */
.is-zoomable {
  cursor: zoom-in;
}

.article-lightbox {
  max-width: 94vw;
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--border-radius);
  background: transparent;
  overflow: visible;
}

.article-lightbox::backdrop {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
}

.article-lightbox img {
  display: block;
  max-width: 94vw;
  max-height: 92vh;
  border-radius: var(--border-radius);
  cursor: default;
}

.article-lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.375rem;
  line-height: 1;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

/* Responsible gambling note */
.article-responsible {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: var(--spacing-2xl);
  padding: 1.125rem 1.25rem;
  border-radius: var(--border-radius);
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.article-responsible__badge {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #b45309;
  color: #b45309;
  font-size: 0.875rem;
  font-weight: 800;
}

.article-responsible__title {
  margin: 0 0 0.25rem !important;
  font-weight: 700;
  color: #78350f !important;
  font-size: 1rem;
}

.article-responsible__text {
  margin: 0 !important;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #92400e !important;
}

.article-responsible__text a {
  color: #78350f;
  font-weight: 600;
}

@media (max-width: 767.98px) {
  .prose {
    font-size: 1.125rem;
  }

  .article-section--lead .article-section__content > .trix-content > div:first-child,
  .article-section--lead .article-section__content > p:first-child {
    font-size: 1.1875rem;
  }

  .article-top-btn {
    left: 1rem;
    bottom: 1rem;
  }

  .prose blockquote {
    font-size: 1.1875rem;
    padding-left: 1.75rem;
  }
}
/* Blog index */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.blog-card--featured {
  margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
  .blog-card--featured {
    flex-direction: row;
  }

  .blog-card--featured .blog-card__media {
    flex: 0 0 46%;
  }

  .blog-card--featured .blog-card__title {
    font-size: 1.75rem;
  }
}

.blog-card__media {
  display: block;
  background: var(--gray-100);
  overflow: hidden;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  max-height: 340px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.03);
}

.blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--spacing-lg);
}

.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.blog-card__tag {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  font-weight: 600;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-card__title {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.blog-card__title a {
  color: var(--text-primary);
  font-weight: inherit;
}

.blog-card__title a:hover {
  color: var(--primary-dark);
}

.blog-card__excerpt {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-sm);
  margin-top: auto;
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--border-color);
}

.blog-card__author {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.blog-card__link {
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.blog-card__link::after {
  content: " →";
}

.blog-card__admin {
  display: flex;
  gap: 0.5rem;
  margin-top: var(--spacing-sm);
}

.blog-empty {
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-lg);
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius);
}

.blog-empty__icon {
  font-size: 2rem;
  line-height: 1;
}

.blog-empty__title {
  margin: var(--spacing-sm) 0 0;
  font-weight: 700;
  color: var(--text-primary);
}

/* Subscribe band */
.blog-subscribe {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-inverse);
}

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

.blog-subscribe__title {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  color: var(--text-inverse);
}

.blog-subscribe__text {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
}

.blog-subscribe__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: min(100%, 360px);
}

.blog-subscribe__form .form-control {
  flex: 1 1 200px;
}

.blog-subscribe__form .btn {
  background: var(--bg-primary);
  border-color: var(--bg-primary);
  color: var(--primary-dark);
}

.blog-subscribe__form .btn:hover {
  background: var(--gray-100);
  border-color: var(--gray-100);
  color: var(--primary-dark);
}
/* Casino Assistant chat */
.chat-shell {
  display: flex;
  flex-direction: column;
  height: min(72vh, 720px);
  min-height: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.chat-shell__header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-card);
}

.chat-shell__avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--text-inverse);
}

.chat-shell__heading {
  min-width: 0;
  flex: 1;
}

.chat-shell__name {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.chat-shell__status {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.chat-shell__status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
}

/* Thread */
.chat-thread {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--spacing-lg);
  background: var(--bg-secondary);
  scroll-behavior: smooth;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.chat-thread::-webkit-scrollbar {
  width: 8px;
}

.chat-thread::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

.chat-message {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  max-width: 100%;
}

.chat-message--user {
  flex-direction: row-reverse;
}

.chat-message__avatar {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.chat-message--user .chat-message__avatar {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: var(--text-inverse);
  font-size: 0.75rem;
  font-weight: 700;
}

.chat-bubble {
  position: relative;
  max-width: min(78%, 46ch);
  padding: 0.75rem 0.9375rem;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
  color: var(--text-primary);
}

.chat-message--assistant .chat-bubble {
  border-bottom-left-radius: 4px;
}

.chat-message--user .chat-bubble {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-inverse);
  border-bottom-right-radius: 4px;
}

.chat-bubble__content {
  font-size: 0.9375rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.chat-bubble__content p {
  margin: 0 0 0.5rem 0;
  color: inherit;
}

.chat-bubble__content p:last-child {
  margin-bottom: 0;
}

.chat-bubble__content a {
  color: inherit;
  text-decoration: underline;
}

.chat-bubble__time {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

.chat-message--user .chat-bubble__time {
  color: rgba(255, 255, 255, 0.85);
}

.chat-bubble__delete {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.chat-message:hover .chat-bubble__delete,
.chat-bubble__delete:focus-visible {
  opacity: 1;
}

.chat-bubble__delete:hover {
  color: #dc2626;
  border-color: #fca5a5;
}

@media (hover: none) {
  .chat-bubble__delete {
    opacity: 1;
  }
}

/* Typing indicator */
.chat-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.875rem 1rem;
}

.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gray-400);
  animation: chat-typing-bounce 1.2s infinite ease-in-out;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.chat-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes chat-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Empty state */
.chat-empty {
  margin: auto;
  text-align: center;
  max-width: 34rem;
}

.chat-empty__icon {
  font-size: 2.25rem;
  line-height: 1;
}

.chat-empty__title {
  margin: var(--spacing-sm) 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.chat-empty__text {
  margin-bottom: var(--spacing-md);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.chat-suggestion {
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chat-suggestion:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: rgba(99, 102, 241, 0.06);
}

/* Composer */
.chat-composer {
  padding: var(--spacing-md) var(--spacing-lg);
  border-top: 1px solid var(--border-color);
  background: var(--bg-card);
}

.chat-composer__field {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.375rem 0.375rem 0.375rem 0.875rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.chat-composer__field:focus-within {
  background: var(--bg-card);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.chat-composer__input {
  flex: 1;
  border: 0;
  background: transparent;
  resize: none;
  max-height: 140px;
  padding: 0.5rem 0;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.chat-composer__input:focus {
  outline: none;
  box-shadow: none;
}

.chat-composer__send {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-composer__send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.chat-composer__hint {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-sm);
  margin: 0.5rem 0.25rem 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.chat-composer__hint kbd {
  padding: 0.05rem 0.3rem;
  border: 1px solid var(--border-color);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--bg-secondary);
  font-family: inherit;
  font-size: 0.6875rem;
  color: var(--text-secondary);
}

.chat-error {
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  font-size: 0.875rem;
}

.chat-layout {
  display: grid;
  gap: var(--spacing-lg);
}

@media (min-width: 992px) {
  .chat-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
  }
}

.chat-side-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-xs);
}

.chat-side-card h2 {
  font-size: 1rem;
  margin-bottom: var(--spacing-sm);
}

.chat-side-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.chat-side-card li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.chat-side-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .chat-shell {
    height: min(78vh, 640px);
    min-height: 420px;
    border-radius: var(--border-radius);
  }

  .chat-thread {
    padding: var(--spacing-md);
  }

  .chat-composer {
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .chat-bubble {
    max-width: 88%;
  }
}
/* Beautiful Star Rating System */
.rating-display {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin: var(--spacing-md) 0;
}

.stars {
  display: inline-flex;
  gap: 2px;
  font-size: 1.25rem;
  line-height: 1;
}

.stars .star {
  color: var(--accent);
  text-shadow: 0 1px 2px rgba(245, 158, 11, 0.3);
  transition: transform var(--transition-fast);
}

.stars .star.empty {
  color: var(--gray-300);
  text-shadow: none;
}

.stars .star.half {
  background: linear-gradient(90deg, var(--accent) 50%, var(--gray-300) 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rating-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-left: var(--spacing-xs);
}

/* Modern Rating Badge */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-sm);
  background: var(--gray-100);
  border-radius: var(--border-radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.rating-badge .stars {
  font-size: 0.875rem;
}

/* Large Rating Display */
.rating-large {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.rating-large .stars {
  font-size: 1.75rem;
  gap: 4px;
}

.rating-large .rating-value {
  font-size: 1.125rem;
  font-weight: 700;
}

/* Review Rating */
.review-rating {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
}

.review-rating .stars {
  font-size: 1rem;
}

/* Editorial score pill ("9.4 /10") */
.score-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 0.375rem 0.625rem;
  border-radius: var(--border-radius-sm);
  font-weight: 800;
  line-height: 1;
  color: var(--score-color);
  background: var(--score-bg);
  border: 1px solid var(--score-border);
}

.score-pill-value {
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.score-pill-max {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.7;
}

.score-pill--high { --score-color: #15803d; --score-bg: #f0fdf4; --score-border: #bbf7d0; }
.score-pill--mid  { --score-color: #c2410c; --score-bg: #fff7ed; --score-border: #fed7aa; }
.score-pill--low  { --score-color: #b91c1c; --score-bg: #fef2f2; --score-border: #fecaca; }

/* Rating Progress Bar */
.rating-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.rating-breakdown-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: 0.875rem;
}

.rating-breakdown-item .stars {
  font-size: 0.875rem;
  min-width: 60px;
}

.rating-breakdown-item .progress {
  flex: 1;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}

.rating-breakdown-item .progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width var(--transition-base);
}
/* Modern Form Styles */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.form-control,
.form-select {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.form-check-input {
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-label {
  margin-left: var(--spacing-xs);
  color: var(--text-secondary);
}

/* Post section reorder: drag handle and dragging state */
.post-section-drag-handle {
  cursor: grab;
  user-select: none;
  font-size: 1rem;
  line-height: 1;
}

.post-section-card.dragging {
  opacity: 0.6;
  cursor: grabbing;
}

.post-section-card.dragging .post-section-drag-handle {
  cursor: grabbing;
}
/* Alert Styles */
.flash-messages-wrapper {
  position: relative;
  z-index: 100;
}

.alert {
  border-radius: 8px;
  border: 2px solid transparent;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-color: var(--casino-green);
  color: #1b5e20;
}

.alert-danger {
  background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
  border-color: var(--casino-red);
  color: #b71c1c;
}

.alert-warning {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  border-color: var(--casino-gold);
  color: #e65100;
}

.alert-info {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-color: var(--casino-gray);
  color: #0d47a1;
}

.alert-dismissible .btn-close {
  background: transparent;
  border: none;
  color: inherit;
  opacity: 0.8;
  padding: 0.5rem;
  transition: opacity var(--transition-fast);
}

.alert-dismissible .btn-close:hover {
  opacity: 1;
}

/* Table Styles */
.table {
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  color: var(--text-primary);
  margin-bottom: 0;
}

.table thead {
  background: linear-gradient(135deg, var(--casino-dark) 0%, var(--casino-darker) 100%);
  border-bottom: 2px solid var(--border-gold);
}

.table thead th {
  color: var(--casino-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
  padding: 1rem;
  border-bottom: 2px solid var(--border-gold);
}

.table tbody tr {
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  transition: background-color var(--transition-fast);
}

.table tbody tr:hover {
  background: rgba(212, 175, 55, 0.05);
}

.table tbody td {
  padding: 1rem;
  color: var(--text-primary);
  vertical-align: middle;
}

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

/* Striped Table */
.table-striped tbody tr:nth-of-type(odd) {
  background: rgba(212, 175, 55, 0.03);
}

.table-striped tbody tr:nth-of-type(odd):hover {
  background: rgba(212, 175, 55, 0.08);
}

/* Bordered Table */
.table-bordered {
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.table-bordered th,
.table-bordered td {
  border: 1px solid rgba(212, 175, 55, 0.1);
}

/* Modern Footer */
footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  margin-top: var(--spacing-2xl);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

footer h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

footer p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: var(--spacing-sm);
}

footer hr {
  border-color: var(--border-color);
  margin: var(--spacing-xl) 0 var(--spacing-lg);
}

footer .text-center {
  color: var(--text-muted);
  font-size: 0.875rem;
}

footer .form-control {
  border-color: var(--border-color);
}

footer .form-control:focus {
  border-color: var(--primary);
}
/* Custom Utilities and Overrides */

/* Body background */
body {
  background: var(--bg-secondary) !important;
}

/* Text utilities */
.text-muted {
  color: var(--text-muted) !important;
}

.text-primary {
  color: var(--text-primary) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

/* Background utilities */
.bg-light {
  background: var(--bg-secondary) !important;
}

/* Modern spacing */
.mb-4 {
  margin-bottom: var(--spacing-lg) !important;
}

.mt-4 {
  margin-top: var(--spacing-lg) !important;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .container {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }
}

/* Auth pages */
.auth-page {
  min-height: 60vh;
}

.auth-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

.auth-card .card-title {
  margin-bottom: var(--spacing-sm);
}

.auth-links a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}
/* Responsive Design for Mobile and Tablet Devices */

/* ============================================
   Mobile First Approach - Base Styles
   ============================================ */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
  /* Typography */
  h1 {
    font-size: 1.75rem !important;
    line-height: 1.3;
    margin-bottom: 1rem;
  }

  h2 {
    font-size: 1.5rem !important;
    line-height: 1.3;
  }

  h3 {
    font-size: 1.25rem !important;
  }

  h4, h5, h6 {
    font-size: 1.1rem !important;
  }

  .lead {
    font-size: 1rem !important;
  }

  /* Container and Spacing */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .container-fluid {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  /* Cards */
  .card {
    margin-bottom: 1rem;
  }

  .card-body {
    padding: 1rem !important;
  }

  .card-header {
    padding: 0.75rem 1rem !important;
  }

  .card-title {
    font-size: 1.1rem !important;
  }

  /* Buttons */
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .btn-lg {
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
  }

  .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
  }

  /* Forms */
  .form-control,
  .form-select {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.625rem 0.875rem;
  }

  .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }

  /* Tables */
  .table-responsive {
    -webkit-overflow-scrolling: touch;
  }

  .table {
    font-size: 0.875rem;
  }

  .table th,
  .table td {
    padding: 0.5rem 0.75rem !important;
    white-space: nowrap;
  }

  /* Navbar - specific mobile adjustments only */
  .navbar-brand {
    font-size: 1.25rem !important;
  }

  /* Footer */
  footer {
    padding: 2rem 0 1rem !important;
  }

  footer .row > div {
    margin-bottom: 1.5rem;
  }

  footer .d-flex {
    flex-direction: column !important;
  }

  footer .form-control {
    margin-bottom: 0.5rem;
    margin-right: 0 !important;
  }

  footer .btn {
    width: 100%;
  }

  /* Utilities */
  .d-flex.justify-content-between {
    flex-direction: column;
    gap: 1rem;
  }

  .d-flex.justify-content-between.align-items-center {
    align-items: flex-start !important;
  }

  /* Post Sections */
  .post-content .card {
    margin-bottom: 1rem;
  }

  /* Review Sections */
  .review-section-card {
    margin-bottom: 1rem !important;
  }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
  /* Typography */
  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.75rem !important;
  }

  /* Container */
  .container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  /* Cards */
  .card-body {
    padding: 1.25rem !important;
  }

  /* Footer */
  footer .d-flex {
    flex-direction: row !important;
  }

  footer .form-control {
    margin-bottom: 0;
    margin-right: 0.5rem !important;
  }

  footer .btn {
    width: auto;
  }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Typography */
  h1 {
    font-size: 2.25rem !important;
  }

  h2 {
    font-size: 1.875rem !important;
  }

  /* Container */
  .container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  /* Cards - 2 columns on medium screens */
  .col-md-6 {
    margin-bottom: 1.5rem;
  }

  /* Tables */
  .table th,
  .table td {
    padding: 0.75rem 1rem !important;
  }

  /* Admin Dashboard */
  .col-md-6.col-lg-3 {
    margin-bottom: 1.5rem;
  }
}

/* ============================================
   Common Mobile Improvements
   ============================================ */

/* Touch-friendly targets */
@media (max-width: 991.98px) {
  /* Increase touch target sizes */
  .btn,
  .nav-link,
  a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Better spacing for stacked elements */
  .mb-4 {
    margin-bottom: 1.5rem !important;
  }

  .mt-4 {
    margin-top: 1.5rem !important;
  }

  .mb-3 {
    margin-bottom: 1rem !important;
  }

  /* Form improvements */
  .input-group {
    flex-wrap: wrap;
  }

  .input-group .form-control {
    flex: 1 1 100%;
    margin-bottom: 0.5rem;
  }

  .input-group .btn {
    flex: 1 1 100%;
    width: 100%;
  }

  /* Better button groups */
  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
    border-radius: 0.375rem !important;
    margin-bottom: 0.5rem;
  }

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

  /* Alert improvements */
  .alert {
    padding: 1rem !important;
    font-size: 0.9375rem;
  }

  /* Badge improvements */
  .badge {
    font-size: 0.8125rem;
    padding: 0.375rem 0.625rem;
  }

  /* Dropdown improvements */
  .dropdown-menu {
    width: 100%;
    max-width: 100%;
  }

  /* Modal improvements */
  .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }

  .modal-content {
    border-radius: 0.5rem;
  }

  /* Image responsiveness */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Text alignment */
  .text-center-mobile {
    text-align: center;
  }

  /* Hide/show utilities */
  .d-none-mobile {
    display: none !important;
  }

  .d-block-mobile {
    display: block !important;
  }
}

/* ============================================
   Specific Component Improvements
   ============================================ */

/* Navbar mobile improvements - handled in navbar.css to avoid conflicts */

/* Footer mobile improvements */
@media (max-width: 767.98px) {
  footer .row {
    flex-direction: column;
  }

  footer .col-md-6 {
    width: 100%;
    margin-bottom: 2rem;
  }

  footer .col-md-6:last-child {
    margin-bottom: 0;
  }

  footer .d-flex {
    flex-direction: column;
  }

  footer .form-control {
    width: 100%;
    margin-right: 0 !important;
    margin-bottom: 0.75rem;
  }

  footer .btn {
    width: 100%;
  }
}

/* Table mobile improvements */
@media (max-width: 767.98px) {
  .table-responsive {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table {
    min-width: 600px; /* Force horizontal scroll on very small screens */
  }

  /* Alternative: Stack table on very small screens */
  .table-stacked {
    display: block;
  }

  .table-stacked thead {
    display: none;
  }

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

  .table-stacked tr {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-card);
  }

  .table-stacked td {
    border: none;
    padding: 0.5rem 0;
    text-align: left;
  }

  .table-stacked td:before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--text-primary);
    display: inline-block;
    min-width: 120px;
  }
}

/* Form mobile improvements */
@media (max-width: 767.98px) {
  /* Better form spacing */
  .mb-3 {
    margin-bottom: 1.25rem !important;
  }

  /* Full width inputs on mobile */
  .form-control,
  .form-select,
  textarea {
    width: 100%;
  }

  /* Better checkbox/radio spacing */
  .form-check {
    margin-bottom: 0.75rem;
  }

  /* Rich text editor improvements */
  trix-editor {
    min-height: 200px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  /* File input improvements */
  .form-control[type="file"] {
    padding: 0.5rem;
  }
}

/* Card grid improvements */
@media (max-width: 575.98px) {
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }

  .row > [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  /* Single column on very small screens */
  .col-md-6,
  .col-lg-4 {
    width: 100%;
    margin-bottom: 1rem;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  /* 2 columns on small screens */
  .col-md-6 {
    width: 50%;
  }

  .col-lg-4 {
    width: 50%;
  }
}

/* Admin dashboard mobile improvements */
@media (max-width: 991.98px) {
  .admin-dashboard .row {
    margin-bottom: 1rem;
  }

  .admin-dashboard .col-md-6.col-lg-3 {
    width: 100%;
    margin-bottom: 1rem;
  }

  .admin-dashboard .card {
    margin-bottom: 1rem;
  }
}

/* Casino show page mobile improvements */
@media (max-width: 767.98px) {
  .casino-show-header {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .casino-show-header .admin-score-wrapper {
    margin-top: 1rem;
    align-self: flex-start;
  }

  .review-section {
    margin-bottom: 1.5rem;
  }

  .review-section .card-body {
    padding: 1rem !important;
  }
}

/* Blog post mobile improvements */
@media (max-width: 767.98px) {
  .post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
  }

  .post-content .card {
    margin-bottom: 1.5rem;
  }
}

/* Print styles */
@media print {
  .navbar,
  footer,
  .btn,
  .dropdown,
  .chat-shell {
    display: none !important;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .card {
    border: 1px solid #000;
    page-break-inside: avoid;
  }
}

/* Forum Styles */

/* Section index */
.forum-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-md);
}

.forum-section-card {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xs);
  color: inherit;
  font-weight: 400;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.forum-section-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
  color: inherit;
}

.forum-section-card__badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-dark);
}

.forum-section-card__body {
  display: block;
  flex: 1;
  min-width: 0;
}

.forum-section-card__title {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.forum-section-card__text {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.forum-section-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.forum-section-card__arrow {
  color: var(--gray-300);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.forum-section-card:hover .forum-section-card__arrow {
  color: var(--primary);
  transform: translateX(2px);
}

/* Empty states */
.forum-empty {
  text-align: center;
  padding: var(--spacing-2xl) var(--spacing-lg);
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius);
}

.forum-empty__icon {
  font-size: 2rem;
  line-height: 1;
}

.forum-empty__title {
  margin: var(--spacing-sm) 0 0.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.forum-empty__text {
  margin-bottom: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Thread page */
.forum-thread-page {
  padding-bottom: 120px;
}

.forum-back-link {
  display: inline-block;
  margin-bottom: var(--spacing-md);
  font-size: 0.9375rem;
}

.forum-thread-page__count {
  margin-bottom: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Avatars */
.forum-avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--text-inverse);
}

.forum-avatar--sm {
  width: 30px;
  height: 30px;
  font-size: 0.75rem;
}

/* Post cards */
.forum-posts {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.forum-post-card {
  padding: var(--spacing-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition-fast);
}

.btn-xs {
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  border-radius: var(--border-radius-sm);
}

/* Chat-style input at bottom */
.forum-chat-input-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  padding: 12px 16px;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
  /* Safe area for mobile devices */
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.forum-chat-hint {
  max-width: 1200px;
  margin: 6px auto 0;
  padding-left: 42px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.forum-chat-input-form {
  max-width: 1200px;
  margin: 0 auto;
}

.forum-chat-error {
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
  font-size: 0.875rem;
  color: #991b1b;
}

.forum-chat-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 6px 8px 6px 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.forum-chat-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  background: var(--bg-card);
}

.forum-chat-input {
  flex: 1;
  border: none;
  background: transparent;
  resize: none;
  padding: 8px 4px;
  font-size: 0.9375rem;
  line-height: 1.5;
  max-height: 120px;
  overflow-y: auto;
  min-height: 24px;
}

.forum-chat-input:focus {
  outline: none;
  box-shadow: none;
}

.forum-chat-send-btn {
  align-self: flex-end;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #6366f1;
  border: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.forum-chat-send-btn:hover {
  background-color: #4f46e5;
  transform: scale(1.05);
}

.forum-chat-send-btn:active {
  transform: scale(0.95);
}

.forum-chat-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.forum-chat-signin-prompt {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #fffbeb;
  border-top: 1px solid #fcd34d;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 1000;
  font-size: 0.875rem;
  color: #92400e;
}

/* Comment/Reply functionality */

/* Replies */
.forum-replies {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border-color);
}

.forum-replies[hidden] {
  display: none;
}

.forum-replies__empty {
  margin-bottom: var(--spacing-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.forum-reply-form {
  display: block;
  margin-top: var(--spacing-sm);
}

.forum-reply-form-inner {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  width: 100%;
}

.forum-reply-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 38px;
  resize: none;
  max-height: 120px;
  font-size: 0.9375rem;
  border-radius: 20px;
  padding: 0.5rem 0.875rem;
}

.forum-reply-submit {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.post-author-name {
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 600;
  display: inline-block;
}

/* Emoji Reactions */

.emoji-picker-dropdown {
  min-width: 320px;
  max-width: 380px;
  padding: 0 !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
  border-radius: 12px !important;
  overflow: hidden;
  position: absolute;
  z-index: 1050;
  margin-top: 8px;
  background: white !important;
  max-height: calc(100vh - 20px);
}

.emoji-picker-dropdown.dropdown-menu-top {
  margin-top: 0;
  margin-bottom: 8px;
}

.dropdown.show .emoji-picker-dropdown,
.dropdown-menu.show {
  display: block !important;
}

.emoji-picker-body {
  padding: 12px;
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  background-color: white;
}

/* On smaller screens, reduce max height */
@media (max-height: 600px) {
  .emoji-picker-body {
    max-height: calc(100vh - 120px);
  }
}

.emoji-picker-body::-webkit-scrollbar {
  width: 8px;
}

.emoji-picker-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.emoji-picker-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.emoji-picker-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.emoji-picker-item {
  padding: 12px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  background: white;
  border-radius: 10px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  width: 100%;
}

.emoji-picker-item:hover {
  background-color: #f3f4f6;
  border-color: #6366f1;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.emoji-picker-item:active {
  transform: scale(1.05);
  background-color: #eef2ff;
}

.emoji-picker-emoji {
  font-size: 2.25rem;
  line-height: 1;
  display: inline-block;
  user-select: none;
  pointer-events: none;
}

/* Ensure dropdown is visible when shown */
.dropdown-menu.emoji-picker-dropdown.show,
.dropdown.show .emoji-picker-dropdown {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Mention Suggestions */
.mention-suggestions {
  position: absolute;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  min-width: 200px;
  display: none;
}

.mention-suggestion {
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s;
}

.mention-suggestion:last-child {
  border-bottom: none;
}

.mention-suggestion:hover,
.mention-suggestion.selected {
  background-color: #f3f4f6;
}

.mention-suggestion:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.mention-suggestion:last-child {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .forum-chat-input-container {
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }

  .forum-chat-input-wrapper {
    padding: 5px 6px 5px 8px;
  }

  .forum-chat-hint {
    display: none;
  }

  .forum-chat-send-btn {
    width: 36px;
    height: 36px;
  }

  .forum-chat-send-btn svg {
    width: 18px;
    height: 18px;
  }

  .forum-thread-page {
    padding-bottom: 110px;
  }

  .forum-post-card {
    padding: var(--spacing-md);
  }

  .emoji-picker-dropdown {
    min-width: 260px;
  }

  .emoji-picker-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .emoji-picker-item {
    min-height: 48px;
    padding: 8px;
  }

  .emoji-picker-emoji {
    font-size: 1.75rem;
  }
}

/* Keep the floating notification button clear of the fixed composer */
body:has(.forum-chat-input-container) .notification-button-container,
body:has(.forum-chat-signin-prompt) .notification-button-container {
  bottom: 7.5rem;
}

/* ============================================
   Forum messages
   ============================================ */
.forum-message {
  position: relative;
}

.forum-message__header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.625rem;
}

.forum-message__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  min-width: 0;
  flex: 1;
}

.forum-message__meta time {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.forum-badge {
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.forum-badge--you {
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-dark);
}

.forum-message__actions {
  margin-left: auto;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.forum-message:hover > .forum-message__header .forum-message__actions,
.forum-reply:hover .forum-message__actions,
.forum-message__actions:focus-within {
  opacity: 1;
}

@media (hover: none) {
  .forum-message__actions {
    opacity: 1;
  }
}

.forum-icon-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.forum-icon-btn:hover {
  background: var(--gray-100);
  color: var(--text-primary);
}

.forum-icon-btn--danger:hover {
  background: #fef2f2;
  color: #dc2626;
}

/* Message body */
.post-content {
  position: relative;
  padding-left: calc(38px + 0.625rem);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.post-content p {
  margin: 0 0 0.6rem;
  color: inherit;
}

.post-content p:last-child {
  margin-bottom: 0;
}

.post-content a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-decoration-color: rgba(99, 102, 241, 0.35);
  text-underline-offset: 2px;
}

.post-content a:hover {
  text-decoration-color: currentColor;
}

.post-content--sm {
  padding-left: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.mention {
  display: inline-block;
  padding: 0 0.3rem;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-dark);
  font-weight: 600;
}

/* Long messages */
.post-content.is-collapsed [data-collapsible-target="content"] {
  max-height: 260px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent);
  mask-image: linear-gradient(to bottom, #000 65%, transparent);
}

.collapsible-toggle {
  margin-top: 0.25rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.collapsible-toggle:hover {
  color: var(--primary-dark);
}

/* Reactions and comment toggle */
.reactions-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.875rem;
  padding-left: calc(38px + 0.625rem);
}

.reactions-container--sm {
  margin-top: 0.5rem;
  padding-left: 0;
}

.emoji-icon {
  font-size: 1rem;
  line-height: 1;
  display: inline-block;
}

.emoji-reaction-btn,
.emoji-add-btn,
.reaction-badge,
.forum-comment-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 30px;
  padding: 0 0.625rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.emoji-reaction-btn:hover,
.emoji-add-btn:hover,
.forum-comment-btn:hover {
  border-color: var(--primary-light);
  background: rgba(99, 102, 241, 0.06);
  color: var(--primary-dark);
  transform: none;
  box-shadow: none;
}

.emoji-reaction-btn.btn-primary {
  border-color: var(--primary-light);
  background: rgba(99, 102, 241, 0.12);
  color: var(--primary-dark);
}

.emoji-reaction-btn.btn-outline-primary {
  color: var(--text-secondary);
}

.emoji-reaction-btn .reaction-count {
  font-variant-numeric: tabular-nums;
}

.emoji-reaction-btn:active {
  transform: scale(0.94);
}

.emoji-add-btn {
  width: 30px;
  padding: 0;
  justify-content: center;
  opacity: 0.75;
}

.emoji-add-btn .ms-1 {
  display: none;
}

.forum-message:hover .emoji-add-btn,
.emoji-add-btn:focus-visible,
.emoji-add-btn[aria-expanded="true"] {
  opacity: 1;
}

.reaction-badge {
  cursor: default;
  background: var(--gray-50);
}

.reactions-container--sm .emoji-reaction-btn,
.reactions-container--sm .emoji-add-btn,
.reactions-container--sm .reaction-badge {
  height: 26px;
  font-size: 0.75rem;
}

.reactions-container--sm .emoji-add-btn {
  width: 26px;
}

.reactions-container--sm .emoji-icon {
  font-size: 0.875rem;
}

.forum-comment-btn {
  margin-left: auto;
}

.forum-comment-btn.active {
  border-color: var(--primary-light);
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-dark);
}

/* Threaded replies */
.forum-replies {
  margin-left: 18px;
  padding: 0.25rem 0 0 calc(20px + 0.625rem);
  border-top: 0;
  border-left: 2px solid var(--border-color);
}

.forum-reply {
  display: flex;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}

.forum-reply__bubble {
  flex: 1;
  min-width: 0;
  padding: 0.625rem 0.875rem 0.5rem;
  background: var(--bg-secondary);
  border-radius: 4px 14px 14px 14px;
}

.forum-reply .forum-message__header {
  margin-bottom: 0.25rem;
}

.forum-reply .post-author-name {
  font-size: 0.875rem;
}

.forum-reply .forum-icon-btn {
  width: 26px;
  height: 26px;
}

@media (max-width: 767.98px) {
  .post-content,
  .reactions-container {
    padding-left: 0;
  }

  .reactions-container--sm {
    padding-left: 0;
  }

  .forum-replies {
    margin-left: 0;
    padding-left: 0.75rem;
  }

  .forum-reply .forum-avatar {
    display: none;
  }
}
/* Floating Notification Button */
.notification-button-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1050;
  cursor: move;
  user-select: none;
}

.notification-button-container.dragging {
  cursor: grabbing;
  z-index: 1060;
}

.notification-button-container.dragging .notification-button {
  cursor: grabbing;
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3) !important;
}

.notification-button {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: none;
  transition: all 0.3s ease;
  padding: 0;
  cursor: pointer;
}

.notification-button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2) !important;
}

.notification-button:active:not(.dragging) {
  transform: scale(0.95);
}

.notification-drag-handle {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1;
  pointer-events: auto;
  user-select: none;
  font-weight: bold;
  letter-spacing: -2px;
  cursor: grab;
  transition: color 0.2s ease;
  width: 20px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-drag-handle:active {
  cursor: grabbing;
}

.notification-button-container:hover .notification-drag-handle {
  color: rgba(255, 255, 255, 0.9);
}

.notification-button-container.dragging .notification-drag-handle {
  color: rgba(255, 255, 255, 1);
  cursor: grabbing;
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  font-size: 0.7rem;
  padding: 0.25em 0.5em;
  min-width: 20px;
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Notification Dropdown */
.notification-dropdown {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 2rem);
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  max-height: 600px;
  overflow: hidden;
  transition: bottom 0.3s ease, top 0.3s ease;
}

.notification-dropdown.show {
  display: flex;
  animation: slideUp 0.3s ease;
}

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

.notification-dropdown-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  border-radius: 12px 12px 0 0;
}

.notification-dropdown-header h6 {
  font-weight: 600;
  color: #212529;
  margin: 0;
}

.notification-dropdown-content {
  overflow-y: auto;
  flex: 1;
  max-height: 400px;
}

.notification-dropdown-footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid #e9ecef;
  background: #f8f9fa;
  border-radius: 0 0 12px 12px;
}

/* Notification List */
.notification-list {
  padding: 0.5rem 0;
}

.notification-item-wrapper {
  position: relative;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

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

.notification-item-wrapper:hover {
  background-color: #f8f9fa;
}

.notification-item-wrapper.notification-item-unread {
  background-color: #f0f7ff;
}

.notification-item-wrapper.notification-item-unread:hover {
  background-color: #e6f2ff;
}

.notification-item {
  display: block;
  padding: 1rem 1.25rem;
  padding-right: 2.5rem;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

.notification-item:hover {
  text-decoration: none;
  color: inherit;
}

.notification-delete-btn {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.25rem;
  color: #6c757d;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.notification-item-wrapper:hover .notification-delete-btn {
  opacity: 1;
}

.notification-delete-btn:hover {
  color: #dc3545;
  background-color: rgba(220, 53, 69, 0.1);
}

.notification-delete-btn:active {
  background-color: rgba(220, 53, 69, 0.2);
}

.notification-item-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.notification-dot {
  width: 8px;
  height: 8px;
  background-color: #0d6efd;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5rem;
  animation: pulse 2s infinite;
}

.notification-item-text {
  flex: 1;
  min-width: 0;
}

.notification-message {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #212529;
  margin-bottom: 0.25rem;
  word-wrap: break-word;
}

.notification-time {
  font-size: 0.75rem;
  display: block;
}

.notification-empty {
  padding: 2rem 1.25rem;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .notification-button-container {
    bottom: 1.5rem;
    right: 1.5rem;
  }

  .notification-button {
    width: 52px;
    height: 52px;
  }

  .notification-dropdown {
    width: calc(100vw - 2rem);
    max-width: 380px;
    bottom: 65px;
  }
}

@media (max-width: 480px) {
  .notification-button-container {
    bottom: 1rem;
    right: 1rem;
  }

  .notification-dropdown {
    right: -0.5rem;
    width: calc(100vw - 1rem);
  }
}

/* Scrollbar styling for notification dropdown */
.notification-dropdown-content::-webkit-scrollbar {
  width: 6px;
}

.notification-dropdown-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.notification-dropdown-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.notification-dropdown-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Home page */
.home-hero {
  position: relative;
  padding: var(--spacing-2xl) var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  background:
    radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(99, 102, 241, 0.10) 0%, transparent 40%),
    var(--bg-primary);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.home-hero-eyebrow {
  display: inline-block;
  margin-bottom: var(--spacing-md);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-dark);
  font-size: 0.8125rem;
  font-weight: 600;
}

.home-hero-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 18ch;
  margin-bottom: var(--spacing-md);
}

.home-hero-lead {
  max-width: 60ch;
  margin-bottom: var(--spacing-lg);
}

.home-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs) var(--spacing-lg);
  padding: 0;
  margin: 0;
  list-style: none;
}

.home-hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.home-hero-trust li::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.75rem;
  font-weight: 800;
}

/* Chat assistant promo */
.chatbot-promo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  padding: var(--spacing-xl);
  margin: var(--spacing-2xl) 0 0;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
  color: var(--text-inverse);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.25);
}

.chatbot-promo-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.18);
  font-size: 2rem;
}

.chatbot-promo-body {
  flex: 1;
  min-width: 0;
}

.chatbot-promo-title {
  font-size: 1.375rem;
  color: var(--text-inverse);
  margin-bottom: var(--spacing-xs);
}

.chatbot-promo-text {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: var(--spacing-sm);
  max-width: 65ch;
}

.chatbot-promo-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  padding: 0;
  margin: 0;
  list-style: none;
}

.chatbot-promo-features li {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.8125rem;
  font-weight: 600;
}

.chatbot-promo-features li::before {
  content: "✓ ";
}

.chatbot-promo-cta {
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .home-hero {
    padding: var(--spacing-xl) var(--spacing-lg);
  }

  .chatbot-promo {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
  }

  .chatbot-promo-cta {
    width: 100%;
  }
}
/*



















 */
