/* Main Container */
.x-lucky-wheel-share-component {
    background-position: center;
    background-size: cover;
    padding: 2rem 0;
    background-image: url('https://asset.cloudigame.co/build/admin/img/wt_theme/ezl/wheel-page-bg.jpg');
}

/* Header Info Buttons */
.-btn-info-wrapper {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.-btn-info {
    width: 45px;
    height: 45px;
    padding: 0;
    color: #fff;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.-btn-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.-btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.-btn-info:hover::before {
    opacity: 1;
}

.-btn-info:active {
    transform: translateY(0);
}

.-btn-info i {
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

/* History Button Specific */
.-btn-info .fa-history {
    animation: spin-reverse 10s linear infinite;
}

/* History Modal Styles */
.history-icon {
    font-size: 2.5rem;
    color: #3498db;
    animation: spin-reverse 10s linear infinite;
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.history-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.history-date {
    color: #888;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.history-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.history-reward-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.history-details {
    flex: 1;
}

.history-reward {
    color: #fff;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.history-status {
    color: #2ecc71;
    font-size: 0.875rem;
}

/* Condition Modal Styles */
.info-icon {
    font-size: 2.5rem;
    color: #3498db;
    animation: pulse 2s ease-in-out infinite;
}

.condition-content {
    color: #fff;
    padding: 0.5rem;
}

.condition-section {
    margin-bottom: 1.5rem;
}

.condition-section:last-child {
    margin-bottom: 0;
}

.condition-section h4 {
    color: #3498db;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.condition-section h4::before {
    content: '';
    width: 4px;
    height: 1em;
    background: #3498db;
    border-radius: 2px;
}

.condition-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.condition-section li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.condition-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background: #3498db;
    border-radius: 50%;
}

/* Custom Scrollbar */
.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 575.98px) {
    .history-list {
        max-height: 300px;
    }
    
    .history-content {
        gap: 0.75rem;
    }
    
    .history-reward-img {
        width: 32px;
        height: 32px;
    }
    
    .condition-section h4 {
        font-size: 1.125rem;
    }
}

/* Info Button Specific */
.-btn-info .fa-info-circle {
    animation: pulse 2s ease-in-out infinite;
}

/* Tooltip */
.-btn-info::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.-btn-info:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: -35px;
}

/* Title */
.-heading-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,.5);
}

/* Wheel Container */
.x-wheel-container {
    position: relative;
    width: 550px;
    height: auto;
    aspect-ratio: 1;
    margin: 4rem auto 3rem;
    padding: 1.5rem;
    overflow: hidden;
    background-image: url('https://asset.cloudigame.co/build/admin/img/wt_theme/ezl/wheel-bg.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* Wheel Ring */
.-wheel-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 96%;
    height: 96%;
    z-index: 1;
    transform: translate(-50%, -50%);
}

/* Center Pin */
.-center-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28%;
    height: auto;
    aspect-ratio: 1;
    z-index: 3;
    transform: translate(-50%, -50%);
    background: #000;
    border: 3px solid orange;
    border-radius: 9999px;
}

.-wheel-pin {
    position: absolute;
    bottom: 13%;
    left: 50%;
    z-index: 1;
    width: 76%;
    height: auto;
    transform: translateX(-50%);
}

.-reward-img {
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    z-index: 1;
    width: 47%;
    opacity: 0;
    visibility: hidden;
    filter: drop-shadow(1px 2px 5px rgba(0,0,0,.5));
    transition: all .2s;
}

.-reward-img.-loaded {
    opacity: 1;
    visibility: visible;
    animation: x-wheel-reward-heartbeat 1s ease-in-out .2s 2 both;
}

/* Inner Wheel Structure */
.x-wheel-inner-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 92%;
    height: 92%;
    background: #141414;
    border-radius: 9999px;
    overflow: hidden;
    translate: -50% -50%;
    z-index: 2;
}

.x-wheel-inner-wrapper.-length-8 .-spinner {
    transform: rotate(23deg);
}

.-spinner {
    width: 100%;
    height: 100%;
    transition: transform 7s cubic-bezier(.35,0,.2,1);
}

/* Wheel Sections */
.-wheel-section {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: bottom right;
    user-select: none;
    clip-path: polygon(0 0,58% 0,100% 100%,0 58%);
    rotate: calc(1turn/8 * var(--wheel-index));
}

.-wheel-section:nth-child(odd) {
    background: linear-gradient(#1a1a1a,#332f2d);
}

.-wheel-section:nth-child(even) {
    background: linear-gradient(#353535,#353535);
}

.-wheel-section.-active {
    background: linear-gradient(#fe602c,#ff8c2d);
}

.-wheel-content-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    rotate: -45deg;
    text-align: center;
    max-width: 52%;
}

.-wheel-content-wrapper .-text {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.3;
    color: #fff;
}

.-wheel-content-wrapper .-img {
    width: 40%;
    height: auto;
    margin-top: 0.5rem;
}

/* Spin Button */
.-btn-spin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
    color: #fff;
    background: #f52;
    border: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.-btn-spin:not(:disabled):hover {
    background: #fb3a00;
}

.-btn-spin.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Progress Bar Section */
.x-wheel-progress-wrapper {
    margin-top: 2rem;
}

.-inner-wrapper {
    max-width: 550px;
    margin: auto;
    text-align: center;
    color: #fff;
}

.progress.-progress {
    position: relative;
    padding: 3px;
    height: 28px;
    border-radius: 4px;
    background: #353535;
}

.-progress-bar {
    color: #eee;
    background: #20a335;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: #fff;
}

/* Modal Styles */
.modal-dialog {
    max-width: 420px;
}

.modal-content {
    background: linear-gradient(180deg, #2A2A2A 0%, #1F1F1F 100%);
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Close Button */
.modal-content .close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modal-content .close:hover {
    transform: scale(1.1);
}

.modal-content .close i {
    color: #000;
    font-size: 1.25rem;
}

/* Modal Header */
.modal-header {
    border: none;
    text-align: center;
    padding: 1rem 1rem 0.5rem;
    display: flex;
    justify-content: center;
}

.modal-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

.reward-icon {
    font-size: 2.5rem;
    color: #FFD700;
    animation: glow 2s ease-in-out infinite;
}

.modal-title {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Result Container */
.x-wheel-result-modal-container {
    text-align: center;
    padding: 1rem;
}

.-reward-image-wrapper {
    position: relative;
    width: 180px;
    height: auto;
    aspect-ratio: 1;
    margin: 1rem auto;
    padding: 1.25rem;
}

.-reward-image-wrapper .-img-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    animation: x-wheel-reward-spin 6s linear infinite;
    opacity: 0.8;
    z-index: 1;
}

.-reward-image-wrapper .-img {
    position: relative;
    width: 100%;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

.-description {
    font-size: 1.25rem;
    margin: 1.5rem 0;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Modal Close Button */
.-btn-close-modal {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(45deg, #FF512F 0%, #F09819 100%);
    border: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 81, 47, 0.3);
}

.-btn-close-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 81, 47, 0.4);
}

.-btn-close-modal:active {
    transform: translateY(0);
}

/* Animations */
@keyframes spin-reverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

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

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    50% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8); }
}

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

@keyframes x-wheel-reward-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes x-wheel-reward-heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 767.98px) {
    .x-wheel-container {
        width: 100%;
        max-width: 500px;
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .-wheel-content-wrapper .-text {
        font-size: .875rem;
    }

    .-heading-title {
        font-size: 2rem;
    }

    .-btn-info {
        width: 40px;
        height: 40px;
    }
    
    .-btn-info i {
        font-size: 1.125rem;
    }
}

@media (max-width: 575.98px) {
    .modal-content {
        margin: 0 1rem;
    }
    
    .modal-content .close {
        top: -12px;
        right: -12px;
        width: 32px;
        height: 32px;
    }

    .-reward-image-wrapper {
        width: 150px;
    }

    .-description {
        font-size: 1.125rem;
    }
    
    .-inner-wrapper {
        font-size: 0.875rem;
    }
}