/* Detail Page Styles */
.detail {
    padding: 40px 0;
    background-color: var(--bg-color);
}

.detail__header {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.detail__title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.detail__subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.detail__desc {
    font-size: 1.4rem;
    color: var(--text-light);
}

.detail__content {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px 20px;
}

/* Price Section */
.detail__price {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 25px;
}

.detail__price-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail__price-label {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-color);
}

.detail__price-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Action Buttons */
.detail__actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}
.detail__purchased-title {
    color: var(--danger);
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
}
.detail__btn {
  
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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


.detail__btn--card,
.detail__btn--wallet {
    text-align: center;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail__btn--card:hover,
.detail__btn--wallet:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(14, 62, 218, 0.3);
}

/* Info Section */
.detail__info {
    border-radius: var(--border-radius-lg);
    margin: 0 auto;
    margin-bottom: 30px;
    width: 80%;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 25px;
    background-color: var(--bg-light);
}

.detail__info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail__info-row:last-child {
    border-bottom: none;
}

.detail__info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail__info-label {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-light);
}

.detail__info-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
}

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

.detail__images-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
}

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

.detail__images-link {
    display: block;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.detail__images-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.detail__images-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Account Detail Styles */
.account-detail {
    padding: 40px 0 60px;
    background-color: var(--bg-color);
}

.account-detail__wrapper {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

/* Price Cards */
.account-detail__price {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.price-card {
    background: linear-gradient(135deg, var(--primary-color), #1a1a1a);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
}

.price-card__label {
    font-size: 1.6rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 10px;
}

.price-card__value {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Action Buttons */
.account-detail__actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.btn--lg {
    padding: 12px 30px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn--lg i {
    font-size: 1.8rem;
}

/* Info Grid */
.account-detail__info {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
}

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

.info-item {

    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.info-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-item__icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-size: 1.6rem;
}

.info-item__label {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-light);
    min-width: 90px;
}

.info-item__value {
    font-size: 1.4rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Gallery Section */
.account-detail__gallery {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.gallery__title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.gallery__item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery__zoom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.4rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery__item:hover .gallery__img {
    transform: scale(1.05);
}

.gallery__item:hover .gallery__zoom {
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .detail__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .detail__info-row {
        grid-template-columns: 1fr;
    }
    .detail__price {
        display: grid;
        justify-content: center;
        gap: 20px;
    }
    .account-detail__price {
        grid-template-columns: 1fr;
    }

    .account-detail__actions {
        flex-wrap: wrap;
    }

    .btn--lg {
        flex: 1;
        min-width: 200px;
    }
}

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

    .account-detail__wrapper {
        padding: 20px;
    }

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

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

    .btn--lg {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .detail__info{
        width: 100%;
    }
    .account-detail__wrapper {
        padding: 15px;
    }

    .price-card {
        padding: 15px;
    }

    .price-card__value {
        font-size: 2rem;
    }

    .info-item {
        padding: 12px;
    }

    .gallery__title {
        font-size: 1.6rem;
    }
}

/* Modal Styles */
/* Update modal display property */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow-y: auto;
}

.modal__content {
    position: relative;
    background: white;
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal__header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary-color);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal__title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.modal__close {
    background: none;
    border: none;
    color: white;
    font-size: 2.4rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal__body {
    padding: 20px;
}

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


.modal__label {
    min-width: 120px;
    font-weight: 600;
    color: var(--text-light);
}

.modal__value {
    flex: 1;
    font-weight: 500;
}

.modal__value--price {
    color: var(--accent-color);
    font-size: 1.8rem;
    font-weight: 700;
}

.modal__input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1.4rem;
}

.modal__input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(66, 103, 233, 0.1);
}

.modal__input--captcha {
    max-width: 200px;
}

.modal__captcha-img {
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
}

.modal__notice {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 6px;
    margin-top: 20px;
    font-size: 1.4rem;
    text-align: center;
}

.modal__footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal__btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal__btn--card {
    background: var(--accent-color);
    color: white;
    border: none;
}

.modal__btn--wallet {
    background: var(--primary-color);
    color: white;
    border: none;
}

.modal__btn--close {
    background: #eee;
    color: var(--text-color);
    border: none;
}

.modal__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .modal__content {
        width: 95%;
        margin: 20px auto;
    }

    .modal__footer {
        flex-direction: column;
    }

    .modal__btn {
        width: 100%;
    }
}