/* ============================================================
   CORNEON.pl – główny arkusz stylów
   Paleta: żółty #FFCC00, grafit #1E2226, biel, szarość #F4F5F7
   ============================================================ */

:root {
    --yellow: #FFCC00;
    --yellow-dark: #E0B300;
    --yellow-darker: #C29B00;
    --graphite: #1E2226;
    --graphite-2: #272C31;
    --graphite-3: #32383E;
    --surface: #F4F5F7;
    --surface-2: #E9EBEE;
    --white: #FFFFFF;
    --text: #1E2226;
    --muted: #6B7280;
    --line: #E2E5E9;
    --green: #1F9D55;
    --red: #D64545;
    --radius: 14px;
    --radius-sm: 12px;
    --radius-lg: 16px;
    --shadow: 0 6px 24px rgba(30, 34, 38, 0.08);
    --shadow-lg: 0 16px 48px rgba(30, 34, 38, 0.18);
    --header-h: 68px;
    --font: 'Poppins', system-ui, sans-serif;
}

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

[hidden] { display: none !important; }

::selection { background: var(--yellow); color: var(--graphite); }

:focus-visible { outline: 3px solid var(--yellow-darker); outline-offset: 2px; }

@keyframes riseIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
    }
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

button { font-family: inherit; cursor: pointer; }

input, select, textarea { font-family: inherit; font-size: 1rem; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* ---------- Przyciski ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    font-family: var(--font);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease;
}

.btn-primary {
    background: var(--yellow);
    color: var(--graphite);
}
.btn-primary:hover { background: var(--yellow-dark); box-shadow: 0 6px 18px rgba(255, 204, 0, 0.35); }
.btn-primary:active { background: var(--yellow-darker); transform: translateY(1px); }
.btn-primary:disabled {
    background: var(--surface-2);
    color: var(--muted);
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: transparent;
    color: inherit;
    border-color: currentColor;
}
.btn-outline:hover { background: rgba(255, 204, 0, 0.15); border-color: var(--yellow); color: inherit; }
.btn-outline:active { transform: translateY(1px); }

.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }

.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 0.92rem; }
.btn-lg { min-height: 56px; padding: 16px 36px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---------- Nagłówek ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: var(--graphite);
    color: var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: var(--header-h);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--yellow);
    color: var(--graphite);
    font-weight: 800;
    font-size: 1.25rem;
}

.logo-text {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.06em;
    color: var(--yellow);
}

.main-nav { flex: 1; }
.main-nav ul {
    display: flex;
    gap: 4px;
    list-style: none;
}
.main-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.15s, background 0.15s;
}
.main-nav a { position: relative; }
.main-nav a:hover { color: var(--white); background: var(--graphite-2); }
.main-nav a.is-active { color: var(--yellow); background: var(--graphite-2); }
.main-nav a.is-active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 5px;
    height: 3px;
    border-radius: 2px;
    background: var(--yellow);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.rg-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    min-height: 48px;
}
.rg-link:hover { color: var(--white); }
.rg-link-text { max-width: 110px; line-height: 1.25; }

.badge-18 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-weight: 700;
    font-size: 0.78rem;
    flex-shrink: 0;
}
.badge-18--lg { width: 52px; height: 52px; font-size: 1.05rem; }

.auth-area { display: flex; align-items: center; gap: 10px; }

.user-box {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}
.user-balance {
    background: var(--yellow);
    color: var(--graphite);
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.92rem;
    white-space: nowrap;
}
.user-name {
    color: var(--white);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
}
.user-name:hover { color: var(--yellow); }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    padding: 12px;
    background: transparent;
    border: 0;
}
.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    border-radius: 2px;
    background: var(--white);
    transition: transform 0.2s;
}

/* Szuflada mobilna */
.drawer-overlay, .betslip-overlay, .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 23, 26, 0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 100;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--graphite);
    color: var(--white);
    z-index: 110;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: slideInLeft 0.25s ease;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo-text--drawer { font-size: 1.2rem; }

.drawer-close {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 10px;
    background: var(--graphite-2);
    color: var(--white);
    font-size: 1.5rem;
    line-height: 1;
}

.drawer-nav { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}
.drawer-nav a:hover, .drawer-nav a.is-active { background: var(--graphite-2); color: var(--yellow); }

.drawer-auth { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.drawer-auth .btn-outline { color: var(--white); }

/* Pasek dolny mobilny */
.mobile-tabbar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    background: var(--graphite);
    border-top: 1px solid var(--graphite-3);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 52px;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 500;
    border-radius: 10px;
}
.tab-item:hover { color: var(--yellow); }
.tab-icon { display: inline-flex; line-height: 1; }
.tab-icon svg { width: 21px; height: 21px; }
.tab-icon--live { color: var(--red); }

/* ---------- Sekcje / typografia ---------- */

.section { padding: 56px 0; }
.section--gray { background: var(--surface); }
.section--dark { background: var(--graphite); color: var(--white); }

.section-head { margin-bottom: 32px; }
.section-head h2, .section-title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
.section-head h2::before {
    content: "";
    display: block;
    width: 44px;
    height: 5px;
    border-radius: 3px;
    background: var(--yellow);
    margin-bottom: 12px;
}
.section-head p { color: var(--muted); margin-top: 8px; max-width: 640px; }
.section--dark .section-head p { color: rgba(255, 255, 255, 0.7); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    background: var(--graphite);
    color: var(--white);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -240px;
    right: -180px;
    width: 680px;
    height: 680px;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.2), transparent 65%);
    pointer-events: none;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.5px);
    background-size: 26px 26px;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 64px 0;
}

.hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    animation: riseIn 0.6s 0.05s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}
.hero h1 .accent { color: var(--yellow); }
.hero-sub { animation: riseIn 0.6s 0.15s cubic-bezier(0.2, 0.7, 0.3, 1) backwards; }
.hero-actions { animation: riseIn 0.6s 0.25s cubic-bezier(0.2, 0.7, 0.3, 1) backwards; }
.hero-note { animation: riseIn 0.6s 0.35s cubic-bezier(0.2, 0.7, 0.3, 1) backwards; }
.hero .media {
    animation: riseIn 0.7s 0.2s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    outline: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-sub {
    margin-top: 16px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 480px;
}

.hero-actions { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn-outline { color: var(--white); }

.hero-note {
    margin-top: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---------- Media / zaślepki graficzne ---------- */

.media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 240px;
    background: linear-gradient(135deg, var(--graphite-2), var(--graphite-3));
}
.media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.media::after {
    content: attr(data-label);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    padding: 20px;
    pointer-events: none;
}
.media:has(img:not(.img-failed))::after { content: ""; }

.media--hero-main  { background: linear-gradient(135deg, #2A3138 0%, #1E2226 55%, #4a3f00 130%); min-height: 320px; }
.media--hero-live  { background: linear-gradient(135deg, #3a1f24 0%, #1E2226 60%, #D64545 180%); min-height: 300px; }
.media--pilka      { background: linear-gradient(135deg, #14532d, #1F9D55); }
.media--tenis      { background: linear-gradient(135deg, #7c5e00, #FFCC00); }
.media--kosz       { background: linear-gradient(135deg, #7c2d12, #ea8c3a); }
.media--hokej      { background: linear-gradient(135deg, #1e3a8a, #60a5fa); }
.media--esport     { background: linear-gradient(135deg, #3b0764, #a855f7); }
.media--promo1     { background: linear-gradient(135deg, #4a3f00, #FFCC00); }
.media--promo2     { background: linear-gradient(135deg, #14532d, #34d399); }
.media--promo3     { background: linear-gradient(135deg, #1e3a8a, #38bdf8); }
.media--trust      { background: linear-gradient(135deg, #1E2226, #4b5563); }
.media--resp       { background: linear-gradient(135deg, #14532d, #1F9D55); }

/* ---------- Kafelki dyscyplin ---------- */

.tile-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.tile {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--white);
    min-height: 150px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile .media { border-radius: 0; min-height: 150px; position: absolute; inset: 0; }
.tile .media img, .promo-card .media img { transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1); }
.tile:hover .media img, .promo-card:hover .media img { transform: scale(1.06); }
.tile-label {
    position: absolute;
    left: 14px;
    bottom: 12px;
    z-index: 2;
    font-weight: 700;
    font-size: 1.02rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(20, 23, 26, 0.65), transparent 55%);
}

/* ---------- Karty ogólne ---------- */

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 26px;
}

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

/* Atuty */
.feature {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--yellow);
    color: var(--graphite);
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.05rem; font-weight: 700; }
.feature p { color: var(--muted); font-size: 0.92rem; }

/* Kroki */
.step { position: relative; padding-top: 8px; }
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--graphite);
    color: var(--yellow);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* Typy zakładów */
.bettype h3 { font-size: 1.05rem; margin-bottom: 8px; }
.bettype p { color: var(--muted); font-size: 0.92rem; }
.bettype .formula {
    display: block;
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--surface);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--graphite);
}

/* ---------- Karty meczów / kursy ---------- */

.league-block { margin-bottom: 34px; }
.league-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
}
.league-flag {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--graphite);
    color: var(--yellow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.match-list { display: flex; flex-direction: column; gap: 12px; }

.match-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 20px;
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.match-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #F0DE8C; }
.section--gray .match-card { border-color: transparent; box-shadow: var(--shadow); }

.match-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.match-teams { font-weight: 600; font-size: 1rem; line-height: 1.35; }

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--red);
    color: var(--white);
    font-weight: 700;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.05em;
}
.live-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--white);
    animation: pulse 1.4s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.live-score { font-weight: 700; color: var(--red); }

.odds-group { display: flex; gap: 8px; }

.odd-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 66px;
    min-height: 52px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.odd-btn:hover { border-color: var(--yellow); background: #FFF6D6; }
.odd-btn:active { transform: scale(0.97); }
.odd-btn.is-selected {
    background: var(--yellow);
    border-color: var(--yellow);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.35);
    animation: pickPop 0.18s ease;
}
@keyframes pickPop {
    0% { transform: scale(0.93); }
    100% { transform: scale(1); }
}
.odd-btn .odd-label { font-size: 0.72rem; color: var(--muted); font-weight: 500; }
.odd-btn .odd-value { font-size: 0.98rem; font-weight: 700; color: var(--graphite); font-variant-numeric: tabular-nums; }
.odd-btn.is-selected .odd-label { color: rgba(30, 34, 38, 0.7); }

.odd-btn.odd-up .odd-value { color: var(--green); }
.odd-btn.odd-down .odd-value { color: var(--red); }
.odd-btn.odd-up { animation: flashUp 1.2s ease; }
.odd-btn.odd-down { animation: flashDown 1.2s ease; }
@keyframes flashUp { 0% { background: #d9f5e5; } 100% { background: var(--surface); } }
@keyframes flashDown { 0% { background: #fbe0e0; } 100% { background: var(--surface); } }
.odd-btn.is-selected.odd-up, .odd-btn.is-selected.odd-down { animation: none; }

/* ---------- Kupon ---------- */

.betslip-fab {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 96;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--graphite);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
}
.betslip-fab:hover { background: var(--yellow-dark); }

.slip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--graphite);
    color: var(--yellow);
    font-size: 0.75rem;
    font-weight: 700;
    font-style: normal;
}

.betslip-overlay { z-index: 104; }

.betslip {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(400px, 100vw);
    background: var(--white);
    z-index: 105;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.25s ease;
}
@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.betslip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    background: var(--graphite);
    color: var(--white);
}
.betslip-head h2 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.slip-count--head { background: var(--yellow); color: var(--graphite); }

.betslip-type {
    display: flex;
    gap: 8px;
    padding: 14px 20px 0;
}
.betslip-type-btn {
    flex: 1;
    min-height: 44px;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--muted);
}
.betslip-type-btn.is-active {
    border-color: var(--yellow);
    background: #FFF6D6;
    color: var(--graphite);
}

.betslip-items {
    flex: 1;
    overflow-y: auto;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--surface-2) transparent;
}
.betslip-items::-webkit-scrollbar { width: 8px; }
.betslip-items::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 4px; }

.betslip-empty { color: var(--muted); font-size: 0.9rem; text-align: center; padding: 30px 10px; }

.slip-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    position: relative;
    background: var(--surface);
}
.slip-item-match { font-weight: 600; font-size: 0.88rem; padding-right: 30px; }
.slip-item-pick { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.slip-item-odd { font-weight: 700; color: var(--graphite); }
.slip-item-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1;
}
.slip-item-remove:hover { background: var(--surface-2); color: var(--red); }

.betslip-footer {
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--white);
}

.betslip-stake { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; }
.betslip-stake input {
    min-height: 48px;
    padding: 10px 14px;
    border: 2px solid var(--line);
    border-radius: 10px;
    font-weight: 600;
}
.betslip-stake input:focus { outline: none; border-color: var(--yellow); }

.betslip-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--muted);
}
.betslip-row b { color: var(--graphite); font-size: 1rem; }

.betslip-msg { font-size: 0.85rem; font-weight: 600; }
.betslip-msg.is-error { color: var(--red); }
.betslip-msg.is-success { color: var(--green); }

/* ---------- Modale ---------- */

.modal-overlay {
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    animation: modalIn 0.22s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.modal h2 { font-size: 1.4rem; margin-bottom: 18px; }

.modal--age { text-align: center; }
.modal--age .badge-18--lg { margin: 0 auto 16px; }
.modal--age p { color: var(--muted); margin-bottom: 22px; }

.modal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: var(--surface);
    color: var(--muted);
    font-size: 1.3rem;
    line-height: 1;
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }

.modal-note { margin-top: 18px; font-size: 0.85rem; color: var(--muted); text-align: center; }
.modal-note a { color: var(--graphite); font-weight: 600; }

/* ---------- Formularze ---------- */

.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="text"],
.form-field input[type="date"],
.form-field input[type="number"],
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    transition: border-color 0.15s;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
    outline: none;
    border-color: var(--yellow);
}
.form-field input.is-invalid { border-color: var(--red); }

.form-field--check label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
    font-size: 0.88rem;
    cursor: pointer;
}
.form-field--check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--yellow); flex-shrink: 0; }
.form-field--check a { font-weight: 600; }

.form-error { color: var(--red); font-size: 0.82rem; font-weight: 600; margin-top: 6px; }
.form-success { color: var(--green); font-size: 0.9rem; font-weight: 600; margin-top: 10px; }

/* ---------- Baner cookies ---------- */

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 115;
    display: flex;
    justify-content: center;
    animation: riseIn 0.45s 0.4s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}

/* Odsłanianie kart przy przewijaniu (klasy nadaje app.js) */
.reveal-init { opacity: 0; transform: translateY(16px); }
.reveal-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.cookie-inner {
    width: 100%;
    max-width: 860px;
    background: var(--graphite);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.cookie-inner p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.85); }
.cookie-inner a { color: var(--yellow); }

.cookie-settings { display: flex; flex-direction: column; gap: 8px; }
.cookie-settings label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    cursor: pointer;
}
.cookie-settings input { width: 18px; height: 18px; accent-color: var(--yellow); }

.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn-outline { color: var(--white); }

/* ---------- Promocje ---------- */

.promo-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.promo-card .media { min-height: 170px; border-radius: 0; }

.promo-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.promo-body h3 { font-size: 1.15rem; }
.promo-body p { color: var(--muted); font-size: 0.92rem; flex: 1; }

.promo-terms {
    font-size: 0.75rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.promo-terms .badge-18 { width: 26px; height: 26px; font-size: 0.62rem; }

/* ---------- FAQ ---------- */

.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 840px; }

.faq-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    min-height: 56px;
    background: transparent;
    border: 0;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    color: var(--text);
}
.faq-q::after {
    content: "+";
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--yellow-darker);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.faq-item.is-open .faq-q::after { transform: rotate(45deg); }
.faq-a {
    display: none;
    padding: 0 22px 20px;
    color: var(--muted);
    font-size: 0.94rem;
}
.faq-item.is-open .faq-a { display: block; }

/* ---------- Moje konto ---------- */

.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: start;
}

.account-balance-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--graphite);
}
.account-balance-value small { font-size: 1.1rem; font-weight: 600; color: var(--muted); }

.deposit-form { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.deposit-form input {
    flex: 1;
    min-width: 140px;
    min-height: 48px;
    padding: 10px 14px;
    border: 2px solid var(--line);
    border-radius: 10px;
    font-weight: 600;
}
.deposit-form input:focus { outline: none; border-color: var(--yellow); }

.limits-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }

.coupon-history { display: flex; flex-direction: column; gap: 12px; }
.coupon-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    background: var(--surface);
    font-size: 0.9rem;
}
.coupon-item-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.coupon-item ul { list-style: none; color: var(--muted); font-size: 0.84rem; }
.coupon-item li { padding: 2px 0; }
.coupon-tag {
    font-size: 0.72rem;
    font-weight: 700;
    background: var(--graphite);
    color: var(--yellow);
    padding: 2px 10px;
    border-radius: 999px;
}

.profile-list { list-style: none; }
.profile-list li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.94rem;
    flex-wrap: wrap;
}
.profile-list li:last-child { border-bottom: 0; }
.profile-list span { color: var(--muted); }
.profile-list b { font-weight: 600; }

/* ---------- Strony treściowe / polityki ---------- */

.page-head {
    position: relative;
    background: var(--graphite);
    color: var(--white);
    padding: 48px 0;
    overflow: hidden;
}
.page-head::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -140px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.16), transparent 65%);
    pointer-events: none;
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    animation: riseIn 0.55s 0.05s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}
.page-head p { animation: riseIn 0.55s 0.15s cubic-bezier(0.2, 0.7, 0.3, 1) backwards; }
.page-head p { margin-top: 10px; color: rgba(255, 255, 255, 0.75); max-width: 640px; }

.prose { max-width: 840px; }
.prose h2 { font-size: 1.4rem; margin: 34px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.prose p { margin-bottom: 14px; color: #3b4046; }
.prose ul, .prose ol { margin: 0 0 14px 22px; color: #3b4046; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--graphite); }

.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    min-width: 560px;
}
.prose th, .prose td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    color: #3b4046;
}
.prose th {
    background: var(--surface);
    color: var(--graphite);
    font-weight: 600;
    white-space: nowrap;
}
.prose tr:last-child td { border-bottom: 0; }

.notice {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #FFF6D6;
    border: 1px solid var(--yellow);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin: 24px 0;
}
.notice p { margin: 0; font-size: 0.92rem; }

/* ---------- SEO tekst ---------- */

.seo-text { max-width: 840px; }
.seo-text h2 { font-size: 1.4rem; margin-bottom: 14px; }
.seo-text p { color: var(--muted); margin-bottom: 14px; font-size: 0.95rem; }

/* ---------- Stopka ---------- */

.site-footer {
    background: var(--graphite);
    color: rgba(255, 255, 255, 0.8);
    padding: 56px 0 96px;
    margin-top: 56px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(4, 1fr);
    gap: 32px;
}

.logo--footer { margin-bottom: 14px; }
.footer-brand-desc { font-size: 0.88rem; margin-bottom: 16px; color: rgba(255, 255, 255, 0.65); }

.footer-heading {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.88rem;
    display: inline-flex;
    min-height: 32px;
    align-items: center;
}
.footer-links a:hover { color: var(--yellow); }

.payment-logos { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.payment-logos img {
    height: 32px;
    width: auto;
    border-radius: 6px;
    background: var(--white);
}
.footer-legal {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--graphite-3);
}
.footer-legal p {
    font-size: 0.78rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
}

.footer-bottom { margin-top: 20px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); }

/* ---------- Responsywność ---------- */

@media (max-width: 1360px) {
    .rg-link-text { display: none; }
}

@media (max-width: 1100px) {
    .tile-grid { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 900px) {
    .main-nav { display: none; }
    .hamburger { display: flex; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-inner { grid-template-columns: 1fr; padding: 44px 0; }
    .account-grid { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    body { padding-bottom: 70px; }
    .mobile-tabbar { display: flex; }
    .auth-area .btn-outline { display: none; }
    .user-box .user-name { display: none; }
    .tile-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .section { padding: 40px 0; }
    .match-card { grid-template-columns: 1fr; }
    .odds-group { width: 100%; }
    .odd-btn { flex: 1; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-col--brand { grid-column: 1 / -1; }
    .betslip-fab { bottom: 84px; }
    .cookie-banner { bottom: 78px; }
    .site-footer { padding-bottom: 40px; }
    .hero h1 { font-size: 1.75rem; }
    .modal { padding: 26px 20px; }
}

@media (max-width: 420px) {
    .header-inner { gap: 10px; }
    .logo-text { font-size: 1.1rem; }
    .rg-link { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .auth-area .btn-sm { padding: 8px 12px; font-size: 0.85rem; }
}
