/* Модальное окно альтернативных казино */
.aces-alt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.aces-alt-modal.active {
    opacity: 1;
    pointer-events: all;
}

.aces-alt-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.aces-alt-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    z-index: 1;
}

.aces-alt-modal.active .aces-alt-modal-content {
    transform: scale(1);
}

.aces-alt-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    color: #666;
    z-index: 2;
}

.aces-alt-modal-close:hover {
    background: #f0f0f0;
    color: #000;
}

.aces-alt-modal-message {
    text-align: center;
    margin-bottom: 30px;
}

.aces-alt-modal-message p {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    font-weight: 500;
}

.aces-alt-modal-casinos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.aces-alt-modal-casino-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.aces-alt-modal-casino-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #e0e0e0;
}

.aces-alt-modal-casino-logo {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
}

.aces-alt-modal-casino-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.aces-alt-modal-casino-title h3 {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin: 0;
    line-height: 1.4;
}

.aces-alt-modal-casino-rating {
    margin: 5px 0;
}

.aces-alt-modal-promo {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aces-alt-modal-promo-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 10px 15px;
    gap: 10px;
}

.promo-code-text {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    letter-spacing: 1px;
    flex: 1;
    text-align: left;
}

.aces-alt-modal-copy-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #666;
    flex-shrink: 0;
}

.aces-alt-modal-copy-btn:hover {
    background: #f0f0f0;
    color: #000;
}

.aces-alt-modal-copy-btn.copied {
    color: #4CAF50;
}

.aces-alt-modal-promo-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aces-alt-modal-casino-button {
    width: 100%;
    margin-top: 5px;
}

.aces-alt-modal-play-btn {
    display: inline-block;
    width: 100%;
    padding: 14px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.aces-alt-modal-play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: #fff;
    text-decoration: none;
}

/* Кнопка триггер модалки */
.aces-alt-modal-trigger {
    cursor: pointer;
}

/* Стили для инжектированной кнопки на странице казино */
.aces-injected-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.aces-injected-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    color: #fff !important;
    text-decoration: none !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .aces-alt-modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    
    .aces-alt-modal-casinos {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .aces-alt-modal-message p {
        font-size: 16px;
    }
    
    .aces-alt-modal-casino-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .aces-alt-modal-content {
        padding: 25px 15px;
        border-radius: 12px;
    }
    
    .aces-alt-modal-casino-logo {
        width: 80px;
        height: 80px;
    }
    
    .aces-alt-modal-casino-title h3 {
        font-size: 16px;
    }
    
    .promo-code-text {
        font-size: 14px;
    }
    
    .aces-alt-modal-play-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* Скрываем скролл у body когда модалка открыта */
body.aces-modal-open {
    overflow: hidden;
}