/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-dark: #0b1e0f;
    --bg-card: #112117;
    --bg-card-hover: #193322;
    --border-card: #1e3a26;
    --green-primary: #00e843;
    --green-dark: #00a830;
    --green-glow: rgba(0, 232, 67, 0.25);
    --yellow-accent: #c8ff00;
    --text-white: #ffffff;
    --text-gray: #8fa898;
    --text-light: #c5dace;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --font-main: 'Nunito Sans', 'Segoe UI', sans-serif;
    --max-width: 1320px;
    --header-height: 70px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { border: none; outline: none; cursor: pointer; font-family: inherit; }

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

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: rgba(11, 30, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(30, 58, 38, 0.5);
    height: var(--header-height);
    transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
    background: rgba(11, 30, 15, 0.97);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.header-logo img { height: 42px; width: auto; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.header-btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-register { background: var(--green-primary); color: #000; }
.btn-register:hover { background: #33ff6a; box-shadow: 0 0 20px var(--green-glow); }

.btn-login { background: transparent; color: var(--green-primary); border: 1.5px solid var(--green-primary); }
.btn-login:hover { background: rgba(0, 232, 67, 0.1); }

.btn-support { background: #1a3d24; color: var(--text-white); }
.btn-support:hover { background: #234d30; }

.btn-promos { background: #1a3d24; color: var(--text-white); }
.btn-promos:hover { background: #234d30; }

.btn-bonus {
    background: linear-gradient(135deg, #1a5c2a 0%, #0d3517 100%);
    color: var(--yellow-accent);
    border: 1px solid rgba(200, 255, 0, 0.3);
}
.btn-bonus:hover { background: linear-gradient(135deg, #22703a 0%, #114520 100%); box-shadow: 0 0 16px rgba(200, 255, 0, 0.15); }
.btn-bonus .bonus-icon { width: 28px; height: 28px; }

/* ===== HERO BANNERS ===== */
.hero-section {
    margin-top: var(--header-height);
    padding-top: 16px;
    background: var(--bg-dark);
}

.hero-pair {
    display: flex;
    gap: 16px;
}

.hero-banner-half {
    flex: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: block;
}

.hero-banner-half img {
    width: 100%;
    height: 365px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.hero-banner-half:hover img {
    transform: scale(1.03);
}

/* ===== SECTION TITLES ===== */
.section-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-white);
    letter-spacing: -0.3px;
}

/* ===== CATEGORIES ===== */
.categories-section { padding: 40px 0 30px; }

.categories-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
}

.categories-track::-webkit-scrollbar { display: none; }

.category-item {
    flex: 0 0 150px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 16px 10px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-item::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 3px;
    background: var(--green-primary);
    border-radius: 2px;
    transition: width 0.3s;
}

.category-item:hover {
    border-color: var(--green-primary);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 232, 67, 0.1);
}

.category-item:hover::after { width: 60px; }

.category-item img { width: 80px; height: 80px; object-fit: contain; border-radius: var(--radius-sm); }
.category-item span { font-size: 13px; font-weight: 700; color: var(--text-light); text-align: center; }

/* ===== STAR GAMES ===== */
.games-section { padding: 20px 0 40px; }

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.game-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-card);
    transition: all 0.3s ease;
    aspect-ratio: 1.3 / 1;
}

.game-card:hover {
    border-color: var(--green-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 232, 67, 0.15);
}

.game-card img { width: 100%; height: 100%; object-fit: cover; }

.game-card .game-provider {
    position: absolute;
    top: 10px; left: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 11px; font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}

.game-card .game-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex; align-items: center; justify-content: center;
}

.game-card:hover .game-overlay { opacity: 1; }

.game-overlay .play-btn {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--green-primary);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 30px var(--green-glow);
    transform: scale(0.8);
    transition: transform 0.3s;
}

.game-card:hover .play-btn { transform: scale(1); }
.play-btn svg { width: 24px; height: 24px; fill: #000; margin-left: 3px; }

/* ===== PROMOTIONS ===== */
.promos-section { padding: 20px 0 40px; }

.promos-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
}

.promos-track::-webkit-scrollbar { display: none; }

.promo-card {
    flex: 0 0 280px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.promo-card:hover {
    border-color: var(--green-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 232, 67, 0.12);
}

.promo-card-img { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; }

.promo-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.promo-card:hover .promo-card-img img { transform: scale(1.05); }

.promo-card-body { padding: 16px; }

.promo-card-tag {
    display: inline-block;
    font-size: 12px; font-weight: 700;
    color: var(--green-primary);
    margin-bottom: 8px;
}

.promo-card-title { font-size: 15px; font-weight: 700; color: var(--text-white); line-height: 1.35; }

.promo-card-bar { width: 50px; height: 3px; background: var(--green-primary); border-radius: 2px; margin-top: 14px; }

/* ===== SEO TEXT ===== */
.seo-section { padding: 40px 0; border-top: 1px solid var(--border-card); }

.seo-content { max-width: 100%; }

.seo-content .seo-date {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 8px;
    font-style: italic;
}

.seo-content h1 {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 20px;
    font-family: var(--font-main);
}

.seo-content h2 {
    font-size: 21px;
    font-weight: 800;
    color: var(--text-white);
    margin: 28px 0 14px;
    font-family: var(--font-main);
    line-height: 1.35;
}

.seo-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-light);
    margin: 20px 0 10px;
    font-family: var(--font-main);
    line-height: 1.4;
}

.seo-content p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 14px;
    font-family: var(--font-main);
}

.seo-content ul, .seo-content ol {
    margin: 10px 0 16px 0;
    padding-left: 22px;
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.8;
    font-family: var(--font-main);
}

.seo-content li {
    margin-bottom: 5px;
    padding-left: 4px;
}

.seo-content strong { color: var(--text-light); }

/* Two-column rows */
.seo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin: 28px 0;
    align-items: start;
}

.seo-row > .seo-col > h2:first-child,
.seo-row > .seo-col > h3:first-child {
    margin-top: 0;
}

.seo-col-img {
    display: flex;
    align-items: flex-start;
}

.seo-col-img img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-card);
}

/* TVBet list in 2 columns */
.seo-ol-columns {
    columns: 2;
    column-gap: 24px;
}

.seo-ol-columns li {
    break-inside: avoid;
}

/* Table */
.seo-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 8px;
    font-size: 14px;
}

.seo-content table caption {
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
}

.seo-content table th {
    background: #1a3d24;
    color: var(--green-primary);
    font-weight: 700;
    padding: 10px 14px;
    text-align: left;
    border: 1px solid var(--border-card);
}

.seo-content table td {
    padding: 9px 14px;
    color: var(--text-gray);
    border: 1px solid var(--border-card);
    background: var(--bg-card);
}

.seo-content table tr:hover td {
    background: var(--bg-card-hover);
}

@media (max-width: 768px) {
    .seo-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .seo-ol-columns { columns: 1; }
    .seo-col-img img { max-width: 100%; }
    .seo-content h1 { font-size: 24px; }
    .seo-content h2 { font-size: 19px; }
}

/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #071209 100%);
    border-top: 1px solid var(--border-card);
    padding: 40px 0 24px;
}

.footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 30px; margin-bottom: 24px; }

.footer-link { font-size: 14px; color: var(--text-gray); transition: color 0.25s; }
.footer-link::before { content: '• '; color: var(--text-gray); }
.footer-link:hover { color: var(--green-primary); }

.footer-socials { display: flex; justify-content: center; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }

.footer-social-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 20px;
    background: rgba(0, 232, 67, 0.08);
    border: 1px solid rgba(0, 232, 67, 0.2);
    color: var(--text-light); font-size: 13px; font-weight: 600;
    transition: all 0.3s;
}

.footer-social-btn:hover { background: rgba(0, 232, 67, 0.15); border-color: var(--green-primary); color: var(--green-primary); }
.footer-social-btn svg { width: 20px; height: 20px; }

.footer-badges { display: flex; justify-content: center; align-items: center; gap: 40px; margin-bottom: 30px; flex-wrap: wrap; }

.footer-badge { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-badge img { height: 50px; width: auto; }
.footer-badge span { font-size: 12px; color: var(--text-gray); text-align: center; line-height: 1.4; }

.footer-providers {
    display: flex; justify-content: center; flex-wrap: wrap;
    gap: 20px 30px; margin-bottom: 30px; padding: 24px 0;
    border-top: 1px solid var(--border-card);
    border-bottom: 1px solid var(--border-card);
}

.footer-providers img { height: 28px; width: auto; opacity: 0.55; transition: opacity 0.3s; filter: grayscale(100%) brightness(1.5); }
.footer-providers img:hover { opacity: 1; filter: none; }

.footer-bottom { text-align: center; }
.footer-fcg { display: flex; justify-content: center; margin-bottom: 16px; }
.footer-fcg img { height: 45px; width: auto; }
.footer-legal { font-size: 12px; color: var(--text-gray); line-height: 1.7; max-width: 900px; margin: 0 auto; }
.footer-copyright { font-size: 12px; color: var(--text-gray); margin-top: 10px; }

.age-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 50px; height: 50px; border-radius: 50%;
    border: 2px solid var(--text-gray);
    font-size: 16px; font-weight: 800; color: var(--text-gray);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .games-grid { grid-template-columns: repeat(3, 1fr); }
    .header-btn { padding: 8px 12px; font-size: 13px; }
}

@media (max-width: 768px) {
    :root { --header-height: 60px; }
    .header-actions { gap: 6px; }
    .header-btn { padding: 7px 10px; font-size: 12px; gap: 5px; }
    .header-btn .btn-text-hide { display: none; }
    .header-logo img { height: 32px; }
    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hero-pair { flex-direction: column; gap: 10px; }
    .section-title { font-size: 22px; margin-bottom: 18px; }
    .category-item { flex: 0 0 120px; }
    .category-item img { width: 60px; height: 60px; }
    .promo-card { flex: 0 0 240px; }
    .footer-nav { gap: 8px 18px; }
    .footer-providers { gap: 14px 20px; }
    .footer-providers img { height: 22px; }
}

@media (max-width: 480px) {
    .games-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .header-actions { gap: 4px; }
    .header-btn { padding: 6px 8px; font-size: 11px; }
    .btn-support, .btn-promos { display: none; }
    .category-item { flex: 0 0 105px; padding: 12px 8px 10px; }
    .category-item img { width: 50px; height: 50px; }
    .category-item span { font-size: 11px; }
    .promo-card { flex: 0 0 220px; }
}
