/* ============================================================
   SportyBetCode.co — design system
   Restrained, professional, data-first.
   ============================================================ */

:root {
  --bg: #0b0f16;
  --bg-alt: #0f141d;
  --card: #131924;
  --card-2: #182030;
  --line: #232c3b;
  --line-strong: #2f3a4d;

  --text: #e8ecf3;
  --text-2: #b3bccd;
  --muted: #7d8799;

  --accent: #1f9d63;        /* considered green, not neon */
  --accent-hover: #24b473;
  --accent-soft: rgba(31, 157, 99, 0.12);
  --accent-line: rgba(31, 157, 99, 0.35);

  --amber: #b8860b;
  --amber-text: #d9a441;
  --red: #c0453f;
  --red-text: #e0736d;
  --blue: #4a7fb5;

  --radius: 10px;
  --radius-sm: 6px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(var(--maxw), 92%); margin-inline: auto; }
.container--narrow { width: min(720px, 92%); }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }

/* ============ NOTICE BAR ============ */
.noticebar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  padding: 8px 0;
}
.noticebar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.noticebar strong { color: var(--text-2); font-weight: 600; }

/* ============ HEADER ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 22, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem 0;
}
.nav__logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  color: var(--text);
}
.nav__logo span { color: var(--accent); }

.nav__menu { display: flex; align-items: center; flex: 1; gap: 2rem; }

.nav__links {
  display: flex;
  gap: 1.5rem;
  margin-right: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}
.nav__links a { padding: 0.2rem 0; border-bottom: 1.5px solid transparent; transition: color .15s, border-color .15s; }
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--text); border-bottom-color: var(--accent); }

.nav__actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav__burger span { width: 22px; height: 2px; background: var(--text-2); border-radius: 1px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  text-align: center;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }

.btn--outline { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--outline:hover { border-color: var(--muted); background: var(--card); }

.btn--ghost { color: var(--text-2); padding-inline: 0.5rem; }
.btn--ghost:hover { color: var(--text); }

.btn--lg { padding: 0.75rem 1.5rem; font-size: 15px; }
.btn--small { padding: 0.4rem 0.85rem; font-size: 13px; }
.btn--block { display: block; width: 100%; }

/* ============ HERO ============ */
.hero { padding: 4.5rem 0 3.5rem; border-bottom: 1px solid var(--line); }
.hero__inner { max-width: 760px; }
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 650;
  margin-bottom: 1.1rem;
}
.hero__sub {
  font-size: 16.5px;
  color: var(--text-2);
  max-width: 620px;
  margin-bottom: 1.9rem;
}
.hero__cta { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.hero__note { margin-top: 1.4rem; font-size: 13px; color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.eyebrow--accent { color: var(--accent); }

/* status dot */
.dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.45rem;
  vertical-align: middle;
}

/* ============ STATS BAR ============ */
.statbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.statbar__item { padding: 1.3rem 1.4rem; border-right: 1px solid var(--line); }
.statbar__item:last-child { border-right: 0; }
.statbar__num { display: block; font-size: 1.6rem; font-weight: 650; letter-spacing: -0.02em; }
.statbar__label { font-size: 12.5px; color: var(--muted); }

/* ============ SECTIONS ============ */
.section { padding: 4rem 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--tight { padding: 2.5rem 0; }

.section__head { max-width: 660px; margin-bottom: 2.2rem; }
.section__head h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); margin-bottom: 0.6rem; }
.section__head p { color: var(--text-2); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__foot { margin-top: 2rem; }
.section__foot--center { text-align: center; }

/* ============ FREE SELECTION PANEL ============ */
.panel {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
}
.panel h2 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.panel p { color: var(--text-2); }

.meta-list { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.4rem; }
.meta-list__item span { display: block; font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.meta-list__item strong { font-size: 15px; font-weight: 600; }

.codebox {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}
.codebox__label { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.codebox__code {
  display: block;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 1.1rem;
  line-height: 1.35;
  word-break: break-word;
}
.codebox__hint { margin-top: 0.9rem; font-size: 12.5px; color: var(--muted); }

/* ============ TABLE-STYLE RESULTS ============ */
.record {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.record__row {
  display: grid;
  grid-template-columns: 150px 1fr 130px 96px 84px;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1.3rem;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.record__row:last-child { border-bottom: 0; }
.record__row--head {
  background: var(--bg-alt);
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.record__league { color: var(--muted); font-size: 12.5px; }
.record__match { font-weight: 550; }
.record__market { color: var(--text-2); }
.record__score { font-variant-numeric: tabular-nums; color: var(--text-2); }

.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  border: 1px solid;
}
.badge--won { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.badge--lost { color: var(--red-text); border-color: rgba(192, 69, 63, 0.35); background: rgba(192, 69, 63, 0.1); }
.badge--void { color: var(--muted); border-color: var(--line-strong); background: var(--bg-alt); }
.badge--pending { color: var(--muted); border-color: var(--line-strong); }

/* ============ SUMMARY STRIP ============ */
.summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.6rem;
}
.summary__item { background: var(--card); padding: 1.1rem 1.3rem; }
.summary__item strong { display: block; font-size: 1.4rem; font-weight: 650; letter-spacing: -0.02em; }
.summary__item span { font-size: 12.5px; color: var(--muted); }
.is-accent { color: var(--accent); }
.is-red { color: var(--red-text); }

/* ============ FILTERS ============ */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; }
.filter-pill {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: .15s;
}
.filter-pill:hover { color: var(--text); border-color: var(--muted); }
.filter-pill.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============ CARD GRIDS ============ */
.grid { display: grid; gap: 1.1rem; }
.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 {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { font-size: 15.5px; margin-bottom: 0.5rem; }
.card p { color: var(--text-2); font-size: 14px; }

/* numbered steps */
.step__num {
  display: inline-grid;
  place-items: center;
  width: 26px; height: 26px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  font-size: 12.5px;
  font-weight: 650;
  margin-bottom: 0.9rem;
}

/* ============ PRICING ============ */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; align-items: stretch; }
.plan {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.4rem;
  display: flex;
  flex-direction: column;
}
.plan--featured { border-color: var(--accent-line); }
.plan__flag {
  position: absolute;
  top: -1px; right: 1rem;
  transform: translateY(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}
.plan h3 { font-size: 16px; }
.plan__desc { font-size: 13px; color: var(--muted); margin-bottom: 1.2rem; min-height: 2.6em; }
.plan__price { margin-bottom: 1.3rem; }
.plan__was { font-size: 13px; color: var(--muted); text-decoration: line-through; margin-right: 0.4rem; }
.plan__now { font-size: 1.65rem; font-weight: 650; letter-spacing: -0.02em; }
.plan__period { display: block; font-size: 12.5px; color: var(--muted); margin-top: 0.15rem; }
.plan ul { list-style: none; font-size: 13.5px; color: var(--text-2); display: grid; gap: 0.5rem; margin-bottom: 1.6rem; flex: 1; }
.plan li { padding-left: 1.1rem; position: relative; }
.plan li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }
.plan li.yes::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* ============ FAQ ============ */
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-weight: 550;
  font-size: 15px;
  padding: 1.1rem 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 1.15rem; line-height: 1; }
.faq[open] summary::after { content: "−"; }
.faq p { padding-bottom: 1.2rem; color: var(--text-2); font-size: 14px; max-width: 640px; }

/* ============ TESTIMONIALS ============ */
.quote { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.quote blockquote { font-size: 14px; color: var(--text-2); margin-bottom: 1.1rem; }
.quote figcaption { font-size: 13px; font-weight: 600; }
.quote figcaption em { display: block; font-style: normal; font-weight: 400; color: var(--muted); font-size: 12.5px; }

/* ============ FORMS ============ */
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--text-2);
  margin-bottom: 0.4rem;
}
.field input, .field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
  padding: 0.65rem 0.85rem;
  outline: none;
  transition: border-color .15s;
}
.field input::placeholder { color: #5c6675; }
.field input:focus, .field select:focus { border-color: var(--accent); }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-msg { display: none; margin-top: 1rem; font-size: 13.5px; border-radius: var(--radius-sm); padding: 0.7rem 0.9rem; border: 1px solid; }
.form-msg.is-ok { display: block; color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.form-msg.is-err { display: block; color: var(--red-text); border-color: rgba(192,69,63,.35); background: rgba(192,69,63,.1); }

/* ============ TOOLS ============ */
.tool-out {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-top: 1.1rem;
  font-size: 14px;
  color: var(--text-2);
}
.tool-out--active { border-color: var(--accent-line); background: var(--accent-soft); color: var(--text); }
.tool-out strong { font-weight: 650; color: var(--text); }

.odds-row { display: flex; gap: 0.5rem; margin-bottom: 0.6rem; }
.odds-row input { flex: 1; }
.odds-row button {
  width: 38px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
}
.odds-row button:hover { color: var(--red-text); border-color: rgba(192,69,63,.4); }

.slip { border: 1px solid var(--line-strong); border-radius: var(--radius-sm); margin-top: 1.1rem; }
.slip__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-2);
}
.slip__row:last-child { border-bottom: 0; background: var(--bg-alt); color: var(--text); font-weight: 600; }

/* ============ ARTICLES / BLOG ============ */
.postcard {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color .15s;
}
.postcard:hover { border-color: var(--line-strong); }
.postcard__cat { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.postcard h3 { font-size: 16px; margin-bottom: 0.5rem; }
.postcard p { color: var(--text-2); font-size: 14px; flex: 1; }
.postcard__meta { margin-top: 1.1rem; font-size: 12.5px; color: var(--muted); }

.article { max-width: 680px; margin: 0 auto; padding: 3rem 0 4rem; }
.article__back { display: inline-block; margin-bottom: 1.6rem; font-size: 13.5px; color: var(--text-2); }
.article__back:hover { color: var(--accent); }
.article h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0.6rem 0; }
.article__meta { color: var(--muted); font-size: 13px; margin-bottom: 2.2rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.article h2 { font-size: 1.15rem; margin: 2.2rem 0 0.7rem; }
.article p { margin-bottom: 1.1rem; color: var(--text-2); font-size: 15.5px; }
.article ul, .article ol { margin: 0 0 1.2rem 1.3rem; color: var(--text-2); font-size: 15.5px; }
.article li { margin-bottom: 0.5rem; }
.article blockquote {
  border-left: 2px solid var(--accent);
  padding: 0.3rem 0 0.3rem 1.2rem;
  margin: 0 0 1.2rem;
  color: var(--text);
}
.article strong { color: var(--text); font-weight: 600; }
.article a { color: var(--accent); }

/* ============ AUTH ============ */
.auth { display: grid; place-items: center; padding: 4rem 0; min-height: 65vh; }
.auth__card {
  width: min(400px, 92vw);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem 1.9rem;
}
.auth__card h1 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.auth__card > p { color: var(--text-2); font-size: 14px; margin-bottom: 1.6rem; }
.auth__alt { text-align: center; margin-top: 1.3rem; font-size: 13.5px; color: var(--muted); }
.auth__alt a { color: var(--accent); font-weight: 550; }
.auth__note { margin-top: 1rem; font-size: 12px; color: var(--muted); text-align: center; }

/* ============ CTA BAND ============ */
.cta { background: var(--bg-alt); border-block: 1px solid var(--line); }
.cta__inner { max-width: 620px; }
.cta h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin-bottom: 0.7rem; }
.cta p { color: var(--text-2); margin-bottom: 1.6rem; }
.cta__buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); padding: 3rem 0 2rem; font-size: 13.5px; color: var(--muted); }
.footer__notice {
  border: 1px solid var(--line);
  border-left: 2px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  margin-bottom: 2.5rem;
  font-size: 13px;
  line-height: 1.7;
  background: var(--card);
}
.footer__notice strong { color: var(--text-2); }
.footer__notice a { color: var(--accent); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer__brand { font-size: 15px; font-weight: 650; color: var(--text); margin-bottom: 0.6rem; }
.footer__brand span { color: var(--accent); }
.footer h4 { color: var(--text-2); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.8rem; }
.footer__grid a { display: block; margin-bottom: 0.5rem; transition: color .15s; }
.footer__grid a:hover { color: var(--text); }
.footer__bottom { border-top: 1px solid var(--line); padding-top: 1.4rem; font-size: 12.5px; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ============ UTILITIES ============ */
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .record__row { grid-template-columns: 1fr 110px 84px; }
  .record__league, .record__score { display: none; }
}

@media (max-width: 820px) {
  .nav__menu { display: none; }
  .nav__burger { display: flex; margin-left: auto; }
  .nav.nav--open .nav__menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.3rem;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    padding: 1.3rem 4%;
  }
  .nav.nav--open .nav__links { flex-direction: column; gap: 0.9rem; }
  .nav.nav--open .nav__actions { gap: 0.6rem; }
  .panel { grid-template-columns: 1fr; padding: 1.7rem; }
  .statbar { grid-template-columns: repeat(2, 1fr); }
  .statbar__item:nth-child(2) { border-right: 0; }
  .statbar__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4, .plans { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2.5rem; }
  .noticebar__inner { justify-content: center; text-align: center; }
}

/* ============ SAMPLE DATA NOTICE ============ */
.sample-notice {
  border: 1px solid var(--line);
  border-left: 2px solid var(--amber);
  border-radius: var(--radius-sm);
  background: var(--card);
  padding: 0.95rem 1.2rem;
  margin-bottom: 1.4rem;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.sample-notice strong { color: var(--amber-text); font-weight: 600; }
