/* TurboBet777 - Casino Styles */

/* Casino Page */
.casino-page {
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Navbar */
.casino-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-brand h1 {
    margin: 0;
}

.balance-display {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg-darker);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-refresh {
    background: none;
    border: none;
    color: var(--bg-darker);
    cursor: pointer;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.btn-refresh:hover {
    opacity: 1;
}

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.user-menu {
    position: relative;
}

.btn-user {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
}

.btn-user:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 220px;
    border-radius: 16px;
    overflow: hidden;
    padding: 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.text-danger {
    color: var(--danger) !important;
}

/* Hero */
.hero-section {
    text-align: center;
    margin: 60px 0;
}

.hero-title {
    font-size: 64px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
}

/* Provider Filter */
.provider-filter-wrapper {
    position: relative;
    margin-bottom: 32px;
}

.provider-filter {
    display: flex;
    gap: 16px;
    overflow-x: hidden;
    overflow-y: visible;
    scroll-behavior: smooth;
    padding: 24px;
    border-radius: 20px;
    scrollbar-width: none;
}

.provider-filter::-webkit-scrollbar {
    display: none;
}

.provider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
    transition: all 0.3s;
    z-index: 10;
}

.provider-nav-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.5);
}

.provider-nav-left {
    left: -16px;
}

.provider-nav-right {
    right: -16px;
}

.provider-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.provider-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.provider-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.provider-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary-light);
    color: white;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

/* Search */
.search-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.search-bar i {
    font-size: 20px;
    color: var(--primary-light);
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    outline: none;
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-results {
    color: var(--text-muted);
    font-size: 14px;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.game-card {
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 16px 40px rgba(139, 92, 246, 0.3);
}

.game-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.game-card:hover .game-thumbnail img {
    transform: scale(1.1);
}

.game-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-info {
    padding: 16px;
}

.game-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-provider {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.game-original {
    color: var(--gold);
    font-weight: 600;
}

/* States */
.loading-state,
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.loading-state i {
    color: var(--primary);
    margin-bottom: 24px;
}

.empty-state i {
    color: var(--text-muted);
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 40px 0;
}

.page-info {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Auth Modal */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.auth-modal {
    max-width: 480px;
    width: 100%;
    border-radius: 24px;
    padding: 24px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 32px;
}

.modal-header h2 {
    font-size: 36px;
    margin-bottom: 8px;
}

.modal-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

.modal-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.modal-tab {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    color: var(--text-secondary);
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
}

.modal-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary-light);
    color: white;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
}

.form-group label i {
    margin-right: 8px;
    color: var(--primary-light);
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.btn-block {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    margin-top: 8px;
}

.alert {
    padding: 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.modal-terms {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: -8px;
}

.modal-terms a {
    color: var(--primary-light);
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .nav-content {
        flex-wrap: wrap;
    }

    .nav-balance {
        order: 3;
        width: 100%;
        margin-top: 12px;
    }

    .balance-display {
        width: 100%;
        justify-content: center;
    }

    .auth-modal {
        padding: 24px;
    }

    .modal-header h2 {
        font-size: 28px;
    }
}

   