/* ============================================================
   BUKMACHERSKA — design system
   Palette (per spec): green #28A745, bg #F8F9FA, accent #007BFF,
   ink #333333. Fonts: Unbounded / Manrope / IBM Plex Mono.
   ============================================================ */

:root {
  --green: #28A745;
  --green-dark: #1E7E34;
  --green-deep: #0E2A18;
  --green-ink: #10331E;
  --green-soft: #E6F5EB;
  --green-line: #BFE5CC;

  --blue: #007BFF;
  --blue-dark: #0062CC;
  --blue-soft: #E8F2FF;

  --bg: #F8F9FA;
  --paper: #FFFFFF;
  --ink: #333333;
  --ink-soft: #5C6660;
  --ink-faint: #8A948E;
  --line: #E3E8E5;
  --line-strong: #CFD7D2;

  --amber: #F5A623;
  --amber-soft: #FDF3E1;
  --red: #D9403A;
  --red-soft: #FCEAE9;

  --font-display: "Unbounded", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(16, 51, 30, .05), 0 8px 24px -12px rgba(16, 51, 30, .12);
  --shadow-pop: 0 12px 40px -12px rgba(16, 51, 30, .25);
  --container: 1280px;
}

/* ---------- reset ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(40, 167, 69, .045) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; color: var(--green-ink); }

h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.01em; }

h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: 1.15rem; font-weight: 800; }
h4 { font-size: 1rem; font-weight: 800; }

p { margin: 0 0 1em; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.3em; }

::selection { background: var(--green); color: #fff; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 800; font-size: .95rem;
  padding: 12px 22px; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px -6px rgba(40, 167, 69, .55); }
.btn-primary:hover { background: var(--green-dark); }

.btn-accent { background: var(--blue); color: #fff; box-shadow: 0 6px 16px -6px rgba(0, 123, 255, .55); }
.btn-accent:hover { background: var(--blue-dark); }

.btn-outline { background: transparent; color: var(--green-ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--green); color: var(--green-dark); }

.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); }

.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- top utility strip ---------- */

.topbar {
  background: #08170E; color: #B9CDBF;
  font-size: .78rem; letter-spacing: .02em;
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 34px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar a { color: #DCE9DF; }
.topbar .age-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--amber); color: var(--amber);
  font-weight: 800; font-size: .68rem; font-family: var(--font-mono);
}
.topbar .lic {
  font-family: var(--font-mono); font-size: .72rem; color: #8FAE97;
}

/* ---------- header ---------- */

.site-header {
  background: var(--green-deep);
  color: #fff;
  position: sticky; top: 0; z-index: 60;
  box-shadow: 0 4px 20px rgba(8, 23, 14, .35);
}
.site-header .container {
  display: flex; align-items: center; gap: 26px; min-height: 68px;
}

.logo {
  display: flex; align-items: baseline; gap: 2px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.22rem;
  color: #fff; text-decoration: none; letter-spacing: -.02em;
}
.logo:hover { text-decoration: none; }
.logo .logo-dot { color: var(--green); font-size: 1.6em; line-height: 0; }
.logo .logo-tld { color: #7FBF93; font-size: .7em; font-weight: 400; }

.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.main-nav > a, .nav-drop > button {
  font-family: var(--font-body); font-weight: 700; font-size: .92rem;
  color: #D6E5DA; padding: 10px 13px; border-radius: 8px;
  background: none; border: 0; cursor: pointer; text-decoration: none;
  transition: background .12s, color .12s;
}
.main-nav > a, .nav-drop > button { white-space: nowrap; }
.main-nav > a:hover, .nav-drop > button:hover { background: rgba(255,255,255,.09); color: #fff; text-decoration: none; }
.main-nav > a.is-current { color: #fff; background: rgba(40, 167, 69, .28); box-shadow: inset 0 -2px 0 var(--green); }
.main-nav > a.nav-live { color: #FFD9D7; }
.main-nav > a.nav-live::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #FF5A52; margin-right: 7px; animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.nav-drop { position: relative; }
.nav-drop > button::after { content: " ▾"; font-size: .7em; opacity: .7; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px;
  background: var(--paper); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pop); padding: 8px;
  display: none; z-index: 70;
}
.nav-drop.is-open .nav-drop-menu { display: block; }
.nav-drop-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 6px;
  color: var(--ink); font-weight: 600; font-size: .92rem;
}
.nav-drop-menu a:hover { background: var(--green-soft); color: var(--green-dark); text-decoration: none; }

.header-auth { display: flex; align-items: center; gap: 10px; }
.header-user { display: none; align-items: center; gap: 12px; }
.header-user.is-visible { display: flex; }
.header-auth.is-hidden { display: none; }
.user-balance {
  font-family: var(--font-mono); font-size: .9rem; font-weight: 600;
  background: rgba(40,167,69,.22); border: 1px solid rgba(40,167,69,.5);
  color: #A9E7BC; padding: 7px 12px; border-radius: 8px;
}
.user-name-link { color: #fff; font-weight: 700; font-size: .92rem; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px; margin-left: auto;
}
.nav-toggle span { width: 24px; height: 2.5px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- sections ---------- */

.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: .74rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green-dark);
  background: var(--green-soft); border: 1px solid var(--green-line);
  padding: 4px 10px; border-radius: 99px; margin-bottom: 14px;
}
.section-head .lead { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- hero (home) ---------- */

.hero {
  background:
    linear-gradient(115deg, rgba(8, 23, 14, .92) 0%, rgba(14, 42, 24, .82) 46%, rgba(14, 42, 24, .35) 100%),
    var(--hero-img, linear-gradient(120deg, #10331E, #1E7E34)) center / cover no-repeat;
  color: #fff; position: relative; overflow: hidden;
}
.hero-home { --hero-img: url("../assets/img/hero-stadium.jpg"); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero .container {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .accent { color: #6FE08F; }
.hero .hero-sub { font-size: 1.1rem; color: #C7DACC; max-width: 52ch; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 22px 0 30px; padding: 0; list-style: none; }
.hero-badges li { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; color: #E4F0E7; }
.hero-badges li::before { content: "✓"; color: var(--green); font-weight: 800; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: .8rem; color: #8FAE97; }

.hero-panel {
  background: rgba(255, 255, 255, .97); color: var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow-pop);
  padding: 22px; animation: rise .6s ease both .15s;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-panel h3 { display: flex; align-items: center; justify-content: space-between; font-size: .95rem; }
.hero-panel h3 .live-tag { color: var(--red); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; }

/* ---------- event rows & odds ---------- */

.event-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px; align-items: center;
  padding: 12px 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: border-color .12s, box-shadow .12s;
}
.event-row:hover { border-color: var(--green-line); box-shadow: var(--shadow-card); }

.event-meta { min-width: 0; }
.event-league { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.event-teams { font-weight: 800; font-size: .95rem; color: var(--green-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event-time { font-family: var(--font-mono); font-size: .76rem; color: var(--ink-soft); }
.event-time .live { color: var(--red); font-weight: 600; }

.odds { display: flex; gap: 6px; }
.odd-btn {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  min-width: 64px; padding: 7px 10px;
  background: var(--bg); border: 1.5px solid var(--line-strong); border-radius: 7px;
  cursor: pointer; transition: all .12s ease;
}
.odd-btn .odd-label { font-size: .68rem; font-weight: 700; color: var(--ink-faint); text-transform: uppercase; }
.odd-btn .odd-value { font-family: var(--font-mono); font-weight: 600; font-size: .95rem; color: var(--green-ink); }
.odd-btn:hover { border-color: var(--green); background: var(--green-soft); transform: translateY(-1px); }
.odd-btn.is-active { background: var(--green); border-color: var(--green-dark); }
.odd-btn.is-active .odd-label, .odd-btn.is-active .odd-value { color: #fff; }

.league-head {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: .88rem; color: var(--green-ink);
  margin: 22px 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--green-line);
}
.league-head .flag { font-size: 1.1rem; }
.league-head .count {
  margin-left: auto; font-family: var(--font-mono); font-size: .74rem;
  color: var(--ink-faint); font-weight: 400;
}

/* boosted odds card */
.boost-card {
  background: linear-gradient(135deg, var(--green-ink), var(--green-deep));
  color: #fff; border-radius: var(--radius); padding: 20px;
  position: relative; overflow: hidden;
}
.boost-card::before {
  content: "⚡"; position: absolute; right: -6px; bottom: -18px;
  font-size: 6rem; opacity: .12;
}
.boost-card .boost-tag {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em;
  color: #6FE08F; text-transform: uppercase;
}
.boost-card h3 { color: #fff; margin: 8px 0 4px; }
.boost-card .boost-odds { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.boost-card .old-odd { font-family: var(--font-mono); text-decoration: line-through; color: #8FAE97; }
.boost-card .new-odd { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: #6FE08F; }

/* ---------- sport layout (sidebar / feed / kupon) ---------- */

.sport-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 320px;
  gap: 22px; align-items: start;
  padding: 26px 0 64px;
}

.side-nav {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; position: sticky; top: 92px;
}
.side-nav h4 {
  margin: 0; padding: 14px 16px; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-faint);
  border-bottom: 1px solid var(--line);
}
.side-nav ul { list-style: none; margin: 0; padding: 6px; }
.side-nav li a, .side-nav li button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 11px; border-radius: 7px; border: 0; background: none;
  font-family: var(--font-body); font-size: .92rem; font-weight: 600; color: var(--ink);
  cursor: pointer; text-align: left;
}
.side-nav li a:hover, .side-nav li button:hover { background: var(--green-soft); color: var(--green-dark); text-decoration: none; }
.side-nav li .is-active { background: var(--green); color: #fff !important; }
.side-nav .sport-count {
  margin-left: auto; font-family: var(--font-mono); font-size: .72rem;
  color: var(--ink-faint); font-weight: 400;
}
.side-nav li .is-active .sport-count { color: rgba(255,255,255,.75); }

.feed-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.feed-tab {
  padding: 8px 16px; border-radius: 99px; border: 1.5px solid var(--line-strong);
  background: var(--paper); font-weight: 700; font-size: .85rem; color: var(--ink-soft);
  cursor: pointer; font-family: var(--font-body);
}
.feed-tab:hover { border-color: var(--green); color: var(--green-dark); }
.feed-tab.is-active { background: var(--green-ink); border-color: var(--green-ink); color: #fff; }

/* kupon */
.kupon {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  position: sticky; top: 92px; overflow: hidden; box-shadow: var(--shadow-card);
}
.kupon-head {
  background: var(--green-ink); color: #fff;
  padding: 13px 16px; display: flex; align-items: center; justify-content: space-between;
  font-weight: 800; font-size: .95rem;
}
.kupon-head .kupon-count {
  font-family: var(--font-mono); background: var(--green); border-radius: 99px;
  min-width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; padding: 0 7px;
}
.kupon-body { padding: 14px 16px; }
.kupon-empty { color: var(--ink-faint); font-size: .88rem; text-align: center; padding: 26px 8px; }
.kupon-empty .kupon-empty-icon { font-size: 2rem; display: block; margin-bottom: 8px; opacity: .5; }

.kupon-item {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; margin-bottom: 8px; position: relative;
}
.kupon-item .ki-match { font-size: .8rem; color: var(--ink-soft); padding-right: 20px; }
.kupon-item .ki-pick { font-weight: 800; font-size: .88rem; display: flex; justify-content: space-between; gap: 8px; }
.kupon-item .ki-pick .ki-odd { font-family: var(--font-mono); color: var(--green-dark); }
.kupon-item .ki-remove {
  position: absolute; top: 6px; right: 8px; border: 0; background: none;
  color: var(--ink-faint); cursor: pointer; font-size: 1rem; line-height: 1; padding: 2px;
}
.kupon-item .ki-remove:hover { color: var(--red); }

.kupon-stake { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; }
.kupon-stake label { font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.kupon-stake input {
  width: 100%; padding: 9px 12px; border: 1.5px solid var(--line-strong); border-radius: 7px;
  font-family: var(--font-mono); font-size: 1rem; text-align: right;
}
.kupon-stake input:focus { border-color: var(--green); outline: none; }

.kupon-summary { font-size: .84rem; border-top: 1px dashed var(--line-strong); padding-top: 10px; }
.kupon-summary .row { display: flex; justify-content: space-between; margin-bottom: 4px; }
.kupon-summary .row strong { font-family: var(--font-mono); }
.kupon-summary .row.total { font-size: 1rem; color: var(--green-dark); font-weight: 800; margin-top: 6px; }
.kupon-tax-note { font-size: .72rem; color: var(--ink-faint); margin-top: 8px; }

/* ---------- cards & grids ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-card);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.card .card-icon {
  width: 46px; height: 46px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  background: var(--green-soft); border: 1px solid var(--green-line); margin-bottom: 14px;
}
.card.card-blue .card-icon { background: var(--blue-soft); border-color: #BBD9FF; }
.card p:last-child { margin-bottom: 0; }
.card .card-more { font-weight: 700; font-size: .9rem; }

.media-card { padding: 0; overflow: hidden; }
.media-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.media-card .media-body { padding: 20px 22px 24px; }
.media-card .media-body h3 { margin-top: 0; }

/* steps (jak zacząć) */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px 22px; counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 700; font-size: 1.9rem;
  color: var(--green); display: block; margin-bottom: 10px; opacity: .9;
}
.step::after {
  content: "→"; position: absolute; right: -15px; top: 50%; transform: translateY(-50%);
  color: var(--green-line); font-size: 1.4rem; z-index: 1;
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.02rem; }
.step p { font-size: .9rem; color: var(--ink-soft); margin: 0; }

/* stat strip */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
  background: var(--green-ink); color: #fff; border-radius: var(--radius);
  padding: 30px 26px;
}
.stat-strip .stat-num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: #6FE08F; }
.stat-strip .stat-cap { font-size: .84rem; color: #B9CDBF; }

/* promo card */
.promo-card {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--paper); box-shadow: var(--shadow-card); display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }
.promo-card img { aspect-ratio: 16 / 9; object-fit: cover; }
.promo-card .promo-body { padding: 20px 22px; display: flex; flex-direction: column; flex: 1; }
.promo-card .promo-tag {
  align-self: flex-start; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; background: var(--amber-soft); color: #A66F0F;
  border: 1px solid #F2DDB2; padding: 3px 9px; border-radius: 99px; margin-bottom: 10px;
}
.promo-card .promo-body .btn { margin-top: auto; align-self: flex-start; }
.promo-card .promo-terms { font-size: .72rem; color: var(--ink-faint); margin-top: 12px; }

/* ---------- forms / auth ---------- */

.auth-wrap {
  min-height: calc(100vh - 300px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0; align-items: stretch;
}
.auth-side {
  background:
    linear-gradient(160deg, rgba(8,23,14,.9), rgba(14,42,24,.75)),
    var(--auth-img, linear-gradient(120deg, #10331E, #1E7E34)) center / cover no-repeat;
  color: #fff; padding: 64px 48px; display: flex; flex-direction: column; justify-content: center;
}
.auth-side-login { --auth-img: url("../assets/img/auth-login.jpg"); }
.auth-side-register { --auth-img: url("../assets/img/auth-register.jpg"); }
.auth-side h2 { color: #fff; }
.auth-side ul { list-style: none; padding: 0; margin: 20px 0 0; }
.auth-side li { display: flex; gap: 10px; margin-bottom: 12px; color: #D6E5DA; font-size: .95rem; }
.auth-side li::before { content: "✓"; color: #6FE08F; font-weight: 800; }
.auth-form-col { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }

.form-card { width: 100%; max-width: 460px; }
.form-card .form-sub { color: var(--ink-soft); margin-bottom: 26px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.field .hint { font-size: .78rem; color: var(--ink-faint); margin-top: 5px; }
.field .field-error { display: none; font-size: .8rem; color: var(--red); font-weight: 600; margin-top: 5px; }
.field.has-error .field-error { display: block; }
.field.has-error .input { border-color: var(--red); background: var(--red-soft); }

.input {
  width: 100%; padding: 12px 14px; font-family: var(--font-body); font-size: 1rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); transition: border-color .12s;
}
.input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(40,167,69,.15); }

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; margin-bottom: 14px; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--green); flex-shrink: 0; }

.form-alert {
  display: none; padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; margin-bottom: 18px;
}
.form-alert.is-visible { display: block; }
.form-alert.error { background: var(--red-soft); color: #A02722; border: 1px solid #F0BDBB; }
.form-alert.success { background: var(--green-soft); color: var(--green-dark); border: 1px solid var(--green-line); }

.pass-strength { height: 5px; border-radius: 3px; background: var(--line); margin-top: 8px; overflow: hidden; }
.pass-strength span { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--red); transition: width .2s, background .2s; }

/* ---------- account ---------- */

.account-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; padding: 34px 0 64px; align-items: start; }
.account-menu { position: sticky; top: 92px; }
.account-menu .card { padding: 10px; }
.account-menu button, .account-menu a {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 13px; border-radius: 8px; border: 0; background: none;
  font-family: var(--font-body); font-size: .93rem; font-weight: 700; color: var(--ink);
  cursor: pointer; text-align: left; text-decoration: none;
}
.account-menu button:hover, .account-menu a:hover { background: var(--green-soft); color: var(--green-dark); }
.account-menu .is-active { background: var(--green); color: #fff; }
.account-menu .logout { color: var(--red); }

.balance-card {
  background: linear-gradient(135deg, var(--green-ink), var(--green-deep));
  color: #fff; border-radius: var(--radius); padding: 26px;
}
.balance-card .balance-label { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #8FAE97; }
.balance-card .balance-value { font-family: var(--font-mono); font-size: 2.1rem; font-weight: 700; color: #6FE08F; }

.account-pane { display: none; }
.account-pane.is-active { display: block; }

.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; background: var(--paper); }
.data-table th {
  text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint); padding: 10px 12px; border-bottom: 2px solid var(--line);
}
.data-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); }
.data-table .mono { font-family: var(--font-mono); font-size: .82rem; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .74rem; font-weight: 700; }
.tag-green { background: var(--green-soft); color: var(--green-dark); }
.tag-red { background: var(--red-soft); color: #A02722; }
.tag-gray { background: #EEF1EF; color: var(--ink-soft); }
.tag-blue { background: var(--blue-soft); color: var(--blue-dark); }

/* ---------- accordion (FAQ) ---------- */

.accordion { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-weight: 800; font-size: .98rem; color: var(--green-ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.2rem; color: var(--green); transition: transform .15s; }
.acc-item[open] summary::after { transform: rotate(45deg); }
.acc-item[open] summary { background: var(--green-soft); }
.acc-body { padding: 4px 22px 20px; color: var(--ink-soft); font-size: .95rem; }
.acc-body p:last-child { margin-bottom: 0; }

/* ---------- calculator ---------- */

.calc-card { max-width: 640px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-result {
  background: var(--green-soft); border: 1px solid var(--green-line);
  border-radius: var(--radius-sm); padding: 18px 20px; margin-top: 8px;
}
.calc-result .row { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 5px; }
.calc-result .row strong { font-family: var(--font-mono); }
.calc-result .row.big { font-size: 1.15rem; color: var(--green-dark); font-weight: 800; }

/* ---------- prose (legal & articles) ---------- */

.page-hero {
  background: linear-gradient(115deg, var(--green-deep), var(--green-ink));
  color: #fff; padding: 52px 0 46px;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero .page-sub { color: #B9CDBF; max-width: 68ch; margin: 0; }
.page-hero .crumbs { font-size: .8rem; color: #8FAE97; margin-bottom: 16px; }
.page-hero .crumbs a { color: #B9CDBF; }

.prose-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; padding: 44px 0 72px; align-items: start; }
.toc { position: sticky; top: 92px; font-size: .88rem; }
.toc h4 { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; color: var(--ink-soft); border-left: 2px solid transparent; margin-left: -2px; }
.toc li a:hover { color: var(--green-dark); border-left-color: var(--green); text-decoration: none; }

.prose { max-width: 76ch; }
.prose h2 { margin-top: 2.2em; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; scroll-margin-top: 100px; }
.prose p, .prose li { color: #444B47; }
.prose li { margin-bottom: .4em; }
.prose table.data-table { margin: 1.4em 0; }
.prose .updated { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-faint); }

.notice {
  border-left: 4px solid var(--green); background: var(--green-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px; margin: 1.5em 0; font-size: .93rem;
}
.notice.warn { border-color: var(--amber); background: var(--amber-soft); }
.notice.danger { border-color: var(--red); background: var(--red-soft); }
.notice p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */

.site-footer { background: #08170E; color: #A7BBAD; margin-top: 0; }
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px;
  padding: 54px 0 40px;
}
.footer-main h4 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-main ul { list-style: none; padding: 0; margin: 0; }
.footer-main li { margin-bottom: 9px; }
.footer-main a { color: #A7BBAD; font-size: .9rem; }
.footer-main a:hover { color: #fff; }
.footer-about { font-size: .88rem; }
.footer-about .logo { margin-bottom: 14px; }

.pay-badges { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.08); }
.pay-badge {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,.2); color: #DCE9DF;
  border-radius: 6px; padding: 6px 12px; background: rgba(255,255,255,.04);
}

.footer-legal {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 26px 0 20px; font-size: .78rem; line-height: 1.7; color: #7E937F;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: start;
}
.age-badge {
  width: 58px; height: 58px; border-radius: 50%;
  border: 3px solid var(--amber); color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; flex-shrink: 0;
}
.footer-legal p { margin-bottom: .7em; }
.footer-legal strong { color: #A7BBAD; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .76rem; color: #62755F;
}

/* ---------- cookie bar & toast ---------- */

.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 720px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-pop); padding: 20px 22px;
  display: none; gap: 18px; align-items: center; flex-wrap: wrap;
}
.cookie-bar.is-visible { display: flex; animation: rise .4s ease both; }
.cookie-bar p { margin: 0; font-size: .85rem; flex: 1 1 320px; }
.cookie-bar .cookie-actions { display: flex; gap: 8px; }

.toast {
  position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 20px);
  background: var(--green-ink); color: #fff; border-radius: 10px;
  padding: 13px 22px; font-weight: 700; font-size: .9rem;
  box-shadow: var(--shadow-pop); z-index: 100; opacity: 0;
  transition: opacity .25s, transform .25s; pointer-events: none; max-width: 90vw; text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* mobile kupon fab */
.kupon-fab {
  display: none; position: fixed; right: 16px; bottom: 16px; z-index: 80;
  background: var(--green); color: #fff; border: 0; border-radius: 99px;
  padding: 14px 20px; font-family: var(--font-body); font-weight: 800; font-size: .95rem;
  box-shadow: var(--shadow-pop); cursor: pointer; align-items: center; gap: 8px;
}
.kupon-fab .kupon-count {
  font-family: var(--font-mono); background: rgba(255,255,255,.25); border-radius: 99px;
  min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  font-size: .78rem; padding: 0 6px;
}

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-inview { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 1220px) and (min-width: 901px) {
  .site-header .container { gap: 12px; }
  .main-nav { gap: 0; }
  .main-nav > a, .nav-drop > button { padding: 10px 8px; font-size: .84rem; }
  .logo { font-size: 1.05rem; }
}

@media (max-width: 1120px) {
  .sport-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .kupon-col { position: fixed; inset: auto 0 0 0; z-index: 85; padding: 0 12px 12px; display: none; }
  .kupon-col.is-open { display: block; }
  .kupon { position: static; max-height: 70vh; overflow: auto; box-shadow: var(--shadow-pop); }
  .kupon-fab { display: inline-flex; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 34px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { padding: 44px 24px; }
  .account-layout { grid-template-columns: 1fr; }
  .account-menu { position: static; }
  .prose-layout { grid-template-columns: 1fr; }
  .toc { position: static; margin-bottom: 10px; }

  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--green-deep); flex-direction: column; align-items: stretch;
    padding: 12px 16px 18px; gap: 4px; box-shadow: 0 20px 30px rgba(8,23,14,.4);
  }
  .main-nav.is-open { display: flex; }
  .main-nav > a, .nav-drop > button { padding: 12px 14px; }
  .nav-drop-menu { position: static; box-shadow: none; background: rgba(255,255,255,.06); margin-top: 4px; }
  .nav-drop-menu a { color: #D6E5DA; }
  .nav-drop-menu a:hover { background: rgba(255,255,255,.1); color: #fff; }
  .nav-toggle { display: flex; }
  .header-auth .btn-ghost-light { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 44px 0; }
  .site-header .container { gap: 8px; min-height: 60px; }
  .logo { font-size: .98rem; }
  .header-auth .btn, .header-user .btn { padding: 8px 11px; font-size: .78rem; }
  .user-balance { display: none; }
  .btn { white-space: normal; }
  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .sport-layout { grid-template-columns: 1fr; }
  .side-nav { position: static; }
  .side-nav ul { display: flex; overflow-x: auto; padding: 8px; gap: 4px; }
  .side-nav li { flex-shrink: 0; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .event-row { grid-template-columns: 1fr; }
  .odds { justify-content: stretch; }
  .odd-btn { flex: 1; }
  .topbar .lic { display: none; }
  .footer-legal { grid-template-columns: 1fr; }
}
