/* Bonus System Styles - bonus.css - Modern Redesign */
/* Additional styles to integrate with bonus.php */

/* Modern Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(61,165,255,0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(34,119,201,0.8);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Bonus Sections */
.bonus-section#reload-bonus-container {
    display: none;
}
.bonus-section#referral-stats-container {
    display: none;
}

.bonus-section-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 2rem 0 1.5rem 0;
    color: white;
    text-align: center;
    background: #8cc63e;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease-out;
    text-shadow: 0 4px 20px rgba(61,165,255,0.3);
}

/* Deposit Bonus Cards */
.deposit-bonus-card {
    background: linear-gradient(135deg, 
        rgba(61,165,255,0.1) 0%, 
        rgba(34,119,201,0.1) 50%, 
        rgba(153,209,255,0.1) 100%);
    border-radius: 16px;
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.deposit-bonus-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.deposit-bonus-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 48px rgba(61,165,255,0.4);
    border-color: rgba(61,165,255,0.3);
}

.deposit-bonus-card .bonus-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.deposit-bonus-card .deposit-amount {
    font-weight: 700;
    color: white;
    font-size: 1.1rem;
}

.deposit-bonus-card .bonus-amount {
    font-weight: 900;
    color: white;
    font-size: 1.4rem;
    background: linear-gradient(135deg, #3da5ff, #2277c9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.deposit-bonus-card .bonus-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
}

/* Reload Bonus Cards */
.reload-bonus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.reload-bonus-card {
    background: linear-gradient(135deg, 
        rgba(11,44,76,0.95) 0%,
        rgba(14,56,96,0.95) 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.reload-bonus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #3da5ff, #2277c9, #99d1ff);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.reload-bonus-card:hover::before {
    opacity: 1;
}

.reload-bonus-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 60px rgba(61,165,255,0.5);
    animation: glow 2s infinite;
}

.reload-bonus-card.disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(1);
}

.reload-bonus-card .bonus-header {
    padding: 2rem 1.5rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.reload-bonus-card .bonus-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 4s infinite;
}

.reload-bonus-card.slots .bonus-header {
    background: linear-gradient(135deg, #8cc63e 0%, #14548c 50%, #0e3860 100%);
}

.reload-bonus-card.casino .bonus-header {
    background: linear-gradient(135deg, #99d1ff 0%, #2277c9 50%, #ff575a 100%);
}

.reload-bonus-card.sports .bonus-header {
    background: linear-gradient(135deg, #3da5ff 0%, #1a63a8 50%, #2277c9 100%);
}

.reload-bonus-card .bonus-percentage {
    font-size: 3.5rem;
    font-weight: 900;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
    animation: pulse 2s infinite;
}

.reload-bonus-card .bonus-body {
    padding: 2rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
}

.reload-bonus-card .bonus-details-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.reload-bonus-card .bonus-details-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s;
}

.reload-bonus-card .bonus-details-list li:hover {
    padding-left: 10px;
    color: white;
    border-color: rgba(61,165,255,0.5);
}

/* Referral Stats */
.referral-stats {
    background: linear-gradient(135deg, 
        rgba(8,34,56,0.96) 0%,
        rgba(0, 0, 0, 0.98) 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(140,198,62,0.25);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
}

.referral-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(140,198,62,0.12), transparent 70%);
    pointer-events: none;
}

.referral-stats h3 {
    text-align: center;
    color: white;
    margin-bottom: 0.75rem;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #d0e8ab, #8cc63e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.referral-info {
    text-align: center;
    color: rgba(255, 255, 255, 0.94);
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
    position: relative;
    z-index: 1;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, 
        rgba(140,198,62,0.9) 0%, 
        rgba(14,56,96,0.9) 100%);
    color: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 50px rgba(140,198,62,0.5);
}

.stat-card label {
    display: block;
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.stat-card .stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Pending Referrals */
.pending-referrals,
.awarded-bonuses {
    margin: 2rem 0;
}

.pending-referral-item {
    background: linear-gradient(135deg, 
        rgba(14,56,96,0.8) 0%,
        rgba(14,56,96,0.8) 100%);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(61,165,255,0.2);
    transition: all 0.3s;
    animation: slideInLeft 0.6s ease-out;
}

.pending-referral-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 24px rgba(61,165,255,0.3);
    border-color: rgba(61,165,255,0.4);
}

.pending-referral-item .referral-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.pending-referral-item .referral-mobile {
    font-weight: 700;
    color: white;
}

.progress-bar-container {
    background: rgba(14,56,96,0.6);
    border-radius: 12px;
    height: 24px;
    overflow: hidden;
    margin: 0.75rem 0;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.progress-bar-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shimmer 2s infinite;
}

.progress-bar {
    background: linear-gradient(135deg, #8cc63e 0%, #14548c 50%, #0e3860 100%);
    height: 100%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(140,198,62,0.6);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

.remaining {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

.awarded-bonus-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, 
        rgba(17,70,117,0.8) 0%,
        rgba(14,56,96,0.8) 100%);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 1px solid rgba(153,209,255,0.2);
    transition: all 0.3s;
    animation: fadeInUp 0.6s ease-out;
}

.awarded-bonus-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 24px rgba(153,209,255,0.3);
    border-color: rgba(153,209,255,0.4);
}

.awarded-bonus-item .fas {
    font-size: 2rem;
    color: #99d1ff;
    animation: pulse 2s infinite;
}

.awarded-bonus-item .text-success {
    color: white;
    font-weight: 600;
}

.awarded-bonus-item .bonus-amount {
    font-weight: 900;
    color: white;
    margin-left: auto;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #3da5ff, #2277c9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.awarded-bonus-item .bonus-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Success Modal */
.bonus-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 0.4s ease-out;
}

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

.modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    max-width: 550px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 0, 0, 0.12);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
    background: #ffffff;
    color: #082238;
    padding: 2rem;
    text-align: center;
    border-radius: 24px 24px 0 0;
    border-bottom: 1px solid #ececec;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    display: none;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
    text-shadow: none;
    color: #082238;
}

.modal-body {
    padding: 2.5rem;
    text-align: center;
}

.success-animation {
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    color: #8cc63e;
    margin-bottom: 1.5rem;
    font-size: 4rem;
}

@keyframes bounceIn {
    0% { 
        transform: scale(0) rotate(0deg); 
        opacity: 0;
    }
    50% { 
        transform: scale(1.3) rotate(180deg); 
    }
    100% { 
        transform: scale(1) rotate(360deg); 
        opacity: 1;
    }
}

.bonus-amount-display {
    font-size: 3.5rem;
    color: #082238;
    font-weight: 900;
    margin: 1.5rem 0;
    background: #8cc63e;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: pulse 2s infinite;
}

.bonus-subtitle {
    color: #0e3860;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.bonus-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.detail-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, 
        rgba(140,198,62,0.18) 0%,
        rgba(140,198,62,0.08) 100%);
    border-radius: 16px;
    border: 1px solid rgba(140,198,62,0.45);
    transition: all 0.3s;
}

.detail-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(140,198,62,0.4);
}

.detail-item label {
    display: block;
    font-size: 0.9rem;
    color: #555555;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.detail-item span {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: #082238;
}

.modal-footer {
    padding: 2rem;
    text-align: center;
}

.btn-primary {
    background: #8cc63e;
    color: #082238;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(140,198,62,0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 40px rgba(140,198,62,0.6);
}

/* Alerts */
.alert {
    padding: 1.5rem;
    border-radius: 16px;
    margin: 1.5rem 0;
    border: 1px solid;
    animation: slideInLeft 0.6s ease-out;
}

.alert-info {
    background: linear-gradient(135deg, 
        rgba(47,138,224,0.15) 0%,
        rgba(34,119,201,0.15) 100%);
    color: white;
    border-color: rgba(34,119,201,0.3);
}

.alert-warning {
    background: linear-gradient(135deg, 
        rgba(140,198,62,0.15) 0%,
        rgba(140,198,62,0.15) 100%);
    color: white;
    border-color: rgba(140,198,62,0.3);
}

.no-bonuses,
.no-data {
    text-align: center;
    padding: 3rem 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    font-size: 1.1rem;
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .reload-bonus-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .bonus-details-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        border-radius: 20px;
    }
    
    .bonus-card.horizontal,
    .reload-bonus-card.horizontal {
        flex-direction: column;
    }
    
    .bonus-card.horizontal .bonus-banner,
    .reload-bonus-card.horizontal .bonus-banner {
        width: 100%;
        min-height: 150px;
        margin: 0;
        border-radius: 12px 12px 0 0;
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .bonus-card.horizontal .bonus-banner img,
    .reload-bonus-card.horizontal .bonus-banner img {
        width: 100%;
        height: auto;
        box-sizing: border-box;
        border-radius: 8px 8px 0 0;
        display: block;
    }
    
    .bonus-card.horizontal .bonus-details,
    .reload-bonus-card.horizontal .bonus-details {
        width: 100%;
    }
    
    .bonus-section-title {
        font-size: 1.5rem;
    }
    
    .referral-stats {
        padding: 1.5rem;
    }
    
    .modal-header h3 {
        font-size: 1.5rem;
    }
    
    .bonus-amount-display {
        font-size: 2.5rem;
    }
}

/* All Bonus Banner Styles - Modern Design */
.bonus-banner {
    width: 100%;
    border-radius: 16px;
    box-sizing: border-box;
    background: linear-gradient(135deg, 
        rgba(11,44,76,0.95) 0%,
        rgba(14,56,96,0.95) 100%);
    overflow: hidden;
    min-height: 180px;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    position: relative;
    transition: all 0.4s;
}

.bonus-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(61,165,255,0.1),
        transparent
    );
    animation: shimmer 3s infinite;
}

.bonus-banner:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(61,165,255,0.4);
}

.bonus-banner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-sizing: border-box;
    transition: transform 0.4s;
}

.bonus-banner:hover img {
    transform: scale(1.05);
}

.bonus-card .bonus-banner {
    display: block;
    margin-bottom: 1.5rem;
}

.reload-bonus-card .bonus-banner {
    min-height: 180px;
}

.bonus-card.horizontal,
.reload-bonus-card.horizontal {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}

.bonus-card.horizontal .bonus-banner,
.reload-bonus-card.horizontal .bonus-banner {
    width: 48%;
    margin-bottom: 0;
}

.bonus-card.horizontal .bonus-banner img,
.reload-bonus-card.horizontal .bonus-banner img {
    min-height: auto;
}

.bonus-card.horizontal .bonus-details,
.reload-bonus-card.horizontal .bonus-details {
    flex: 1;
    background: linear-gradient(135deg, 
        rgba(8,34,56,0.95) 0%,
        rgba(11,44,76,0.95) 100%);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(61,165,255,0.2);
}

.bonus-card.horizontal .bonus-title,
.reload-bonus-card.horizontal .bonus-title {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #3da5ff, #2277c9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bonus-card.horizontal .bonus-description,
.reload-bonus-card.horizontal .bonus-description {
    color: rgba(255, 255, 255, 0.9);
    margin: 0.75rem 0 1.25rem 0;
    line-height: 1.6;
}

.bonus-card.horizontal .bonus-description p,
.reload-bonus-card.horizontal .bonus-description p {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.bonus-card.horizontal .bonus-terms {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.reload-bonus-card.horizontal .bonus-header { 
    display: none; 
}

.reload-bonus-card.horizontal .bonus-body { 
    padding: 0; 
}

main.main-content img {
    border-radius: 16px;
    box-sizing: border-box;
    object-fit: cover;
    display: block;
    transition: all 0.4s;
}

main.main-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(61,165,255,0.4);
}
