/* Faircasinofr — Neo UI 2025 v2 (Dark Graphite, Emerald + Rose) */
:root {
  /* New palette — significantly different from previous */
  --neo-bg: #0d1014; /* Graphite */
  --neo-surface: #11161c; /* Charcoal */
  --neo-surface-2: #0f141a; /* Deeper charcoal */
  --neo-ink: #eef7f1; /* Light mint white */
  --neo-ink-soft: #a7c0b3; /* Soft sage */
  --neo-primary: #10b981; /* Emerald */
  --neo-primary-2: #34d399; /* Emerald light */
  --neo-accent: #f43f5e; /* Rose */
  --neo-good: #22c55e;
  --neo-warn: #f59e0b;
  --neo-danger: #ef4444;
  --neo-border: #1e2a2f; /* Slate/teal border */
  --neo-shadow: 0 16px 42px rgba(2, 8, 10, 0.6);
  --neo-radius-xs: 8px;
  --neo-radius: 12px;
  --neo-radius-lg: 18px;
  --neo-focus: 0 0 0 3px rgba(16, 185, 129, 0.28),
    0 0 0 6px rgba(244, 63, 94, 0.2);
  --neo-header-h: 68px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html,
body {
  overflow-x: hidden;
}
body.neo-shell {
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    Cantarell, "Helvetica Neue", Arial, sans-serif;
  color: var(--neo-ink);
  background-color: var(--neo-bg);
  position: relative;
  line-height: 1.65;
}

/* Parallax betting background + animated squares */
body.neo-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(to bottom, rgba(6, 10, 12, 0.82), rgba(6, 10, 12, 0.58) 40%, rgba(6, 10, 12, 0.78)),
    url("assets/bg-betting.webp");
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  background-position: center top, center top;
}
@keyframes neo-square-drift {
  0% {
    background-position: center top, center top, 12% 14%, 36% 28%, 70% 18%, 78% 66%;
    opacity: .95;
  }
  50% {
    background-position: center top, center top, 14% 18%, 33% 26%, 66% 22%, 80% 62%;
    opacity: 1;
  }
  100% {
    background-position: center top, center top, 12% 14%, 36% 28%, 70% 18%, 78% 66%;
    opacity: .95;
  }
}
.neo-wrap {
  width: min(1160px, 92%);
  margin-inline: auto;
}

/* Links — new look */
.neo-shell a {
  color: #86efac;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.neo-shell a:hover {
  color: #bbf7d0;
  border-color: #bbf7d0;
}

/* Focus */
:focus {
  outline: none;
}
:focus-visible {
  box-shadow: var(--neo-focus);
  border-radius: 8px;
}

/* Skip */
.neo-skip {
  position: absolute;
  left: -9999px;
  top: auto;
}
.neo-skip:focus-visible {
  left: 16px;
  top: 16px;
  background: #0b1a34;
  color: #eef6ff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 999;
}

/* Header */
.neo-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 14, 18, 0.92);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--neo-border);
  min-height: var(--neo-header-h);
}
.neo-header .neo-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
.neo-brand {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none !important;
  padding: 10px 0;
}
.neo-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.42),
    rgba(244, 63, 94, 0.42)
  );
  box-shadow: var(--neo-shadow);
}
.neo-logo img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.28));
}
.neo-title-a {
  font-weight: 900;
  letter-spacing: 0.2px;
}

/* Burger + Right Panel Nav (global) */
.neo-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--neo-border);
  background: #0a1624;
  border-radius: 12px;
  position: relative;
  z-index: 65;
}
.neo-toggle .b {
  position: absolute;
  left: 50%;
  width: 24px;
  height: 2px;
  background: #e7fbf1;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.22s ease, opacity 0.2s ease, width 0.2s ease,
    background-color 0.2s ease;
}
.neo-toggle .b1 {
  top: 50%;
  transform: translate(-50%, -8px);
}
.neo-toggle .b2 {
  top: 50%;
}
.neo-toggle .b3 {
  top: 50%;
  transform: translate(-50%, 8px);
}
body.nav-open .neo-toggle .b1 {
  transform: translate(-50%, 0) rotate(45deg);
}
body.nav-open .neo-toggle .b2 {
  opacity: 0;
  width: 0;
}
body.nav-open .neo-toggle .b3 {
  transform: translate(-50%, 0) rotate(-45deg);
}

/* Dim content below header when menu open */
body.nav-open::before {
  content: "";
  position: fixed;
  top: var(--neo-header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 10, 12, 0.7);
  backdrop-filter: blur(2px);
  z-index: 50;
}

/* Right side drawer */
.neo-nav {
  position: fixed;
  top: var(--neo-header-h);
  right: 0;
  width: min(92vw, 420px);
  background: #0e151c;
  border-left: 1px solid var(--neo-border);
  padding: 24px;
  transform: translateX(100%);
  pointer-events: none;
  transition: transform 0.36s cubic-bezier(0.22, 0.84, 0.26, 1);
  z-index: 55;
}
body.nav-open .neo-nav {
  transform: translateX(0);
  pointer-events: auto;
}
.neo-nav ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.neo-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: inherit;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
}
.neo-nav a:hover,
.neo-nav a[aria-current="page"] {
  background: #0f1c22;
  border-color: var(--neo-border);
}
.neo-nav li {
  opacity: 0;
  transform: translateX(12px);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
body.nav-open .neo-nav li {
  opacity: 1;
  transform: none;
}
body.nav-open .neo-nav li:nth-child(1) {
  transition-delay: 0.06s;
}
body.nav-open .neo-nav li:nth-child(2) {
  transition-delay: 0.12s;
}
body.nav-open .neo-nav li:nth-child(3) {
  transition-delay: 0.18s;
}
body.nav-open .neo-nav li:nth-child(4) {
  transition-delay: 0.24s;
}
body.nav-open .neo-nav li:nth-child(5) {
  transition-delay: 0.3s;
}
body.nav-open .neo-nav li:nth-child(6) {
  transition-delay: 0.36s;
}
body.nav-open .neo-nav li:nth-child(7) {
  transition-delay: 0.42s;
}
body.nav-open .neo-nav li:nth-child(8) {
  transition-delay: 0.48s;
}
body.nav-open .neo-nav li:nth-child(9) {
  transition-delay: 0.54s;
}

/* Hero */
.neo-hero {
  padding: 42px 0 10px;
}
.neo-h1 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: 0.1px;
}
.neo-sub {
  color: var(--neo-ink-soft);
  margin: 0.4rem 0;
}

/* Sections */
.neo-sec {
  padding: 26px 0;
}

/* H2 — new bracket style markers */
.neo-h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  margin: 0 0 14px;
  font-weight: 900;
  letter-spacing: 0.2px;
  display: grid;
  grid-auto-flow: column;
  justify-content: start;
  align-items: center;
  gap: 10px;
}
.neo-h2::before {
  content: "[";
  color: var(--neo-primary);
}
.neo-h2::after {
  content: "]";
  color: var(--neo-accent);
}

/* Cards — left stripe instead of top stripe, squarer geometry */
.neo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.neo-card {
  background: var(--neo-surface);
  border: 1px solid var(--neo-border);
  border-radius: var(--neo-radius);
  padding: 14px 14px 14px 16px;
  position: relative;
  box-shadow: none;
}
.neo-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 1px;
  border-radius: 0;
  background: linear-gradient(180deg, var(--neo-primary), var(--neo-accent));
}

/* Comparison grid as pseudo-table */
.neo-table {
  display: grid;
  gap: 10px;
  border: 1px solid var(--neo-border);
  border-radius: var(--neo-radius);
  background: var(--neo-surface);
  padding: 10px;
  overflow-x: auto;
}
.neo-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.4fr;
  gap: 12px;
  border: 1px dashed var(--neo-border);
  border-radius: 10px;
  padding: 10px;
}
.neo-row.head {
  font-weight: 900;
  color: #dffcf0;
  background: #0f1c22;
  border-style: solid;
}

/* Pills */
.neo-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.neo-pill {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 8px;
  background: #0f1b17;
  border: 1px solid #173f32;
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: none;
}
.neo-pill::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--neo-primary), var(--neo-accent));
}
.neo-figure {
  font-weight: 900;
  color: #34d399;
}

/* Lists */
.neo-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.neo-list li {
  position: relative;
  margin: 0.5rem 0;
  padding-left: 18px;
}
.neo-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 40% 40%,
    var(--neo-primary-2) 0 52%,
    var(--neo-primary) 55% 100%
  );
  border: 1px solid #173f32;
  transform: none;
}

/* Buttons — emerald solid */
.neo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.5ch;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 800;
  border: 1px solid #0f2a22;
  color: #06110d !important;
  background: var(--neo-primary);
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.24);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.neo-btn:hover,
.neo-btn:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.06);
  box-shadow: 0 14px 36px rgba(16, 185, 129, 0.34);
}
.neo-btn::after {
  content: "›";
}
.neo-btn-note {
  display: block;
  color: #9bcfbf;
  text-align: left;
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Stars */
.neo-stars {
  position: relative;
  display: inline-block;
  font-size: 18px;
  letter-spacing: 2px;
  line-height: 1;
}
.neo-stars-base {
  color: #1f2c33;
}
.neo-stars-fill {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  overflow: hidden;
  color: #f59e0b;
  pointer-events: none;
}

/* Casino featured section */
.neo-casino {
  padding: 18px 0 8px;
}
.neo-casino-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  border: 1px solid var(--neo-border);
  border-radius: 16px;
  background: linear-gradient(180deg, #10171e, #0d141a);
  box-shadow: var(--neo-shadow);
  padding: 28px 12px 12px;
  position: relative;
  overflow: hidden;
}
.neo-casino-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--neo-primary), var(--neo-accent));
}
.neo-casino-media {
  grid-column: 1;
  display: grid;
  place-items: center;
  border: 1px dashed var(--neo-border);
  border-radius: 12px;
  background: #0e1b20;
  padding: 12px;
  margin-top: 20px;
}
.neo-casino-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.neo-casino-badge {
  position: absolute;
  top: 6px;
  left: 8px;
  z-index: 2;
  display: inline-block;
  background: linear-gradient(90deg, var(--neo-primary), var(--neo-accent));
  color: #041420;
  font-weight: 900;
  border-radius: 999px;
  padding: 6px 10px;
  margin: 0;
}
.neo-casino-title {
  margin: 4px 0 8px;
  font-weight: 900;
}
.neo-casino-feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}
.neo-casino-feats li {
  position: relative;
  padding-left: 16px;
  color: var(--neo-ink-soft);
}
.neo-casino-feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neo-primary), var(--neo-primary-2));
}
.neo-casino-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 10px;
}

/* Casino body: columns -> pills | feats | actions+note */
.neo-casino-body {
  grid-column: 2 / span 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: center;
}

@media (max-width: 900px) {
  .neo-btn {
    width: 100%;
  }
  .neo-casino-card {
    grid-template-columns: 1fr;
  }
  .neo-casino-feats {
    grid-template-columns: 1fr;
  }
  .neo-casino-body {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
}

/* Footer — new structure: grid with legal first, links second, logos third */
.neo-footer {
  margin-top: 26px;
  border-top: 1px solid var(--neo-border);
  background: linear-gradient(180deg, #0b1116, #0a1216);
}
.neo-foot-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 350px;
  gap: 16px;
  align-items: start;
  padding: 22px 0 10px;
}
.neo-foot-legal {
  display: grid;
  gap: 10px;
}
.neo-foot-legal a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d0efe3;
  border: 1px solid #213b34;
  border-radius: 10px;
  padding: 8px 12px;
  text-decoration: none;
  background: #0e1715;
}
.neo-foot-legal a:hover {
  border-color: var(--neo-primary);
  color: #eafff6;
}
.neo-foot-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 10px;
}
.neo-foot-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e7fbf1;
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid #173f32;
  border-radius: 999px;
  background: #0b1514;
  min-height: 40px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 700;
}
.neo-foot-links a::after {
  content: "→";
  color: #f43f5e;
}
.neo-foot-links a:hover {
  background: #101f1e;
  border-color: #1f3a33;
}
.neo-legal-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: var(--neo-surface);
  border: 1px solid var(--neo-border);
  border-radius: 12px;
  padding: 12px;
}
.neo-legal-logos-link {
  width: 100px;
  height: 100px;
  background: #0e1c1a;
  border: 1px solid var(--neo-border);
  border-radius: 10px;
  padding: 10px;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.neo-legal-logos-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--neo-shadow);
}
.neo-legal-logos-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.neo-foot-meta {
  border-top: 1px solid var(--neo-border);
  padding: 10px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.neo-copy {
  color: #a8cfc3;
  font-size: 0.92rem;
}
.neo-disclaimer {
  color: #8fb1aa;
  margin: 0;
}

@media (max-width: 900px) {
  .neo-header .neo-wrap {
    grid-template-columns: auto 1fr auto;
  }
  .neo-foot-grid {
    grid-template-columns: 1fr;
  }
  .neo-foot-links {
    grid-template-columns: 1fr;
  }
  .neo-legal-logos {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Reveal (float-up + scale) */
.will-show {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}
.is-showing {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

/* Testimonials (new structure) */
.neo-testlist {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}
.neo-test {
  background: var(--neo-surface);
  border: 1px solid var(--neo-border);
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
}
.neo-test-head {
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  justify-content: start;
  gap: 10px;
}
.neo-test-avatar {
  display: none;
}
.neo-test-name {
  font-weight: 800;
  color: #bbf7d0;
}
.neo-test-body {
  color: var(--neo-ink-soft);
}

/* Animated square overlay layer (markup-based) */
.neo-square-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Crect x='0' y='0' width='8' height='8' fill='%2310B981' fill-opacity='.16'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Crect x='0' y='0' width='10' height='10' fill='%23F43F5E' fill-opacity='.16'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Crect x='0' y='0' width='12' height='12' fill='%2310B981' fill-opacity='.12'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Crect x='0' y='0' width='14' height='14' fill='%23F43F5E' fill-opacity='.12'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='0' y='0' width='16' height='16' fill='%2310B981' fill-opacity='.10'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='0' y='0' width='20' height='20' fill='%23F43F5E' fill-opacity='.10'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 6'%3E%3Crect x='0' y='0' width='6' height='6' fill='%2310B981' fill-opacity='.18'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='0' y='0' width='24' height='24' fill='%23F43F5E' fill-opacity='.08'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Crect x='0' y='0' width='18' height='18' fill='%2310B981' fill-opacity='.12'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Crect x='0' y='0' width='28' height='28' fill='%23F43F5E' fill-opacity='.08'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Crect x='0' y='0' width='22' height='22' fill='%2310B981' fill-opacity='.10'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Crect x='0' y='0' width='26' height='26' fill='%23F43F5E' fill-opacity='.10'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 12px 12px, 18px 18px, 10px 10px, 22px 22px, 16px 16px, 20px 20px, 6px 6px, 24px 24px, 18px 18px, 28px 28px, 22px 22px, 26px 26px;
  background-position: 8% 12%, 22% 30%, 40% 18%, 58% 10%, 76% 26%, 84% 44%, 66% 68%, 38% 72%, 18% 56%, 12% 84%, 52% 38%, 88% 18%;
  animation: neo-square-drift 24s ease-in-out infinite;
}
@keyframes neo-square-drift {
  0% {
    background-position: 8% 12%, 22% 30%, 40% 18%, 58% 10%, 76% 26%, 84% 44%, 66% 68%, 38% 72%, 18% 56%, 12% 84%, 52% 38%, 88% 18%;
    opacity: .92;
  }
  50% {
    background-position: 10% 16%, 18% 28%, 44% 22%, 60% 14%, 72% 30%, 86% 40%, 62% 64%, 34% 68%, 22% 60%, 16% 80%, 48% 42%, 82% 22%;
    opacity: 1;
  }
  100% {
    background-position: 8% 12%, 22% 30%, 40% 18%, 58% 10%, 76% 26%, 84% 44%, 66% 68%, 38% 72%, 18% 56%, 12% 84%, 52% 38%, 88% 18%;
    opacity: .92;
  }
}

/* Casino pills vertical stack */
.neo-casino-card .neo-pills {
  grid-template-columns: 1fr;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 767px) {
  .neo-casino-body {
  }
}
