@charset "UTF-8";
/* mundial.betside.pl - glowny arkusz styli */

/* ── Zmienne ─────────────────────────────────────────────────────── */
:root {
  --bg-deep:    #080c14;
  --bg-dark:    #0b1322;
  --bg-navy:    #0f1a2e;
  --bg-card:    #111d35;
  --bg-card2:   #162240;

  --gold:       #f5a623;
  --gold-light: #ffc85c;
  --gold-dark:  #c97f0a;
  --orange:     #e8762a;

  --text:       #f0f4ff;
  --text-muted: #8a9bc0;
  --text-dim:   #4a5c80;
  --border:     rgba(255,255,255,0.08);

  --header-h:   64px;
  --radius:     12px;
  --radius-sm:  8px;

  --gold-glow:  0 0 24px rgba(245,166,35,0.35);
  --card-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }

/* ── Utilities ───────────────────────────────────────────────────── */
.container {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.5rem;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #000;
  border-color: transparent;
  box-shadow: var(--gold-glow);
}
.btn--gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(245,166,35,.55);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,0.25);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn--ghost:hover { color: var(--text); }
.btn--lg  { padding: .85rem 2.2rem; font-size: 1.05rem; }
.btn--sm  { padding: .4rem 1rem; font-size: .85rem; }
.btn--full { width: 100%; justify-content: center; }

/* ── Flash messages ──────────────────────────────────────────────── */
.flash {
  padding: .85rem 1.5rem;
  border-radius: var(--radius-sm);
  margin: 1rem auto;
  width: min(100%, 700px);
  font-weight: 600;
  text-align: center;
}
.flash--success { background: rgba(34,197,94,.15); border: 1px solid rgba(34,197,94,.4); color: #4ade80; }
.flash--error   { background: rgba(239,68,68,.15);  border: 1px solid rgba(239,68,68,.4);  color: #f87171; }

/* ═══════════════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(8, 12, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.site-header.scrolled {
  background: rgba(8, 12, 20, 0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,.5);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.header-logo img {
  height: 38px;
  width: auto;
  /* logo ma białe "side" — na ciemnym tle wygląda dobrze */
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: .25rem;
}

.nav-link {
  display: block;
  padding: .4rem .7rem;
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 500;
  border-radius: 6px;
  transition: all .2s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link--active {
  color: var(--text);
  background: rgba(255,255,255,.06);
}
.nav-link--active { color: var(--gold) !important; }

.header-cta {
  display: flex;
  gap: .5rem;
  margin-left: .5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,12,20,.45) 0%,
    rgba(8,12,20,.65) 50%,
    rgba(8,12,20,.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 1.25rem;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(245,166,35,.12);
  border: 1px solid rgba(245,166,35,.3);
  color: var(--gold);
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
  color: var(--text);
}
.hero-title--gold {
  color: var(--gold);
  text-shadow: 0 0 40px rgba(245,166,35,.4);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 520px;
  font-weight: 400;
}

/* ── Countdown ───────────────────────────────────────────────────── */
.countdown {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2.5rem;
}
.countdown-unit {
  text-align: center;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem 1.1rem;
  min-width: 70px;
}
.countdown-val {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown-label {
  display: block;
  font-size: .7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .2rem;
}
.countdown-sep {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  opacity: .5;
  margin-bottom: 1.2rem;
}

/* ── Hero CTA ────────────────────────────────────────────────────── */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2.5rem;
}

/* ── Hero stats ──────────────────────────────────────────────────── */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.hero-stat {
  text-align: center;
}
.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.hero-stat span {
  font-size: .75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hero-stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ═══════════════════════════════════════════════════════════════════
   SECTIONS
═══════════════════════════════════════════════════════════════════ */
.section {
  padding: 5rem 0;
}
.section--dark  { background: var(--bg-dark); }
.section--navy  { background: var(--bg-navy); }
.section--cta   {
  background: linear-gradient(135deg, var(--bg-navy) 0%, #0a1628 100%);
  border-top: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: .5rem;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ── Animate in ──────────────────────────────────────────────────── */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--delay, 0ms);
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Steps ───────────────────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.step {
  flex: 1 1 200px;
  max-width: 240px;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  transition: transform .2s, border-color .2s;
}
.step:hover {
  transform: translateY(-4px);
  border-color: rgba(245,166,35,.3);
}
.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(245,166,35,.1);
  border: 1px solid rgba(245,166,35,.25);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.step-num {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--gold);
  color: #000;
  font-size: .7rem;
  font-weight: 800;
  padding: .2rem .5rem;
  border-radius: 0 var(--radius) 0 var(--radius-sm);
}
.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.step p {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.step-arrow {
  display: flex;
  align-items: center;
  padding: 0 .5rem;
  font-size: 1.5rem;
  color: var(--text-dim);
  margin-top: 2rem;
  align-self: center;
}

/* ── Points ──────────────────────────────────────────────────────── */
.points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}
.points-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform .2s, border-color .2s;
}
.points-card:hover { transform: translateY(-4px); }
.points-card--gold {
  border-color: rgba(245,166,35,.4);
  background: linear-gradient(160deg, #1a2540 0%, #1e2d4a 100%);
  box-shadow: 0 0 24px rgba(245,166,35,.1);
}
.points-card--dim { opacity: .75; }
.points-val {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: .5rem;
}
.points-card--dim .points-val { color: var(--text-muted); }
.points-label {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.points-card p {
  font-size: .875rem;
  color: var(--text-muted);
}
.points-note {
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
}

/* ── Scoring blocks ──────────────────────────────────────────────── */
.scoring-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.scoring-phase {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  padding: .85rem 1.5rem;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--border);
}
.scoring-phase-icon { font-size: 1.1rem; }
.scoring-rows { padding: .5rem 0; }
.scoring-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: .85rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .15s;
}
.scoring-row:last-child { border-bottom: none; }
.scoring-row:hover { background: rgba(255,255,255,.025); }
.scoring-pts {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-muted);
  min-width: 56px;
  text-align: center;
  flex-shrink: 0;
}
.scoring-row--best .scoring-pts  { color: var(--gold); }
.scoring-row--special .scoring-pts { color: #a78bfa; }
.scoring-desc {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.scoring-desc strong {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
}
.scoring-desc span {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ── Prizes ──────────────────────────────────────────────────────── */
.prizes {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
/* Desktop: HTML to 1–2–3, CSS przestawia na 2–1–3 (podium) */
@media (min-width: 601px) {
  .prize--gold   { order: 2; }
  .prize--silver { order: 1; }
  .prize--bronze { order: 3; }
}
.prize {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  flex: 1 1 200px;
  max-width: 260px;
  transition: transform .2s;
}
.prize:hover { transform: translateY(-4px); }
.prize--gold {
  border-color: rgba(245,166,35,.4);
  background: linear-gradient(160deg, #1a2540, #1e2d4a);
  box-shadow: 0 0 40px rgba(245,166,35,.15);
  transform: scale(1.05);
  max-width: 300px;
}
.prize--gold:hover { transform: scale(1.05) translateY(-4px); }
.prize--silver { border-color: rgba(200,200,220,.3); }
.prize--bronze { border-color: rgba(205,127,50,.3); }
.prize-crown { font-size: 2rem; margin-bottom: .5rem; }
.prize-place {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.prize-amount {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: .25rem;
}
.prize-desc {
  font-size: .875rem;
  color: var(--text-muted);
}
.prize-extra {
  display: inline-block;
  margin-top: .6rem;
  background: rgba(245,166,35,.12);
  border: 1px solid rgba(245,166,35,.25);
  color: var(--gold);
  font-size: .8rem;
  font-weight: 700;
  padding: .2rem .7rem;
  border-radius: 50px;
}
.prize-bonus-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid rgba(245,166,35,.25);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.prize-bonus-icon { font-size: 1.5rem; flex-shrink: 0; }
.prize-bonus-text { flex: 1; }
.prize-bonus-text strong { display: block; color: var(--text); font-weight: 700; margin-bottom: .2rem; }
.prize-bonus-text span   { font-size: .85rem; color: var(--text-muted); }
.prize-bonus-pts {
  font-size: .9rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.prizes-note {
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
}
.prizes-note strong { color: var(--text); }

/* ── Prize tiers ─────────────────────────────────────────────────── */
.prize-tiers {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 2rem auto;
  max-width: 640px;
}
.prize-tier-header {
  display: grid;
  grid-template-columns: 100px 1fr 140px;
  padding: .6rem 1.5rem;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--border);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-dim);
}
.prize-tier {
  display: grid;
  grid-template-columns: 100px 1fr 140px;
  align-items: center;
  padding: .9rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .15s;
}
.prize-tier:last-child { border-bottom: none; }
.prize-tier:hover { background: rgba(255,255,255,.025); }
.prize-tier-range {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-muted);
}
.tier-freebet {
  display: inline-block;
  background: rgba(245,166,35,.1);
  border: 1px solid rgba(245,166,35,.22);
  color: var(--gold);
  font-size: .88rem;
  font-weight: 800;
  padding: .25rem .75rem;
  border-radius: 50px;
  white-space: nowrap;
}
.prize-tier-count {
  font-size: .8rem;
  color: var(--text-dim);
  text-align: right;
}

@media (max-width: 480px) {
  .prize-tier-header,
  .prize-tier {
    grid-template-columns: 70px 1fr 80px;
    padding: .8rem 1rem;
  }
  .prize-tier-header span:last-child { display: block; }
  .prize-tier-count { display: block; }
}

/* ── CTA block ───────────────────────────────────────────────────── */
.cta-block {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-block h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.cta-block p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════════
   AUTH FORMS
═══════════════════════════════════════════════════════════════════ */
.auth-section { min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: min(100%, 440px);
  margin: 2rem auto;
}
.auth-title {
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: .25rem;
}
.auth-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
  margin-bottom: 1.75rem;
}
.auth-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  padding: .7rem 1rem;
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,166,35,.15);
}
.form-hint {
  font-size: .75rem;
  color: var(--text-dim);
}
.form-checks { display: flex; flex-direction: column; gap: .75rem; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  cursor: pointer;
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: .1rem;
  accent-color: var(--gold);
  cursor: pointer;
}
.form-check--optional {
  padding-top: .5rem;
  border-top: 1px solid var(--border);
  margin-top: .25rem;
  color: var(--text-dim);
}
.form-check--optional input[type="checkbox"] { accent-color: var(--text-muted); }

.register-prize-notice {
  margin-top: .5rem;
  padding: .75rem 1rem;
  background: rgba(251,191,36,.07);
  border: 1px solid rgba(251,191,36,.25);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.register-prize-notice strong { color: var(--text); }

.auth-links {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.5rem;
  font-size: .875rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
}
.footer-inner { display: flex; flex-direction: column; gap: 2rem; }
.footer-top {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-logo img { opacity: .8; transition: opacity .2s; }
.footer-logo:hover img { opacity: 1; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
}
.footer-nav a {
  font-size: .85rem;
  color: var(--text-muted);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--gold); }
.footer-social {
  display: flex;
  gap: .75rem;
  margin-left: auto;
}
.footer-social a {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  transition: all .2s;
}
.footer-social a:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(245,166,35,.08);
}
.footer-disclaimer {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.disclaimer-logos {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-shrink: 0;
}
.disclaimer-logos img { opacity: .7; }
.disclaimer-text {
  font-size: .78rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.disclaimer-text a { color: var(--text-dim); text-decoration: underline; }
.footer-bottom {
  text-align: center;
  font-size: .8rem;
  color: var(--text-dim);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
  }
  .header-nav.nav-open { display: flex; }
  .nav-list { flex-direction: column; gap: .25rem; }
  .nav-link { padding: .6rem 1rem; }
  .header-cta { padding: .5rem 0; }
  .step-arrow { display: none; }
  .steps { gap: 1rem; }
}

@media (max-width: 600px) {
  .countdown-unit { min-width: 56px; padding: .6rem .75rem; }
  .countdown-val  { font-size: 1.6rem; }
  .hero-cta { flex-direction: column; }
  .hero-stats { gap: 1rem; }

  /* Podium nagród — 3 równe kolumny, równa wysokość */
  .prizes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: .5rem;
  }
  .prize--gold { transform: none; max-width: none; }
  .prize--gold:hover { transform: translateY(-4px); }
  .prize { flex: none; max-width: none; padding: .85rem .6rem; }
  .prize-amount { font-size: 1.1rem; }
  .prize-extra  { font-size: .68rem; padding: .12rem .4rem; margin-top: .4rem; }
  .prize-desc   { font-size: .72rem; }
  .prize-place  { font-size: .7rem; }
  .prize-crown  { font-size: 1rem; margin-bottom: .3rem; }

  /* Kroki — grid 2 kolumny, równe wysokości */
  .steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    align-items: stretch;
  }
  .step-arrow { display: none; }
  .step { flex: none; max-width: none; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-social { margin-left: 0; }
}

/* ═══════════════════════════════════════════════════════════════════
   HEADER — avatar zalogowanego usera
═══════════════════════════════════════════════════════════════════ */
.header-user {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.header-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.header-avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.header-nick {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════
   PANEL UŻYTKOWNIKA
═══════════════════════════════════════════════════════════════════ */
.panel-wrap {
  min-height: calc(100svh - var(--header-h));
  background: var(--bg-dark);
  padding: 2.5rem 0 4rem;
}

/* ── Baner zgoda marketingowa ───────────────────────────────────── */
.panel-consent-banner {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: rgba(251,191,36,.08);
  border: 1px solid rgba(251,191,36,.3);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: .9rem 1.1rem;
  margin-bottom: 1.25rem;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.panel-consent-banner-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .05rem; }
.panel-consent-banner-text strong { color: var(--text); }
.panel-consent-banner-link {
  display: inline-block;
  margin-top: .35rem;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}
.panel-consent-banner-link:hover { text-decoration: underline; }

/* ── Karta usera ────────────────────────────────────────────────── */
.user-card {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  position: relative;
}
.user-card-avatar {
  position: relative;
  flex-shrink: 0;
}
.avatar-img,
.avatar-initials {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
}
.avatar-edit-btn {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.avatar-edit-btn:hover { background: var(--gold-light); transform: scale(1.1); }

.user-card-info { flex: 1; min-width: 200px; }
.user-card-nick {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: .2rem;
}
.user-card-email {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.user-card-stats {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.user-stat { text-align: center; }
.user-stat-val {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.user-stat-label {
  font-size: .7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.user-stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}
.user-card-ranking-btn { margin-left: auto; }

/* ── Zakładki ───────────────────────────────────────────────────── */
.panel-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.5rem;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 5px;
}
.panel-tab {
  flex: 1;
  padding: .55rem 1.25rem;
  background: none;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
}
.panel-tab--active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.panel-panel { display: none; }
.panel-panel--visible { display: block; }

/* ── Ranking preview ────────────────────────────────────────────── */
.ranking-preview {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.ranking-preview .btn { margin-top: 1rem; }

/* ── Settings blocks ────────────────────────────────────────────── */
.settings-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.25rem;
  max-width: 540px;
}
.settings-block--danger { border-color: rgba(239,68,68,.25); }
.settings-block--consent-warn { border-color: rgba(251,191,36,.35); }
.settings-consent-alert {
  background: rgba(251,191,36,.07);
  border: 1px solid rgba(251,191,36,.25);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: .7rem 1rem;
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.settings-consent-alert strong { color: var(--text); }
.settings-desc--ok { color: #4ade80; margin-bottom: 1.25rem; font-size: .875rem; }
.settings-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.settings-title--danger { color: #f87171; }
.settings-desc {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.settings-form { display: flex; flex-direction: column; gap: 1rem; }
.btn--danger {
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.4);
  color: #f87171;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 700;
  font-size: .9rem;
  padding: .6rem 1.4rem;
  cursor: pointer;
  transition: all .2s;
}
.btn--danger:hover {
  background: rgba(239,68,68,.25);
  color: #fca5a5;
}

/* ── Modal ──────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.modal-open { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: var(--radius);
  padding: 2rem;
  width: min(100%, 420px);
}
.modal h3 { font-size: 1.1rem; margin-bottom: .75rem; }
.modal p  { font-size: .875rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.modal-btns { display: flex; gap: .75rem; margin-top: 1.25rem; }

/* ═══════════════════════════════════════════════════════════════════
   RANKING PAGE
═══════════════════════════════════════════════════════════════════ */
.ranking-wrap {
  min-height: calc(100svh - var(--header-h));
  background: var(--bg-dark);
  padding-bottom: 4rem;
}
.ranking-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 2rem;
}
.ranking-empty h2 { font-size: 1.4rem; color: var(--text); margin-bottom: .75rem; }
.ranking-empty p  { line-height: 1.7; }

/* ── Podium ─────────────────────────────────────────────────────── */
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: .75rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
/* Desktop: HTML to 1–2–3, CSS przestawia na 2–1–3 */
@media (min-width: 601px) {
  .podium-place--1 { order: 2; }
  .podium-place--2 { order: 1; }
  .podium-place--3 { order: 3; }
}
.podium-place {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  flex: 0 0 auto;
}
.podium-avatar img,
.podium-initials {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  border: 2px solid var(--border);
}
.podium-avatar--big img,
.podium-place--1 .podium-initials {
  width: 76px;
  height: 76px;
  border-color: var(--gold);
  border-width: 3px;
}
.podium-crown { font-size: 1.5rem; }
.podium-nick { font-size: .85rem; font-weight: 700; text-align: center; max-width: 100px; }
.podium-pts { font-size: .8rem; color: var(--text-muted); }
.podium-pts--gold { color: var(--gold); font-weight: 700; }
.podium-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  width: 100px;
  border-radius: 8px 8px 0 0;
}
.podium-bar--1 { height: 80px; background: rgba(245,166,35,.15); border: 1px solid rgba(245,166,35,.3); }
.podium-bar--2 { height: 60px; background: rgba(200,200,220,.08); border: 1px solid rgba(200,200,220,.2); }
.podium-bar--3 { height: 44px; background: rgba(205,127,50,.08); border: 1px solid rgba(205,127,50,.2); }

/* ── Tabela rankingu ────────────────────────────────────────────── */
.ranking-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 1.5rem;
}
.ranking-table table {
  width: 100%;
  border-collapse: collapse;
}
.ranking-table th {
  background: rgba(255,255,255,.03);
  padding: .75rem 1.25rem;
  text-align: left;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.ranking-table td {
  padding: .75rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: .9rem;
}
.ranking-table tr:last-child td { border-bottom: none; }
.ranking-table tr:hover td { background: rgba(255,255,255,.02); }
.ranking-row--me td { background: rgba(245,166,35,.05) !important; }
.ranking-row--me:hover td { background: rgba(245,166,35,.08) !important; }

.rank-pos { width: 56px; text-align: center; }
.medal    { font-size: 1.2rem; }
.rank-num { font-size: .95rem; font-weight: 700; color: var(--text-muted); }
.rank-user { display: flex; align-items: center; gap: .75rem; }
.rank-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.rank-avatar--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 800;
  color: #fff;
}
.rank-nick { font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.rank-me-badge {
  background: rgba(245,166,35,.15);
  color: var(--gold);
  font-size: .7rem;
  font-weight: 700;
  padding: .1rem .5rem;
  border-radius: 50px;
  border: 1px solid rgba(245,166,35,.3);
}
.rank-points { font-weight: 800; color: var(--gold); width: 80px; }
.rank-preds  { color: var(--text-muted); font-size: .85rem; }

/* ── Lista rankingowa (nowa) ────────────────────────────────────── */
.ranking-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.rl-row {
  display: flex;
  align-items: center;
  gap: .9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .65rem 1rem;
  transition: background .15s;
}
.rl-row:hover { background: var(--bg-card2); }
.rl-row--1 { border-color: rgba(245,166,35,.35); background: rgba(245,166,35,.05); }
.rl-row--2 { border-color: rgba(200,200,220,.25); background: rgba(200,200,220,.04); }
.rl-row--3 { border-color: rgba(205,127,50,.25); background: rgba(205,127,50,.04); }
.rl-row--me { border-color: rgba(245,166,35,.5) !important; box-shadow: 0 0 0 1px rgba(245,166,35,.2); }

.rl-pos {
  width: 42px;
  flex-shrink: 0;
  text-align: center;
}
.rl-medal { font-size: 1.25rem; line-height: 1; }
.rl-num   { font-size: .9rem; font-weight: 700; color: var(--text-muted); }

.rl-avatar {
  flex-shrink: 0;
}
.rl-avatar img,
.rl-initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 800;
  color: #fff;
  border: 2px solid var(--border);
}
.rl-row--1 .rl-initials,
.rl-row--1 .rl-avatar img { border-color: var(--gold); }

.rl-nick {
  flex: 1;
  font-weight: 600;
  font-size: .925rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rl-row--1 .rl-nick { color: var(--gold-light); }

.rl-pts {
  display: flex;
  align-items: baseline;
  gap: .25rem;
  flex-shrink: 0;
}
.rl-pts strong { font-size: 1.05rem; font-weight: 800; color: var(--gold); }
.rl-pts-label  { font-size: .75rem; color: var(--text-muted); }

/* ── Paginacja ──────────────────────────────────────────────────── */
.ranking-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.rp-btn {
  padding: .5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.rp-btn:hover { background: var(--bg-card2); border-color: var(--gold); color: var(--gold); }
.rp-btn--disabled { opacity: .35; pointer-events: none; }
.rp-pages { display: flex; gap: .25rem; }
.rp-page {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
.rp-page:hover      { background: var(--bg-card2); color: var(--text); }
.rp-page--active    { background: var(--gold); border-color: var(--gold); color: #000; font-weight: 800; }
.ranking-total {
  text-align: center;
  color: var(--text-muted);
  font-size: .8rem;
  margin-top: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════
   STRONA TYPUJ
═══════════════════════════════════════════════════════════════════ */
.typuj-wrap {
  min-height: calc(100svh - var(--header-h));
  background: var(--bg-dark);
  padding: 2rem 0 4rem;
}
.typuj-header { margin-bottom: 2rem; }
.typuj-title  { font-size: clamp(1.4rem,3vw,1.8rem); font-weight: 800; margin-bottom: .6rem; }
.typuj-deadline {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(245,166,35,.08);
  border: 1px solid rgba(245,166,35,.2);
  color: var(--gold);
  font-size: .85rem;
  padding: .4rem 1rem;
  border-radius: 50px;
}
.typuj-deadline--closed {
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.2);
  color: #f87171;
}
.deadline-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s infinite;
}

/* ── Blok typów ─────────────────────────────────────────────────── */
.typuj-form { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.typuj-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
}
.typuj-block-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.typuj-block-icon { font-size: 1.2rem; }
.typuj-block-header h2 { font-size: 1rem; font-weight: 700; flex: 1; }
.typuj-block-pts {
  font-size: .75rem;
  font-weight: 700;
  color: var(--gold);
  background: rgba(245,166,35,.1);
  border: 1px solid rgba(245,166,35,.2);
  padding: .2rem .7rem;
  border-radius: 50px;
}
.typuj-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 1.5rem;
}
.typuj-fields--2col { grid-template-columns: repeat(2, 1fr); }
.typuj-field { display: flex; flex-direction: column; gap: .6rem; }
.typuj-field-label { font-size: .8rem; font-weight: 600; color: var(--text-muted); }
.typuj-place        { display: inline-flex; align-items: center; gap: .35rem; }
.typuj-place--gold  { color: var(--gold); }
.typuj-place--silver { color: #c8c8dc; }
.typuj-place--bronze { color: #cd7f32; }
.typuj-odds {
  font-size: .8rem;
  color: var(--text-muted);
}
.typuj-odds strong { color: var(--gold); }
.typuj-readonly {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .7rem 1rem;
  font-size: .95rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.typuj-text-input {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: .95rem;
  padding: .7rem 1rem;
  outline: none;
  transition: border-color .2s;
}
.typuj-text-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,166,35,.12);
}

/* ── Country Picker ──────────────────────────────────────────────── */
.country-picker { position: relative; }
.cp-display {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .65rem 1rem;
  cursor: pointer;
  min-height: 44px;
  transition: border-color .2s;
  user-select: none;
}
.cp-display:hover { border-color: rgba(255,255,255,.2); }
.cp-display--filled { border-color: rgba(245,166,35,.35); }
.cp-flag { width: 24px; height: 18px; object-fit: contain; flex-shrink: 0; }
.cp-name { font-size: .9rem; font-weight: 600; flex: 1; }
.cp-placeholder { color: var(--text-dim); font-size: .875rem; }
.cp-clear {
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; font-size: 1.1rem; line-height: 1;
  padding: 0 .1rem; transition: color .15s;
}
.cp-clear:hover { color: #f87171; }
.cp-input {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 44px;
  background: rgba(15,26,46,.97);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: .9rem;
  padding: 0 1rem;
  outline: none;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  transition: opacity .15s;
}
.cp-picker--active .cp-input {
  opacity: 1;
  pointer-events: all;
}
.cp-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #0f1a2e;
  border: 1px solid rgba(245,166,35,.3);
  border-radius: var(--radius-sm);
  max-height: 240px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.cp-dropdown--open { display: block; }
.cp-option {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .6rem 1rem;
  cursor: pointer;
  font-size: .875rem;
  transition: background .12s;
}
.cp-option:hover { background: rgba(245,166,35,.1); color: var(--gold); }
.cp-opt-flag { width: 22px; height: 16px; object-fit: contain; flex-shrink: 0; }

/* ── Akcje ───────────────────────────────────────────────────────── */
.typuj-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: .5rem;
}
.typuj-saved-info {
  font-size: .875rem;
  color: #4ade80;
}

/* ── Grupy ───────────────────────────────────────────────────────── */
.typuj-groups { margin-top: 3rem; }
.typuj-groups-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.typuj-groups-header h2 { font-size: 1.2rem; font-weight: 800; }
.typuj-groups-sub { font-size: .85rem; color: var(--text-muted); }
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.group-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.group-card-name {
  background: rgba(245,166,35,.08);
  border-bottom: 1px solid rgba(245,166,35,.15);
  color: var(--gold);
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .5rem 1rem;
}
.group-teams { list-style: none; padding: .5rem 0; }
.group-team {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 1rem;
  font-size: .875rem;
  border-bottom: 1px solid rgba(255,255,255,.03);
  transition: background .12s;
}
.group-team:last-child { border-bottom: none; }
.group-team:hover { background: rgba(255,255,255,.02); }
.group-team-logo {
  width: 22px; height: 16px;
  object-fit: contain; flex-shrink: 0;
}
.group-team-name { flex: 1; font-weight: 500; }
.group-team-pts {
  font-size: .75rem; font-weight: 700;
  color: var(--gold);
  background: rgba(245,166,35,.1);
  padding: .1rem .45rem;
  border-radius: 4px;
}
.text-dim { color: var(--text-dim); }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .typuj-fields { grid-template-columns: 1fr; }
  .typuj-fields--2col { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .typuj-block-pts { display: none; }
  .typuj-groups-header { flex-direction: column; gap: .25rem; }
}

/* ── Player Picker dropdown ─────────────────────────────────────── */
.player-picker { position: relative; }
.player-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #0f1a2e;
  border: 1px solid rgba(245,166,35,.3);
  border-radius: var(--radius-sm);
  max-height: 260px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.player-drop--open { display: block; }
.player-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .55rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: background .1s;
}
.player-opt:last-child { border-bottom: none; }
.player-opt:hover,
.player-opt--active { background: rgba(245,166,35,.1); }
.player-opt-name { font-size: .875rem; font-weight: 600; }
.player-opt-pos  {
  font-size: .72rem;
  color: var(--text-dim);
  background: rgba(255,255,255,.05);
  padding: .1rem .45rem;
  border-radius: 4px;
  white-space: nowrap;
}

.typuj-groups--top {
  margin-top: 0;
  margin-bottom: 2rem;
}

.header-user {
  text-decoration: none;
  border-radius: 50px;
  padding: .2rem .5rem .2rem .2rem;
  border: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.header-user:hover,
.header-user--active {
  border-color: rgba(245,166,35,.35);
  background: rgba(245,166,35,.06);
}
.header-nick { color: var(--text-muted); }
.header-user:hover .header-nick,
.header-user--active .header-nick { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════════════
   SEO TEXT BLOCK
═══════════════════════════════════════════════════════════════════ */
.section--seo {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 4rem 0 3.5rem;
}
.seo-block {
  max-width: 780px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.8;
}
.seo-block h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .6rem;
}
.seo-block h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  margin: 1.75rem 0 .5rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: .8rem;
}
.seo-block p {
  margin: 0 0 1rem;
}
.seo-disclaimer {
  margin-top: 2rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: .8rem !important;
  color: var(--text-dim) !important;
  line-height: 1.6;
}

/* ── */
.cta-ranking-note {
  margin-top: 1.25rem;
  font-size: .85rem;
  color: var(--text-muted);
  opacity: .8;
}

/* ═══════════════════════════════════════════════════════════════════
   MECZE PAGE — typowanie meczów
═══════════════════════════════════════════════════════════════════ */
.mecze-page { padding: 2rem 0 4rem; min-height: 70vh; }

.mecze-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.mecze-tab {
  background: none;
  border: none;
  color: var(--text-muted);
  font: 600 .9rem/1 'Outfit', sans-serif;
  cursor: pointer;
  padding: .75rem 1.25rem;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
  position: relative;
}
.mecze-tab--active { color: var(--gold); border-bottom-color: var(--gold); }
.mecze-tab--bonus  { color: var(--orange, #f5a623); }
.tab-badge {
  background: var(--gold);
  color: #000;
  font-size: .7rem;
  padding: .1rem .35rem;
  border-radius: 99px;
  margin-left: .25rem;
}
.tab-content--hidden { display: none; }

.mecze-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}
.mecze-empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.mecze-empty h2 { color: var(--text); margin-bottom: .5rem; }

/* ── Match day & cards ── */
.match-day { margin-bottom: 2.5rem; }
.match-day-header {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.day-badge {
  font-size: .7rem;
  padding: .2rem .6rem;
  border-radius: 99px;
  font-weight: 700;
}
.day-badge--today   { background: var(--gold); color: #000; }
.day-badge--tomorrow { background: var(--bg-card2); color: var(--text); border: 1px solid var(--border); }
.day-label { font-size: .8rem; color: var(--text-dim); font-weight: 400; }

.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: .75rem;
  transition: border-color .2s;
}
.match-card:hover { border-color: rgba(245,166,35,.3); }
.match-card--closing { border-color: rgba(245,100,35,.5); }

.match-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: .75rem;
}
.match-round { background: var(--bg-card2); padding: .2rem .5rem; border-radius: 4px; font-size: .75rem; }
.match-time  { color: var(--gold); font-weight: 700; }
.match-closing-badge { background: rgba(245,100,35,.2); color: #f5a023; font-weight: 700; padding: .15rem .5rem; border-radius: 4px; }

.match-teams {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.match-team {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
}
.match-team--home { justify-content: flex-end; text-align: right; }
.match-team--away { justify-content: flex-start; }
.team-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flag       { font-size: 1.2rem; flex-shrink: 0; }
.match-vs   { color: var(--text-dim); font-size: .85rem; font-weight: 700; flex-shrink: 0; }

.match-predict-form { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.predict-inputs { display: flex; align-items: center; gap: .5rem; }
.score-input {
  width: 52px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: .45rem .2rem;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}
.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.score-input:focus { outline: none; border-color: var(--gold); }
.score-sep { color: var(--text-muted); font-size: 1.25rem; font-weight: 700; }
.pred-saved { font-size: .8rem; color: var(--gold); }

/* ── Match card: mobile ── */
@media (max-width: 480px) {
  .match-card { padding: 1rem; }
  .match-teams { gap: .4rem; }
  .team-name { font-size: .9rem; }
  .flag { font-size: 1rem; }
  .score-input { width: 46px; font-size: 1.1rem; padding: .4rem .1rem; }
  .match-predict-form { align-items: stretch; }
  .predict-inputs { justify-content: center; }
}

/* ── Historia ── */
.history-list { display: flex; flex-direction: column; gap: .5rem; }
.history-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .85rem 1.25rem;
}
.history-row--exact   { border-left: 3px solid #22c55e; }
.history-row--partial { border-left: 3px solid var(--gold); }
.history-row--miss    { border-left: 3px solid var(--text-dim); }
.history-match { flex: 1; }
.history-round  { font-size: .75rem; color: var(--text-dim); display: block; }
.history-teams  { font-weight: 600; color: var(--text); }
.history-result { margin-left: .5rem; color: var(--gold); font-weight: 700; }
.history-result--live { color: #f87171; }
.history-pred   { font-size: .85rem; color: var(--text-muted); }
.pts-badge {
  font-size: .8rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 99px;
}
.pts-badge--pos     { background: rgba(34,197,94,.15); color: #22c55e; }
.pts-badge--zero    { background: rgba(255,255,255,.06); color: var(--text-dim); }
.pts-badge--live    { background: rgba(248,113,113,.15); color: #f87171; }
.pts-badge--pending { background: var(--bg-card2); color: var(--text-dim); }

/* ── Bonus tasks ── */
.bonus-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.bonus-card--answered { border-color: rgba(34,197,94,.3); }
.bonus-header { display: flex; align-items: baseline; gap: .75rem; margin-bottom: .5rem; flex-wrap: wrap; }
.bonus-pts    { background: var(--gold); color: #000; font-size: .8rem; font-weight: 700; padding: .2rem .6rem; border-radius: 99px; }
.bonus-title  { font-weight: 700; color: var(--text); }
.bonus-match  { font-size: .8rem; color: var(--text-muted); }
.bonus-question { color: var(--text-muted); margin: .5rem 0 1rem; }
.bonus-form   { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.bonus-input  { background: var(--bg-card2); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: .4rem .75rem; font-size: 1rem; width: 120px; }
.bonus-choices { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.bonus-choice { display: flex; align-items: center; gap: .35rem; color: var(--text-muted); cursor: pointer; }
.bonus-answered { color: var(--text); display: flex; align-items: center; gap: .75rem; }
.bonus-deadline { font-size: .78rem; color: var(--text-dim); margin-top: .75rem; }

/* ═══════════════════════════════════════════════════════════════════
   ADMIN PAGE
═══════════════════════════════════════════════════════════════════ */
.admin-page { padding: 1.5rem 0 4rem; min-height: 70vh; }
.admin-nav  {
  display: flex;
  gap: .25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .5rem;
}
.admin-nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: .9rem;
  padding: .5rem 1rem;
  border-radius: 6px 6px 0 0;
  border: 1px solid transparent;
  border-bottom: none;
  transition: color .2s, background .2s;
}
.admin-nav-link.active,
.admin-nav-link:hover { color: var(--text); background: var(--bg-card); border-color: var(--border); }

.admin-title { font-size: 1.6rem; font-weight: 800; color: var(--text); margin: 0 0 1.5rem; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.admin-toolbar .admin-title { margin: 0; }

.admin-stats { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.admin-stat {
  flex: 1;
  min-width: 120px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}
.admin-stat strong { display: block; font-size: 2rem; font-weight: 800; color: var(--gold); }
.admin-stat span   { font-size: .8rem; color: var(--text-muted); }
.admin-quick-links { display: flex; gap: .75rem; flex-wrap: wrap; }

.admin-collapse {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.admin-collapse summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--gold);
  font-size: .9rem;
}
.admin-collapse summary:hover { color: var(--gold-light); }

.admin-form { display: flex; flex-direction: column; gap: .75rem; padding-top: 1rem; }
.form-row   { display: flex; gap: .75rem; flex-wrap: wrap; }
.admin-form label { display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; color: var(--text-muted); flex: 1; min-width: 200px; }
.admin-form input,
.admin-form select,
.admin-form textarea {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: .45rem .75rem;
  font: 1rem 'Outfit', sans-serif;
  width: 100%;
}
.admin-form input:focus, .admin-form select:focus { outline: none; border-color: var(--gold); }

.admin-day { margin-bottom: 2rem; }
.admin-day-header {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin: 0 0 .75rem;
  padding: .4rem 0;
  border-bottom: 1px solid var(--border);
}
.admin-empty { color: var(--text-muted); padding: 2rem 0; text-align: center; }

.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-table th { text-align: left; padding: .6rem .75rem; background: var(--bg-card2); color: var(--text-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.admin-table td { padding: .6rem .75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr.row--finished td { background: rgba(34,197,94,.04); }
.admin-table tr.row--live td     { background: rgba(248,113,113,.06); }
.admin-table tr.row--cancelled td { opacity: .5; }
.td-match   { max-width: 220px; }
.td-round   { font-size: .7rem; color: var(--text-dim); }

.status-badge { font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 99px; white-space: nowrap; }
.status-badge--scheduled { background: rgba(245,166,35,.15); color: var(--gold); }
.status-badge--live      { background: rgba(248,113,113,.2);  color: #f87171; }
.status-badge--finished  { background: rgba(34,197,94,.15);   color: #22c55e; }
.status-badge--cancelled { background: rgba(255,255,255,.06); color: var(--text-dim); }

.inline-form  { display: flex; align-items: center; gap: .3rem; }
.score-mini   { width: 40px; text-align: center; background: var(--bg-card2); border: 1px solid var(--border); color: var(--text); border-radius: 4px; padding: .25rem; font-size: .85rem; }
.btn--xs      { font-size: .7rem; padding: .2rem .55rem; border-radius: 4px; }
.text-muted   { color: var(--text-muted); }
.text-gold    { color: var(--gold); }

/* Aggregation bars */
.agg-bars   { display: flex; flex-direction: column; gap: .4rem; margin: 1rem 0 1.5rem; }
.agg-row    { display: flex; align-items: center; gap: .75rem; }
.agg-score  { width: 50px; text-align: right; font-weight: 700; font-size: .9rem; color: var(--text); flex-shrink: 0; }
.agg-score--correct { color: #22c55e; }
.agg-bar-wrap { flex: 1; background: var(--bg-card2); border-radius: 4px; height: 10px; overflow: hidden; }
.agg-bar      { height: 100%; background: var(--gold); border-radius: 4px; min-width: 2px; }
.agg-cnt      { width: 60px; font-size: .8rem; color: var(--text-muted); flex-shrink: 0; }

.inline-resolve { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin: 1rem 0; background: var(--bg-card); padding: 1rem; border-radius: 8px; }

/* ── Admin nav link ── */
.nav-link--admin { color: #f59e0b !important; }

/* ═══════════════════════════════════════════════════════════════════
   HOMEPAGE — Dzienne zadania typerskie
═══════════════════════════════════════════════════════════════════ */
.zadania-lista  { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.5rem; }
.zadania-loading { text-align: center; color: var(--text-muted); padding: 2rem 0; }
.zadania-empty p { text-align: center; color: var(--text-muted); }

.zadanie-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  flex-wrap: wrap;
}
.zadanie-pts {
  background: var(--gold);
  color: #000;
  font-size: .8rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}
.zadanie-content { flex: 1; min-width: 200px; }
.zadanie-title   { display: block; font-weight: 700; color: var(--text); margin-bottom: .2rem; }
.zadanie-question { font-size: .85rem; color: var(--text-muted); margin: 0; }
.zadanie-deadline { font-size: .78rem; color: var(--text-dim); white-space: nowrap; align-self: center; flex-shrink: 0; }

.section-cta-small { text-align: center; margin-top: 1rem; }

/* ═══════════════════════════════════════════════════════════════════
   ADMIN MOBILE NAV
═══════════════════════════════════════════════════════════════════ */
.admin-nav-mobile {
  display: none;
}
@media (max-width: 640px) {
  .admin-nav { display: none; }
  .admin-nav-mobile {
    display: block;
    width: 100%;
    padding: .6rem .85rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: .95rem;
    font-weight: 600;
    font-family: inherit;
    margin-bottom: 1.5rem;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a0a8b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .85rem center;
    cursor: pointer;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   STATS
═══════════════════════════════════════════════════════════════════ */
.stats-kpi {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.stats-kpi-card {
  flex: 1;
  min-width: 120px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.stats-kpi-val   { font-size: 2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.stats-kpi-label { font-size: .75rem; color: var(--text-muted); }

.stats-chart-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.stats-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
}
.stats-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 120px;
  overflow: hidden;
}
.stats-bar-wrap {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  gap: 1px;
  position: relative;
  cursor: default;
}
.stats-bar {
  flex: 1;
  background: var(--gold);
  opacity: .7;
  border-radius: 2px 2px 0 0;
  min-height: 1px;
  transition: opacity .2s;
}
.stats-bar-uniq {
  flex: 1;
  background: #4fc3f7;
  opacity: .7;
  border-radius: 2px 2px 0 0;
  min-height: 1px;
}
.stats-bar-wrap:hover .stats-bar,
.stats-bar-wrap:hover .stats-bar-uniq { opacity: 1; }
.stats-chart-legend {
  display: flex;
  gap: 1rem;
  margin-top: .75rem;
  font-size: .78rem;
}
.stats-legend-views::before { content: ''; display: inline-block; width: 10px; height: 10px; background: var(--gold); border-radius: 2px; margin-right: .35rem; vertical-align: middle; opacity: .7; }
.stats-legend-uniq::before  { content: ''; display: inline-block; width: 10px; height: 10px; background: #4fc3f7; border-radius: 2px; margin-right: .35rem; vertical-align: middle; opacity: .7; }
.stats-legend-views { color: var(--text-muted); }
.stats-legend-uniq  { color: var(--text-muted); }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 700px) {
  .stats-grid { grid-template-columns: 1fr; }
}
.stats-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}
.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.stats-table th {
  text-align: left;
  padding: .4rem .5rem;
  color: var(--text-muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
}
.stats-table td {
  padding: .45rem .5rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: middle;
}
.stats-src-name { color: var(--text); font-weight: 500; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-src-cnt  { color: var(--gold); font-weight: 700; text-align: right; white-space: nowrap; width: 50px; }
.stats-src-cnt--dim { color: var(--text-muted); font-weight: 400; }
.stats-src-bar-cell { width: 80px; }
.stats-src-bar {
  height: 6px;
  background: var(--gold);
  border-radius: 3px;
  opacity: .6;
  min-width: 2px;
}
.stats-page-path {
  color: var(--text-muted);
  font-size: .8rem;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE adjustments
═══════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .match-teams { flex-direction: column; gap: .5rem; }
  .match-team--home { justify-content: center; text-align: center; }
  .match-team--away { justify-content: center; }
  .match-vs { display: none; }
  .admin-form .form-row { flex-direction: column; }
  .admin-stats { gap: .5rem; }
  .admin-stat strong { font-size: 1.5rem; }
  .history-row { flex-wrap: wrap; }
}

/* ── Admin user edit row ── */
.user-edit-row td { background: var(--bg-card2); padding: 1rem 1.25rem; }
.user-edit-form   { display: flex; flex-direction: column; gap: .75rem; }
.user-edit-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.btn--danger {
  background: rgba(239,68,68,.15);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,.3);
}
.btn--danger:hover { background: rgba(239,68,68,.25); }

.consent-badge { font-size: .72rem; font-weight: 700; padding: .15rem .45rem; border-radius: 4px; }
.consent-badge--yes { background: rgba(34,197,94,.15); color: #22c55e; }
.consent-badge--no  { background: rgba(255,255,255,.06); color: var(--text-dim); }

/* ── Mecze sections (no-tabs layout) ── */
.mecze-section { margin-bottom: 3rem; }
.mecze-section--turniej { border-top: 1px solid var(--border); padding-top: 2.5rem; }
.mecze-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.mecze-section-sub { font-size: .85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.section-badge { font-size: .7rem; font-weight: 700; padding: .15rem .5rem; border-radius: 99px; background: var(--bg-card2); color: var(--text-muted); }
.section-badge--warn { background: rgba(245,166,35,.2); color: var(--gold); }
.section-badge--ok   { background: rgba(34,197,94,.15); color: #22c55e; }

/* ── Historia toggle ── */
.mecze-section--history { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.history-toggle {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .9rem 1.25rem;
  color: var(--text);
  font: 700 1rem 'Outfit', sans-serif;
  cursor: pointer;
  text-align: left;
  transition: border-color .2s, background .2s;
  margin-bottom: 0;
}
.history-toggle:hover { border-color: rgba(245,166,35,.3); background: var(--bg-card2); }
.history-toggle[aria-expanded="true"] { border-radius: 10px 10px 0 0; border-bottom-color: transparent; }
.history-toggle-count { font-size: .8rem; color: var(--text-muted); font-weight: 400; }
.history-toggle-arrow { margin-left: auto; color: var(--text-muted); font-size: .8rem; }
.history-list--collapsed { display: none; }
.history-list {
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}
.history-list .history-row:last-child { border-bottom: none; }

/* --- TYPY GRUPOWE - sortable drag-and-drop --- */
.mecze-section--grupy { border-top: 1px solid var(--border); padding-top: 2.5rem; }

.groups-grid-predictions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.group-pred-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s;
}
.group-pred-card--saved   { border-color: rgba(34,197,94,.3); }
.group-pred-card--dirty   { border-color: rgba(245,166,35,.4); }

.group-pred-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1rem;
  background: var(--bg-card2);
  border-bottom: 1px solid var(--border);
}
.group-pred-name {
  font-weight: 800;
  font-size: .9rem;
  color: var(--gold);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.group-pred-saved-badge {
  font-size: .75rem;
  color: #22c55e;
  font-weight: 700;
}

.sortable-list {
  list-style: none;
  padding: .35rem;
  min-height: 160px;
}

.sortable-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .6rem;
  border-radius: 8px;
  cursor: grab;
  transition: background .15s, transform .15s, opacity .15s;
  user-select: none;
  background: transparent;
  position: relative;
}
.sortable-list--locked .sortable-item { cursor: default; }
.sortable-item:hover:not(.dragging) { background: rgba(255,255,255,.05); }
.sortable-item.dragging { opacity: .4; transform: scale(.97); cursor: grabbing; }
.sortable-item.drag-over {
  background: rgba(245,166,35,.12);
  border-radius: 8px;
}
.sortable-item.drag-over::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.sort-pos {
  font-size: .75rem;
  font-weight: 800;
  color: var(--text-dim);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}
.sortable-item:nth-child(1) .sort-pos { color: #f5c518; }
.sortable-item:nth-child(2) .sort-pos { color: #9ca3af; }
.sortable-item:nth-child(3) .sort-pos { color: #cd7f32; }

.sort-flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
}
.sort-name {
  flex: 1;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sort-handle {
  color: var(--text-dim);
  font-size: 1rem;
  flex-shrink: 0;
  cursor: grab;
  padding: 0 .1rem;
}

.grupy-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}
.grupy-hint {
  font-size: .82rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .groups-grid-predictions { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .group-pred-card { border-radius: 8px; }
  .group-pred-header { padding: .5rem .75rem; }
  .sortable-list { padding: .2rem; min-height: 130px; }
  .sortable-item { padding: .4rem .5rem; gap: .35rem; }
  .sort-name { font-size: .72rem; }
  .sort-pos { width: 14px; font-size: .7rem; }
  .sort-flag { width: 18px; height: 13px; }
  .sort-handle { font-size: .85rem; }
}
@media (max-width: 360px) {
  .groups-grid-predictions { grid-template-columns: 1fr; }
}

/* ── Admin grupy resolve ── */
.groups-resolve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.group-resolve-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.group-resolve-card--done { border-color: rgba(34,197,94,.3); }
.group-resolve-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  background: var(--bg-card2);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.group-resolve-form { padding: .75rem 1rem; display: flex; flex-direction: column; gap: .4rem; }
.group-resolve-row  { display: flex; align-items: center; gap: .4rem; }
.resolve-place      { font-weight: 700; font-size: .85rem; color: var(--text-muted); width: 18px; flex-shrink: 0; }
.resolve-input {
  flex: 1;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: .3rem .5rem;
  font: .82rem 'Outfit', sans-serif;
}
.resolve-input:focus { outline: none; border-color: var(--gold); }

/* --- Regulamin --- */
.regulamin-page { padding: 3rem 0 5rem; }
.regulamin-wrap { max-width: 860px; margin: 0 auto; }
.regulamin-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  color: var(--text);
  text-align: center;
  margin-bottom: .5rem;
  line-height: 1.2;
}
.regulamin-title-sub { color: var(--gold); display: block; }
.regulamin-updated { text-align: center; color: var(--text-muted); font-size: .85rem; margin-bottom: 2rem; }

.regulamin-alert {
  background: rgba(245,166,35,.1);
  border: 1px solid rgba(245,166,35,.35);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  color: var(--text);
  font-size: .9rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.regulamin-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: .9rem;
}
.regulamin-toc ol { margin: .5rem 0 0 1.25rem; }
.regulamin-toc li { margin-bottom: .25rem; }
.regulamin-toc a { color: var(--gold); text-decoration: none; }
.regulamin-toc a:hover { text-decoration: underline; }

.regulamin-section { margin-bottom: 2.5rem; }
.regulamin-section h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
  padding-bottom: .5rem;
  margin-bottom: 1rem;
}
.regulamin-section h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.25rem 0 .6rem;
}
.regulamin-section ol, .regulamin-section ul {
  margin-left: 1.5rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: .92rem;
}
.regulamin-section li { margin-bottom: .35rem; }
.regulamin-section strong { color: var(--text); }

.regulamin-pts-table {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  font-size: .88rem;
}
.pts-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  padding: .6rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  align-items: center;
}
.pts-row:last-child { border-bottom: none; }
.pts-row.pts-header { background: var(--bg-card2); font-weight: 700; color: var(--text); font-size: .82rem; }
.pts-row--gold   { background: rgba(245,193,24,.07); color: var(--text); }
.pts-row--silver { background: rgba(156,163,175,.07); color: var(--text); }
.pts-row--bronze { background: rgba(205,127,50,.07); color: var(--text); }
.pts-row span:not(:first-child) { text-align: right; }

@media (max-width: 600px) {
  .pts-row { grid-template-columns: 1fr auto; font-size: .8rem; gap: .5rem; }
  .pts-row.pts-header span:last-child,
  .pts-row span:last-child { display: none; }
  .regulamin-pts-table .pts-row.pts-header span:nth-child(2) { display: block; }
}

/* --- Admin turniej --- */
.admin-resolve-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 700px;
}
.resolve-status { font-size: .9rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.turniej-resolve-form { display: flex; flex-direction: column; gap: .75rem; }
.turniej-resolve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: .75rem;
}
.turniej-field { display: flex; flex-direction: column; gap: .35rem; }
.turniej-field label { font-size: .85rem; font-weight: 600; color: var(--text); }

/* ── Telegram section ─────────────────────────────────────────────────── */
.telegram-block {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: linear-gradient(135deg, rgba(37,99,235,.12) 0%, rgba(29,78,216,.06) 100%);
  border: 1px solid rgba(37,99,235,.25);
  border-radius: 20px;
  padding: 3rem 3.5rem;
  max-width: 860px;
  margin: 0 auto;
}
.telegram-icon {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, #2ba5e0, #1a7abf);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 32px rgba(43,165,224,.35);
}
.telegram-content h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .6rem;
}
.telegram-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 1.4rem;
}
.btn--telegram {
  background: linear-gradient(135deg, #2ba5e0, #1a7abf);
  color: #fff;
  border: none;
  box-shadow: 0 4px 18px rgba(43,165,224,.35);
}
.btn--telegram:hover {
  background: linear-gradient(135deg, #3dbcf7, #2ba5e0);
  box-shadow: 0 6px 24px rgba(43,165,224,.5);
  color: #fff;
}
@media (max-width: 680px) {
  .telegram-block {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }
  .telegram-content h2 { font-size: 1.35rem; }
}

/* ── Telegram compact banner (panel / mecze / ranking) ────────────────── */
.tg-banner-wrap {
  background: var(--bg-dark);
  padding: 2rem 0 2.5rem;
}
.tg-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(135deg, rgba(37,99,235,.1) 0%, rgba(29,78,216,.05) 100%);
  border: 1px solid rgba(37,99,235,.2);
  border-radius: 14px;
  padding: 1.25rem 1.75rem;
}
.tg-banner-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #2ba5e0, #1a7abf);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(43,165,224,.3);
}
.tg-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.tg-banner-text strong {
  color: var(--text);
  font-size: 1rem;
}
.tg-banner-text span {
  color: var(--text-muted);
  font-size: .875rem;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .tg-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
    gap: 1rem;
  }
}

/* ── Partners section ─────────────────────────────────────────────────── */
.section--partners { background: var(--bg-navy); }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 2rem;
}

.partner-card {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: default;
  transition: transform .25s ease, box-shadow .25s ease;
}
.partner-card:hover {
  transform: translateY(-5px);
}

.partner-card-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.75rem 2rem;
  position: relative;
  z-index: 1;
}

.partner-logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.18));
  transition: transform .25s ease;
}
.partner-card:hover .partner-logo {
  transform: scale(1.05);
}

/* Fortuna — złoty żółty */
.partner-card--fortuna {
  background: linear-gradient(145deg, #FFD600 0%, #F5C000 55%, #E6A800 100%);
  box-shadow: 0 8px 32px rgba(255,214,0,.3);
}
.partner-card--fortuna:hover {
  box-shadow: 0 16px 48px rgba(255,214,0,.45);
}
.partner-card--fortuna::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.22) 0%, transparent 65%);
  pointer-events: none;
}

/* Superbet — głęboka czerwień */
.partner-card--superbet {
  background: linear-gradient(145deg, #D0021B 0%, #B0001A 55%, #8C0014 100%);
  box-shadow: 0 8px 32px rgba(208,2,27,.3);
}
.partner-card--superbet:hover {
  box-shadow: 0 16px 48px rgba(208,2,27,.45);
}
.partner-card--superbet::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.14) 0%, transparent 65%);
  pointer-events: none;
}

/* Betfan — butelkowa zieleń */
.partner-card--betfan {
  background: linear-gradient(145deg, #00A651 0%, #00893F 55%, #006B2F 100%);
  box-shadow: 0 8px 32px rgba(0,166,81,.3);
}
.partner-card--betfan:hover {
  box-shadow: 0 16px 48px rgba(0,166,81,.45);
}
.partner-card--betfan::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.15) 0%, transparent 65%);
  pointer-events: none;
}

.partners-note {
  text-align: center;
  font-size: .78rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .partners-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
  .partner-card-inner { padding: 2rem 1.5rem; }
}
@media (min-width: 701px) and (max-width: 900px) {
  .partners-grid { gap: 1rem; }
  .partner-card-inner { padding: 2rem 1.25rem; }
}

/* ── Password toggle ──────────────────────────────────────────────────── */
.pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pw-wrap input {
  flex: 1;
  padding-right: 3rem;
}
.pw-toggle {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: .25rem;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: color .2s;
  line-height: 0;
}
.pw-toggle:hover { color: var(--text); }

/* ── Betside.pl nav link ──────────────────────────────────────────────── */
.nav-link--betside {
  opacity: .65;
  font-size: .88rem;
}
.nav-link--betside:hover { opacity: 1; }

/* ── Promos strip (mecze / ranking / panel) ───────────────────────────── */
.promos-strip {
  background: var(--bg-navy);
  padding: 2.5rem 0 3rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.promos-strip-header {
  text-align: center;
  margin-bottom: 1.75rem;
}
.promos-strip-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .4rem;
}
.promos-strip-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.promos-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.promo-card {
  border-radius: 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: none;
}

/* Kolorowe headery bukmacherów */
.promo-card-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.1rem;
}
.promo-card-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.promo-card-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
}
.promo-card-name {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}

/* Fortuna — złoty */
.promo-card--fortuna .promo-card-header  { background: linear-gradient(135deg, #e6a000, #c88600); }
/* Superbet — czerwony */
.promo-card--superbet .promo-card-header { background: linear-gradient(135deg, #c8001a, #9e0014); }
/* BETFAN — ciemna zieleń */
.promo-card--betfan .promo-card-header   { background: linear-gradient(135deg, #00695c, #004d43); }

/* Treść karty */
.promo-card-body {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.08);
  border-top: none;
  border-radius: 0 0 16px 16px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  flex: 1;
}

.promo-card-current {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}
.promo-card-welcome-block {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.promo-card-welcome-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.promo-card-welcome {
  font-size: .88rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.3;
}

/* Kod do skopiowania */
.promo-card-code-row {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-top: .1rem;
}
.promo-card-code-hint {
  font-size: .7rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.promo-card-code-val {
  font-family: monospace;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--text);
  background: rgba(255,255,255,.06);
  border-radius: 5px;
  padding: .25rem .55rem;
  cursor: pointer;
  transition: background .15s, color .15s;
  user-select: none;
}
.promo-card-code-val:hover { background: rgba(255,255,255,.11); }
.promo-card-code-val--copied { background: rgba(34,197,94,.12); color: #4ade80; }
.promo-card-code-action {
  font-size: .68rem;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  flex-shrink: 0;
}
.promo-card-code-action:hover { color: var(--text); }

.promo-card-btn {
  display: block;
  text-align: center;
  background: #16a34a;
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  padding: .6rem .8rem;
  border-radius: 8px;
  margin-top: auto;
  transition: background .2s;
}
.promo-card-btn:hover { background: #22c55e; color: #fff; }
.promos-strip-note {
  text-align: center;
  font-size: .72rem;
  color: var(--text-muted);
  opacity: .65;
  margin: 0;
}

@media (max-width: 700px) {
  .promos-strip-grid { grid-template-columns: 1fr; }
}
