/* Bonus info page */
.promozioni-page {
    min-height: 100vh;
    padding: 40px 0;
}

.promo-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--color-primary-100) 0%, var(--color-bg-01) 100%);
    /* color: white; */
    color: var(--color-primary-text);
    border-radius: 15px;
}

.promo-header h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.promo-header p {
    font-size: 20px;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

.promo-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.filter-tab {
    background: white;
    border: 2px solid #e0e0e0;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #555;
}

.filter-tab:hover {
    border-color: var(--color-primary-100);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(from var(--color-primary-100) r g b / 0.2);
}

.filter-tab.active {
    background: linear-gradient(135deg, var(--color-primary-100) 0%, var(--color-bg-01) 100%);
    border-color: var(--color-primary-100);
    /* color: white; */
    color: var(--color-primary-text);
    box-shadow: 0 4px 12px rgba(from var(--color-primary-100) r g b / 0.4);
}

.filter-tab i {
    margin-right: 8px;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.promo-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.promo-card-banner {
    height: 200px;
    background: linear-gradient(135deg, var(--color-primary-100) 0%, var(--color-bg-01) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* color: white; */
    color: var(--color-primary-text);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.promo-card-banner.has-image {
    padding: 0;
    background: none;
}

.promo-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-card-banner.has-image .promo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.promo-card-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.promo-card-banner.welcome { background: linear-gradient(135deg, var(--color-primary-100) 0%, var(--color-bg-01) 100%); }
.promo-card-banner.reload { background: linear-gradient(135deg, var(--color-primary-100) 0%, var(--color-bg-01) 100%); }
.promo-card-banner.cashback { background: linear-gradient(135deg, var(--color-primary-100) 0%, var(--color-bg-01) 100%); }
.promo-card-banner.vip { background: linear-gradient(135deg, var(--color-primary-100) 0%, var(--color-bg-01) 100%); }
.promo-card-banner.special { background: linear-gradient(135deg, var(--color-primary-100) 0%, var(--color-bg-01) 100%); }

.promo-percentage {
    font-size: 56px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.promo-trigger {
    font-size: 14px;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.promo-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.95);
    color: var(--color-primary-100);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 2;
}

.promo-badge.new {
    background: #ff6b6b;
    /* color: white; */
    color: var(--color-primary-text);
}

.promo-badge.hot {
    background: #ffa502;
    /* color: white; */
    color: var(--color-primary-text);
}

.promo-countdown-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    /* color: white; */
    color: var(--color-primary-text);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 2;
}

.promo-countdown-badge i {
    margin-right: 5px;
}

.promo-card-body {
    padding: 25px;
}

.promo-card-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--color-secondary-text);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-card-description {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.promo-details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.promo-details-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.promo-details-list li:last-child {
    border-bottom: none;
}

.promo-detail-label {
    color: #7f8c8d;
    font-weight: 500;
}

.promo-detail-value {
    color: var(--color-secondary-text);
    font-weight: 700;
}

.promo-card-footer {
    padding: 0 25px 25px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.btn-promo {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--color-primary-100) 0%, var(--color-bg-01) 100%);
    /* color: white; */
    color: var(--color-primary-text);
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(from var(--color-primary-100) r g b / 0.4);
}

.promo-loading {
    text-align: center;
    padding: 80px 20px;
    color: #7f8c8d;
}

.promo-loading i {
    font-size: 48px;
    color: var(--color-primary-100);
    margin-bottom: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.promo-empty {
    text-align: center;
    padding: 80px 20px;
    color: #7f8c8d;
}

.promo-empty i {
    font-size: 72px;
    color: #ddd;
    margin-bottom: 20px;
}

.promo-empty h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.modal-promo.modal-fullscreen .modal-dialog {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    max-width: none;
}

.modal-promo.modal-fullscreen .modal-content {
    height: 100%;
    border: none;
    border-radius: 0;
}

.modal-promo.modal-fullscreen .modal-body {
    overflow-y: auto;
    max-height: calc(100vh - 60px);
}

.modal-promo .modal-header {
    background: linear-gradient(135deg, var(--color-primary-100) 0%, var(--color-bg-01) 100%);
    /* color: white; */
    color: var(--color-primary-text);
    padding: 25px 30px;
    border: none;
}

.modal-promo .modal-title {
    font-size: 28px;
    font-weight: bold;
    /* color: white; */
    color: var(--color-primary-text);
}

.modal-promo .close {
    /* color: white; */
    color: var(--color-primary-text);
    opacity: 1;
    font-size: 32px;
    font-weight: 300;
    text-shadow: none;
}

.modal-promo .close:hover {
    color: rgba(255,255,255,0.8);
}

.modal-hero-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.modal-promo .modal-body .fa-spinner {
    color: var(--color-primary-100);
}

.modal-promo .modal-body {
    padding: 0;
    background: white;
}

.modal-content-wrapper {
    padding: 40px;
}

.promo-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.promo-highlight-box {
    background: linear-gradient(135deg, var(--color-primary-100) 0%, var(--color-bg-01) 100%);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    /* color: white; */
    color: var(--color-primary-text);
    box-shadow: 0 4px 15px rgba(from var(--color-primary-100) r g b / 0.3);
    transition: transform 0.3s ease;
}

.promo-highlight-box:hover {
    transform: translateY(-5px);
}

.promo-highlight-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
    margin-bottom: 8px;
    font-weight: 600;
}

.promo-highlight-value {
    font-size: 32px;
    font-weight: bold;
    /* color: white; */
    color: var(--color-primary-text);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.promo-highlight-value.large {
    font-size: 48px;
}

.promo-highlight-value i {
    margin-right: 8px;
}

.modal-section {
    margin-bottom: 40px;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--color-primary-100);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--color-primary-100);
    display: flex;
    align-items: center;
}

.modal-section-title i {
    margin-right: 12px;
    font-size: 28px;
}

.modal-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-secondary-text);
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--color-primary-100);
}

.modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-list li {
    background: #f8f9fa;
    padding: 15px 20px;
    margin-bottom: 12px;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary-100);
    color: var(--color-secondary-text);
    font-size: 15px;
    line-height: 1.6;
}

.modal-list li strong {
    font-weight: 700;
}

.modal-list li i {
    margin-right: 10px;
}

.promo-countdown-value {
    font-size: 18px;
    font-weight: bold;
}

.promo-countdown-value.expired {
    color: #e74c3c;
}

@media (max-width: 768px) {
    .promo-header h1 {
        font-size: 32px;
    }
    
    .promo-header p {
        font-size: 16px;
    }
    
    .promo-grid {
        grid-template-columns: 1fr;
    }
    
    .promo-filters {
        flex-direction: column;
    }
    
    .filter-tab {
        width: 100%;
        text-align: center;
    }
    
    .promo-highlight-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content-wrapper {
        padding: 20px;
    }
    
    .modal-section-title {
        font-size: 20px;
    }
    
    .promo-highlight-value {
        font-size: 28px;
    }
    
    .promo-highlight-value.large {
        font-size: 40px;
    }
}

.promo-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.promo-stat {
    text-align: center;
}

.promo-stat-number {
    font-size: 36px;
    font-weight: bold;
    /* color: white; */
    color: var(--color-primary-text);
    display: block;
}

.promo-stat-label {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* Bonus info page */



/* Bonus modal */
#bonusModal .modal-dialog {
    max-width: 800px;
}

#bonusOptionsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.bonus-option {
    position: relative;
}

.bonus-card {
    border: 2px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bonus-card:hover {
    border-color: #337ab7;
    box-shadow: 0 4px 12px rgba(51, 122, 183, 0.3);
    transform: translateY(-2px);
}

.bonus-card-real {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.bonus-card-real .bonus-balance {
    color: white;
}

.bonus-header {
    padding: 15px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
}

.bonus-card-real .bonus-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.bonus-header h5 {
    margin: 0;
    font-weight: bold;
    font-size: 16px;
}

.bonus-header .bonus-badge {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 8px;
    font-weight: normal;
}

.bonus-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bonus-balance {
    font-size: 28px;
    color: #28a745;
    font-weight: bold;
    margin: 10px 0;
    text-align: center;
}

.bonus-info {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    flex: 1;
}

.bonus-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.bonus-info-row:last-child {
    border-bottom: none;
}

.bonus-info-label {
    font-weight: 600;
    color: #333;
}

.bonus-info-value {
    color: #666;
}

.bonus-progress {
    margin: 10px 0;
}

.bonus-progress-bar {
    background: #e9ecef;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    position: relative;
}

.bonus-progress-fill {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    height: 100%;
    transition: width 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: bold;
}

.bonus-expiry {
    text-align: center;
    font-size: 12px;
    color: #dc3545;
    margin-top: 10px;
}

.bonus-expiry i {
    margin-right: 5px;
}

.select-balance {
    margin-top: auto;
}

.bonus-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    #bonusOptionsContainer {
        grid-template-columns: 1fr;
    }
}
/* Bonus modal */



/* Bonus modal reward */
.reward-info-box {
    padding: 30px;
    text-align: center;
}

.reward-header {
    margin-bottom: 30px;
}

.reward-header h4 {
    margin-top: 15px;
    color: #333;
    font-size: 24px;
    font-weight: bold;
}

.reward-amounts {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.amount-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #dee2e6;
}

.amount-row:last-child {
    border-bottom: none;
}

.reward-row {
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.2) 100%);
    margin: 0 -20px;
    padding: 12px 20px;
}

.reward-value {
    color: #ffa500;
    font-weight: bold;
    font-size: 18px;
}

.total-row {
    background: linear-gradient(90deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.2) 100%);
    margin: 0 -20px;
    padding: 15px 20px;
    font-size: 18px;
}

.total-value {
    color: #28a745;
    font-size: 22px;
}

.amount-label {
    font-size: 15px;
    color: #666;
}

.amount-value {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.reward-info {
    text-align: left;
    margin-bottom: 25px;
}

.reward-info p {
    margin: 10px 0;
    color: #666;
    font-size: 14px;
}

.reward-info i {
    margin-right: 8px;
    color: #28a745;
}

.start-game-reward {
    font-size: 18px;
    padding: 15px;
    font-weight: bold;
}

/* Animazione per il reward */
@keyframes rewardGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

.reward-info-box {
    animation: rewardGlow 2s infinite;
}
/* Bonus modal reward */



/* Notification overlay */

    /* Notification overlay - Z-INDEX ALTISSIMO */
    .bonus-notification-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.9);
        z-index: 999999999999999999 !important;
        justify-content: center;
        align-items: center;
    }
    
    .bonus-notification-overlay.show {
        display: flex !important;
    }
    
    .bonus-notification {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 3em;
        border-radius: 20px;
        max-width: 500px;
        min-width: 300px;
        text-align: center;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        animation: slideIn 0.4s ease-out;
        position: relative;
        z-index: 999999999999999999 !important;
    }
    
    .bonus-notification.success {
        background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    }
    
    .bonus-notification.info {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    }
    
    .bonus-notification h2 {
        margin: 0 0 1em 0;
        font-size: 2em;
        font-weight: bold;
    }
    
    .bonus-notification p {
        margin: 0 0 2em 0;
        font-size: 1.2em;
        line-height: 1.6;
    }
    
    .bonus-notification button {
        background: white;
        color: #333;
        border: none;
        padding: 1em 3em;
        border-radius: 30px;
        font-size: 1.1em;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.3s;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .bonus-notification button:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }
    
    @keyframes slideIn {
        from {
            transform: translateY(-100px) scale(0.8);
            opacity: 0;
        }
        to {
            transform: translateY(0) scale(1);
            opacity: 1;
        }
    }
    
    /* Toast notification per reward terminato */
    .bonus-toast {
        display: none;
        position: fixed;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        color: white;
        padding: 1.5em 3em;
        border-radius: 30px;
        z-index: 999999999999999998 !important;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
        animation: slideDown 0.4s ease-out;
        font-size: 1.1em;
        font-weight: bold;
    }
    
    .bonus-toast.show {
        display: block !important;
    }
    
    @keyframes slideDown {
        from {
            transform: translate(-50%, -100px);
            opacity: 0;
        }
        to {
            transform: translate(-50%, 0);
            opacity: 1;
        }
    }

/* Notification overlay */
