/* Random Account Detail Page Styling - Modern Dark Glassmorphism */
.detail {
    padding: 50px 0;
    background-color: transparent;
}

.detail__content {
    background: transparent;
    padding: 20px 0;
}

.detail__layout {
    display: grid;
    grid-template-columns: 58% 1fr;
    gap: 30px;
    align-items: stretch;
}

.detail__left {
    display: flex;
    flex-direction: column;
}

.detail__gallery-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 15px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.detail__main-img {
    width: 100%;
    border-radius: 8px;
    display: block;
    transition: transform 0.3s ease;
}

.detail__main-img:hover {
    transform: scale(1.02);
}

.detail__right {
    display: flex;
    flex-direction: column;
}

.detail__info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    height: 100%;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.detail__header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail__id {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.detail__price {
    font-size: 2.6rem;
    font-weight: 800;
    color: #ff00ff;
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
    white-space: nowrap;
}

@media (max-width: 480px) {
    .detail__price {
        font-size: 2.2rem;
    }
}

.detail__specs-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.detail__spec-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.spec-label {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.spec-value {
    font-size: 1.6rem;
    color: #fff;
    font-weight: 600;
}

.detail__actions-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-buy-now {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-buy-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-add-cart {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sold-badge {
    text-align: center;
    padding: 15px;
    background: rgba(255, 0, 0, 0.1);
    color: #ff4d4d;
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.5rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal__header {
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.modal__close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2.4rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal__close:hover {
    color: #fff;
}

.modal__body {
    padding: 25px;
}

.modal__info-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modal__info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal__label {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.6);
}

.modal__value--price {
    font-size: 2rem;
    font-weight: 800;
    color: #ff00ff;
}

.modal__discount-box {
    margin-bottom: 20px;
}

.discount-input-row {
    display: flex;
    gap: 10px;
}

.modal__input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 15px;
    color: #fff;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.modal__input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
}

.modal__btn-check {
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal__btn-check:hover {
    background: #764ba2;
}

.modal__msg {
    font-size: 1.3rem;
    margin-top: 8px;
    min-height: 1.3rem;
}

.modal__warning {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
    padding: 15px;
    color: #ffc107;
    font-size: 1.4rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal__footer {
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-confirm-buy {
    flex: 2;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-confirm-buy:hover {
    background: #218838;
}

.btn-deposit,
.btn-deposit-atm,
.btn-login-to-buy {
    flex: 2;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.btn-close-modal {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
    .detail__layout {
        grid-template-columns: 1fr;
    }
}

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

    .detail__id {
        font-size: 1.8rem;
    }

    .detail__price {
        font-size: 2.2rem;
    }

    .modal__content {
        width: 95%;
        margin: 10px;
    }

    .modal__footer {
        flex-direction: column;
    }
}