/*
 * CasinoVault - Native App Design System
 *
 * Stitch-aligned Material You palette derived from #F5C518.
 * Warm neutrals, tonal surfaces, Apple-inspired mobile-first.
 * No emojis.
 *
 * @version 4.0
 */

/* ========================================
   Design Tokens — Stitch Material You
   ======================================== */
:root {
  /* Brand — Stitch primary */
  --color-accent: #F5C518;
  --color-accent-hover: #DEB118;
  --color-accent-light: rgba(245, 197, 24, 0.12);
  --color-accent-glow: rgba(245, 197, 24, 0.25);
  --color-primary: #745b00;
  --color-primary-container: #f5c518;

  /* Tertiary — Stitch complementary */
  --color-tertiary: #00687c;
  --color-tertiary-container: #49dbff;

  /* Warm Neutrals — Stitch tonal palette */
  --color-black: #000000;
  --color-900: #1b1c1c;
  --color-800: #242322;
  --color-700: #3d3a36;
  --color-600: #4e4633;
  --color-500: #807660;
  --color-400: #9e9585;
  --color-300: #d1c5ac;
  --color-200: #ddd5c4;
  --color-150: #e9e8e8;
  --color-100: #efeded;
  --color-50: #faf9f9;
  --color-white: #ffffff;

  /* Semantic */
  --color-success: #22c55e;
  --color-danger: #ba1a1a;
  --color-gold: #f0c110;

  /* Theme-aware (light defaults — Stitch surfaces) */
  --color-body-bg: #faf9f9;
  --color-card-bg: var(--color-white);
  --color-card-border: #d1c5ac;
  --color-text-primary: #1b1c1c;
  --color-text-secondary: #4e4633;
  --color-text-muted: #807660;
  --color-section-bg: var(--color-white);
  --color-input-bg: var(--color-white);
  --color-input-border: #d1c5ac;
  --color-header-bg: var(--color-white);
  --color-footer-bg: #efeded;

  /* Secondary — Stitch */
  --color-secondary: #5f5e5e;
  --color-secondary-container: #e5e2e1;

  /* Outline — Stitch */
  --color-outline: #807660;
  --color-outline-variant: #d1c5ac;

  /* Legacy aliases (templates reference these) */
  --color-coral: var(--color-accent);
  --color-coral-dark: var(--color-accent-hover);
  --color-coral-light: #f7d14e;
  --color-navy-950: #1b1c1c;
  --color-navy-900: #faf9f9;
  --color-navy-800: #efeded;
  --color-navy-700: #ddd5c4;
  --color-navy-600: #d1c5ac;
  --color-navy-500: #9e9585;
  --color-charcoal: #242322;
  --color-sidebar-bg: var(--color-white);

  --font-sans: 'Inter', 'SF Pro Display', 'SF Pro Text', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Dark mode — warm dark Stitch equivalents */
.dark-mode {
  --color-body-bg: #0e0d0c;
  --color-card-bg: #1c1b19;
  --color-card-border: #3d3a36;
  --color-text-primary: #e9e8e8;
  --color-text-secondary: #c8c6c5;
  --color-text-muted: #807660;
  --color-section-bg: #161514;
  --color-input-bg: #1c1b19;
  --color-input-border: #3d3a36;
  --color-header-bg: #0e0d0c;
  --color-footer-bg: #0a0908;
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul, ol { list-style: none; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background-color: var(--color-body-bg);
  color: var(--color-text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
  letter-spacing: -0.011em;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
input, select, textarea { font: inherit; }

/* Hide scrollbar for horizontal scroll containers (native app feel) */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Material Symbols defaults */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ========================================
   Utility Classes
   ======================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.hidden { display: none !important; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; } .z-20 { z-index: 20; } .z-30 { z-index: 30; } .z-40 { z-index: 40; } .z-50 { z-index: 50; }
.block { display: block; } .inline-block { display: inline-block; } .inline-flex { display: inline-flex; } .flex { display: flex; } .grid { display: grid; }
.flex-col { flex-direction: column; } .flex-1 { flex: 1 1 0%; } .flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; } .items-start { align-items: start; } .items-end { align-items: flex-end; }
.justify-center { justify-content: center; } .justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; } .gap-1\.5 { gap: 0.375rem; } .gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; } .gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; } .gap-8 { gap: 2rem; }
.flex-wrap { flex-wrap: wrap; }
.w-full { width: 100%; } .w-3 { width: 0.75rem; } .w-3\.5 { width: 0.875rem; } .w-4 { width: 1rem; } .w-5 { width: 1.25rem; } .w-6 { width: 1.5rem; } .w-8 { width: 2rem; } .w-10 { width: 2.5rem; } .w-11 { width: 2.75rem; } .w-12 { width: 3rem; } .w-16 { width: 4rem; } .w-20 { width: 5rem; } .w-28 { width: 7rem; } .w-36 { width: 9rem; }
.h-3\.5 { height: 0.875rem; } .h-4 { height: 1rem; } .h-5 { height: 1.25rem; } .h-6 { height: 1.5rem; } .h-7 { height: 1.75rem; } .h-8 { height: 2rem; } .h-10 { height: 2.5rem; } .h-11 { height: 2.75rem; } .h-12 { height: 3rem; } .h-16 { height: 4rem; } .h-20 { height: 5rem; } .h-28 { height: 7rem; } .h-48 { height: 12rem; } .h-full { height: 100%; }
.min-w-0 { min-width: 0; } .min-h-screen { min-height: 100vh; } .max-w-none { max-width: none; } .max-w-lg { max-width: 32rem; } .max-w-3xl { max-width: 48rem; } .max-w-4xl { max-width: 56rem; } .max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; } .mx-5 { margin-left: 1.25rem; margin-right: 1.25rem; }
.mb-1 { margin-bottom: 0.25rem; } .mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; } .mb-10 { margin-bottom: 2.5rem; } .mb-12 { margin-bottom: 3rem; }
.mt-0\.5 { margin-top: 0.125rem; } .mt-1 { margin-top: 0.25rem; } .mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; } .mt-5 { margin-top: 1.25rem; } .mt-8 { margin-top: 2rem; } .mt-12 { margin-top: 3rem; } .mt-16 { margin-top: 4rem; }
.-mt-16 { margin-top: -4rem; }
.my-3 { margin-top: 0.75rem; margin-bottom: 0.75rem; } .my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.ml-1 { margin-left: 0.25rem; }
.p-1 { padding: 0.25rem; } .p-2 { padding: 0.5rem; } .p-4 { padding: 1rem; } .p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; } .p-8 { padding: 2rem; }
.px-1\.5 { padding-left: 0.375rem; padding-right: 0.375rem; } .px-2 { padding-left: 0.5rem; padding-right: 0.5rem; } .px-3 { padding-left: 0.75rem; padding-right: 0.75rem; } .px-4 { padding-left: 1rem; padding-right: 1rem; } .px-5 { padding-left: 1.25rem; padding-right: 1.25rem; } .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; } .px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; } .py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; } .py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; } .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; } .py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; } .py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; } .py-4 { padding-top: 1rem; padding-bottom: 1rem; } .py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; } .py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; } .py-8 { padding-top: 2rem; padding-bottom: 2rem; } .py-12 { padding-top: 3rem; padding-bottom: 3rem; } .py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pl-11 { padding-left: 2.75rem; } .pt-4 { padding-top: 1rem; } .pt-5 { padding-top: 1.25rem; } .pt-14 { padding-top: 3.5rem; } .pt-16 { padding-top: 4rem; } .pb-4 { padding-bottom: 1rem; } .pb-6 { padding-bottom: 1.5rem; }
.top-0 { top: 0; } .top-3 { top: 0.75rem; } .top-20 { top: 5rem; } .top-1\/2 { top: 50%; } .left-0 { left: 0; } .left-3 { left: 0.75rem; } .left-3\.5 { left: 0.875rem; } .right-0 { right: 0; } .right-3 { right: 0.75rem; } .bottom-0 { bottom: 0; }
.rounded { border-radius: 0.25rem; } .rounded-md { border-radius: 0.375rem; } .rounded-lg { border-radius: 0.5rem; } .rounded-xl { border-radius: 0.75rem; } .rounded-2xl { border-radius: 1rem; } .rounded-full { border-radius: 9999px; }
.border { border-width: 1px; } .border-2 { border-width: 2px; } .border-4 { border-width: 4px; } .border-t { border-top-width: 1px; } .border-b { border-bottom-width: 1px; } .border-l { border-left-width: 1px; } .border-r { border-right-width: 1px; }
.overflow-hidden { overflow: hidden; } .overflow-x-auto { overflow-x: auto; } .overflow-y-auto { overflow-y: auto; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-center { text-align: center; } .text-left { text-align: left; }
.text-\[10px\] { font-size: 10px; line-height: 1; }
.text-xs { font-size: 0.75rem; line-height: 1rem; } .text-sm { font-size: 0.875rem; line-height: 1.25rem; } .text-base { font-size: 1rem; line-height: 1.5rem; } .text-lg { font-size: 1.125rem; line-height: 1.75rem; } .text-xl { font-size: 1.25rem; line-height: 1.75rem; } .text-2xl { font-size: 1.5rem; line-height: 2rem; } .text-3xl { font-size: 1.875rem; line-height: 2.25rem; } .text-4xl { font-size: 2.25rem; line-height: 2.5rem; } .text-8xl { font-size: 6rem; line-height: 1; }
.font-medium { font-weight: 500; } .font-semibold { font-weight: 600; } .font-bold { font-weight: 700; } .font-black { font-weight: 900; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; } .tracking-tight { letter-spacing: -0.025em; }
.leading-none { line-height: 1; } .leading-tight { line-height: 1.25; } .leading-relaxed { line-height: 1.625; }
.whitespace-nowrap { white-space: nowrap; }
.pointer-events-none { pointer-events: none; }
.object-cover { object-fit: cover; } .object-contain { object-fit: contain; }
.transition-all { transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.transition-colors { transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease; }
.transition-transform { transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.transition-opacity { transition: opacity 0.25s ease; }
.duration-200 { transition-duration: 200ms; } .duration-300 { transition-duration: 300ms; } .duration-500 { transition-duration: 500ms; }
.animate-spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.space-y-1 > * + * { margin-top: 0.25rem; } .space-y-2 > * + * { margin-top: 0.5rem; } .space-y-3 > * + * { margin-top: 0.75rem; } .space-y-6 > * + * { margin-top: 1.5rem; } .space-y-8 > * + * { margin-top: 2rem; }
.divide-y > * + * { border-top: 1px solid var(--color-card-border); }
.aspect-video { aspect-ratio: 16 / 9; }
.-translate-x-full { transform: translateX(-100%); } .translate-x-0 { transform: translateX(0); } .-translate-y-1\/2 { transform: translateY(-50%); }
.border-collapse { border-collapse: collapse; }
.max-h-96 { max-height: 24rem; }
.min-h-\[320px\] { min-height: 320px; }
.min-h-\[380px\] { min-height: 380px; }
.max-w-xl { max-width: 36rem; }
.max-w-\[70\%\] { max-width: 70%; }
.from-black\/80 { --tw-gradient-from: rgba(0,0,0,0.8); }
.from-black\/60 { --tw-gradient-from: rgba(0,0,0,0.6); }
.via-black\/50 { --tw-gradient-via: rgba(0,0,0,0.5); }
.via-black\/20 { --tw-gradient-via: rgba(0,0,0,0.2); }
.to-black\/30 { --tw-gradient-to: rgba(0,0,0,0.3); }
.h-3 { height: 0.75rem; }
.h-32 { height: 8rem; }
.mt-auto { margin-top: auto; }
.opacity-60 { opacity: 0.6; }
.hover\:opacity-100:hover { opacity: 1; }
.w-2\.5 { width: 0.625rem; } .h-2\.5 { height: 0.625rem; }
.w-auto { width: auto; }
.w-\[260px\] { width: 260px; }
.self-start { align-self: start; }

/* ========================================
   Colors — Light-first
   ======================================== */
.text-white { color: var(--color-text-primary); }
.text-gray-100, .text-gray-200 { color: var(--color-900); }
.text-gray-300 { color: var(--color-700); }
.text-gray-400 { color: var(--color-500); }
.text-gray-500 { color: var(--color-500); }
.text-gray-600 { color: var(--color-600); }
.text-gray-700 { color: var(--color-700); }
.text-gray-900 { color: var(--color-900); }
.text-white\/80 { color: rgba(17,17,17,0.8); }
.text-white\/90 { color: rgba(17,17,17,0.9); }
.text-white\/70 { color: rgba(17,17,17,0.7); }
.text-coral { color: var(--color-accent); }
.text-coral-light { color: var(--color-coral-light); }
.text-gold { color: var(--color-gold); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }

.bg-navy-950 { background-color: var(--color-900); }
.bg-navy-900 { background-color: var(--color-50); }
.bg-navy-800 { background-color: var(--color-100); }
.bg-navy-700 { background-color: var(--color-200); }
.bg-navy-600 { background-color: var(--color-300); }
.bg-sidebar-bg { background-color: var(--color-white); }
.bg-card-bg { background-color: var(--color-card-bg); }
.bg-coral { background-color: var(--color-accent); }
.bg-coral-dark { background-color: var(--color-accent-hover); }
.bg-coral\/10 { background-color: var(--color-accent-light); }
.bg-coral\/20 { background-color: rgba(245,197,24,0.2); }
.bg-transparent { background-color: transparent; }
.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: #fafafa; }
.bg-gray-100 { background-color: #f5f5f5; }
.bg-gray-600 { background-color: #555555; }
.bg-black\/60 { background-color: rgba(0,0,0,0.6); }
.bg-black\/40 { background-color: rgba(0,0,0,0.4); }
.bg-black\/20 { background-color: rgba(0,0,0,0.2); }
.bg-navy-900\/95 { background-color: rgba(250,250,250,0.97); }
.bg-navy-800\/95 { background-color: rgba(245,245,245,0.97); }
.bg-navy-700\/50 { background-color: rgba(229,229,229,0.5); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-via, var(--tw-gradient-to)), var(--tw-gradient-to)); }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-from), var(--tw-gradient-via, var(--tw-gradient-to)), var(--tw-gradient-to)); }
.from-teal-500\/80 { --tw-gradient-from: rgba(245,197,24,0.8); }
.to-cyan-400\/80 { --tw-gradient-to: rgba(247,209,70,0.8); }
.from-teal-500\/60 { --tw-gradient-from: rgba(245,197,24,0.6); }
.to-transparent { --tw-gradient-to: transparent; }
.from-card-bg\/90 { --tw-gradient-from: rgba(26,26,26,0.9); }
.via-black\/30 { --tw-gradient-via: rgba(0,0,0,0.3); }
.to-black\/20 { --tw-gradient-to: rgba(0,0,0,0.2); }
.hover\:bg-black\/60:hover { background-color: rgba(0,0,0,0.6); }
.hover\:bg-gray-500:hover { background-color: #888888; }

.border-card-border { border-color: var(--color-card-border); }
.border-navy-500 { border-color: var(--color-400); }
.border-navy-600 { border-color: var(--color-300); }
.border-navy-700 { border-color: var(--color-200); }
.border-gray-200 { border-color: #e5e5e5; }
.border-gray-300 { border-color: #cccccc; }
.border-gray-600 { border-color: #555555; }

.placeholder-gray-400::placeholder { color: #aaaaaa; }
.placeholder-gray-500::placeholder { color: #888888; }

/* Hover states */
.hover\:text-white:hover { color: var(--color-900); }
.hover\:text-coral:hover { color: var(--color-accent); }
.hover\:text-coral-light:hover { color: var(--color-coral-light); }
.hover\:text-gray-300:hover { color: var(--color-700); }
.hover\:text-gray-900:hover { color: var(--color-900); }
.hover\:bg-navy-700:hover { background-color: var(--color-200); }
.hover\:bg-navy-600:hover { background-color: var(--color-300); }
.hover\:bg-navy-500:hover { background-color: var(--color-400); }
.hover\:bg-coral-dark:hover { background-color: var(--color-accent-hover); }
.hover\:bg-gray-100:hover { background-color: #f5f5f5; }
.hover\:border-gray-400:hover { border-color: #aaaaaa; }
.hover\:border-coral\/40:hover { border-color: rgba(245,197,24,0.4); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.hover\:scale-105:hover { transform: scale(1.05); }
.active\:scale-\[0\.98\]:active { transform: scale(0.98); }
.group:hover .group-hover\:text-white { color: var(--color-900); }
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }

/* Focus */
*:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--color-accent); }
.focus\:ring-1:focus { box-shadow: 0 0 0 1px var(--color-accent); }
.focus\:border-coral\/50:focus { border-color: rgba(245,197,24,0.5); }
.focus\:ring-coral\/50:focus { box-shadow: 0 0 0 2px rgba(245,197,24,0.5); }
.focus\:ring-coral\/30:focus { box-shadow: 0 0 0 1px rgba(245,197,24,0.3); }
.focus\:not-sr-only:focus { position: static; width: auto; height: auto; padding: 0; margin: 0; overflow: visible; clip: auto; white-space: normal; }
.focus\:absolute:focus { position: absolute; }
.focus\:top-4:focus { top: 1rem; }
.focus\:left-4:focus { left: 1rem; }
.focus\:z-\[100\]:focus { z-index: 100; }
.focus\:bg-coral:focus { background-color: var(--color-accent); }
.focus\:text-white:focus { color: var(--color-black); }
.focus\:px-4:focus { padding-left: 1rem; padding-right: 1rem; }
.focus\:py-2:focus { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.focus\:rounded-lg:focus { border-radius: 0.5rem; }

/* ========================================
   Layout
   ======================================== */
.content-container { max-width: 80rem; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }
#main-content .content-container { max-width: 80rem; margin-left: auto; margin-right: auto; }
@media (min-width: 640px) { .content-container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .content-container { padding-left: 2rem; padding-right: 2rem; } }
.backdrop-blur-sm { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ========================================
   Buttons — Apple-native feel
   ======================================== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.75rem;
  min-height: 48px;
  background-color: var(--color-accent);
  color: var(--color-black);
  font-weight: 700;
  border-radius: 980px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.01em;
}
.btn-primary:hover {
  background-color: var(--color-accent-hover);
  box-shadow: 0 4px 16px var(--color-accent-glow);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0) scale(0.97); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.75rem;
  min-height: 48px;
  background-color: var(--color-secondary-container);
  color: var(--color-secondary);
  font-weight: 600;
  border-radius: 980px;
  border: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-secondary:hover {
  background-color: var(--color-150);
  color: var(--color-text-primary);
}
.dark-mode .btn-secondary { background-color: rgba(255,255,255,0.08); color: #ccc; }
.dark-mode .btn-secondary:hover { background-color: rgba(255,255,255,0.12); color: #fff; }

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

/* ========================================
   Casino Card — Clean, elevated
   ======================================== */
.casino-card {
  background-color: var(--color-card-bg);
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  box-shadow: 0 1px 2px rgba(75,60,30,0.06), 0 2px 8px rgba(75,60,30,0.04);
}
.casino-card:hover {
  box-shadow: 0 8px 30px rgba(75,60,30,0.1), 0 2px 8px rgba(75,60,30,0.05);
  transform: translateY(-4px);
}
.dark-mode .casino-card {
  background-color: var(--color-card-bg);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2), 0 2px 8px rgba(0,0,0,0.15);
}
.dark-mode .casino-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* Star Rating */
.star-rating { display: flex; align-items: center; gap: 0.125rem; }
.star-rating svg { width: 1rem; height: 1rem; }
.star-full { color: var(--color-gold); }
.star-half { color: var(--color-gold); }
.star-empty { color: var(--color-200); }
.dark-mode .star-empty { color: #333; }

/* Badge */
.badge {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 980px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-rating {
  background-color: var(--color-accent);
  color: var(--color-black);
}
.badge-fire {
  background-color: var(--color-900);
  color: var(--color-white);
  font-weight: 700;
}
.badge-license {
  background-color: var(--color-100);
  color: var(--color-600);
  border: none;
}
.dark-mode .badge-license { background-color: rgba(255,255,255,0.08); color: #aaa; }

/* ========================================
   Sidebar Links
   ======================================== */
.sidebar-link {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
  border-radius: 0.75rem; color: var(--color-600); font-weight: 500; transition: all 0.2s ease;
}
.sidebar-link:hover { color: var(--color-900); background-color: var(--color-100); }
.sidebar-link.active { color: var(--color-900); background-color: var(--color-accent-light); font-weight: 600; }
.sidebar-link svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.section-label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-400); padding-left: 1rem; padding-right: 1rem; margin-bottom: 0.75rem; }

/* ========================================
   Desktop Header — Clean, minimal
   ======================================== */
#site-header {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  background-color: var(--color-header-bg);
  border-bottom: 1px solid var(--color-200);
  height: 56px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: rgba(255,255,255,0.85);
}
.dark-mode #site-header {
  background-color: rgba(14,14,14,0.85);
  border-bottom-color: #222;
}
@media (min-width: 1024px) {
  #site-header { display: flex; }
  #main-content { padding-top: 56px; }
}

/* (Old mobile-header-bar removed — header is now in header.php with Tailwind utilities) */

/* (Old desktop header CSS removed — now using Tailwind utilities in desktop-nav.php) */

/* Search Input */
.search-input {
  width: 100%; background-color: var(--color-150); border: none;
  border-radius: 9999px; height: 3.5rem; padding: 0 1rem 0 3rem; color: var(--color-text-primary);
  font-size: 0.875rem; font-weight: 500;
  transition: all 0.2s ease; outline: none;
}
.search-input::placeholder { color: var(--color-text-muted); }
.search-input:focus { box-shadow: 0 0 0 3px var(--color-accent-light); }

/* Pros & Cons */
.pros-item, .cons-item { display: flex; align-items: flex-start; gap: 0.5rem; color: var(--color-700); }
.pros-item svg, .cons-item svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; margin-top: 0.125rem; }
.pros-item svg { color: var(--color-success); }
.cons-item svg { color: var(--color-danger); }
.dark-mode .pros-item, .dark-mode .cons-item { color: #bbb; }

/* Comparison Table */
.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th { padding: 0.75rem 1rem; text-align: left; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-500); background-color: var(--color-100); border-bottom: 1px solid var(--color-200); }
.comparison-table td { padding: 1rem; font-size: 0.875rem; color: var(--color-700); border-bottom: 1px solid var(--color-200); }
.comparison-table tr:hover td { background-color: var(--color-50); }
.dark-mode .comparison-table th { background-color: #141414; color: #888; border-color: #222; }
.dark-mode .comparison-table td { color: #bbb; border-color: #222; }
.dark-mode .comparison-table tr:hover td { background-color: #1a1a1a; }

/* Card Hero Area */
.card-hero-area { position: relative; aspect-ratio: 16/9; }
.card-badges-row { z-index: 3; }
.card-logo-zone { top: 44px; bottom: 0; z-index: 2; }
.card-logo-overlay {
  height: 3.5rem; width: auto; max-width: 70%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.casino-grid { display: grid; }
.casino-grid .casino-card { height: 100%; }

/* ========================================
   Casino Slider
   ======================================== */
.casino-slider { position: relative; }
.slider-track { overflow: hidden; border-radius: 1.25rem; }
.slider-inner { display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.slider-slide { width: 100%; flex-shrink: 0; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 2.75rem; height: 2.75rem; border-radius: 9999px;
  background-color: rgba(255,255,255,0.15); backdrop-filter: blur(8px); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.2s; cursor: pointer; border: 1px solid rgba(255,255,255,0.15);
}
.slider-arrow:hover { background-color: rgba(255,255,255,0.25); }
.slider-prev { left: 0.75rem; }
.slider-next { right: 0.75rem; }

/* Hero Slider */
.casino-slider-hero {
  width: 100%;
  margin-bottom: 0;
  margin-top: -3.5rem;
}
@media (min-width: 1024px) {
  .casino-slider-hero { margin-top: -3.5rem; }
}
.casino-slider-hero .slider-track { border-radius: 0; }
.casino-slider-hero .slider-slide-inner { min-height: 50vh; min-height: 50svh; }
@media (min-width: 640px) {
  .casino-slider-hero .slider-slide-inner { min-height: 55vh; min-height: 55svh; }
}
@media (min-width: 1024px) {
  .casino-slider-hero .slider-slide-inner { min-height: 60vh; min-height: 60svh; }
}
@media (min-width: 1280px) {
  .casino-slider-hero .slider-slide-inner { min-height: 65vh; min-height: 65svh; }
}

.slider-content-container {
  width: 100%; max-width: 80rem;
  margin-left: auto; margin-right: auto;
  padding: 2rem 1rem;
  min-height: 50vh; min-height: 50svh;
}
@media (min-width: 640px) {
  .slider-content-container { padding: 2.5rem 1.5rem; min-height: 55vh; min-height: 55svh; }
}
@media (min-width: 1024px) {
  .slider-content-container { padding: 3rem 2rem; min-height: 60vh; min-height: 60svh; }
}
@media (min-width: 1280px) {
  .slider-content-container { min-height: 65vh; min-height: 65svh; }
}

.slider-hero-dots {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.5rem 0;
  z-index: 20;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
}

.casino-slider-hero .slider-prev { left: 1rem; }
.casino-slider-hero .slider-next { right: 1rem; }
@media (min-width: 1024px) {
  .casino-slider-hero .slider-prev { left: 2rem; }
  .casino-slider-hero .slider-next { right: 2rem; }
}
@media (min-width: 1280px) {
  .casino-slider-hero .slider-prev { left: max(2rem, calc((100% - 80rem) / 2)); }
  .casino-slider-hero .slider-next { right: max(2rem, calc((100% - 80rem) / 2)); }
}

/* Slider always white text (dark bg) */
.casino-slider .text-white { color: #ffffff !important; }
.casino-slider .text-white\/80 { color: rgba(255,255,255,0.8) !important; }
.casino-slider .text-white\/90 { color: rgba(255,255,255,0.9) !important; }
.casino-slider .text-white\/70 { color: rgba(255,255,255,0.7) !important; }
.casino-slider .text-gray-400 { color: rgba(255,255,255,0.5) !important; }
.casino-slider .btn-primary { background-color: var(--color-accent); color: var(--color-black); }
.casino-slider .btn-secondary { color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.25); background: transparent; }
.casino-slider .btn-secondary:hover { color: #fff; border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.08); }
.casino-slider .star-rating { color: var(--color-gold); }

.drop-shadow-lg { filter: drop-shadow(0 10px 25px rgba(0,0,0,0.4)); }

/* (Old SEO, FAQ, archive-intro, sort-pill classes removed — now using Tailwind + inline styles in templates) */

.archive-content-flow { display: flex; flex-direction: column; }

/* Geo Badge */
.geo-badge {
  display: flex; align-items: center; gap: 0.375rem;
  padding: 0.375rem 0.625rem; margin-bottom: 0.5rem;
  background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2);
  border-radius: 980px;
}
.geo-badge-icon { width: 0.875rem; height: 0.875rem; color: #22c55e; flex-shrink: 0; }
.geo-badge-text { font-size: 0.75rem; font-weight: 600; color: #22c55e; line-height: 1.2; }

/* Night Toggle */
.night-toggle {
  position: relative; display: inline-flex; align-items: center;
  height: 1.75rem; width: 3rem; border-radius: 9999px;
  cursor: pointer; transition: background-color 0.3s;
  background-color: var(--color-200);
}
.dark-mode .night-toggle { background-color: #333; }
.night-toggle-knob {
  display: inline-block; width: 1.25rem; height: 1.25rem;
  border-radius: 9999px; background-color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* (Old pagination classes removed — now inline Tailwind in pagination.php) */

/* Spinner */
.spinner { display: inline-block; width: 1.5rem; height: 1.5rem; border: 2px solid var(--color-200); border-top-color: var(--color-accent); border-radius: 9999px; animation: spin 1s linear infinite; }
.animate-in { opacity: 1 !important; transform: translateY(0) !important; }

/* Filter pill active state (JS-toggled) */
.filter-pill.active { background: var(--color-accent) !important; color: var(--color-black) !important; }

/* (Old article-card classes removed — now using Tailwind in article/card.php) */

/* ========================================
   Single Article
   ======================================== */
.article-meta-bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; font-size: 0.85rem; color: var(--color-500); margin-bottom: 1.5rem; }
.article-meta-bar svg { width: 1rem; height: 1rem; vertical-align: middle; margin-right: 0.25rem; }
.article-meta-item { display: inline-flex; align-items: center; gap: 0.3rem; }

.article-key-takeaway {
  background-color: var(--color-accent-light); border-left: 4px solid var(--color-accent);
  border-radius: 0.75rem; padding: 1.25rem 1.5rem;
}
.article-key-takeaway h3 { font-size: 0.95rem; font-weight: 800; color: var(--color-900); margin-bottom: 0.5rem; }
.article-key-takeaway p { font-size: 0.9rem; line-height: 1.6; color: var(--color-700); margin: 0; }
.dark-mode .article-key-takeaway { background-color: rgba(245,197,24,0.08); }
.dark-mode .article-key-takeaway h3 { color: var(--color-accent); }
.dark-mode .article-key-takeaway p { color: #bbb; }

.article-content { font-size: 1rem; line-height: 1.8; color: var(--color-700); }
.article-content h2 { font-size: 1.5rem; font-weight: 800; color: var(--color-900); margin-top: 2rem; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.article-content h3 { font-size: 1.2rem; font-weight: 700; color: var(--color-900); margin-top: 1.5rem; margin-bottom: 0.5rem; }
.article-content p { margin-bottom: 1.25rem; }
.article-content a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.article-content a:hover { color: var(--color-accent-hover); }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-content li { margin-bottom: 0.35rem; }
.article-content blockquote { border-left: 3px solid var(--color-accent); padding-left: 1rem; margin: 1.5rem 0; font-style: italic; color: var(--color-500); }
.article-content img { border-radius: 1rem; max-width: 100%; height: auto; margin: 1rem 0; }
.article-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; }
.article-content th, .article-content td { padding: 0.6rem 0.75rem; border: 1px solid var(--color-200); text-align: left; }
.article-content th { background-color: var(--color-100); font-weight: 700; color: var(--color-900); }
.dark-mode .article-content { color: #bbb; }
.dark-mode .article-content h2, .dark-mode .article-content h3 { color: #f0f0f0; }
.dark-mode .article-content th { background-color: #141414; color: #f0f0f0; }
.dark-mode .article-content th, .dark-mode .article-content td { border-color: #222; }
.dark-mode .article-content blockquote { color: #666; }

/* Prose — Typography for long-form review content (single-casino.php) */
.prose { font-size: 1rem; line-height: 1.75; color: var(--color-text-secondary); }
.prose h2 { font-size: 1.375rem; font-weight: 800; color: var(--color-text-primary); margin-top: 1.75rem; margin-bottom: 0.625rem; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.125rem; font-weight: 700; color: var(--color-text-primary); margin-top: 1.25rem; margin-bottom: 0.5rem; }
.prose p { margin-bottom: 1rem; }
.prose a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--color-coral-light); }
.prose ul, .prose ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.25rem; }
.prose blockquote { border-left: 3px solid var(--color-accent); padding-left: 1rem; margin: 1.25rem 0; font-style: italic; color: var(--color-text-muted); }
.prose img { border-radius: 0.75rem; max-width: 100%; height: auto; margin: 1rem 0; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.prose th, .prose td { padding: 0.5rem 0.75rem; border: 1px solid var(--color-card-border); text-align: left; font-size: 0.875rem; }
.prose th { background-color: var(--color-100); font-weight: 700; color: var(--color-text-primary); }
.prose.prose-invert { color: var(--color-text-secondary); }
.prose.prose-gray { color: var(--color-text-secondary); }
.dark-mode .prose { color: #bbb; }
.dark-mode .prose h2, .dark-mode .prose h3 { color: #f0f0f0; }
.dark-mode .prose th { background-color: #141414; color: #f0f0f0; }
.dark-mode .prose th, .dark-mode .prose td { border-color: #222; }
.dark-mode .prose blockquote { color: #666; }

.article-source-link { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; }
.article-hero-image { border-radius: 1.25rem; overflow: hidden; max-height: 480px; }
.article-hero-image img { display: block; width: 100%; height: auto; max-height: 480px; object-fit: cover; object-position: center top; }

/* Sidebar Casino Cards */
.sidebar-casino-card {
  background-color: var(--color-100); border: none; border-radius: 1rem;
  padding: 0.875rem; display: flex; align-items: center; gap: 0.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.sidebar-casino-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); transform: translateY(-1px); }
.dark-mode .sidebar-casino-card { background-color: #141414; }
.dark-mode .sidebar-casino-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.sidebar-casino-link { display: flex; align-items: center; gap: 0.625rem; flex: 1; min-width: 0; text-decoration: none; }
.sidebar-casino-logo { width: 3.5rem; height: 3.5rem; border-radius: 0.75rem; object-fit: contain; flex-shrink: 0; background-color: var(--color-white); padding: 0.25rem; }
.dark-mode .sidebar-casino-logo { background-color: #0e0e0e; }
.sidebar-casino-logo-placeholder { width: 3.5rem; height: 3.5rem; border-radius: 0.75rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background-color: var(--color-accent-light); color: var(--color-accent); font-weight: 700; font-size: 1.25rem; }
.sidebar-casino-info { min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.sidebar-casino-name { font-size: 0.85rem; font-weight: 700; color: var(--color-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dark-mode .sidebar-casino-name { color: #f0f0f0; }
.sidebar-casino-rating { display: inline-flex; align-items: center; gap: 0.2rem; font-size: 0.75rem; font-weight: 600; color: var(--color-gold); }
.sidebar-casino-bonus { font-size: 0.7rem; color: var(--color-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dark-mode .sidebar-casino-bonus { color: #666; }
.sidebar-casino-cta {
  display: inline-flex; align-items: center; gap: 0.25rem; flex-shrink: 0;
  padding: 0.4rem 0.75rem; font-size: 0.75rem; font-weight: 700;
  color: var(--color-black); background: var(--color-accent);
  border-radius: 980px; text-decoration: none; transition: all 0.2s;
}
.sidebar-casino-cta:hover { background: var(--color-accent-hover); }

/* Article Slider */
.article-slider { position: relative; }
.article-slider-track { overflow: hidden; border-radius: 1.25rem; }
.article-slider-inner { display: flex; gap: 1.5rem; transition: transform 0.5s ease; }
.article-slider-card { flex-shrink: 0; width: 100%; }
@media (min-width: 640px) { .article-slider-card { width: calc(50% - 0.75rem); } }
@media (min-width: 1024px) { .article-slider-card { width: calc(33.333% - 1rem); } }
.article-slider-card .article-card { height: 100%; }
.article-slider-arrow { z-index: 10; top: 50%; transform: translateY(-50%); transition: opacity 0.2s, background-color 0.2s; }
@media (min-width: 1024px) { .article-slider-dots { display: none; } }

/* ========================================
   Scrollbar — Minimal
   ======================================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-400); }
.dark-mode ::-webkit-scrollbar-thumb { background: #333; }
.dark-mode ::-webkit-scrollbar-thumb:hover { background: #444; }

/* ========================================
   Responsive
   ======================================== */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:hidden { display: none; }
  .md\:flex-row { flex-direction: row; }
  .md\:items-end { align-items: flex-end; }
  .md\:items-center { align-items: center; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-base { font-size: 1rem; }
  .md\:p-6 { padding: 1.5rem; }
  .md\:p-8 { padding: 2rem; }
  .md\:w-36 { width: 9rem; }
  .md\:h-36 { height: 9rem; }
  .md\:h-64 { height: 16rem; }
  .md\:h-28 { height: 7rem; }
  .md\:text-left { text-align: left; }
  .md\:justify-start { justify-content: flex-start; }
  .md\:mx-0 { margin-left: 0; margin-right: 0; }
}
@media (min-width: 1024px) {
  .lg\:hidden { display: none; }
  .lg\:block { display: block; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:ml-\[260px\] { margin-left: 260px; }
  .lg\:translate-x-0 { transform: translateX(0); }
  .lg\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
  .lg\:pt-0 { padding-top: 0; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:p-10 { padding: 2.5rem; }
  .lg\:h-80 { height: 20rem; }
  .lg\:h-32 { height: 8rem; }
  .lg\:sticky { position: sticky; }
  .lg\:top-20 { top: 5rem; }
}
@media (min-width: 1280px) {
  .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* lg:block base — hidden by default, shown at 1024px+ (defined above) */
.lg\:block { display: none; }

/* ========================================
   Footer — Clean, minimal
   ======================================== */
footer.bg-navy-950 {
  background-color: var(--color-footer-bg) !important;
  color: var(--color-text-primary) !important;
  border-top: 1px solid var(--color-200) !important;
}
footer .text-gray-400, footer .text-sm.font-bold { color: var(--color-500) !important; }
footer .text-gray-500 { color: var(--color-500) !important; }
footer .text-gray-600 { color: var(--color-600) !important; }
footer .text-xs.text-gray-500 { color: var(--color-500) !important; }
footer a:hover { color: var(--color-accent) !important; }
footer .border-card-border { border-color: var(--color-200) !important; }
footer .border-t { border-color: var(--color-200) !important; }
footer h4 { color: var(--color-900) !important; }
.dark-mode footer.bg-navy-950 { background-color: #0e0e0e !important; border-top-color: #222 !important; }
.dark-mode footer h4 { color: #eee !important; }
.dark-mode footer .text-gray-400 { color: #666 !important; }
.dark-mode footer .text-gray-500 { color: #555 !important; }
.dark-mode footer .text-gray-600 { color: #444 !important; }
.dark-mode footer .border-card-border { border-color: #222 !important; }
.dark-mode footer .border-t { border-color: #222 !important; }

/* ========================================
   Card Stats Bar
   ======================================== */
.card-stats-bar { background: var(--color-50); border-bottom: 1px solid var(--color-200); }
.dark-mode .card-stats-bar { background: rgba(28,27,25,0.6); border-bottom-color: var(--color-700); }

/* Card Pro Pills */
.card-pro-pill {
  background: var(--color-100);
  border: none; border-radius: 980px;
  padding: 0.5rem 0.875rem;
  color: var(--color-600);
}
.dark-mode .card-pro-pill { background: rgba(40,35,20,0.15); color: #aaa; }

/* Green CTA button */
.btn-cta-card {
  display: block;
  background: var(--color-accent);
  color: var(--color-black);
  border-radius: 980px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-cta-card:hover { background: var(--color-accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px var(--color-accent-glow); }

/* Payment icon tooltips */
.payment-icon-wrap { position: relative; }
.payment-tooltip {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  background: var(--color-900); color: var(--color-white);
  font-size: 0.625rem; padding: 0.25rem 0.5rem; border-radius: 0.25rem;
  white-space: nowrap; opacity: 0; visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s; pointer-events: none; z-index: 10;
}
.payment-tooltip::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 4px solid transparent; border-top-color: var(--color-900);
}
.payment-icon-wrap:hover .payment-tooltip { opacity: 1; visibility: visible; }

/* ========================================
   Review Page Stats Grid
   ======================================== */
.review-stats-grid {
  display: flex; flex-direction: column; gap: 0;
  border-radius: 1rem; overflow: hidden; background: var(--color-50);
  border: 1px solid var(--color-200);
}
.dark-mode .review-stats-grid { background: #141414; border-color: #222; }
.review-stat-row { display: flex; justify-content: space-between; align-items: center; padding: 0.875rem 1rem; border-bottom: 1px solid var(--color-200); }
.dark-mode .review-stat-row { border-bottom-color: #222; }
.review-stat-row:last-child { border-bottom: none; }
.review-stat-label { font-size: 0.75rem; color: var(--color-500); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.review-stat-value { font-size: 0.875rem; color: var(--color-text-primary); font-weight: 800; }
@media (min-width: 768px) {
  .review-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .review-stat-row { flex-direction: column; text-align: center; gap: 0.25rem; border-bottom: none; border-right: 1px solid var(--color-200); }
  .dark-mode .review-stat-row { border-right-color: #222; }
  .review-stat-row:last-child { border-right: none; }
}

/* Review TOC */
.review-toc-card {
  overflow: hidden;
  border-radius: 1rem;
  background-color: var(--color-card-bg);
  box-shadow: 0 1px 2px rgba(75,60,30,0.06), 0 2px 8px rgba(75,60,30,0.04);
}
.dark-mode .review-toc-card {
  background-color: var(--color-card-bg);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.review-toc-details > summary { list-style: none; }
.review-toc-details > summary::-webkit-details-marker { display: none; }
.review-toc-summary { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; cursor: pointer; user-select: none; }
.review-toc-summary:hover { background: var(--color-50); }
.dark-mode .review-toc-summary:hover { background: rgba(255,255,255,0.03); }
.review-toc-heading { font-size: 1rem; font-weight: 800; color: var(--color-text-primary); margin: 0; }
.review-toc-chevron { width: 1.25rem; height: 1.25rem; color: var(--color-400); transition: transform 0.2s ease; flex-shrink: 0; }
.review-toc-details[open] .review-toc-chevron { transform: rotate(180deg); }
.review-toc-list { list-style: none; counter-reset: toc-counter; padding: 0 1.25rem 1rem; margin: 0; }
.review-toc-list li { counter-increment: toc-counter; }
.review-toc-link {
  display: flex; align-items: center; padding: 0.5rem 0.75rem; margin-bottom: 2px;
  color: var(--color-600); font-size: 0.875rem; border-radius: 0.5rem;
  transition: color 0.15s, background 0.15s; text-decoration: none;
}
.review-toc-link:hover { color: var(--color-900); background: var(--color-50); }
.dark-mode .review-toc-link:hover { color: #fff; background: rgba(255,255,255,0.04); }
.review-toc-link::before { content: counter(toc-counter) "."; margin-right: 0.75rem; color: var(--color-accent); font-weight: 800; font-size: 0.75rem; min-width: 1.5rem; }

/* Sidebar Logo */
.sidebar-logo-wrap { padding: 1.5rem 1.25rem; display: flex; justify-content: center; align-items: center; }
.sidebar-logo-wrap a { display: flex; justify-content: center; }
.sidebar-logo-img { width: auto; height: auto; max-width: 160px; max-height: 80px; object-fit: contain; border-radius: 0.5rem; }

/* ========================================
   Fullscreen Mobile Menu — Native feel
   ======================================== */
#mobile-menu-fullscreen {
  z-index: 45;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
}
.mobile-menu-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.mobile-menu-visible { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu-logo { width: auto; height: auto; max-width: 140px; max-height: 56px; object-fit: contain; border-radius: 0.5rem; }
.mobile-menu-logo-wrap { display: flex; flex-direction: column; align-items: center; }
.mobile-menu-logo-wrap img { max-height: 56px; width: auto; }
.mobile-menu-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu-nav li { list-style: none; }
.mobile-menu-nav .sidebar-link { justify-content: center; text-align: center; }
.mobile-menu-nav .section-label { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.1em; text-align: center; padding-left: 0; padding-right: 0; margin-bottom: 0.5rem; color: var(--color-400); }

.mobile-menu-nav-main ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.mobile-menu-nav-main .sidebar-link {
  flex-direction: column; align-items: center; gap: 0.375rem;
  padding: 1rem 0.5rem; font-size: 0.875rem; font-weight: 700;
  border-radius: 1rem;
  background: var(--color-50); border: none;
  color: var(--color-700);
  transition: all 0.2s ease;
}
.mobile-menu-nav-main .sidebar-link:hover { background: var(--color-100); color: var(--color-900); }
.mobile-menu-nav-main .sidebar-link.active {
  background: var(--color-accent-light); color: var(--color-900); font-weight: 700;
}
.dark-mode .mobile-menu-nav-main .sidebar-link { background: #1a1a1a; color: #bbb; }
.dark-mode .mobile-menu-nav-main .sidebar-link:hover { background: #222; color: #fff; }
.dark-mode .mobile-menu-nav-main .sidebar-link.active { background: rgba(245,197,24,0.1); color: var(--color-accent); }
.mobile-menu-nav-main .sidebar-link svg { width: 1.375rem; height: 1.375rem; }

.mobile-menu-cats ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem; }
.mobile-menu-cats .sidebar-link {
  padding: 0.5rem 0.625rem; font-size: 0.8rem; gap: 0.375rem;
  border-radius: 0.75rem; justify-content: flex-start;
  color: var(--color-600); transition: all 0.2s ease;
}
.mobile-menu-cats .sidebar-link:hover { background: var(--color-100); color: var(--color-900); }
.dark-mode .mobile-menu-cats .sidebar-link { color: #888; }
.dark-mode .mobile-menu-cats .sidebar-link:hover { background: rgba(255,255,255,0.04); color: #fff; }
.mobile-menu-cats .sidebar-link.active { background: var(--color-accent-light); color: var(--color-900); }
.mobile-menu-cats .sidebar-link svg { width: 1rem; height: 1rem; flex-shrink: 0; }

#mobile-header-bar { z-index: 48; }
#mobile-menu-fullscreen { z-index: 45; }
#mobile-search-overlay { z-index: 50; }

/* ========================================
   Country Cards
   ======================================== */
.country-cards-section { margin-top: 0.5rem; }
.country-cards-toggle { display: block; }
.country-cards-toggle-btn {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 0.875rem 1rem; background: var(--color-card-bg);
  border: none; border-radius: 1rem; color: var(--color-text-primary);
  cursor: pointer; transition: background 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.country-cards-toggle-btn:hover { background: var(--color-50); }
.dark-mode .country-cards-toggle-btn { background: #1a1a1a; }
.dark-mode .country-cards-toggle-btn:hover { background: #222; }
.country-toggle-chevron.rotate-180 { transform: rotate(180deg); }
.country-cards-heading { display: none; margin-bottom: 1.5rem; }
.country-cards-grid-wrap { display: none; margin-top: 0.75rem; }
.country-cards-grid-wrap.country-cards-open { display: block; }
.country-cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

.country-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1.25rem 0.75rem; background: var(--color-card-bg);
  border: none; border-radius: 1.25rem;
  text-decoration: none; text-align: center;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.04);
}
.country-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.dark-mode .country-card { background: #1a1a1a; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.dark-mode .country-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.country-card-icon { color: var(--color-accent); }
.country-card-icon svg { width: 1.75rem; height: 1.75rem; }
.country-card-name { font-size: 0.9rem; font-weight: 800; color: var(--color-text-primary); margin: 0; letter-spacing: -0.01em; }
.country-card-count { font-size: 0.75rem; color: var(--color-text-muted); }
.country-card-btn {
  display: inline-flex; align-items: center;
  padding: 0.375rem 0.875rem; font-size: 0.75rem; font-weight: 700;
  color: var(--color-black); background: var(--color-accent);
  border-radius: 980px; transition: all 0.2s; margin-top: auto;
}
.country-card:hover .country-card-btn { background: var(--color-accent-hover); }

@media (min-width: 768px) {
  .country-cards-toggle { display: none; }
  .country-cards-heading { display: block; }
  .country-cards-grid-wrap { display: block; margin-top: 0; }
  .country-cards-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (min-width: 1024px) { .country-cards-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .country-cards-grid { grid-template-columns: repeat(6, 1fr); } }

/* ========================================
   Review CTAs
   ======================================== */
@media (max-width: 767px) {
  .review-cta-wrap { width: 100%; }
  .review-cta-btn { width: 100%; text-align: center; justify-content: center; }
}

/* Filter collapse */
.filter-collapse-details > summary { list-style: none; }
.filter-collapse-details > summary::-webkit-details-marker { display: none; }
.filter-collapse-summary { display: flex; align-items: center; justify-content: space-between; padding: 0.875rem 1rem; cursor: pointer; user-select: none; border-radius: 0.75rem; transition: background 0.15s; }
.filter-collapse-summary:hover { background: var(--color-50); }
.dark-mode .filter-collapse-summary:hover { background: rgba(255,255,255,0.03); }
.filter-collapse-heading { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 700; color: var(--color-700); margin: 0; }
.dark-mode .filter-collapse-heading { color: #bbb; }
.filter-collapse-heading svg { width: 1.125rem; height: 1.125rem; color: var(--color-400); }
.filter-collapse-chevron { width: 1.25rem; height: 1.25rem; color: var(--color-400); transition: transform 0.2s ease; flex-shrink: 0; }
.filter-collapse-details[open] .filter-collapse-chevron { transform: rotate(180deg); }
.filter-collapse-details[open] .filter-collapse-summary { border-radius: 0.75rem 0.75rem 0 0; }
.filter-collapse-body { padding: 0.75rem 1rem 1rem; }

/* Social Share */
.social-share-btn {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.5rem 0.875rem; border-radius: 980px;
  background: var(--color-100); color: var(--color-600);
  border: none; transition: all 0.15s ease;
  text-decoration: none; cursor: pointer; font-weight: 500;
}
.social-share-btn:hover { background: var(--color-200); color: var(--color-900); transform: translateY(-1px); }
.dark-mode .social-share-btn { background: rgba(255,255,255,0.04); color: #888; }
.dark-mode .social-share-btn:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* Review FAQ */
.review-faq-details > summary { list-style: none; }
.review-faq-details > summary::-webkit-details-marker { display: none; }
.review-faq-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.75rem 0; cursor: pointer; user-select: none;
  border-bottom: 1px solid var(--color-200);
  transition: color 0.15s;
}
.dark-mode .review-faq-summary { border-bottom-color: #222; }
.review-faq-summary:hover span { color: var(--color-accent); }
.review-faq-chevron { width: 1rem; height: 1rem; color: var(--color-400); transition: transform 0.2s ease; flex-shrink: 0; }
.review-faq-details[open] .review-faq-chevron { transform: rotate(180deg); }
.review-faq-details[open] .review-faq-summary { border-bottom-color: transparent; }

/* Screenshot Slider */
.ss-slider { position: relative; overflow: hidden; border-radius: 1rem; background: var(--color-100); }
.dark-mode .ss-slider { background: #141414; }
.ss-slider-track { display: flex; transition: transform 0.35s ease; }
.ss-slide { min-width: 100%; flex-shrink: 0; }
.ss-slide-btn { display: block; width: 100%; padding: 0; border: none; background: none; cursor: pointer; aspect-ratio: 16/9; overflow: hidden; }
.ss-slide-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ss-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.4); backdrop-filter: blur(8px); color: #fff; border: none; border-radius: 50%; cursor: pointer; z-index: 2; transition: background 0.2s; }
.ss-arrow:hover { background: rgba(0,0,0,0.6); }
.ss-arrow svg { width: 1rem; height: 1rem; }
.ss-arrow-prev { left: 0.5rem; }
.ss-arrow-next { right: 0.5rem; }
.ss-dots { position: absolute; bottom: 0.5rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.35rem; z-index: 2; }
.ss-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; border: none; background: rgba(255,255,255,0.4); cursor: pointer; padding: 0; transition: background 0.2s; }
.ss-dot.active { background: var(--color-accent); }
.ss-dot:hover { background: rgba(255,255,255,0.7); }
.ss-counter { margin-top: 0.5rem; }

/* Lightbox */
.ss-lightbox { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; }
.ss-lightbox.active { display: flex; }
.ss-lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.92); }
.ss-lightbox-close { position: absolute; top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); color: #fff; border: none; border-radius: 50%; cursor: pointer; z-index: 3; transition: background 0.2s; }
.ss-lightbox-close:hover { background: rgba(255,255,255,0.25); }
.ss-lightbox-close svg { width: 1.25rem; height: 1.25rem; }
.ss-lightbox-content { position: relative; z-index: 2; max-width: 90vw; max-height: 85vh; display: flex; align-items: center; justify-content: center; }
.ss-lightbox-img { max-width: 100%; max-height: 85vh; object-fit: contain; border-radius: 0.75rem; }
.ss-lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.1); color: #fff; border: none; border-radius: 50%; cursor: pointer; z-index: 3; transition: background 0.2s; }
.ss-lightbox-arrow:hover { background: rgba(255,255,255,0.25); }
.ss-lightbox-arrow svg { width: 1.25rem; height: 1.25rem; }
.ss-lightbox-prev { left: 1rem; }
.ss-lightbox-next { right: 1rem; }
.ss-lightbox-counter { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.6); font-size: 0.875rem; z-index: 3; }

/* Updated Badge */
.updated-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.75rem; font-weight: 700; color: #059669;
  background: rgba(5,150,105,0.08); border: 1px solid rgba(5,150,105,0.2);
  border-radius: 980px; padding: 2px 10px; margin-top: 6px;
}
.dark-mode .updated-badge { color: #34d399; background: rgba(52,211,153,0.1); border-color: rgba(52,211,153,0.25); }

/* Related Categories */
.related-cats { padding: 20px 0; border-top: 1px solid var(--color-200); }
.dark-mode .related-cats { border-top-color: #222; }
.related-cat-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0.5rem 1rem; font-size: 0.8125rem; font-weight: 600;
  color: var(--color-600); background: var(--color-100);
  border: none; border-radius: 980px;
  text-decoration: none; transition: all 0.2s ease;
}
.related-cat-pill:hover { color: var(--color-900); background: var(--color-200); }
.dark-mode .related-cat-pill { color: #888; background: #1a1a1a; }
.dark-mode .related-cat-pill:hover { color: #fff; background: #222; }
.related-cat-count {
  font-size: 0.6875rem; font-weight: 700; color: var(--color-500);
  background: var(--color-200); border-radius: 9999px;
  padding: 1px 6px; min-width: 20px; text-align: center;
}
.dark-mode .related-cat-count { background: #222; color: #888; }
.related-cat-pill:hover .related-cat-count { color: var(--color-accent); background: var(--color-accent-light); }

/* ========================================
   Language Switcher
   ========================================= */
.lang-switcher { position: relative; font-size: 0.875rem; line-height: 1.25rem; }

.lang-switcher-trigger {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.375rem 0.625rem; border: 1px solid var(--color-200);
  border-radius: 980px; background: var(--color-100);
  color: var(--color-600); cursor: pointer;
  transition: all 0.2s ease; font-size: 0.8125rem; font-weight: 500;
}
.lang-switcher-trigger:hover { background: var(--color-200); color: var(--color-900); }
.dark-mode .lang-switcher-trigger { border-color: #333; background: rgba(255,255,255,0.06); color: #888; }
.dark-mode .lang-switcher-trigger:hover { background: rgba(255,255,255,0.1); color: #fff; }
.lang-switcher-trigger .lang-flag { font-size: 1.125rem; line-height: 1; }
.lang-switcher-trigger .lang-code { letter-spacing: 0.025em; }
.lang-switcher-trigger .lang-chevron { width: 0.875rem; height: 0.875rem; opacity: 0.5; transition: transform 0.2s ease; }
.lang-switcher-trigger[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }

.lang-switcher-panel {
  display: none; position: absolute; top: calc(100% + 0.375rem); right: 0;
  z-index: 50; min-width: 11rem; padding: 0.5rem;
  background: var(--color-white); border: 1px solid var(--color-200);
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
}
.dark-mode .lang-switcher-panel { background: #1a1a1a; border-color: #2a2a2a; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.lang-switcher-trigger[aria-expanded="true"] + .lang-switcher-panel { display: block; }

.lang-switcher-item {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.625rem; border-radius: 0.625rem;
  color: var(--color-600); text-decoration: none;
  transition: all 0.15s ease; font-size: 0.8125rem;
}
.lang-switcher-item:hover { background: var(--color-100); color: var(--color-900); }
.dark-mode .lang-switcher-item { color: #888; }
.dark-mode .lang-switcher-item:hover { background: rgba(255,255,255,0.04); color: #fff; }
.lang-switcher-item .lang-flag { font-size: 1.125rem; line-height: 1; }
.lang-switcher-item .lang-name { flex: 1; }
.lang-switcher-item .lang-code-small { font-size: 0.6875rem; font-weight: 700; color: var(--color-400); letter-spacing: 0.05em; }
.lang-switcher-item.lang-switcher-active { background: var(--color-accent-light); color: var(--color-900); font-weight: 600; }
.dark-mode .lang-switcher-item.lang-switcher-active { background: rgba(245,197,24,0.1); color: var(--color-accent); }
.lang-switcher-item.lang-switcher-active .lang-code-small { color: var(--color-accent); }

.lang-switcher-list .lang-switcher-list-items { display: flex; flex-direction: column; gap: 0.25rem; }
.lang-switcher-list-item {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.625rem 0.75rem; border-radius: 0.625rem;
  color: var(--color-600); text-decoration: none;
  transition: all 0.15s ease; font-size: 0.875rem;
}
.lang-switcher-list-item:hover { background: var(--color-100); color: var(--color-900); }
.dark-mode .lang-switcher-list-item { color: #888; }
.dark-mode .lang-switcher-list-item:hover { background: rgba(255,255,255,0.04); color: #fff; }
.lang-switcher-list-item .lang-flag { font-size: 1.25rem; line-height: 1; }
.lang-switcher-list-item.lang-switcher-active { background: var(--color-accent-light); color: var(--color-900); font-weight: 600; }
.dark-mode .lang-switcher-list-item.lang-switcher-active { background: rgba(245,197,24,0.1); color: var(--color-accent); }

.lang-switcher-flags { display: flex; align-items: center; gap: 0.25rem; }
.lang-flag-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 0.375rem;
  font-size: 1.25rem; line-height: 1; text-decoration: none;
  transition: all 0.15s ease; opacity: 0.6;
}
.lang-flag-link:hover { background: var(--color-100); opacity: 1; }
.lang-flag-link.lang-flag-active { opacity: 1; background: var(--color-accent-light); box-shadow: 0 0 0 1.5px var(--color-accent); }

/* ========================================
   Language Cards
   ========================================= */
.language-cards-section { margin-bottom: 3rem; }
.language-cards-heading { margin-bottom: 1.25rem; }
.language-cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 640px) { .language-cards-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .language-cards-grid { grid-template-columns: repeat(4, 1fr); } }

.language-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.625rem;
  padding: 1.5rem 1rem; background: var(--color-card-bg);
  border: none; border-radius: 1.25rem;
  text-decoration: none; color: var(--color-text-secondary);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.04);
}
.language-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.dark-mode .language-card { background: #1a1a1a; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.dark-mode .language-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.3); }

.language-card-icon { display: flex; align-items: center; justify-content: center; }
.language-card-flag { font-size: 2.25rem; line-height: 1; }
.language-card-code {
  display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 0.75rem;
  background-color: var(--color-accent-light);
  color: var(--color-accent-hover);
  font-size: 0.875rem; font-weight: 900; letter-spacing: 0.02em;
}
.dark-mode .language-card-code { background-color: rgba(245,197,24,0.12); color: var(--color-accent); }
.language-card-name { font-size: 0.9rem; font-weight: 800; color: var(--color-text-primary); margin: 0; letter-spacing: -0.01em; }
.language-card-badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.6875rem; font-weight: 700;
  color: var(--color-accent); background: var(--color-accent-light);
  padding: 0.125rem 0.5rem; border-radius: 980px;
}
.language-card-btn { display: inline-flex; align-items: center; font-size: 0.75rem; font-weight: 500; color: var(--color-400); transition: color 0.15s ease; }
.language-card:hover .language-card-btn { color: var(--color-accent); }
.language-card-active {
  background: var(--color-accent-light);
  box-shadow: 0 0 0 2px var(--color-accent);
}
.language-card-active .language-card-name { color: var(--color-900); }
.dark-mode .language-card-active { background: rgba(245,197,24,0.08); }
.dark-mode .language-card-active .language-card-name { color: var(--color-accent); }
.language-card-active .language-card-btn { color: var(--color-accent); }

/* ========================================
   Dark Mode — Full Overrides
   ======================================== */
.dark-mode { background-color: #0e0e0e; color: #f0f0f0; }
.dark-mode .text-white { color: #f0f0f0; }
.dark-mode .text-gray-100 { color: #eee; }
.dark-mode .text-gray-200 { color: #ddd; }
.dark-mode .text-gray-300 { color: #bbb; }
.dark-mode .text-gray-400 { color: #888; }
.dark-mode .text-gray-500 { color: #666; }
.dark-mode .text-gray-600 { color: #555; }
.dark-mode .text-white\/80 { color: rgba(240,240,240,0.8); }
.dark-mode .text-white\/90 { color: rgba(240,240,240,0.9); }
.dark-mode .text-white\/70 { color: rgba(240,240,240,0.7); }

.dark-mode .bg-navy-900 { background-color: #0e0e0e; }
.dark-mode .bg-navy-800 { background-color: #141414; }
.dark-mode .bg-navy-700 { background-color: #1a1a1a; }
.dark-mode .bg-navy-600 { background-color: #222; }
.dark-mode .bg-navy-950 { background-color: #0a0a0a; }
.dark-mode .bg-card-bg { background-color: #1a1a1a; }
.dark-mode .bg-sidebar-bg { background-color: #111; }
.dark-mode .bg-navy-900\/95 { background-color: rgba(14,14,14,0.95); }
.dark-mode .bg-navy-800\/95 { background-color: rgba(20,20,20,0.95); }
.dark-mode .bg-navy-700\/50 { background-color: rgba(26,26,26,0.5); }

.dark-mode .border-card-border { border-color: #2a2a2a; }
.dark-mode .border-navy-700 { border-color: #1a1a1a; }
.dark-mode .border-navy-600 { border-color: #222; }
.dark-mode .border-navy-500 { border-color: #333; }

.dark-mode .hover\:text-white:hover { color: #fff; }
.dark-mode .hover\:bg-navy-700:hover { background-color: #1a1a1a; }
.dark-mode .hover\:bg-navy-600:hover { background-color: #222; }
.dark-mode .hover\:text-gray-300:hover { color: #bbb; }

.dark-mode .sidebar-link { color: #888; }
.dark-mode .sidebar-link:hover { color: #fff; background-color: rgba(255,255,255,0.04); }
.dark-mode .sidebar-link.active { color: var(--color-accent); background-color: rgba(245,197,24,0.08); }
.dark-mode .section-label { color: #555; }
.dark-mode select { background-color: #1a1a1a; color: #bbb; }
.dark-mode .search-input { background-color: var(--color-input-bg); color: var(--color-text-primary); }
.dark-mode .search-input::placeholder { color: var(--color-text-muted); }
select { background-color: #fff; color: var(--color-700); }

/* ========================================
   App Layout — Native App Sections
   ======================================== */

/* (Search & category tab classes removed — now using Tailwind utilities in templates) */

/* (Spotlight classes removed — now using Tailwind utilities in templates) */

/* (Section & scroll row classes removed — now using Tailwind utilities in templates) */

/* (Region, author, FAQ, tab-bar classes removed — now using Tailwind utilities in templates) */

/* Space for bottom tab bar on mobile */
body { padding-bottom: 52px; }
@media (min-width: 1024px) { body { padding-bottom: 0; } }

/* ========================================
   Footer — Compact, Apple-native
   ======================================== */
.app-footer {
  background-color: var(--color-footer-bg);
  border-top: 1px solid var(--color-outline-variant);
  padding: 2rem 0 calc(2rem + 52px);
  margin-top: 2rem;
}
@media (min-width: 1024px) {
  .app-footer { padding-bottom: 2rem; }
}
.dark-mode .app-footer {
  background-color: var(--color-footer-bg);
  border-top-color: var(--color-700);
}
.app-footer-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .app-footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
  }
}
.app-footer-brand { max-width: 420px; }
.app-footer-brand-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 900;
  color: var(--color-text-primary);
  margin-bottom: 0.375rem;
  letter-spacing: -0.02em;
}
.app-footer-about {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
.app-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  flex-shrink: 0;
}
.app-footer-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color 0.15s ease;
  white-space: nowrap;
}
.app-footer-link:hover { color: var(--color-accent); }
.dark-mode .app-footer-link { color: #777; }
.dark-mode .app-footer-link:hover { color: var(--color-accent); }

.app-footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-outline-variant);
}
.dark-mode .app-footer-tags { border-bottom-color: var(--color-700); }
.app-footer-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background-color: var(--color-white);
  border: none;
  padding: 0.25rem 0.625rem;
  border-radius: 980px;
  transition: all 0.15s ease;
}
.app-footer-tag:hover {
  color: var(--color-accent);
  background-color: var(--color-150);
}
.dark-mode .app-footer-tag {
  background-color: rgba(255,255,255,0.06);
  color: #666;
}
.dark-mode .app-footer-tag:hover {
  color: var(--color-accent);
  background-color: rgba(255,255,255,0.1);
}

.app-footer-legal {
  margin-bottom: 1.25rem;
}
.app-footer-disclaimer {
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.app-footer-disclaimer:last-child { margin-bottom: 0; }

.app-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--color-outline-variant);
}
@media (min-width: 640px) {
  .app-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
.dark-mode .app-footer-bottom { border-top-color: var(--color-700); }
.app-footer-copy {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}
.app-footer-social {
  display: flex;
  gap: 1rem;
}
.app-footer-social-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}
.app-footer-social-link:hover { color: var(--color-accent); }

/* ========================================
   Card List Item — Archive List Layout
   ======================================== */
.card-list-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: var(--color-card-bg);
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(75,60,30,0.04);
}
.card-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.card-list-logo {
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  overflow: hidden;
  flex-shrink: 0;
}
.card-list-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-list-info {
  flex: 1;
  min-width: 0;
}
.card-list-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-primary);
  line-height: 1.25;
}
.card-list-bonus {
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
.card-list-payments {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-outline-variant);
}
.dark-mode .card-list-item {
  background-color: var(--color-card-bg);
}
.dark-mode .card-list-payments {
  border-top-color: var(--color-700);
}

/* (Spotlight logo box removed — now inline Tailwind in templates) */

/* ========================================
   Card Hero Compact — Home Cards
   ======================================== */
.card-hero-compact {
  position: relative;
  height: 128px;
}
