/* Game Account Detail Page Styling */
.detail {
    padding: 50px 0;
    background-color: #f8f9fa;
}

.detail__content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 40px;
    position: relative;
}

/* Action Buttons */
.detail__actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.detail__btn {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 180px;
}

.detail__btn--primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(14, 62, 218, 0.3);
}

.detail__btn--primary:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(14, 62, 218, 0.4);
}

.detail__btn--card,
.detail__btn--wallet {
    background: transparent;
    border: 2px solid #333;
    color: #333;
}

.detail__btn--card:hover,
.detail__btn--wallet:hover {
    background: #333;
    color: white;
    transform: translateY(-5px);
}

.detail__purchased {
    text-align: center;
    padding: 30px;
    background: #f1f1f1;
    border-radius: 8px;
    width: 100%;
}

.detail__purchased-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--second-color);
    margin: 0;
}

/* Account Info */
.detail__info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    border: 1px solid #eaeaea;
}

.detail__info-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.detail__info-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--second-color));
    border-radius: 3px;
}


.detail__info-row:last-child {
    border-bottom: none;
    grid-template-columns: unset;
}

.detail__info-label {
    min-width: 150px;
    font-size: 1.6rem;
    font-weight: 600;
    color: #666;
}

.detail__info-value {
    font-size: 1.7rem;
    color: #333;
    font-weight: 500;
    flex-grow: 1;
}

/* Account Stats */
.detail__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: #d1d1d1;
}

.stat-card__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--second-light), var(--second-color));
    color: white;
    border-radius: 12px;
    font-size: 2rem;
}

.stat-card__content {
    flex-grow: 1;
}

.stat-card__label {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 5px;
}

.stat-card__value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

/* Images Section */
.detail__images {
    margin-top: 40px;
}

.detail__images-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.detail__images-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--second-color));
    border-radius: 3px;
}

.detail__images-list {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
}

.detail__images-item {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.detail__images-item:hover {
    transform: scale(1.02);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.modal__content {
    background: white;
    max-width: 600px;
    margin: 40px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.modal__header {
    padding: 20px 25px;
    background: #333;
    color: white;
    position: relative;
}


.modal__close {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: white;
    font-size: 2.4rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal__body {
    padding: 30px;
}

.modal__info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.modal__row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.modal__label {
    min-width: 120px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #666;
}

/* .modal__value {
    font-size: 1.6rem;
    color: #333;
    font-weight: 500;
} */

/* .modal__value--price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--second-color);
} */

.modal__discount {
    margin-bottom: 25px;
}

.modal__discount .modal__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.modal__input {
    height: 45px;
    padding: 0 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.modal__input:focus {
    border-color: #333;
    outline: none;
}

.modal__discount-message {
    font-size: 1.4rem;
    margin-top: 10px;
    color: #666;
}

.modal__discount-message--error {
    color: var(--second-color);
}

.modal__discount-message--success {
    color: #28a745;
}

.modal__notice {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 15px;
    font-size: 1.5rem;
    color: #856404;
    margin-top: 20px;
    border-radius: 4px;
}

.modal__footer {
    padding: 20px 30px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}


.modal__btn--wallet {
    background: #333;
    color: white;
    flex-grow: 1;
}

.modal__btn--close {
    background: #e0e0e0;
    color: #666;
}

.modal__btn--check {
    background: #333;
    color: white;
    border-radius: 8px;
    padding: 15px 20px;
}


.modal__btn--wallet:hover {
    background: #222;
}

.modal__btn--check:hover {
    background: #222;
}

.modal__btn--close:hover {
    background: #d0d0d0;
}

/* Image Viewer Modal */
.image-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1100;
    padding: 40px;
}

.image-viewer__content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-viewer__img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.image-viewer__close {
    position: absolute;
    top: -30px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

.image-viewer__close:hover {
    color: var(--second-color);
}

.image-viewer__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-viewer__nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.image-viewer__prev {
    left: -60px;
}

.image-viewer__next {
    right: -60px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .detail__content {
        padding: 30px;
    }

    .detail__actions {
        flex-wrap: wrap;
    }

    .detail__btn {
        flex: 1;
        min-width: 160px;
    }

    .detail__stats {
        grid-template-columns: 1fr;
    }

    .detail__images-list {
        grid-template-columns: 1fr;
    }

    .image-viewer__nav {
        width: 40px;
        height: 40px;
    }

    .image-viewer__prev {
        left: 10px;
    }

    .image-viewer__next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .detail {
        padding: 30px 0;
    }

    .detail__content {
        padding: 25px;
    }

    .detail__info {
        padding: 20px;
    }

    .detail__info-title,
    .detail__images-title {
        font-size: 1.8rem;
    }

    .detail__actions {
        gap: 15px;
    }

    .detail__btn {
        padding: 12px 20px;
        font-size: 1.4rem;
    }

    .modal__content {
        margin: 20px auto;
    }

    .modal__footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .detail__content {
        padding: 20px;
    }


    .detail__info-label {
        margin-bottom: 5px;
    }

    .modal__discount .modal__row {
        grid-template-columns: 1fr;
    }

    .modal__btn {
        width: 100%;
    }

    .image-viewer {
        padding: 20px;
    }
}
