/* =============================================
   Account Detail Page - Dark Gaming E-commerce Style
   ============================================= */

.acc-detail {
    padding: 40px 0 60px;
}

/* ===== Two-column Layout ===== */
.acc-detail__layout {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 50px;
}

/* ===== LEFT: Gallery ===== */
.acc-gallery {
    position: sticky;
    top: 90px;
}

.acc-gallery__main-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 12px;
    min-height: 260px;
}

.acc-gallery__main-img {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
}

.acc-gallery__main-wrap:hover .acc-gallery__main-img {
    transform: scale(1.03);
}

.acc-gallery__zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 2.8rem;
    color: white;
}

.acc-gallery__main-wrap:hover .acc-gallery__zoom-overlay {
    opacity: 1;
}

.acc-gallery__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #f72585, #b5179e);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 100px;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(247, 37, 133, 0.5);
    display: flex;
    align-items: center;
    gap: 6px;
}

.acc-gallery__badge--sold {
    background: linear-gradient(135deg, #64748b, #475569);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.acc-gallery__lightbox-trigger {
    display: block;
    width: 100%;
    height: 100%;
}

/* Thumbnails */
.acc-gallery__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: #8b5cf6 transparent;
}

.acc-gallery__thumbs::-webkit-scrollbar { height: 4px; }
.acc-gallery__thumbs::-webkit-scrollbar-thumb { background: #8b5cf6; border-radius: 4px; }

.acc-gallery__thumb {
    flex: 0 0 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: all 0.25s ease;
    opacity: 0.6;
}

.acc-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.acc-gallery__thumb:hover,
.acc-gallery__thumb.active {
    border-color: #8b5cf6;
    opacity: 1;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.4);
}

/* ===== RIGHT: Info Panel ===== */
.acc-info {
    padding: 4px 0;
}

/* Tags */
.acc-info__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.acc-tag {
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.acc-tag--category {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.acc-tag--login {
    background: rgba(6, 182, 212, 0.12);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.25);
}

.acc-tag--available {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.acc-tag--available::before {
    content: '';
    width: 7px;
    height: 7px;
    background: #34d399;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px #34d399;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.acc-tag--sold {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.acc-tag--stock {
    background: rgba(99, 102, 241, 0.14);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.35);
}

/* Title */
.acc-info__title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 20px;
    line-height: 1.2;
}

.acc-info__title .title-kep,
.acc-modal__value .title-kep {
    display: inline-block;
    margin-left: 4px;
    color: #c6f606;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(251, 146, 60, 0.38);
}

/* Price Block */
.acc-info__price-block {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.acc-price__main {
    font-size: 3.4rem;
    font-weight: 800;
    color: #10b981;
    line-height: 1;
}

.acc-price__main span {
    font-size: 2rem;
    font-weight: 600;
}

.acc-price__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.acc-price__original {
    font-size: 1.6rem;
    color: #64748b;
    text-decoration: line-through;
}

.acc-price__discount {
    background: linear-gradient(135deg, #f72585, #b5179e);
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 100px;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(247, 37, 133, 0.35);
}

/* Stats Grid */
.acc-info__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.acc-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.25s ease;
}

.acc-stat:hover {
    border-color: rgba(139, 92, 246, 0.25);
    background: rgba(139, 92, 246, 0.05);
}

.acc-stat > i {
    font-size: 2rem;
    color: #8b5cf6;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.acc-stat > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.acc-stat__label {
    font-size: 1.1rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
}

.acc-stat__value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
}

.acc-stat__value--cyan {
    color: #67e8f9;
}

/* Price Comparison */
.acc-info__price-compare {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.acc-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
}

.acc-price-row:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.acc-price-row__label {
    font-size: 1.4rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 8px;
}

.acc-price-row__label i {
    color: #8b5cf6;
    width: 16px;
}

.acc-price-row__value {
    font-size: 1.6rem;
    font-weight: 700;
}

.acc-price-row__value--card {
    color: #f59e0b;
}

.acc-price-row__value--atm {
    color: #10b981;
}

/* Description */
.acc-info__desc {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
}

.acc-info__desc-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.acc-info__desc p {
    font-size: 1.4rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 6px;
}

.acc-info__desc p strong {
    color: #a78bfa;
}

/* Action Buttons */
.acc-info__actions {
    display: flex;
    gap: 12px;
}

.acc-btn {
    flex: 1;
    padding: 15px 24px;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    font-family: "Fz Poppins", sans-serif;
    letter-spacing: 0.3px;
}

.acc-btn--buy {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: white;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.acc-btn--buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.55);
    color: white;
}

.acc-btn--deposit {
    background: rgba(139, 92, 246, 0.12);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.35);
}

.acc-btn--deposit:hover {
    background: rgba(139, 92, 246, 0.22);
    border-color: #8b5cf6;
    color: #c4b5fd;
    transform: translateY(-2px);
}

.acc-btn--unavailable {
    background: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
    cursor: not-allowed;
    width: 100%;
}

/* ===== Additional Images Section ===== */
.acc-extra-images {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 40px;
}

.acc-extra-images__title {
    font-size: 2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.acc-extra-images__title i {
    color: #8b5cf6;
}

.acc-extra-images__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.acc-extra-images__item {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    border: 1px solid rgba(255,255,255,0.07);
    background: #1a1a2e;
}

.acc-extra-images__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.acc-extra-images__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 2.4rem;
    color: white;
}

.acc-extra-images__item:hover img {
    transform: scale(1.05);
}

.acc-extra-images__item:hover .acc-extra-images__overlay {
    opacity: 1;
}

/* ===== Purchase Modal ===== */
.acc-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    align-items: center;
    justify-content: center;
}

.acc-modal.show {
    display: flex;
}

.acc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
}

.acc-modal__box {
    position: relative;
    z-index: 1;
    background: #16213e;
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    width: 92%;
    max-width: 480px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 40px rgba(139, 92, 246, 0.15);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.acc-modal__header {
    padding: 22px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 20px 20px 0 0;
}

.acc-modal__title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.acc-modal__title i {
    color: #8b5cf6;
}

.acc-modal__close {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #94a3b8;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.5rem;
}

.acc-modal__close:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.acc-modal__body {
    padding: 22px 24px;
}

.acc-modal__info {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}

.acc-modal__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.acc-modal__row:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.acc-modal__label {
    font-size: 1.4rem;
    color: #94a3b8;
    font-weight: 500;
}

.acc-modal__value {
    font-size: 1.4rem;
    color: #f1f5f9;
    font-weight: 600;
}

.acc-modal__qty-input {
    width: 90px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
    text-align: center;
    font-weight: 700;
    font-size: 1.4rem;
}

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

.acc-modal__discount {
    margin-bottom: 16px;
}

.acc-modal__discount-row {
    display: flex;
    gap: 8px;
}

.acc-modal__input {
    flex: 1;
    height: 44px;
    padding: 0 14px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: #f1f5f9;
    font-size: 1.4rem;
    font-family: "Fz Poppins", sans-serif;
    transition: border-color 0.2s;
}

.acc-modal__input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.acc-modal__input::placeholder { color: #64748b; }

.acc-modal__check-btn {
    height: 44px;
    padding: 0 18px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    color: #a78bfa;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: "Fz Poppins", sans-serif;
}

.acc-modal__check-btn:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: #8b5cf6;
    color: #c4b5fd;
}

.acc-modal__discount-msg {
    margin-top: 8px;
    font-size: 1.3rem;
    min-height: 20px;
}

.acc-modal__notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 1.4rem;
    line-height: 1.5;
}

.acc-modal__notice i {
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 1.5rem;
}

.acc-modal__notice--warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    color: #fcd34d;
}

.acc-modal__notice--success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
}

.acc-modal__footer {
    padding: 18px 24px;
    border-top: 1px solid rgba(255,255,255,0.07);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.acc-modal__btn {
    flex: 1;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border: none;
    font-family: "Fz Poppins", sans-serif;
}

.acc-modal__btn--primary {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.35);
}

.acc-modal__btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
    color: white;
}

.acc-modal__btn--secondary {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.acc-modal__btn--secondary:hover {
    background: rgba(245, 158, 11, 0.25);
    color: #fde68a;
}

.acc-modal__btn--ghost {
    background: rgba(255,255,255,0.05);
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.1);
}

.acc-modal__btn--ghost:hover {
    background: rgba(255,255,255,0.1);
    color: #cbd5e1;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .acc-detail__layout {
        grid-template-columns: 380px 1fr;
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .acc-detail__layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .acc-gallery {
        position: static;
    }

    .acc-info__stats {
        grid-template-columns: 1fr 1fr;
    }

    .acc-info__title {
        font-size: 2.2rem;
    }

    .acc-price__main {
        font-size: 2.8rem;
    }

    .acc-extra-images__grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 480px) {
    .acc-info__stats {
        grid-template-columns: 1fr;
    }

    .acc-info__actions {
        flex-direction: column;
    }

    .acc-modal__box {
        width: 95%;
        margin: 16px;
    }
}

/* ===== Custom Image Lightbox ===== */
.img-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    cursor: zoom-out;
    overflow: auto;
}

.img-lightbox.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lbFadeIn 0.2s ease;
}

@keyframes lbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.img-lightbox__close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 1;
}

.img-lightbox__close:hover {
    background: rgba(239, 68, 68, 0.5);
    border-color: rgba(239, 68, 68, 0.6);
    transform: scale(1.1);
}

.img-lightbox__inner {
    padding: 20px;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-lightbox__img {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
    display: block;
    animation: lbImgIn 0.25s ease;
}

@keyframes lbImgIn {
    from { transform: scale(0.92); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* Gallery wrap clickable */
.acc-gallery__img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 260px;
    background: #0f172a;
    cursor: zoom-in;
}
