/* 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: #00d4ff;
    text-shadow: 0 0 15px rgba(0, 212, 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: 1100;
    align-items: center;
    justify-content: center;
}

.modal__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.modal__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(102, 126, 234, 0.1);
    animation: modalSlideUp 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal__header {
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.modal__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    word-break: break-word;
}

.modal__close {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.modal__body {
    padding: 20px;
}

.modal__info-box {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal__info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.modal__label {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

.modal__value--price {
    font-size: 1.9rem;
    font-weight: 800;
    color: #ff4757;
    text-shadow: 0 0 15px rgba(255, 71, 87, 0.3);
}

.modal__discount-box {
    margin-bottom: 16px;
}

.discount-input-row {
    display: flex;
    gap: 10px;
}

.modal__input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 15px;
    color: #fff;
    font-size: 1.35rem;
    transition: all 0.3s ease;
    min-width: 0;
}

.modal__input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.modal__input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.modal__btn-check {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0 18px;
    font-weight: 700;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.modal__btn-check:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.modal__msg {
    font-size: 1.25rem;
    margin-top: 8px;
    min-height: 1.3rem;
}

.modal__warning {
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.25);
    border-left: 4px solid #ffc107;
    padding: 14px 16px;
    color: #ffd43b;
    font-size: 1.3rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
}

.modal__footer {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

/* NẠP THẺ button - Vibrant Green */
.btn-deposit {
    flex: 1;
    min-width: 0;
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 12px;
    font-weight: 700;
    font-size: 1.35rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.btn-deposit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
    color: #fff;
}

/* NẠP ATM button - Vibrant Blue/Purple */
.btn-deposit-atm {
    flex: 1;
    min-width: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 12px;
    font-weight: 700;
    font-size: 1.35rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-deposit-atm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: #fff;
}

/* Confirm Buy button - Bold Green */
.btn-confirm-buy {
    flex: 1;
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 12px;
    font-weight: 700;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.btn-confirm-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}

/* Login button */
.btn-login-to-buy {
    flex: 1;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 12px;
    font-weight: 700;
    font-size: 1.35rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login-to-buy:hover {
    color: #fff;
}

/* ĐÓNG button - Clearly distinct */
.btn-close-modal {
    flex: 0 0 auto;
    min-width: 80px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close-modal:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* 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: 92%;
        margin: auto;
        max-height: 85vh;
        border-radius: 16px;
    }

    .modal__header {
        padding: 15px 16px;
    }

    .modal__title {
        font-size: 1.3rem;
    }

    .modal__body {
        padding: 16px;
    }

    .modal__footer {
        padding: 14px 16px;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .btn-deposit,
    .btn-deposit-atm,
    .btn-confirm-buy,
    .btn-login-to-buy {
        flex: 1 1 calc(50% - 5px);
        min-width: calc(50% - 5px);
        padding: 13px 10px;
        font-size: 1.3rem;
    }

    .btn-close-modal {
        flex: 1 1 100%;
        text-align: center;
    }

    .modal__warning {
        font-size: 1.2rem;
        padding: 12px 14px;
    }

    .modal__value--price {
        font-size: 1.7rem;
    }

    .modal__label {
        font-size: 1.25rem;
    }
}

@media (max-width: 380px) {
    .modal__title {
        font-size: 1.15rem;
    }

    .btn-deposit,
    .btn-deposit-atm,
    .btn-confirm-buy,
    .btn-login-to-buy {
        font-size: 1.2rem;
        padding: 12px 8px;
    }
}