/* VIP Benefits Page Styles */

/* Ensure page is scrollable */
.page-content:has(.vip-benefits-container),
.page-content .vip-benefits-container {
    overflow-y: auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
}

/* Fallback for browsers without :has() support */
.vip-benefits-page .page-content {
    overflow-y: auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: auto !important;
}

.vip-benefits-container {
    padding-bottom: 6rem;
    min-height: auto;
    overflow: visible;
}

.vip-section-header {
    background-color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* VIP Carousel Styles */
.vip-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 10px;
}

.vip-carousel {
    position: relative;
    width: 100%;
}

.vip-carousel-slides {
    display: flex;
    transition: transform 0.4s ease-in-out;
    will-change: transform;
}

.vip-carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    padding: 0 15px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    position: relative;
}

.vip-image-container {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: transparent;
}

    .vip-image-container img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
        background: transparent;
    }

/* VIP Level Name Overlay */
.vip-level-name-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 8px 16px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.vip-deposit-progress-container {
    padding: 0 1.5rem;
}

.progress-bar-wrapper {
    width: 100%;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: #fff;
    border-radius: 10px;
    transition: width 0.6s ease-in-out;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

@keyframes shimmer {
    0% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.9);
    }

    100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    }
}

.progress-text {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--text-primary-color);
    margin-bottom: 4px;
}

.progress-label {
    font-size: 16px;
    color: var(--text-primary-color);
    display: flex;
    gap: 10px;
}

.progress-amount {
    font-size: 18px;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-details {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 11px;
    margin-top: 4px;
    opacity: 0.85;
}

.progress-current {
    font-weight: 500;
}

.progress-separator {
    opacity: 0.6;
}

.progress-required {
    font-weight: 500;
    color: #ffd700;
}

/* Deposit Requirement Badge (For Levels Beyond Next) */
.vip-deposit-requirement {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 10px 15px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 4;
}

.requirement-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    font-weight: 500;
}

.requirement-amount {
    font-size: 18px;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Carousel Navigation Buttons */
.vip-carousel-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 10;
    pointer-events: none;
}

.vip-carousel-btn {
    pointer-events: all;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #333;
    font-size: 18px;
}

    .vip-carousel-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    }

    .vip-carousel-btn:active {
        transform: scale(0.95);
    }

/* Carousel Dots */
.vip-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

    .vip-carousel-dots .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .vip-carousel-dots .dot.active {
            background: var(--primary-color);
            width: 30px;
            border-radius: 5px;
        }

        .vip-carousel-dots .dot:hover {
            background: var(--primary-color);
        }

#vip-levels-carousel {
    position: relative;
}

    #vip-levels-carousel .owl-nav button {
        pointer-events: all;
        background: rgba(0,0,0,0.6) !important;
        color: #fff !important;
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

    #vip-levels-carousel .owl-nav {
        position: absolute;
        top: 50%;
        width: 100%;
    }

    #vip-levels-carousel button {
        position: absolute;
    }

    #vip-levels-carousel .owl-prev {
        left: 10px;
    }

    #vip-levels-carousel .owl-next {
        right: 10px;
    }

.vip-progress {
    position: relative;
    height: 20px;
    border-radius: 4px;
    overflow: hidden;
    background-color: rgb(110, 116, 122);
}

    .vip-progress .progress-bar {
        height: 100%;
        background-color: var(--primary-color);
    }

    .vip-progress .progress-text {
        position: absolute;
        inset: 0; /* top:0 right:0 bottom:0 left:0 */
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        font-weight: 600;
        color: #fff;
        pointer-events: none; /* important */
        z-index: 2;
        white-space: nowrap;
        color: var(--text-primary-color);
    }

.vip-carousel-slide.current-level .vip-level-name-overlay {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

/* Content Sections */
.vip-content-section,
.vip-terms-section {
    padding: 0 15px;
}

.content-card {
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.content-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--text-primary-color);
}

.content-body {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

    .content-body h1,
    .content-body h2,
    .content-body h3,
    .content-body h4,
    .content-body h5,
    .content-body h6 {
        margin-top: 20px;
        margin-bottom: 10px;
        color: #333;
    }

    .content-body p {
        margin-bottom: 15px;
    }

    .content-body ul,
    .content-body ol {
        margin-left: 20px;
        margin-bottom: 15px;
    }

    .content-body li {
        margin-bottom: 8px;
    }

    .content-body a {
        color: #667eea;
        text-decoration: none;
    }

        .content-body a:hover {
            text-decoration: underline;
        }

    .content-body img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        margin: 15px 0;
    }

    .content-body table {
        width: 100%;
        border-collapse: collapse;
        margin: 15px 0;
    }

        .content-body table th,
        .content-body table td {
            padding: 10px;
            border: 1px solid #ddd;
            text-align: left;
        }

        .content-body table th {
            background: #f8f9fa;
            font-weight: 600;
        }

/* Error Message */
.error-message {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 15px;
    margin: 20px 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

    .error-message h3 {
        color: #333;
        margin-bottom: 10px;
    }

    .error-message p {
        color: #666;
        font-size: 14px;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .vip-carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .vip-deposit-progress-container {
        padding: 12px 1.5rem;
    }

    .progress-bar-bg {
        height: 6px;
    }

    .progress-label {
        font-size: 11px;
    }

    .progress-amount {
        font-size: 14px;
    }

    .vip-deposit-requirement {
        bottom: 15px;
        left: 15px;
        padding: 8px 12px;
    }

    .requirement-label {
        font-size: 10px;
    }

    .requirement-amount {
        font-size: 16px;
    }

    .vip-level-name-overlay {
        top: 15px;
        right: 15px;
        font-size: 14px;
        padding: 6px 12px;
    }

    .content-title {
        font-size: 18px;
    }

    .content-body {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .vip-carousel-wrapper {
        padding: 15px 5px;
    }

    .vip-carousel-slide {
        padding: 0 10px;
    }

    .vip-carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .vip-deposit-progress-container {
        padding: 10px 1.5rem;
    }

    .progress-bar-bg {
        height: 5px;
    }

    .progress-label {
        font-size: 10px;
    }

    .progress-amount {
        font-size: 13px;
    }

    .vip-deposit-requirement {
        bottom: 10px;
        left: 10px;
        padding: 6px 10px;
    }

    .requirement-label {
        font-size: 9px;
    }

    .requirement-amount {
        font-size: 14px;
    }

    .vip-level-name-overlay {
        top: 10px;
        right: 10px;
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* Animation for smooth transitions */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*.content-card {
    animation: fadeIn 0.5s ease-in-out;
}*/

/* Ensure level-specific content is hidden by default */
.vip-level-content-section {
    display: none;
}

    .vip-level-content-section[data-level-index="0"] {
        display: block;
    }
