/* ─────────────────────────────────────────────────────────────────────────
   IGAXMING v22 — Professional crypto casino footer
   Inspired by Rainbet/Stake reference: glass-morphism, neon accents,
   crypto strip + trust badges + admin-configurable socials.
   ───────────────────────────────────────────────────────────────────────── */

.site-footer {
  position: relative;
  margin-top: 64px;
  padding: 48px 28px 28px;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(0, 229, 255, 0.10), transparent 60%),
    radial-gradient(900px 320px at 0% 110%, rgba(26, 101, 246, 0.10), transparent 60%),
    linear-gradient(180deg, #0a1228 0%, #060b1c 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: #D8DCE8;
  font-family: 'Geist', 'Inter', system-ui, sans-serif;
  overflow: hidden;
}
.site-footer::before {
  /* Subtle moving grain to break the flat dark feel */
  content: "";
  position: absolute; inset: 0;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/></svg>");
  opacity: 0.03;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.site-footer__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}

/* ── GRID ────────────────────────────────────────────────────────────── */
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
@media (max-width: 980px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer { padding: 36px 18px 24px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ── BRAND COLUMN ────────────────────────────────────────────────────── */
.site-footer__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 18px;
  height: 44px;
}
.site-footer__logo img {
  height: 36px;
  width: auto;
  display: block;
}
.site-footer__logo-text {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(135deg, #fff 0%, #D8DCE8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.site-footer__about {
  font-size: 13.5px;
  line-height: 1.65;
  color: #9DA0A5;
  margin: 0 0 22px;
  max-width: 360px;
}
.site-footer__contacts {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-footer__contacts li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
}
.site-footer__contacts i {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  background: rgba(0, 229, 255, 0.10);
  color: #67e8f9;
  border-radius: 50%;
  font-size: 13px;
}
.site-footer__contacts a {
  color: #D8DCE8;
  text-decoration: none;
  transition: color 0.18s ease;
}
.site-footer__contacts a:hover { color: #67e8f9; }

.site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.site-footer__social {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #D8DCE8;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  font-size: 15px;
}
.site-footer__social:hover {
  transform: translateY(-2px);
  background: rgba(0, 229, 255, 0.15);
  border-color: rgba(0, 229, 255, 0.45);
  color: #67e8f9;
}

/* ── LINK COLUMNS ────────────────────────────────────────────────────── */
.site-footer__col-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #EEEEF0;
  margin: 0 0 18px;
}
.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-footer__links a {
  color: #9DA0A5;
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.18s ease, padding-left 0.18s ease;
  position: relative;
  display: inline-block;
}
.site-footer__links a:hover {
  color: #EEEEF0;
  padding-left: 6px;
}
.site-footer__links a:hover::before {
  content: "›";
  position: absolute;
  left: -2px;
  color: #67e8f9;
}

/* ── DIVIDER ─────────────────────────────────────────────────────────── */
.site-footer__divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
  margin: 16px 0 26px;
}

/* ── PAYMENT METHODS ─────────────────────────────────────────────────── */
.site-footer__payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  margin-bottom: 22px;
}
.pay-coin {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.pay-coin img {
  width: 28px; height: 28px;
  display: block;
}
.pay-coin:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: rgba(0, 229, 255, 0.35);
}
.pay-more {
  color: #565A64;
  font-size: 13px;
  font-style: italic;
  margin-left: 6px;
}

/* ── TRUST BADGES ────────────────────────────────────────────────────── */
.site-footer__badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
@media (max-width: 720px) {
  .site-footer__badges { grid-template-columns: repeat(2, 1fr); }
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  text-decoration: none;
  color: #D8DCE8;
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}
.trust-badge::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0) 0%, rgba(0, 229, 255, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.trust-badge:hover { transform: translateY(-2px); border-color: rgba(0, 229, 255, 0.35); }
.trust-badge:hover::before { opacity: 1; }
.trust-badge__icon {
  position: relative;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.12);
  color: #67e8f9;
  font-size: 15px;
  flex-shrink: 0;
}
.trust-badge__plus {
  position: absolute;
  bottom: -4px; right: -4px;
  background: #00E5FF;
  color: #021024;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 6px;
}
.trust-badge--licensed .trust-badge__icon { background: rgba(220, 38, 38, 0.12); color: #f87171; }
.trust-badge--gamecheck .trust-badge__icon { background: rgba(34, 197, 94, 0.12); color: #4ade80; }
.trust-badge__label { line-height: 1.2; }

/* ── LEGAL BAR ───────────────────────────────────────────────────────── */
.site-footer__legalbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.site-footer__company {
  font-size: 12px;
  color: #565A64;
  margin: 0;
  line-height: 1.5;
}
.site-footer__copy {
  font-size: 12px;
  color: #565A64;
  margin: 0;
  letter-spacing: 0.02em;
}

/* ── FLOATING SUPPORT BUTTON ─────────────────────────────────────────── */
.site-footer__chatbtn {
  position: fixed;
  bottom: 20px; right: 20px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00E5FF 0%, #1A65F6 100%);
  border: 0;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(26, 101, 246, 0.40), 0 2px 8px rgba(0, 0, 0, 0.30);
  z-index: 50;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.site-footer__chatbtn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 40px rgba(26, 101, 246, 0.55), 0 4px 12px rgba(0, 0, 0, 0.30);
}
.site-footer__chatbtn:active { transform: translateY(-1px); }

/* RTL adjustments */
html[dir="rtl"] .site-footer__links a:hover { padding-left: 0; padding-right: 6px; }
html[dir="rtl"] .site-footer__links a:hover::before { left: auto; right: -2px; }
html[dir="rtl"] .site-footer__chatbtn { right: auto; left: 20px; }

/* ── LEGAL / STATIC PAGES ───────────────────────────────────────────── */
.legal-page {
  max-width: 880px;
  margin: 40px auto;
  padding: 36px 28px 56px;
}
.legal-page__back {
  display: inline-flex; align-items: center; gap: 8px;
  color: #9DA0A5; text-decoration: none; font-size: 13px;
  margin-bottom: 20px;
  transition: color 0.18s ease;
}
.legal-page__back:hover { color: #67e8f9; }
.legal-page__eyebrow {
  display: inline-block;
  background: rgba(0, 229, 255, 0.10);
  color: #67e8f9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.legal-page__title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #EEEEF0;
  margin: 0 0 12px;
  line-height: 1.1;
}
@media (max-width: 560px) { .legal-page__title { font-size: 30px; } }
.legal-page__intro {
  font-size: 16px;
  color: #D8DCE8;
  line-height: 1.65;
  margin: 0 0 32px;
  max-width: 640px;
}
.legal-page__updated {
  font-size: 12px;
  color: #565A64;
  margin: 0 0 32px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.legal-page h3 {
  font-size: 18px;
  font-weight: 700;
  color: #EEEEF0;
  margin: 30px 0 12px;
}
.legal-page p {
  font-size: 14.5px;
  line-height: 1.75;
  color: #D8DCE8;
  margin: 0 0 16px;
}
.legal-page ul {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: flex; flex-direction: column; gap: 10px;
}
.legal-page ul li {
  padding: 12px 14px 12px 36px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  font-size: 14px;
  color: #D8DCE8;
  position: relative;
}
.legal-page ul li::before {
  content: "✓";
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #4ade80; font-weight: 800;
}
.legal-page .card-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin: 0 0 28px;
}
.legal-page .card-list .card {
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px; padding: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.legal-page .card-list .card:hover { border-color: rgba(0, 229, 255,0.35); transform: translateY(-2px); }
.legal-page .card-list .card h4 {
  font-size: 14px; font-weight: 700; color: #EEEEF0;
  margin: 0 0 8px;
}
.legal-page .card-list .card p {
  font-size: 13px; color: #9DA0A5; margin: 0; line-height: 1.6;
}
.legal-page .contact-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  margin-bottom: 12px;
}
.legal-page .contact-row__icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0, 229, 255,0.12); color: #67e8f9; font-size: 18px;
}
.legal-page .contact-row__body { flex: 1; }
.legal-page .contact-row__body h4 { font-size: 13px; font-weight: 700; color: #EEEEF0; margin: 0 0 4px; }
.legal-page .contact-row__body a { color: #67e8f9; text-decoration: none; font-size: 13.5px; }
.legal-page .contact-row__body a:hover { text-decoration: underline; }
/* v22.1 — Extended legal pages: TOC, H2, CTA, note */

.legal-toc {
  background: linear-gradient(135deg, rgba(0, 229, 255,0.06) 0%, rgba(26, 101, 246,0.04) 100%);
  border: 1px solid rgba(0, 229, 255,0.18);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 0 0 36px;
}
.legal-toc__title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #67e8f9;
  margin: 0 0 12px;
}
.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 16px;
  counter-reset: toc;
}
.legal-toc ol li {
  counter-increment: toc;
  position: relative;
  padding-left: 26px;
}
.legal-toc ol li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0; top: 1px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 800;
  color: #67e8f9;
  opacity: 0.65;
}
.legal-toc ol li a {
  color: #D8DCE8;
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.6;
  transition: color 0.15s ease;
  display: inline-block;
}
.legal-toc ol li a:hover { color: #67e8f9; }

.legal-page__h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 800;
  color: #EEEEF0;
  margin: 44px 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  letter-spacing: -0.01em;
  scroll-margin-top: 80px;
}
.legal-page__h2::before {
  content: '#';
  color: #67e8f9;
  margin-right: 8px;
  opacity: 0.6;
}

.legal-page__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 22px;
  background: linear-gradient(135deg, #00E5FF 0%, #1A65F6 100%);
  color: #1A2035;
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 229, 255, 0.30);
}
.legal-page__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 229, 255, 0.45);
}

.legal-page__note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  background: rgba(0, 229, 255, 0.06);
  border-left: 3px solid #00E5FF;
  border-radius: 8px;
  color: #D8DCE8;
  font-size: 13.5px;
  line-height: 1.65;
  margin: 22px 0;
}
.legal-page__note i { color: #67e8f9; margin-top: 3px; flex-shrink: 0; }

/* Topbar logo override (img instead of text) */
.topbar-brand-img {
  filter: drop-shadow(0 2px 8px rgba(0, 229, 255, 0.25));
  transition: transform 0.25s ease, filter 0.25s ease;
}
.topbar-brand:hover .topbar-brand-img {
  transform: scale(1.04);
  filter: drop-shadow(0 4px 14px rgba(0, 229, 255, 0.45));
}
.topbar-brand-fallback { display: none; align-items: center; gap: 10px; }
