/* =============================================
   Basswin Casino — Main Stylesheet
   Design System: Dark Navy + Orange/Green Accents
   ============================================= */

/* CSS Variables */
:root {
    --color-bg: #0d1117;
    --color-bg-header: #141b24;
    --color-bg-card: #1a2332;
    --color-bg-section: #111820;
    --color-bg-footer: #0a0e14;
    --color-primary-orange: #f58020;
    --color-primary-green: #4caf50;
    --color-primary-green-hover: #45a049;
    --color-primary-orange-hover: #e06f10;
    --color-accent-yellow: #ffc107;
    --color-accent-gold: #ffd700;
    --color-white: #ffffff;
    --color-text: #e0e6ed;
    --color-text-muted: #7a8a9e;
    --color-text-dim: #4a5568;
    --color-border: #1e2a3a;
    --color-border-light: #2a3a4e;
    --color-danger: #e53e3e;
    --color-live-red: #ff3b3b;
    --color-badge-new: #4caf50;
    --color-badge-top: #f58020;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --header-height: 60px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-family);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100%;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}
* {
    -webkit-tap-highlight-color: transparent;
}

main {
    overflow-x: hidden;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

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

ul, ol {
    list-style: none;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--color-primary-orange);
    color: var(--color-white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-weight: 600;
}
.skip-link:focus {
    top: 8px;
}

/* Visually Hidden (screen readers only) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* =============================================
   Header
   ============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--color-bg-header);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--transition);
    overflow-x: hidden;
    max-width: 100%;
}
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: var(--header-height);
    max-width: 1400px;
    margin: 0 auto;
}

/* Hamburger */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    width: 32px;
    background: none;
    border: none;
    cursor: pointer;
}
.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: all var(--transition);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 1px;
    flex-shrink: 0;
}
.logo-text {
    display: flex;
    align-items: center;
}
.logo-bass {
    color: var(--color-primary-orange);
    text-shadow: 0 0 10px rgba(245, 128, 32, 0.4);
}
.logo-win {
    color: var(--color-primary-green);
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
}

/* Main Nav */
.nav-list {
    display: flex;
    gap: 28px;
    align-items: center;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    position: relative;
    white-space: nowrap;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary-orange);
    transition: width var(--transition);
}
.nav-link:hover,
.nav-link.active {
    color: var(--color-white);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.search-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.search-btn svg {
    width: 20px;
    height: 20px;
}
.search-btn:hover {
    color: var(--color-white);
    background: var(--color-bg-card);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-xl);
    padding: 8px 22px;
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.btn-signup {
    background: var(--color-primary-orange);
    color: var(--color-white);
}
.btn-signup:hover {
    background: var(--color-primary-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245, 128, 32, 0.4);
}
.btn-login {
    background: var(--color-primary-green);
    color: var(--color-white);
}
.btn-login:hover {
    background: var(--color-primary-green-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.4);
}
.btn-full {
    width: 100%;
}

/* =============================================
   Mobile Navigation
   ============================================= */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1500;
    opacity: 0;
    transition: opacity var(--transition);
}
.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}
.mobile-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: var(--color-bg-header);
    z-index: 2000;
    transition: left var(--transition);
    overflow-y: auto;
    border-right: 1px solid var(--color-border);
}
.mobile-nav.active {
    left: 0;
}
.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
}
.close-nav-btn {
    font-size: 28px;
    color: var(--color-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}
.mobile-nav-list {
    padding: 12px 0;
}
.mobile-nav-link {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition);
}
.mobile-nav-link:hover {
    background: var(--color-bg-card);
    color: var(--color-primary-orange);
}
.mobile-nav-actions {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =============================================
   Breadcrumbs
   ============================================= */
.breadcrumbs {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    background: var(--color-bg-section);
    border-bottom: 1px solid var(--color-border);
}
.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 13px;
    color: var(--color-text-muted);
    list-style: none;
    padding: 0;
    margin: 0;
}
.breadcrumbs-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}
.breadcrumbs-list li:not(:last-child)::after {
    content: '›';
    color: var(--color-text-dim);
    font-weight: 700;
    font-size: 14px;
}
.breadcrumbs-list a {
    color: var(--color-text-muted);
    transition: color var(--transition);
}
.breadcrumbs-list a:hover {
    color: var(--color-primary-orange);
}
.breadcrumbs-list li[aria-current="page"] {
    color: var(--color-accent-gold);
    font-weight: 600;
}

/* =============================================
   Hero Slider / Banner
   ============================================= */
.hero-slider {
    position: relative;
    margin: 0;
    overflow: hidden;
    min-height: 340px;
    max-width: 100%;
    background: url('basswin-baner.webp') center center / cover no-repeat;
}

.slider-track {
    position: relative;
    width: 100%;
    min-height: 340px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 60px;
    max-width: 1400px;
    margin: 0 auto;
    right: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}
.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-content {
    flex: 1;
    z-index: 2;
}

.slide-title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.05;
    color: var(--color-white);
    text-transform: uppercase;
    margin-bottom: 8px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.slide-subtitle {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.highlight-percent {
    color: var(--color-accent-gold);
    font-size: 36px;
    font-weight: 900;
}

.slide-extra {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-accent-yellow);
    margin-bottom: 12px;
}

.btn-slide-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 36px;
    border: 2px solid var(--color-white);
    border-radius: var(--radius-xl);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    margin-top: 16px;
}
.btn-slide-cta:hover {
    background: var(--color-white);
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,255,255,0.2);
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
}
.dot.active {
    background: var(--color-white);
    border-color: var(--color-white);
    transform: scale(1.2);
}
.dot:hover {
    border-color: var(--color-white);
}

/* =============================================
   Games Section
   ============================================= */
.games-section {
    padding: 24px 24px 8px;
    max-width: 1400px;
    margin: 0 auto;
    overflow-x: hidden;
    width: 100%;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-white);
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.carousel-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-border-light);
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition);
}
.carousel-btn:hover {
    border-color: var(--color-primary-orange);
    color: var(--color-primary-orange);
    background: rgba(245, 128, 32, 0.1);
}

.show-all-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 6px 14px;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    transition: all var(--transition);
}
.show-all-link:hover {
    color: var(--color-white);
    border-color: var(--color-white);
}

/* Games Carousel */
.games-carousel {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}
.games-carousel::-webkit-scrollbar {
    display: none;
}

/* Game Card */
.game-card {
    flex: 0 0 auto;
    cursor: pointer;
    transition: transform var(--transition);
}
.game-card:hover {
    transform: translateY(-4px);
}

.game-thumb {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--color-bg-card);
    display: block;
    line-height: 0;
}

.game-img {
    display: block;
    width: 200px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
    vertical-align: top;
}

.game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: var(--radius-md);
}
.game-card:hover .game-overlay {
    opacity: 1;
}

.play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--color-white);
    background: rgba(245, 128, 32, 0.8);
    color: var(--color-white);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.play-btn:hover {
    background: var(--color-primary-orange);
    transform: scale(1.1);
}

/* Game Badges */
.game-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}
.badge-top {
    background: var(--color-primary-orange);
    color: var(--color-white);
}
.badge-new {
    background: var(--color-badge-new);
    color: var(--color-white);
}
.badge-live {
    background: var(--color-live-red);
    color: var(--color-white);
    animation: pulse-live 1.5s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}


/* =============================================
   Providers Section
   ============================================= */
.providers-section {
    padding: 32px 24px;
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid var(--color-border);
    overflow-x: hidden;
    width: 100%;
}

.providers-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
}
.providers-carousel::-webkit-scrollbar {
    display: none;
}

.provider-card {
    flex: 0 0 140px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition);
}
.provider-card:hover {
    border-color: var(--color-primary-orange);
    color: var(--color-white);
    background: rgba(245, 128, 32, 0.08);
}

/* =============================================
   SEO Content Section — стили через селекторы по контексту
   ============================================= */
.seo-content-section {
    width: 100%;
    max-width: 100%;
    padding: 40px 24px;
    border-top: 1px solid var(--color-border);
    overflow-x: hidden;
}

.seo-content-section .seo-content-wrapper {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.seo-content-section table {
    min-width: 320px;
}

.seo-content-section h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 20px;
    line-height: 1.3;
}

.seo-content-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-white);
    margin-top: 28px;
    margin-bottom: 12px;
}

.seo-content-section p {
    margin-bottom: 14px;
    line-height: 1.75;
    font-size: 14.5px;
    color: var(--color-text);
}
.seo-content-section p strong {
    color: var(--color-white);
}
.seo-content-section a {
    color: var(--color-primary-orange);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.seo-content-section a:hover {
    color: var(--color-accent-gold);
}

.seo-content-section ul {
    margin: 14px 0 20px;
    padding-left: 0;
}
.seo-content-section ul li {
    position: relative;
    padding: 6px 0 6px 24px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
}
.seo-content-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary-green);
    font-weight: 700;
    font-size: 14px;
}
.seo-content-section ul li strong {
    color: var(--color-white);
}

.seo-content-section ol {
    margin: 14px 0 20px;
    padding-left: 28px;
    list-style-type: decimal;
}
.seo-content-section ol li {
    padding: 6px 0 6px 4px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
}
.seo-content-section ol li strong {
    color: var(--color-white);
}

.seo-content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}
.seo-content-section th {
    text-align: left;
    padding: 12px 16px;
    background: var(--color-bg-card);
    color: var(--color-white);
    font-weight: 700;
    border-bottom: 2px solid var(--color-primary-orange);
    white-space: nowrap;
}
.seo-content-section td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}
.seo-content-section tr:hover td {
    background: rgba(245, 128, 32, 0.05);
}

.seo-content-section details {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    overflow: hidden;
    transition: all var(--transition);
}
.seo-content-section details[open] {
    border-color: var(--color-primary-orange);
}
.seo-content-section summary {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white);
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition);
}
.seo-content-section summary::-webkit-details-marker {
    display: none;
}
.seo-content-section summary::after {
    content: '+';
    font-size: 18px;
    font-weight: 300;
    color: var(--color-primary-orange);
    margin-left: auto;
    transition: transform var(--transition);
}
.seo-content-section details[open] summary::after {
    transform: rotate(45deg);
}
.seo-content-section summary:hover {
    background: var(--color-bg-card);
}
.seo-content-section details p {
    padding: 0 16px 14px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-muted);
}


/* =============================================
   Footer
   ============================================= */
.site-footer {
    background: var(--color-bg-footer);
    border-top: 1px solid var(--color-border);
    padding: 40px 24px 24px;
    overflow-x: hidden;
    max-width: 100%;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

/* Footer Links */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}
.footer-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--transition);
}
.footer-link:hover {
    color: var(--color-white);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 32px;
}
.payment-icon {
    width: 90px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
}
.payment-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--color-bg);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}
.footer-logo .logo-text {
    font-size: 22px;
    font-weight: 900;
}
.age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--color-danger);
    color: var(--color-danger);
    font-size: 12px;
    font-weight: 800;
}

.copyright {
    font-size: 12px;
    color: var(--color-text-dim);
}

/* =============================================
   Chat Widget
   ============================================= */
.chat-widget {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
}
.chat-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    background: var(--color-primary-orange);
    border: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    color: var(--color-white);
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: -4px 0 16px rgba(0,0,0,0.3);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}
.chat-btn:hover {
    background: var(--color-primary-orange-hover);
    padding-right: 12px;
}
.chat-icon {
    font-size: 20px;
    margin-bottom: 4px;
    writing-mode: horizontal-tb;
}
.chat-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Support Float Button */
.support-btn-wrap {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 899;
}
.support-float-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    color: var(--color-text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.support-float-btn:hover {
    background: var(--color-primary-orange);
    color: var(--color-white);
    border-color: var(--color-primary-orange);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border-light);
    color: var(--color-text-muted);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 800;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--color-primary-orange);
    border-color: var(--color-primary-orange);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* =============================================
   Fade-in Animations
   ============================================= */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   Responsive Design
   ============================================= */

/* Tablets */
@media (max-width: 1024px) {
    .slide {
        padding: 30px 40px;
    }
    .slide-title {
        font-size: 40px;
    }
    .highlight-percent {
        font-size: 28px;
    }
}

@media (max-width: 860px) {
    .nav-list {
        display: none;
    }
    .hamburger-btn {
        display: flex;
    }
    .slide {
        padding: 24px;
        flex-direction: column;
        text-align: center;
        justify-content: center;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
    }
    .slide-content {
        width: 100%;
    }
    .slide-title {
        font-size: 32px;
    }
    .hero-slider {
        min-height: 240px;
    }
    .slider-track {
        min-height: 240px;
    }
    .section-header {
        flex-wrap: wrap;
        gap: 12px;
    }
    .section-controls {
        flex-wrap: wrap;
    }
    .games-carousel {
        gap: 10px;
    }
    .game-card .game-img {
        width: 160px;
    }
    .footer-links {
        gap: 14px;
    }
}

/* Mobile */
@media (max-width: 580px) {
    .header-container {
        padding: 0 16px;
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    .breadcrumbs {
        padding: 10px 16px;
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    .breadcrumbs-list {
        font-size: 12px;
    }
    .logo {
        font-size: 20px;
    }
    .header-actions {
        gap: 8px;
    }
    .search-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
    .btn-signup, .btn-login {
        font-size: 11px;
        padding: 8px 14px;
        min-height: 44px;
    }
    .hero-slider {
        min-height: 200px;
    }
    .slider-track {
        min-height: 200px;
    }
    .slide {
        padding: 20px 16px;
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    .slide-title {
        font-size: 26px;
    }
    .slide-subtitle {
        font-size: 18px;
    }
    .highlight-percent {
        font-size: 22px;
    }
    .btn-slide-cta {
        padding: 10px 28px;
        font-size: 12px;
        min-height: 44px;
    }
    .games-section {
        padding: 16px;
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    .section-header {
        gap: 10px;
    }
    .section-title {
        font-size: 16px;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
    }
    .show-all-link {
        padding: 8px 12px;
        font-size: 12px;
    }
    .games-carousel {
        gap: 8px;
    }
    .game-card .game-img {
        width: 130px;
    }
    .play-btn {
        width: 44px;
        height: 44px;
    }
    .provider-card {
        flex: 0 0 110px;
        height: 45px;
        font-size: 10px;
    }
    .providers-section {
        padding: 24px 16px;
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    .seo-content-section {
        padding: 24px 16px;
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
    .seo-content-section h2 {
        font-size: 20px;
    }
    .seo-content-section h3 {
        font-size: 16px;
    }
    .seo-content-section p,
    .seo-content-section ul li,
    .seo-content-section ol li {
        font-size: 14px;
    }
    .seo-content-section summary {
        padding: 12px 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .site-footer {
        padding: 24px 16px 24px;
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
    .footer-links {
        gap: 10px;
    }
    .footer-link {
        font-size: 11px;
        padding: 6px 0;
    }
    .payment-methods {
        gap: 10px;
    }
    .payment-icon {
        width: 72px;
        height: 40px;
    }
    .payment-label {
        font-size: 10px;
    }
    .footer-bottom {
        flex-wrap: wrap;
        gap: 12px;
    }
    .copyright {
        font-size: 12px;
        width: 100%;
    }
    .chat-widget {
        display: none;
    }
    .back-to-top {
        right: max(16px, env(safe-area-inset-right));
        bottom: max(20px, env(safe-area-inset-bottom));
    }
    .support-btn-wrap {
        right: max(12px, env(safe-area-inset-right));
        bottom: max(20px, env(safe-area-inset-bottom));
    }
    .support-float-btn {
        min-height: 44px;
        padding: 10px 16px;
    }
}

@media (max-width: 380px) {
    .logo {
        font-size: 18px;
    }
    .btn-signup, .btn-login {
        font-size: 10px;
        padding: 8px 10px;
    }
    .slide-title {
        font-size: 22px;
    }
    .slide-subtitle {
        font-size: 16px;
    }
    .highlight-percent {
        font-size: 20px;
    }
    .game-card .game-img {
        width: 110px;
    }
    .section-title {
        font-size: 15px;
    }
    .footer-link {
        font-size: 10px;
    }
}
