/* Poppins is loaded globally from the base template (400,700). Removed module-level @import for faster load. */

/* Roulette Popup Styles */
.roulette-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1 !important;
    animation: fadeIn 0.3s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
p.catalog-instruction {
    color: #000;
}
.roulette-popup-container {
    background: #fff;
    border-radius: 20px;
    padding: 10px;
   /*max-width: 600px;*/
    width: 100%;
    position: relative;
    transform: scale(0.8);
    animation: scaleIn 0.3s ease-in-out 0.1s forwards;
}

@keyframes scaleIn {
    to {
        transform: scale(1);
    }
}

/* Apply Poppins to the entire popup and its children */
.roulette-popup-container,
.roulette-popup-container * {
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.roulette-popup-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.roulette-title {
    margin: 0;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    background: #FD7C20;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.roulette-close {
    background: none;
    border: none;
    font-size: 30px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.roulette-close:hover {
    background: #f0f0f0;
    color: #333;
}

.roulette-wheel-container {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto 30px;
}

.roulette-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    background: #ffffff;
    /* Start with pointer in center of first section (36° offset for 5 sections) */
    transform: rotate(36deg);
    border: none;
}

.roulette-wheel.spinning {
    transition: transform 4s cubic-bezier(0.23, 1, 0.32, 1);
    transform: rotate(var(--spin-degrees, 0deg));
}

/* SVG text styling is handled inline in the SVG elements */
.roulette-wheel text {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    user-select: none;
    pointer-events: none;
}

.reward-text {
    transform: rotate(-36deg);
    line-height: 1.2;
    white-space: nowrap;
    font-weight: bold;
}

.roulette-pointer {
    position: absolute;
    top: 0px;
    /* lift the marker so the tip overlaps the wheel border */
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    /* stem width */
    height: 34px;
    /* stem height */
    background: #FD7C20;
    /* stem color */
    border-radius: 3px;
    /* slightly rounded stem */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    z-index: 11;
    /* above wheel */
}

.roulette-pointer::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    /* place tip below the stem */
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid #FD7C20;
    /* triangular tip */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

@keyframes pulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.05);
    }
}

.roulette-pointer {
    animation: pulse 2s ease-in-out infinite;
}

.roulette-actions {
    text-align: center;
    margin-bottom: 20px;
}

.roulette-spin-btn {
    background: #FD7C20;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.roulette-spin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.roulette-spin-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.roulette-spin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.roulette-spin-btn:hover::before {
    left: 100%;
}

.btn-spinner {
    display: inline-block;
}

.roulette-terms {
    text-align: center;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.roulette-result {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.result-content {
    text-align: center;
    padding: 20px;
}

.result-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.result-title.success {
    color: #27ae60;
}

.result-title.no-reward {
    color: #e74c3c;
}

.result-message {
    font-size: 16px;
    margin-bottom: 20px;
    color: #666;
    line-height: 1.5;
}

.result-code {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.coupon-code {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    color: #333;
    background: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.copy-code-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.copy-code-btn:hover {
    background: #0056b3;
}

.result-close-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s ease;
}

.result-close-btn:hover {
    background: #5a6268;
}

/* Spinning animation */
.roulette-wheel.spinning {
    animation: spin 4s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(var(--spin-degrees, 1800deg));
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .roulette-popup-container {
        padding: 20px;
        margin: 20px;
    }

    .roulette-title {
        font-size: 24px;
    }

    .roulette-wheel-container {
        width:350px;
        height: 350px;
    }

    .reward-text {
        font-size: 10px;
    }

    .roulette-spin-btn {
        padding: 12px 30px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .roulette-wheel-container {
        width: 330px;
        height: 330px;
    }

    .reward-text {
        font-size: 9px;
    }

    .roulette-popup-container {
        padding: 10px;
        margin: 0px;
    }
}
#content-wrapper .page-title:before {
    content: "";
    display: block;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    border-bottom: solid 2px #595050;
}