/* PlayZA Casino Custom Styles - Dark Theme */

/* Bootstrap Carousel Styles - Force white color with highest specificity */
.carousel-control-prev,
.carousel-control-next {
    opacity: 1 !important;
}

/* Force white carousel icons with maximum specificity */
.carousel-control-prev-icon,
.carousel-control-next-icon,
.hero-slider-container .carousel-control-prev-icon,
.hero-slider-container .carousel-control-next-icon,
.carousel .carousel-control-prev-icon,
.carousel .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
    filter: brightness(0) invert(1) !important; /* Force white color */
}

.carousel-control-next-icon,
.hero-slider-container .carousel-control-next-icon,
.carousel .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
    filter: brightness(0) invert(1) !important; /* Force white color */
}

/* Override Bootstrap grid system for games */
.games-grid .row {
    --bs-gutter-x: 0 !important;
    --bs-gutter-y: 0 !important;
}

.games-grid .col-xl-2,
.games-grid .col-lg-3,
.games-grid .col-md-4,
.games-grid .col-sm-6,
.games-grid .col-6 {
    padding-left: 0.125rem !important;
    padding-right: 0.125rem !important;
}

/* МОБИЛЬНЫЕ УСТРОЙСТВА - 1 колонка (приоритет выше Bootstrap) */
@media screen and (max-width: 768px) {
    .games-grid .row > div.col-6,
    .games-grid .row > div.col-sm-6,
    .games-grid .row > div[class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Root Variables */
:root {
    /* Dark theme colors */
    --primary-color: #2a46ff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --dark-color: #1a1a1a;
    --light-color: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-color: #404040;
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #404040;
    
   
    /* Shadows */
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.4);
    --shadow-inset: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    position: relative;
    overflow-x: hidden;
}

/* Частицы на фоне */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 0;
    pointer-events: none;
}

#particles-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(ellipse at center, rgba(42, 70, 255, 0.05) 0%, transparent 70%);
}

/* Вращающиеся световые лучи */
.light-ray {
    display: none; /* Скрыто по запросу */
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(42, 70, 255, 0.3) 20%, 
        rgba(42, 70, 255, 0.6) 50%, 
        rgba(42, 70, 255, 0.3) 80%, 
        transparent 100%);
    transform-origin: center center;
    animation: rotate-ray 20s linear infinite;
    opacity: 0.4;
}

.light-ray::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1px;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(124, 58, 237, 0.2) 30%, 
        rgba(124, 58, 237, 0.4) 50%, 
        rgba(124, 58, 237, 0.2) 70%, 
        transparent 100%);
    filter: blur(2px);
}

@keyframes rotate-ray {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Плавающие геометрические фигуры */
.geometric-shape {
    position: absolute;
    opacity: 0.15;
    animation: float-geometric 15s infinite ease-in-out;
}

.shape-diamond {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2a46ff, #7c3aed);
    transform: rotate(45deg);
    border-radius: 4px;
}

.shape-circle {
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(42, 70, 255, 0.8), rgba(42, 70, 255, 0.2));
    border-radius: 50%;
    border: 2px solid rgba(42, 70, 255, 0.4);
}

.shape-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #2a46ff, transparent);
    box-shadow: 0 0 10px rgba(42, 70, 255, 0.5);
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid rgba(42, 70, 255, 0.3);
    filter: drop-shadow(0 0 8px rgba(42, 70, 255, 0.6));
}

/* Иконки игровой тематики */
.shape-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(42, 70, 255, 0.2), rgba(42, 70, 255, 0.05));
    border-radius: 50%;
    border: 2px solid rgba(42, 70, 255, 0.3);
    backdrop-filter: blur(2px);
}

.shape-icon i {
    font-size: 24px;
    color: rgba(42, 70, 255, 0.8);
    text-shadow: 0 0 10px rgba(42, 70, 255, 0.6), 0 0 20px rgba(42, 70, 255, 0.3);
    animation: icon-pulse 3s infinite ease-in-out;
}

.shape-icon-dice i {
    color: rgba(255, 194, 7, 0.8);
    text-shadow: 0 0 10px rgba(255, 194, 7, 0.6), 0 0 20px rgba(255, 194, 7, 0.3);
}

.shape-icon-slot i {
    color: rgba(236, 72, 153, 0.8);
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.6), 0 0 20px rgba(236, 72, 153, 0.3);
}

.shape-icon-card i {
    color: rgba(124, 58, 237, 0.8);
    text-shadow: 0 0 10px rgba(124, 58, 237, 0.6), 0 0 20px rgba(124, 58, 237, 0.3);
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes float-geometric {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.1;
    }
    25% {
        transform: translate(30px, -50px) rotate(90deg) scale(1.2);
        opacity: 0.2;
    }
    50% {
        transform: translate(-20px, -100px) rotate(180deg) scale(0.8);
        opacity: 0.15;
    }
    75% {
        transform: translate(50px, -70px) rotate(270deg) scale(1.1);
        opacity: 0.2;
    }
}

/* Мерцающие звезды */
.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(42, 70, 255, 0.8), 0 0 12px rgba(42, 70, 255, 0.4);
    animation: twinkle 3s infinite ease-in-out;
}

.star-large {
    width: 5px;
    height: 5px;
    box-shadow: 0 0 10px rgba(42, 70, 255, 1), 0 0 20px rgba(42, 70, 255, 0.6);
    animation: twinkle 2s infinite ease-in-out;
}

.star-small {
    width: 2px;
    height: 2px;
    box-shadow: 0 0 4px rgba(124, 58, 237, 0.6), 0 0 8px rgba(124, 58, 237, 0.3);
    animation: twinkle 4s infinite ease-in-out;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* Градиентные волны */
.wave {
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse, 
        rgba(42, 70, 255, 0.1) 0%, 
        rgba(124, 58, 237, 0.08) 30%, 
        transparent 70%);
    border-radius: 50%;
    animation: wave-pulse 8s infinite ease-in-out;
    top: -50%;
    left: -50%;
}

.wave-delayed {
    animation: wave-pulse 10s infinite ease-in-out;
    animation-delay: 2s;
    background: radial-gradient(ellipse, 
        rgba(236, 72, 153, 0.08) 0%, 
        rgba(42, 70, 255, 0.06) 30%, 
        transparent 70%);
}

@keyframes wave-pulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.3) rotate(180deg);
        opacity: 0.6;
    }
}

/* Плавающие частицы (улучшенные) */
.particle-bg {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, rgba(42, 70, 255, 1), rgba(42, 70, 255, 0.3));
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(42, 70, 255, 0.6), 0 0 20px rgba(42, 70, 255, 0.3);
    opacity: 0.7;
    animation: particle-float-enhanced 12s infinite ease-in-out;
}

@keyframes particle-float-enhanced {
    0% {
        transform: translateY(100vh) translateX(0) scale(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
        transform: translateY(90vh) translateX(20px) scale(1) rotate(45deg);
    }
    50% {
        transform: translateY(40vh) translateX(100px) scale(1.2) rotate(180deg);
        opacity: 0.8;
    }
    90% {
        opacity: 0.7;
        transform: translateY(10vh) translateX(150px) scale(1) rotate(315deg);
    }
    100% {
        transform: translateY(-10vh) translateX(200px) scale(0) rotate(360deg);
        opacity: 0;
    }
}

/* Убеждаемся что контент поверх частиц */
main, footer {
    position: relative;
    z-index: 1;
}

/* Navbar должен быть выше hero секции */
nav.navbar {
    position: relative;
    z-index: 1000;
}

/* Ensure all text is visible on dark background */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

p, span, div {
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Navigation */
.navbar {
    position: relative;
    z-index: 1000;
}

.navbar-dark {
    background-color: var(--dark-color) !important;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary) !important;
    letter-spacing: -0.01em;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

.navbar-brand i {
    color: var(--warning-color);
    margin-right: 0.5rem;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ffc207 !important;
    text-shadow: 0 0 10px rgba(255, 194, 7, 0.5);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

.dropdown-menu {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    z-index: 10002 !important; /* Выше navbar (z-index: 1000) и hero секции */
    position: absolute !important;
}

.dropdown-item {
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Убеждаемся, что dropdown позиционируется правильно */
.nav-item.dropdown {
    position: relative;
    z-index: 10001;
}

.dropdown-toggle {
    position: relative;
    z-index: 10001;
}

/* Hero Section */
.hero-section {
    background: var(--casino-gradient);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1; /* Ниже navbar */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Hero Slider Styles */
.hero-slider-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 420px !important; /* Фиксированная высота для всех экранов */
    min-height: 420px !important;
    max-height: 420px !important;
    z-index: 1; /* Ниже navbar */
    /* Оптимизация производительности */
    will-change: transform;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.hero-slider-container .carousel {
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
}

.hero-slider-container .carousel-inner {
    border-radius: 15px;
    height: 100%;
}

.hero-slider-container .carousel-item {
    /* BACKUP: transition: transform 0.8s ease-in-out; */
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1); /* Резкий слайд */
    height: 100%;
}

/* Адаптивная высота для мобильных */
@media (max-width: 768px) {
    .hero-slider-container .carousel,
    .hero-slider-container .carousel-inner,
    .hero-slider-container .carousel-item {
        height: auto !important;
        min-height: 280px !important;
    }
}

@media (max-width: 576px) {
    .hero-slider-container .carousel,
    .hero-slider-container .carousel-inner,
    .hero-slider-container .carousel-item {
        height: auto !important;
        min-height: 250px !important;
    }
}

@media (max-width: 480px) {
    .hero-slider-container .carousel,
    .hero-slider-container .carousel-inner,
    .hero-slider-container .carousel-item {
        height: auto !important;
        min-height: 220px !important;
    }
}

.hero-slider-container .carousel-item .hero-section {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider-container .carousel-item.active {
    display: block !important;
}

/* Скрываем все неактивные слайды немедленно */
.hero-slider-container .carousel-item:not(.active) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Carousel Indicators */
.hero-slider-container .carousel-indicators {
    bottom: 10px;
    margin-bottom: 0;
    z-index: 10;
}

.hero-slider-container .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    margin: 0 5px;
    transition: all 0.3s ease;
    outline: none !important;
    box-shadow: none !important;
}

/* Force white indicators with maximum specificity */
.carousel-indicators button.active,
.hero-slider-container .carousel-indicators button.active,
.carousel .carousel-indicators button.active {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Force white indicators on hover */
.carousel-indicators button:hover,
.hero-slider-container .carousel-indicators button:hover,
.carousel .carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.9) !important;
    transform: scale(1.1) !important;
}

.hero-slider-container .carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
    outline: none !important;
    box-shadow: none !important;
}

.hero-slider-container .carousel-indicators button:focus {
    outline: none !important;
    box-shadow: none !important;
}

.hero-slider-container .carousel-indicators button:active {
    outline: none !important;
    box-shadow: none !important;
}

.hero-slider-container .carousel-indicators button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}


/* Carousel Controls - Custom styling for hero slider */
.hero-slider-container .carousel-control-prev,
.hero-slider-container .carousel-control-next {
    width: 50px !important;
    height: 50px !important;
    background-color: rgba(0, 0, 0, 0.3) !important;
    border-radius: 50% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    transition: all 0.3s ease !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    opacity: 1 !important;
}

.hero-slider-container .carousel-control-prev {
    left: 20px !important;
}

.hero-slider-container .carousel-control-next {
    right: 20px !important;
}

.hero-slider-container .carousel-control-prev:hover,
.hero-slider-container .carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.hero-slider-container .carousel-control-prev-icon,
.hero-slider-container .carousel-control-next-icon {
    width: 20px !important;
    height: 20px !important;
    background-size: 20px 20px !important;
}

/* Feature Items in Slides */
.hero-slider-container .feature-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    height: 100%;
}

.hero-slider-container .feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hero-slider-container .feature-item h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hero-slider-container .feature-item p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.hero-slider-container .feature-item i {
    transition: all 0.3s ease;
}

.hero-slider-container .feature-item:hover i {
    transform: scale(1.1);
}

/* Slide-specific animations */
.hero-slider-container .carousel-item:nth-child(1) .hero-section {
    background: linear-gradient(135deg, #2a46ff 0%, #1e3acc 50%, #0f1f66 100%);
}

.hero-slider-container .carousel-item:nth-child(2) .hero-section {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 50%, #0d4f1a 100%);
}

.hero-slider-container .carousel-item:nth-child(3) .hero-section {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 50%, #b8860b 100%);
}

/* Slide transition effects - Horizontal sliding */
/* BACKUP: transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out; */
.hero-slider-container .carousel-item {
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease-out; /* Резкий слайд */
    display: none; /* Скрываем неактивные слайды по умолчанию */
}

/* Активный слайд должен быть виден */
.hero-slider-container .carousel-item.active {
    opacity: 1 !important;
    transform: translateX(0) !important;
    display: block !important;
}

/* Первый слайд виден при загрузке, если он активен */
.hero-slider-container .carousel-item:first-child.active {
    opacity: 1 !important;
    transform: translateX(0) !important;
    display: block !important;
}

/* Pause animation on hover */
.hero-slider-container:hover .carousel {
    animation-play-state: paused;
}

/* No animations - instant display */

/* External indicators styles - removed as they are no longer needed */

/* Progress indicator styles - removed blue line */

/* Cards */
.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.card-header {
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    border-radius: 0.75rem 0.75rem 0 0 !important;
    color: var(--text-primary);
    font-weight: 600;
}

.card-body {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 12px;
}

.card-title {
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

.card-text {
    color: var(--text-secondary);
}

/* Feature Icons */
.feature-icon i {
    transition: transform 0.3s ease;
}

.card:hover .feature-icon i {
    transform: scale(1.1);
}

/* Game Cards - Higher specificity to override Bootstrap */
.game-card {
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    padding: 0 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    box-shadow: var(--shadow) !important;
    margin-bottom: 1rem !important;
    position: relative !important;
    overflow: hidden !important;
}

.game-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary-color) !important;
}

.game-card .game-image {
    position: relative !important;
    width: 100% !important;
    height: 180px !important; /* Фиксированная высота для всех изображений */
    min-height: 180px !important;
    max-height: 180px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: var(--casino-gradient) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 0.25rem !important;
    padding: 0 !important;
}

.game-card .game-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important; /* Заполняет контейнер, сохраняя пропорции без потери качества */
    object-position: center !important; /* Центрирует изображение */
    border-radius: 8px !important;
    display: block !important;
}

/* Game placeholder styles removed - no longer needed */

.game-card .game-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    text-align: center !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border-radius: 12px !important;
    padding: 0.5rem !important;
    letter-spacing: 0.01em;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

.game-card:hover .game-image {
    background: var(--casino-gradient) !important;
}

/* Statistics */
.stat-item h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.stat-box {
    padding: 1rem;
    border-radius: 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.stat-box:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

.stat-box h4 {
    color: var(--text-primary);
}

.stat-box p {
    color: var(--text-muted);
}

/* Forms */
.form-control {
    background-color: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background-color: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(42, 70, 255, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control.is-valid {
    border-color: var(--success-color);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-label {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: 0.01em;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

.form-text {
    color: var(--text-muted);
}

.form-check-input {
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: var(--text-primary);
}

.form-select {
    background-color: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.form-select:focus {
    background-color: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.btn {
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    letter-spacing: 0.01em;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.3);
}

.btn-success {
    background: var(--success-color);
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.3);
}

.btn-warning {
    background: var(--warning-color);
    color: #212529;
    box-shadow: 0 4px 6px rgba(255, 193, 7, 0.3);
}

.btn-danger {
    background: var(--danger-color);
    box-shadow: 0 4px 6px rgba(220, 53, 69, 0.3);
}

.btn-info {
    background: var(--info-color);
    box-shadow: 0 4px 6px rgba(23, 162, 184, 0.3);
}

/* Profile Page */
.profile-avatar {
    margin-bottom: 1rem;
}

.balance-item {
    background-color: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.balance-item:hover {
    background-color: var(--bg-secondary) !important;
    transform: translateY(-1px);
    border-color: var(--primary-color);
}

.activity-item {
    transition: all 0.3s ease;
    padding: 0.75rem 0;
    color: var(--text-primary);
}

.activity-item:hover {
    background-color: rgba(42, 70, 255, 0.1);
    border-radius: 0.25rem;
    margin: 0 -0.5rem;
    padding: 0.75rem 0.5rem;
}

.personal-data-section {
    border-top: 1px solid var(--border-color) !important;
}

.personal-data-item {
    color: var(--text-primary);
}

.personal-data-item small {
    color: var(--text-muted);
}

/* Game Page */
.user-info {
    background: var(--dark-gradient);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.game-status {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.75rem;
    color: var(--text-primary);
}

.stat-item {
    font-size: 0.9rem;
    color: var(--text-primary);
}

#gameContainer {
    border-radius: 0 0 0.75rem 0.75rem;
    overflow: hidden;
}

#loadingScreen {
    background: var(--casino-gradient);
    color: white;
}

#gameFrame {
    border-radius: 0 0 0.75rem 0.75rem;
}

/* Progress Bar */
.progress {
    height: 0.5rem;
    border-radius: 0.25rem;
    background-color: rgba(255, 255, 255, 0.2);
}

.progress-bar {
    border-radius: 0.25rem;
}

/* Badges */
.badge {
    font-size: 0.75em;
    font-weight: 500;
    border-radius: 0.375rem;
}

/* Footer */
footer {
    background: var(--dark-color) !important;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    color: var(--text-primary);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--casino-gradient);
}

footer h5, footer h6 {
    font-family: 'Inter', sans-serif;
    color: #ffffff !important;
    font-weight: 600;
    letter-spacing: -0.01em;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

footer p {
    color: var(--text-secondary);
}

footer small {
    color: var(--text-muted);
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

footer .fab {
    transition: transform 0.3s ease;
}

footer .fab:hover {
    transform: scale(1.1);
}

footer img {
    transition: opacity 0.3s ease;
}

footer img:hover {
    opacity: 1 !important;
}

footer .text-primary {
    color: #ffffff !important;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left-color: var(--success-color);
    color: var(--success-color);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left-color: var(--danger-color);
    color: var(--danger-color);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left-color: var(--warning-color);
    color: var(--warning-color);
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    border-left-color: var(--info-color);
    color: var(--info-color);
}

/* Badges */
.badge {
    font-size: 0.75em;
    font-weight: 500;
    border-radius: 0.375rem;
}

/* Text utilities */
.text-muted {
    color: var(--text-muted) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in {
    animation: slideIn 0.6s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* Flash Messages */
.alert {
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.alert-dismissible .btn-close {
    padding: 0.75rem 1rem;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem 0 !important;
    }
    
    .hero-section h1 {
        font-size: 1.8rem !important;
        line-height: 1.2;
        margin-bottom: 1rem !important;
    }
    
    .hero-section .lead {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 1.5rem !important;
    }
    
    .stat-item h3 {
        font-size: 1.8rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        min-height: 44px; /* Touch-friendly */
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    #gameFrame {
        height: 400px !important;
    }
    
    #loadingScreen {
        height: 400px !important;
    }
    
    #errorScreen {
        height: 400px !important;
    }
    
    .stat-box {
        margin-bottom: 1rem;
    }
    
    .balance-item {
        margin-bottom: 1rem;
    }
    
    .personal-data-item {
        margin-bottom: 0.5rem;
    }
    
    /* Hero Slider Mobile Styles - Адаптивная высота */
    /* Убеждаемся что только активный слайд виден на мобильных */
    .hero-slider-container .carousel-item {
        display: none !important; /* Скрываем все слайды по умолчанию */
    }
    
    .hero-slider-container .carousel-item.active {
        opacity: 1 !important;
        transform: translateX(0) !important;
        display: block !important;
        visibility: visible !important;
    }
    
    .hero-slider-container {
        height: auto !important; /* Адаптивная высота для мобильных */
        min-height: 280px !important; /* Минимальная высота */
        max-height: 350px !important; /* Максимальная высота */
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }
    
    /* Скрываем кнопки навигации на мобильных */
    .hero-slider-container .carousel-control-prev,
    .hero-slider-container .carousel-control-next {
        display: none !important;
    }
    
    /* External indicators removed - using Bootstrap's native indicators */
    
    /* Скрываем внутренние индикаторы на мобильных */
    .hero-slider-container .carousel-indicators {
        display: none !important;
    }
    
    /* Минималистичный контент слайдов */
    .hero-slider-container .hero-section {
        padding: 1rem 0 !important;
        text-align: center;
    }
    
    .hero-slider-container .hero-section .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .hero-slider-container .hero-section h1 {
        font-size: 1.8rem !important; /* Увеличен размер заголовка */
        font-weight: 600;
        margin-bottom: 0.8rem !important;
        line-height: 1.2;
    }
    
    .hero-slider-container .hero-section .lead {
        font-size: 1rem !important; /* Увеличен размер описания */
        margin-bottom: 1.2rem !important;
        line-height: 1.4;
        opacity: 0.9;
    }
    
    .hero-slider-container .hero-section .btn {
        font-size: 0.9rem !important; /* Увеличен размер кнопок */
        padding: 0.6rem 1.2rem !important;
        min-height: 40px !important;
        border-radius: 6px;
        margin-bottom: 0.4rem;
    }
    
    .hero-slider-container .hero-section .d-flex {
        flex-direction: column;
        gap: 0.5rem !important;
        align-items: center;
    }
    
    /* Упрощенные feature items */
    .hero-slider-container .feature-item {
        padding: 0.4rem;
        margin-bottom: 0.5rem;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }
    
    .hero-slider-container .feature-item h5 {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
        font-weight: 500;
    }
    
    .hero-slider-container .feature-item p {
        font-size: 0.7rem;
        margin-bottom: 0;
        opacity: 0.8;
    }
    
    .hero-slider-container .feature-item i {
        font-size: 1rem !important;
        margin-bottom: 0.3rem;
    }
    
    /* Скрываем сложные элементы на мобильных */
    .hero-slider-container .cashback-features,
    .hero-slider-container .row {
        display: none !important;
    }
    
    /* Показываем только основные элементы */
    .hero-slider-container .hero-section .d-flex {
        display: flex !important;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-section .d-flex {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .hero-section .btn {
        width: 100% !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Кнопка "Смотреть все игры" на мобильных */
    .btn-lg {
        width: 100% !important;
        margin-bottom: 0.5rem !important;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .form-control-lg {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .btn-group-vertical .btn {
        margin-bottom: 0.5rem;
    }
    
    .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .d-flex.gap-2 .btn {
        width: 100%;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-brand img {
        height: 55px;
    }

    
    .card-header h5 {
        font-size: 1rem;
    }
    
    .card-header h4 {
        font-size: 1.1rem;
    }
    
    /* Hero Slider Small Mobile Styles - Адаптивная высота */
    .hero-slider-container {
        height: auto !important; /* Адаптивная высота для маленьких экранов */
        min-height: 250px !important; /* Минимальная высота */
        max-height: 320px !important; /* Максимальная высота */
        margin-bottom: 1rem;
        border-radius: 10px;
    }
    
    /* Полностью скрываем все элементы навигации */
    .hero-slider-container .carousel-control-prev,
    .hero-slider-container .carousel-control-next,
    .hero-slider-container .carousel-indicators {
        display: none !important;
    }
    
    /* External indicators removed - using Bootstrap's native indicators */
    
    /* Максимально упрощенный контент */
    .hero-slider-container .hero-section {
        padding: 0.8rem 0 !important;
        text-align: center;
    }
    
    .hero-slider-container .hero-section .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .hero-slider-container .hero-section h1 {
        font-size: 1.5rem !important; /* Увеличен размер заголовка */
        font-weight: 600;
        margin-bottom: 0.6rem !important;
        line-height: 1.1;
    }
    
    .hero-slider-container .hero-section .lead {
        font-size: 0.9rem !important; /* Увеличен размер описания */
        margin-bottom: 1rem !important;
        line-height: 1.3;
        opacity: 0.85;
    }
    
    .hero-slider-container .hero-section .btn {
        font-size: 0.85rem !important; /* Увеличен размер кнопок */
        padding: 0.5rem 1rem !important;
        min-height: 36px !important;
        border-radius: 5px;
        margin-bottom: 0.3rem;
    }
    
    .hero-slider-container .hero-section .d-flex {
        flex-direction: column;
        gap: 0.4rem !important;
        align-items: center;
    }
    
    /* Скрываем все сложные элементы */
    .hero-slider-container .feature-item,
    /* Скрываем только сложные элементы, но не row - он нужен для структуры */
    .hero-slider-container .cashback-features,
    .hero-slider-container .rtp-features,
    .hero-slider-container .col-md-4,
    .hero-slider-container .col-lg-8,
    .hero-slider-container .col-lg-4 {
        display: none !important;
    }
    
    /* На мобильных скрываем карточку статистики, но показываем основной контент */
    .hero-slider-container .user-stats-card {
        display: none !important;
    }
    
    /* Убеждаемся что row и колонки видны на мобильных */
    .hero-slider-container .hero-section .row {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .hero-slider-container .hero-section .row > [class*="col"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    /* Показываем заголовок, описание и кнопки */
    .hero-slider-container .hero-section h1,
    .hero-slider-container .hero-section .lead,
    .hero-slider-container .hero-section .btn {
        display: block !important;
    }
    
    .hero-slider-container .hero-section .d-flex {
        display: flex !important;
    }
    
    /* Убираем все декоративные элементы */
    .hero-slider-container .hero-section h1 i,
    .hero-slider-container .hero-section .btn i {
        display: none !important;
    }
    
    /* Минималистичные тени */
    .hero-slider-container .hero-section h1,
    .hero-slider-container .hero-section .lead {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer,
    #gameContainer {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid var(--border-color) !important;
        background: var(--bg-secondary) !important;
        color: var(--text-primary) !important;
    }
    
/* Force dark theme on mobile devices */
@media (max-width: 768px) {
    html, body {
        background-color: var(--bg-primary) !important;
        color: var(--text-primary) !important;
    }
    
    .container, .container-fluid {
        background-color: transparent !important;
    }
    
    /* Ensure all text elements use dark theme colors */
    h1, h2, h3, h4, h5, h6, p, span, div, a {
        color: var(--text-primary) !important;
        font-family: 'Inter', sans-serif !important;
        font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11' !important;
    }
    
    /* Fix navbar on mobile */
    .navbar {
        background-color: var(--dark-color) !important;
    }
    
    /* Fix form elements */
    .form-control {
        background-color: var(--bg-secondary) !important;
        color: var(--text-primary) !important;
        border-color: var(--border-color) !important;
    }
    
    .form-control:focus {
        background-color: var(--bg-secondary) !important;
        color: var(--text-primary) !important;
        border-color: var(--primary-color) !important;
        box-shadow: 0 0 0 0.2rem rgba(42, 70, 255, 0.25) !important;
    }
}

/* Games Grid Styles - Simplified for Bootstrap */
.games-grid {
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.casino-showcase {
    margin-bottom: 4rem !important;
}

.casino-showcase h2 {
    font-family: 'Inter', sans-serif;
    margin-bottom: 2.5rem !important;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Simple hover effect for game cards */
.game-slot:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .casino-showcase h2 {
        font-size: 2rem;
        margin-bottom: 2rem !important;
    }
}

/* Mobile games grid - принудительно 1 колонка на мобильных устройствах (смартфоны) */
@media screen and (max-width: 768px) {
    .games-grid .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
    }
    
    /* Принудительно сбрасываем все Bootstrap классы - 1 колонка на мобильных */
    .games-grid .row > *,
    .games-grid .row > div,
    .games-grid .row > [class*="col"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
    }
    
    /* Дополнительная защита от Bootstrap - 1 колонка на мобильных */
    .games-grid .col-6,
    .games-grid .col-sm-6,
    .games-grid .col-md-3,
    .games-grid .col-md-4,
    .games-grid .col-lg-2,
    .games-grid .col-lg-3,
    .games-grid .col-xl-2,
    .games-grid [class*="col-"],
    .games-grid [class*="col-xl"],
    .games-grid [class*="col-lg"],
    .games-grid [class*="col-md"],
    .games-grid [class*="col-sm"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
    }
    
    /* Дополнительная защита для всех div внутри games-grid */
    .games-grid div[class*="col"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .game-card {
        margin-bottom: 0.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 12px !important;
    }
    
    .game-card .game-image {
        height: 230px !important; /* Фиксированная высота для мобильных (увеличено на 15%) */
        min-height: 230px !important;
        max-height: 230px !important;
        margin-bottom: 0.15rem !important;
        width: 100% !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        background: var(--casino-gradient) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
    }
    
    .game-card .game-image img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: cover !important; /* Заполняет контейнер, сохраняя пропорции */
        object-position: center !important;
        object-position: center !important;
        border-radius: 8px !important;
        display: block !important;
    }
    
    /* Game placeholder styles removed - no longer needed */
    
    .game-card .game-title {
        font-size: 0.8rem !important;
        margin-top: 0.25rem !important;
        text-align: center !important;
        width: 100% !important;
        color: var(--text-primary) !important;
        font-weight: 600 !important;
        padding: 0.5rem !important;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .hero-section {
        padding: 1.5rem 0 !important;
    }
    
    .hero-section h1 {
        font-size: 1.75rem !important;
    }
    
    .hero-section .lead {
        font-size: 0.9rem;
    }
    
    .card {
        margin-bottom: 0.75rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }
    
    .form-control {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .form-control-lg {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    .stat-item h3 {
        font-size: 1.25rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-brand img {
        height: 25px;
    }
    
    .card-header h4,
    .card-header h5 {
        font-size: 0.95rem;
    }
    
    .dropdown-menu {
        font-size: 0.9rem;
    }
    
    .alert {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    .badge {
        font-size: 0.7em;
    }
    
    /* Слайдер для очень маленьких экранов - Адаптивная высота */
    .hero-slider-container {
        height: auto !important; /* Адаптивная высота для очень маленьких экранов */
        min-height: 220px !important; /* Минимальная высота */
        max-height: 280px !important; /* Максимальная высота */
        margin-bottom: 0.8rem;
        border-radius: 8px;
    }
    
    .hero-slider-container .hero-section {
        padding: 0.6rem 0 !important;
    }
    
    .hero-slider-container .hero-section h1 {
        font-size: 1.3rem !important; /* Увеличен размер заголовка */
        margin-bottom: 0.5rem !important;
    }
    
    .hero-slider-container .hero-section .lead {
        font-size: 0.85rem !important; /* Увеличен размер описания */
        margin-bottom: 0.8rem !important;
    }
    
    .hero-slider-container .hero-section .btn {
        font-size: 0.8rem !important; /* Увеличен размер кнопок */
        padding: 0.4rem 0.8rem !important;
        min-height: 32px !important;
        margin-bottom: 0.3rem !important;
    }
    
    /* External indicators removed - using Bootstrap's native indicators */
}

/* Touch-friendly elements */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .form-control {
        min-height: 44px;
        padding: 0.75rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .dropdown-item {
        padding: 0.75rem 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .game-card:hover {
        transform: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    /* Touch-оптимизация для минималистичного слайдера */
    .carousel-indicators-outside button {
        min-width: 32px;
        min-height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Улучшенная навигация для touch */
    .hero-slider-container {
        touch-action: pan-y pinch-zoom;
    }
    
    .hero-slider-container .carousel-inner {
        touch-action: pan-y;
    }
    
    /* Убираем все hover эффекты на touch устройствах */
    .hero-slider-container .feature-item:hover,
    .hero-slider-container .btn:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #ffffff;
        --text-muted: #cccccc;
        --bg-tertiary: #333333;
    }
    
    .card {
        border-width: 2px;
    }
    
    .btn {
        border-width: 2px;
    }
    
    .form-control {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .game-card:hover {
        transform: none;
    }
}/* Profile Page Styles */
.profile-avatar {
    transition: transform 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.info-item {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.balance-card {
    transition: all 0.3s ease;
}

.balance-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.personal-data-item {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.personal-data-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* Gradient backgrounds */
.bg-gradient-primary {
    background: var(--casino-gradient) !important;
}

.bg-gradient-secondary {
    background: var(--dark-gradient) !important;
}

/* Quick actions buttons */
.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-lg:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Modal styles */
.modal-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

.form-control {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.form-control:focus {
    background-color: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(42, 70, 255, 0.25);
}

.form-label {
    color: var(--text-primary);
}

/* Notification styles */
.alert {
    border: none;
    border-radius: 0.5rem;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.2);
    border-left: 4px solid var(--success-color);
    color: var(--text-primary);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    border-left: 4px solid var(--danger-color);
    color: var(--text-primary);
}

/* Hero section for authenticated users */
.user-stats-card {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 280px;
    margin: 0 auto;
}

/* Welcome features for non-authenticated users */
.welcome-features {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    padding: 0.5rem 0;
}

/* Responsive adjustments for profile */
@media (max-width: 768px) {
    .profile-avatar i {
        font-size: 3rem !important;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .user-stats-card {
        margin-top: 2rem;
    }
}
/* Updated: пятница,  5 сентября 2025 г. 21:50:43 (MSK) */

/* Features Section Styles */
.features-section {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.features-section .card {
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    height: 100%;
}

.features-section .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.features-section .feature-icon {
    margin-bottom: 1.5rem;
}

.features-section .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.features-section .card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Payment Methods Section */
.payment-methods-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    margin-top: 4rem;
    margin-bottom: 6rem !important; /* Принудительный отступ снизу */
    padding: 3rem 0;
}

.payment-methods-section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.payment-methods-grid {
    display: flex !important;
    flex-wrap: nowrap !important; /* Не переносить на новую строку */
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem !important; /* Уменьшенный отступ */
    margin-top: 2rem;
    padding: 0 1rem;
    overflow-x: auto !important; /* Горизонтальная прокрутка если не помещается */
}

.payment-method-item {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    width: 100%;
}

.payment-method-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.payment-method-item img {
    max-width: 100%;
    max-height: 45px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Responsive Payment Methods */
@media (max-width: 768px) {
    .payment-methods-section {
        padding: 2rem 0;
        margin-top: 3rem;
        margin-bottom: 4rem !important; /* Принудительный отступ снизу для мобильных */
    }
    
    .payment-methods-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .payment-methods-grid {
        gap: 0.5rem; /* Уменьшенный отступ */
        margin-top: 1.5rem;
        padding: 0 0.5rem;
        flex-wrap: nowrap; /* Не переносить на новую строку */
        justify-content: center;
        overflow-x: auto; /* Горизонтальная прокрутка */
    }
    
    .payment-method-item {
        padding: 0.75rem;
        height: 60px;
        min-width: 100px;
        max-width: 120px;
        flex-shrink: 0;
    }
    
    .payment-method-item img {
        max-height: 35px;
    }
}

@media (max-width: 480px) {
    .payment-methods-grid {
        gap: 0.25rem; /* Минимальный отступ */
        padding: 0 0.25rem;
        flex-wrap: nowrap; /* Не переносить на новую строку */
        justify-content: center;
        overflow-x: auto; /* Горизонтальная прокрутка */
    }
    
    .payment-method-item {
        padding: 0.5rem;
        height: 50px;
        min-width: 80px;
        max-width: 100px;
        flex-shrink: 0;
    }
    
    .payment-method-item img {
        max-height: 30px;
    }
}

.stat-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.stat-icon {
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-number {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Responsive adjustments for statistics */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-icon i {
        font-size: 2rem !important;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
}

/* Стили для игровых слотов - удалены дублирующиеся стили */

/* Payment Methods - Override Styles */
.payment-methods-section {
    margin-bottom: 6rem !important;
}

@media (max-width: 768px) {
    .payment-methods-section {
        margin-bottom: 4rem !important;
    }
    
    .payment-method-item {
        height: 80px !important;
    }
}

/* Recent Wins Ticker Styles */
.wins-ticker-section {
    background: linear-gradient(135deg, rgba(42, 70, 255, 0.05) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-radius: 15px;
    border: 1px solid rgba(42, 70, 255, 0.1);
    margin-top: 4rem;
    margin-bottom: 4rem;
    padding: 3rem 0;
}

/* Bootstrap ticker card styles */
.ticker-card {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
    border-radius: 12px !important;
}

.ticker-card:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(42, 70, 255, 0.2);
}

.ticker-card .card-body {
    padding: 0.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
}

/* Win type colors */
.mega-win {
    color: #ffc107 !important;
}

.jumbo-win {
    color: #fd7e14 !important;
}

.giant-win {
    color: #20c997 !important;
}

.mythic-win {
    color: #6f42c1 !important;
}

/* Ensure ticker stays in single line */
#winsTickerTrack {
    flex-wrap: nowrap !important;
}

.wins-header {
    position: relative;
    padding: 2rem 0;
}

/* Footer styles - белый цвет для заголовков и иконок */
footer .text-primary,
footer h5.text-primary,
footer h6.text-primary,
footer .text-primary i,
footer .text-primary .fas,
footer .text-primary .fab,
footer .footer-social a,
footer .footer-social a i,
footer .footer-social .fas,
footer .footer-social .fab {
    color: #ffffff !important;
}

.wins-header .section-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.02em;
    font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

.wins-header .section-title i {
    animation: pulse-glow 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.5));
}

.wins-header .gradient-text {
    background: linear-gradient(45deg, #2a46ff, #ffc107, #28a745, #dc3545);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(42, 70, 255, 0.3);
}



/* Responsive adjustments for ticker */
@media (max-width: 1200px) {
    .ticker-card {
        width: 170px !important;
        height: 78px !important;
    }
}

@media (max-width: 992px) {
    .ticker-card {
        width: 160px !important;
        height: 75px !important;
    }
    
    .ticker-card .card-body {
        padding: 0.4rem !important;
    }
}

@media (max-width: 768px) {
    .wins-ticker-section {
        margin-top: 3rem;
        margin-bottom: 3rem;
        padding: 2rem 0;
    }
    
    .wins-header .section-title {
        font-size: 2rem;
    }
    
    .wins-header .section-title i {
        font-size: 1.5rem !important;
    }
    
    .wins-ticker-container {
        height: 80px !important;
    }
    
    .ticker-card {
        width: 150px !important;
        height: 70px !important;
    }
    
    .ticker-card .card-body {
        padding: 0.35rem !important;
    }
}

@media (max-width: 576px) {
    .wins-ticker-section {
        margin-top: 2rem;
        margin-bottom: 2rem;
        padding: 1.5rem 0;
    }
    
    .wins-header .section-title {
        font-size: 1.8rem;
    }
    
    .wins-header .section-title i {
        font-size: 1.3rem !important;
    }
    
    .wins-ticker-container {
        height: 75px !important;
    }
    
    .ticker-card {
        width: 130px !important;
        height: 65px !important;
    }
    
    .ticker-card .card-body {
        padding: 0.3rem !important;
    }
}

@media (max-width: 480px) {
    .wins-ticker-container {
        height: 70px !important;
    }
    
    .ticker-card {
        width: 120px !important;
        height: 60px !important;
    }
    
    .ticker-card .card-body {
        padding: 0.25rem !important;
    }
}

@media (max-width: 360px) {
    .wins-ticker-container {
        height: 65px !important;
    }
    
    .ticker-card {
        width: 110px !important;
        height: 55px !important;
    }
    
    .ticker-card .card-body {
        padding: 0.2rem !important;
    }
}

/* Стили для красивого заголовка "Популярные игры" */
.section-header {
    position: relative;
    padding: 2rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title i {
    animation: pulse-glow 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.5));
}

.gradient-text {
    background: linear-gradient(45deg, #2a46ff, #ffc107, #28a745, #dc3545);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(42, 70, 255, 0.3);
}

/* Анимации */
@keyframes pulse-glow {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(255, 193, 7, 0.5));
    }
    100% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(255, 193, 7, 0.8));
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-title i {
        font-size: 1.5rem !important;
    }
}

/* OAuth Buttons Styles */
.oauth-btn {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px; /* Минимальная высота для удобства нажатия на мобильных */
    font-weight: 500;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.oauth-btn i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.oauth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

.oauth-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Специальные стили для кнопки Google */
.oauth-btn.btn-danger {
    background: linear-gradient(135deg, #db4437 0%, #c23321 100%);
    color: white;
}

.oauth-btn.btn-danger:hover {
    background: linear-gradient(135deg, #c23321 0%, #a52a1f 100%);
    color: white;
}

/* Специальные стили для кнопки Telegram */
.oauth-btn.btn-primary {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
    color: white;
}

.oauth-btn.btn-primary:hover {
    background: linear-gradient(135deg, #006699 0%, #004466 100%);
    color: white;
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 576px) {
    .oauth-btn {
        font-size: 0.8rem;
        padding: 0.45rem 0.6rem;
        min-height: 42px;
    }
    
    .oauth-btn i {
        font-size: 1rem;
    }
}

/* Адаптивность для средних экранов */
@media (min-width: 768px) and (max-width: 991px) {
    .oauth-btn {
        font-size: 0.9rem;
        padding: 0.55rem 0.8rem;
    }
}

/* Адаптивность для больших экранов */
@media (min-width: 992px) {
    .oauth-btn {
        font-size: 0.95rem;
        padding: 0.6rem 1rem;
    }
    
    .oauth-btn i {
        font-size: 1.2rem;
    }
}

/* CRITICAL: Force white carousel elements - Maximum priority */
body .carousel-control-prev-icon,
body .carousel-control-next-icon,
body .hero-slider-container .carousel-control-prev-icon,
body .hero-slider-container .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e") !important;
    filter: brightness(0) invert(1) !important;
}

body .carousel-control-next-icon,
body .hero-slider-container .carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
    filter: brightness(0) invert(1) !important;
}

body .carousel-indicators button.active,
body .hero-slider-container .carousel-indicators button.active {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
}
}
