/* ============================================================
   Play247 - Gradient Spectrum Playground
   Global stylesheet
   ============================================================ */

:root {
  --primary: #0d6efd;
  --primary-dark: #0b5ed7;
  --secondary: #6610f2;
  --tertiary: #d63384;
  --gradient: linear-gradient(135deg, #0d6efd, #6610f2, #d63384);
  --gradient-soft: linear-gradient(135deg, rgba(13,110,253,.12), rgba(102,16,242,.12), rgba(214,51,132,.12));
  --bg-body: #ffffff;
  --bg-section: #f8f9ff;
  --bg-dark: #0f0a1e;
  --bg-card: #ffffff;
  --border: #e0e0f0;
  --text-primary: #1a1a2e;
  --text-secondary: #6b7094;
  --shadow-sm: 0 2px 10px rgba(26, 26, 46, .06);
  --shadow-md: 0 8px 30px rgba(26, 26, 46, .08);
  --shadow-lift: 0 18px 40px rgba(102, 16, 242, .18);
  --radius-card: 16px;
  --radius-btn: 10px;
  --maxw: 1200px;
  --header-h: 74px;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-body);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--secondary); }

h1, h2, h3, h4, h5 {
  font-family: "Red Hat Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1rem; }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
li { margin-bottom: .5rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.section { padding: 78px 0; position: relative; }
.section--tint { background: var(--bg-section); }
.section--dark { background: var(--bg-dark); color: #d9d6ea; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: #b7b2ce; }

/* thin gradient accent strip at section tops */
.gstrip { position: relative; }
.gstrip::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient);
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: "Red Hat Display", sans-serif;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: #c99bff; }

.section-head { max-width: 720px; margin: 0 auto 46px; text-align: center; }
.section-head p { color: var(--text-secondary); font-size: 1.08rem; }
.section--dark .section-head p { color: #b7b2ce; }

.lead { font-size: 1.16rem; color: var(--text-secondary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: "Red Hat Display", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 15px 28px;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease, color .2s ease;
  text-align: center;
  white-space: nowrap;
}
.btn-gradient {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 6px 18px rgba(102, 16, 242, .28);
}
.btn-gradient:hover {
  color: #fff;
  transform: scale(1.02);
  box-shadow: 0 10px 26px rgba(214, 51, 132, .34);
}
.btn-outline {
  background: transparent;
  color: var(--secondary);
  border-color: var(--border);
}
.btn-outline:hover {
  transform: scale(1.02);
  border-color: var(--secondary);
  color: var(--secondary);
}
.section--dark .btn-outline { color: #fff; border-color: rgba(255,255,255,.28); }
.section--dark .btn-outline:hover { border-color: #fff; color: #fff; }
.btn-lg { padding: 17px 36px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 45px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: "Red Hat Display", sans-serif;
  font-weight: 700;
  font-size: .96rem;
  color: var(--text-primary);
  padding: 9px 15px;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}
.nav-links a:hover { background: var(--gradient-soft); color: var(--secondary); }
.nav-links a.is-active { color: var(--secondary); background: var(--gradient-soft); }
.nav-links .btn { padding: 11px 20px; font-size: .95rem; }
.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px; height: 44px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2.5px;
  background: var(--text-primary);
  border-radius: 3px;
  margin: 5px auto;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg-dark);
  color: #fff;
  text-align: center;
  padding: 96px 0 104px;
  overflow: hidden;
  isolation: isolate;
}
.hero-mesh {
  position: absolute;
  inset: -20%;
  z-index: -2;
  background:
    conic-gradient(from 120deg at 30% 30%, rgba(13,110,253,.55), transparent 40%),
    conic-gradient(from 300deg at 70% 60%, rgba(214,51,132,.5), transparent 42%),
    radial-gradient(50% 50% at 50% 40%, rgba(102,16,242,.4), transparent 70%);
  filter: blur(30px);
  animation: meshspin 22s linear infinite;
}
@keyframes meshspin {
  from { transform: rotate(0deg) scale(1.05); }
  to   { transform: rotate(360deg) scale(1.05); }
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  opacity: .55;
  z-index: -1;
  animation: floaty 9s ease-in-out infinite;
}
.hero-orb.o1 { width: 190px; height: 190px; background: radial-gradient(circle at 30% 30%, #0d6efd, transparent 70%); top: 8%; left: 6%; }
.hero-orb.o2 { width: 150px; height: 150px; background: radial-gradient(circle at 30% 30%, #d63384, transparent 70%); bottom: 10%; right: 8%; animation-delay: -3s; }
.hero-orb.o3 { width: 110px; height: 110px; background: radial-gradient(circle at 30% 30%, #6610f2, transparent 70%); top: 20%; right: 18%; animation-delay: -5s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-26px) translateX(14px); }
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero .lead { color: #c4bfe0; max-width: 680px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center;
  margin-top: 40px; color: #a8a2c8; font-size: .92rem; font-weight: 500;
}
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gradient); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 4px;
  background: var(--gradient);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.card:hover::before { transform: scaleY(1); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

/* gradient SVG icon circle */
.icon-circle {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--gradient);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 6px 16px rgba(102,16,242,.25);
}
.icon-circle svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2; }

/* ---------- About two column ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.split .lead { margin-bottom: 1.1rem; }
.frame {
  position: relative;
  border-radius: 20px;
  padding: 6px;
  background: var(--gradient);
  box-shadow: var(--shadow-md);
}
.frame img { border-radius: 15px; width: 100%; }
.frame--pad { padding: 6px; }

/* ---------- Games grid ---------- */
.game-card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .22s ease, box-shadow .22s ease;
}
.game-card img { width: 100%; height: 100%; object-fit: cover; }
.game-card .game-visual {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.game-card .game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15,10,30,.9) 0%, rgba(15,10,30,.15) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: .92;
  transition: opacity .25s ease;
}
.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.game-card .game-overlay h3 { color: #fff; margin: 0 0 4px; font-size: 1.2rem; }
.game-card .game-overlay span { color: #d9d6ea; font-size: .9rem; }
.game-card .game-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(4px);
  color: #fff; font-size: .72rem; font-weight: 700;
  padding: 5px 11px; border-radius: 20px;
  font-family: "Red Hat Display", sans-serif; letter-spacing: .04em;
}

/* ---------- Feature chip strip ---------- */
.chip-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.feature-chip {
  flex: 0 0 auto;
  width: 230px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-chip:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.feature-chip h4 { margin: 4px 0 6px; }
.feature-chip p { font-size: .95rem; color: var(--text-secondary); margin: 0; }

/* ---------- Stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat-card {
  border-radius: var(--radius-card);
  padding: 30px 24px;
  color: #fff;
  text-align: center;
  box-shadow: 0 10px 26px rgba(102,16,242,.22);
}
.stat-card:nth-child(1) { background: linear-gradient(150deg, #0d6efd, #3b82f6); }
.stat-card:nth-child(2) { background: linear-gradient(150deg, #4f46e5, #6610f2); }
.stat-card:nth-child(3) { background: linear-gradient(150deg, #6610f2, #a21caf); }
.stat-card:nth-child(4) { background: linear-gradient(150deg, #a21caf, #d63384); }
.stat-card .num { font-family: "Red Hat Display", sans-serif; font-weight: 900; font-size: 2.5rem; line-height: 1; }
.stat-card .label { margin-top: 8px; font-size: .96rem; opacity: .95; }

/* ---------- Trust grid ---------- */
.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.trust-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--gradient);
}
.trust-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.trust-card h3 { font-size: 1.18rem; }
.trust-card p { margin: 0; color: var(--text-secondary); font-size: .98rem; }

/* ---------- Provider strip ---------- */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.provider-grid img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* ---------- Auth / forms ---------- */
.auth-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: start;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 38px 34px;
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--gradient);
}
.auth-card h2 { font-size: 1.7rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-secondary); margin-bottom: 26px; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: "Red Hat Display", sans-serif;
  font-weight: 700;
  font-size: .92rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.input-wrap { position: relative; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"] {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  background: #fdfdff;
  color: var(--text-primary);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(102,16,242,.14);
}
.field input.has-toggle { padding-right: 52px; }
.pw-toggle {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px;
  color: var(--text-secondary);
  display: inline-flex;
}
.pw-toggle:hover { color: var(--secondary); }
.pw-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }

/* password strength meter */
.pw-meter { display: flex; gap: 6px; margin-top: 10px; }
.pw-meter .bar { flex: 1; height: 6px; border-radius: 4px; background: var(--border); transition: background .25s ease; }
.pw-meter.s1 .bar:nth-child(1) { background: var(--danger); }
.pw-meter.s2 .bar:nth-child(-n+2) { background: var(--warning); }
.pw-meter.s3 .bar:nth-child(-n+3) { background: #3b82f6; }
.pw-meter.s4 .bar { background: var(--success); }
.pw-hint { font-size: .82rem; color: var(--text-secondary); margin-top: 6px; min-height: 1em; }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  font-size: .92rem;
  color: var(--text-secondary);
}
.check-row input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--secondary); flex: 0 0 auto; }
.check-row a { font-weight: 600; }

.form-aside {
  font-size: .86rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 16px;
}

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 14px;
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  font-family: "Red Hat Display", sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--text-primary);
  position: relative;
}
.faq-q::after {
  content: "";
  position: absolute; right: 22px; top: 50%;
  width: 12px; height: 12px;
  border-right: 2.5px solid var(--secondary);
  border-bottom: 2.5px solid var(--secondary);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s ease;
}
.faq-item.open .faq-q::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--text-secondary); }
.faq-item.open .faq-a { max-height: 400px; }

/* ---------- Tools ---------- */
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 32px 30px;
  position: relative;
  overflow: hidden;
}
.tool-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--gradient);
}
.tool-card h3 { margin-bottom: 6px; }
.tool-card .tool-sub { color: var(--text-secondary); font-size: .96rem; margin-bottom: 22px; }

/* Color Match Game */
.cm-board { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 320px; margin: 0 auto 20px; }
.cm-pad {
  aspect-ratio: 1;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  opacity: .55;
  transition: opacity .15s ease, transform .12s ease, box-shadow .15s ease;
  box-shadow: inset 0 -6px 14px rgba(0,0,0,.15);
}
.cm-pad:hover { transform: scale(1.02); }
.cm-pad.lit { opacity: 1; transform: scale(1.04); box-shadow: 0 0 26px currentColor; }
.cm-pad[data-color="blue"]   { background: #0d6efd; color: #0d6efd; }
.cm-pad[data-color="purple"] { background: #6610f2; color: #6610f2; }
.cm-pad[data-color="pink"]   { background: #d63384; color: #d63384; }
.cm-pad[data-color="green"]  { background: #16a34a; color: #16a34a; }
.cm-stats { display: flex; justify-content: center; gap: 30px; margin-bottom: 18px; text-align: center; }
.cm-stats .n { font-family: "Red Hat Display", sans-serif; font-weight: 900; font-size: 1.8rem; }
.cm-stats .l { font-size: .8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .06em; }
.tool-status {
  text-align: center; font-weight: 600; min-height: 1.4em; margin-bottom: 16px; color: var(--secondary);
}

/* Bet History Analyzer */
.bh-rows { margin-bottom: 16px; }
.bh-row { display: grid; grid-template-columns: 28px 1fr 130px; gap: 10px; align-items: center; margin-bottom: 10px; }
.bh-row .idx { color: var(--text-secondary); font-size: .85rem; text-align: center; }
.bh-row input {
  width: 100%; padding: 11px 12px; font-family: inherit; font-size: .95rem;
  border: 1.5px solid var(--border); border-radius: 9px; background: #fdfdff; color: var(--text-primary);
}
.bh-row input:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(102,16,242,.12); }
.bh-seg { display: flex; border: 1.5px solid var(--border); border-radius: 9px; overflow: hidden; }
.bh-seg button {
  flex: 1; border: none; background: #fff; padding: 11px 4px; cursor: pointer;
  font-family: "Red Hat Display", sans-serif; font-weight: 700; font-size: .85rem; color: var(--text-secondary);
}
.bh-seg button.win.active { background: var(--success); color: #fff; }
.bh-seg button.loss.active { background: var(--danger); color: #fff; }
.bh-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.bh-add {
  background: var(--gradient-soft); color: var(--secondary); border: 1.5px dashed rgba(102,16,242,.4);
  border-radius: 9px; padding: 11px 18px; cursor: pointer; font-family: "Red Hat Display", sans-serif; font-weight: 700; font-size: .9rem;
}
.bh-summary {
  margin-top: 22px;
  border-radius: 16px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  padding: 26px;
  display: none;
}
.bh-summary.show { display: block; }
.bh-grade {
  text-align: center; margin-bottom: 22px;
}
.bh-grade .badge {
  display: inline-block; padding: 8px 22px; border-radius: 30px; color: #fff;
  font-family: "Red Hat Display", sans-serif; font-weight: 800; font-size: 1.3rem;
  background: var(--gradient); box-shadow: 0 8px 20px rgba(102,16,242,.28);
}
.bh-grade .cap { display: block; margin-top: 8px; color: var(--text-secondary); font-size: .9rem; }
.bh-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bh-metric { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; }
.bh-metric .v { font-family: "Red Hat Display", sans-serif; font-weight: 800; font-size: 1.35rem; }
.bh-metric .k { font-size: .78rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .04em; margin-top: 4px; }
.bh-metric .v.pos { color: var(--success); }
.bh-metric .v.neg { color: var(--danger); }

/* Probability meter */
.pm-controls { margin-bottom: 24px; }
.pm-field { margin-bottom: 18px; }
.pm-field label { display: flex; justify-content: space-between; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.pm-field label .val { color: var(--secondary); font-family: "Red Hat Display", sans-serif; font-weight: 800; }
.pm-field select {
  width: 100%; padding: 12px 14px; font-family: inherit; font-size: 1rem;
  border: 1.5px solid var(--border); border-radius: 9px; background: #fdfdff; color: var(--text-primary);
}
.pm-field input[type="range"] { width: 100%; accent-color: var(--secondary); height: 6px; }
.pm-gauge { text-align: center; }
.pm-gauge svg { width: 100%; max-width: 300px; height: auto; }
.pm-readout {
  font-family: "Red Hat Display", sans-serif; font-weight: 900;
  font-size: 3rem; line-height: 1;
}
.pm-label { color: var(--text-secondary); font-size: .95rem; margin-top: 4px; }

/* ---------- Callout / responsible gaming banner ---------- */
.callout {
  border-radius: 18px;
  padding: 32px 34px;
  background: var(--gradient-soft);
  border: 1px solid rgba(102,16,242,.18);
}
.callout h3 { margin-bottom: .4em; }
.callout p:last-child { margin-bottom: 0; }
.rg-banner {
  background: var(--bg-dark);
  color: #cfc9e6;
  border-radius: 18px;
  padding: 30px 32px;
  border: 1px solid rgba(255,255,255,.08);
}
.rg-banner h3 { color: #fff; }
.rg-banner a { color: #c99bff; font-weight: 600; }

/* WhatsApp mini badge */
.wa-note {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .92rem; color: var(--text-secondary);
}

/* ---------- Legal / content pages ---------- */
.page-hero {
  background: var(--bg-dark);
  color: #fff;
  padding: 66px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 100% at 50% 0%, rgba(102,16,242,.5), transparent 70%);
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: #b7b2ce; max-width: 640px; margin: 0 auto; }
.breadcrumb { font-size: .85rem; color: #9a94bd; margin-bottom: 18px; }
.breadcrumb a { color: #c99bff; }

.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul li { margin-bottom: .6rem; }
.prose .updated { color: var(--text-secondary); font-size: .92rem; margin-bottom: 2rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; }
.prose th, .prose td { border: 1px solid var(--border); padding: 12px 14px; text-align: left; font-size: .96rem; }
.prose th { background: var(--bg-section); font-family: "Red Hat Display", sans-serif; }

/* contact cards */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #b7b2ce; padding: 60px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 40px; }
.footer-brand img { height: 36px; margin-bottom: 16px; }
.footer-brand p { font-size: .94rem; color: #9a94bd; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #b7b2ce; font-size: .94rem; }
.footer-col a:hover { color: #fff; }
.footer-rg {
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
  margin-bottom: 24px;
}
.footer-flags {
  display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center;
  font-family: "Red Hat Display", sans-serif; font-weight: 800; font-size: .82rem;
  letter-spacing: .06em; color: #cfc9e6; text-align: center;
}
.footer-flags span { display: inline-flex; align-items: center; gap: 14px; }
.footer-flags .sep { color: #6610f2; }
.footer-rg .rg-copy { text-align: center; font-size: .88rem; color: #9a94bd; margin: 14px auto 0; max-width: 720px; }
.footer-rg .rg-copy a { color: #c99bff; font-weight: 600; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: .86rem; color: #8b85ad;
}
.age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid #d63384; color: #fff;
  font-family: "Red Hat Display", sans-serif; font-weight: 900; font-size: .82rem;
  flex: 0 0 auto;
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.mb-lg { margin-bottom: 40px; }
.hide { display: none !important; }
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--secondary); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 16px 22px 26px;
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    transition: transform .3s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 12px; font-size: 1.05rem; }
  .nav-links .btn { width: 100%; margin-top: 6px; }
  .nav-cta { margin-left: 0; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .auth-wrap { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .provider-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .bh-metrics { grid-template-columns: 1fr 1fr; }
  .bh-row { grid-template-columns: 22px 1fr; grid-template-areas: "idx amt" "seg seg"; }
  .bh-row .idx { grid-area: idx; }
  .bh-row .bh-seg { grid-area: seg; }
  .hero { padding: 72px 0 80px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .auth-card, .tool-card { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
