/* =========================================
   ACCOUNT DETAIL MODERN REDESIGN
   Dark Glassmorphism Theme
   ========================================= */

:root {
    --glass-bg: rgba(26, 26, 46, 0.6);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --neon-blue: #00d4ff;
    --neon-purple: #0088ff;
    --neon-green: #39ff14;
    --neon-gold: #ffd700;
}

/* Page Container */
.detail {
    padding: 10px 0 20px;
    position: relative;
    z-index: 1;
}

.detail__layout {
    display: grid;
    grid-template-columns: 58% 1fr;
    gap: 20px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    align-items: stretch;
    overflow: visible !important;
}

@media (max-width: 992px) {
    .detail__layout {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   LEFT COLUMN: GALLERY
   ========================================= */
.detail__left {
    position: relative;
    min-width: 0;
    margin-top: -40px;
    top: 0 !important;
    display: flex;
    flex-direction: column;
}

.detail__gallery {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 12px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(10px);
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensure it stretches */
}

.gallery__main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    flex: 1;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    min-height: 470px;
    /* Matched to info card height (~589px total) */
}

.gallery__main-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.gallery__main-img:hover {
    transform: scale(1.02);
}

.gallery__thumbs-wrapper {
    position: relative;
    padding: 0 35px;
    margin-top: 8px;
}

.gallery__thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px 0;
    scrollbar-width: none;
    /* Firefox */
}

.gallery__thumbs::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.gallery__thumb {
    min-width: 80px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    opacity: 0.7;
    position: relative;
}

.gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery__thumb.active,
.gallery__thumb:hover {
    border-color: var(--neon-blue);
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5),
        0 0 5px rgba(0, 212, 255, 0.3) inset;
}

.thumbs-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.thumbs-nav:hover {
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
}

.thumbs-prev {
    left: 0;
}

.thumbs-next {
    right: 0;
}

/* =========================================
   RIGHT COLUMN: INFO
   ========================================= */
.detail__right {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    margin-top: -40px;
}

/* Header Info Card - Match gallery card styling */
.detail__info-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 16px 12px 12px 12px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.detail__header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 6px;
}

.detail__product-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #fff, #a5a5a5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.detail__category {
    font-size: 0.9rem;
    color: var(--neon-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 5px;
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.detail__price-box {
    text-align: right;
}

.detail__price-simple {
    font-size: 2.8rem;
    font-weight: 900;
    color: #e53935;
    text-shadow: 0 0 20px rgba(229, 57, 53, 0.4);
}

.detail__price-simple sup {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Special Description Box - Simple Style */
.detail__special {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 20px;
}

/* Remove shimmer and vertical line */
.detail__special::after,
.detail__special::before {
    display: none;
}

.special-tag {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    filter: none;
}

/* Specs List - Vertical Layout */
.detail__specs {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    background: transparent;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row:hover {
    background: rgba(0, 212, 255, 0.05);
}

.spec-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 2.2rem;
    font-weight: 600;
}

.spec-value {
    color: white;
    font-weight: 800;
    font-size: 2.2rem;
}

/* Action Buttons */
.detail__buttons-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
    margin-top: auto;
}

.btn-buy,
.btn-cart,
.btn-info {
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

/* Buy Now - Neon Gradient */
.btn-buy {
    background: linear-gradient(135deg, #00d4ff, #0088ff);
    color: white;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.btn-buy:hover {
    background: linear-gradient(135deg, #0088ff, #00d4ff);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

/* Add to Cart - Glass */
.btn-cart {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(5px);
}

.btn-cart:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-2px);
}

/* Info Icon */
.btn-info {
    width: 50px;
    padding: 0;
    background: rgba(255, 215, 0, 0.1);
    color: var(--neon-gold);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.btn-info:hover {
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Sold State */
.sold-badge {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid #ff3366;
    color: #ff3366;
    padding: 15px;
    text-align: center;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.2rem;
    grid-column: span 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.2);
}

/* =========================================
   RELATED ACCOUNTS
   ========================================= */
.related-accounts {
    margin-top: 50px;
    background: transparent !important;
    padding: 20px;
}

.related-accounts__title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-left: 15px;
    border-left: 5px solid var(--neon-blue);
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.15), transparent);
    padding: 12px 20px;
    border-radius: 0 20px 20px 0;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.related-accounts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.related-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: block;
    text-decoration: none;
    position: relative;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(10px);
}

.related-card:hover {
    transform: translateY(-8px);
    border-color: var(--neon-blue);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 212, 255, 0.2);
}

.related-card__image {
    height: 160px;
    position: relative;
    overflow: hidden;
}

.related-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-card:hover .related-card__image img {
    transform: scale(1.1);
}

.related-card__hot {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff3366, #00d4ff);
    color: white;
    font-size: 0.9rem;
    /* Larger */
    font-weight: 800;
    padding: 6px 12px;
    /* Larger */
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.5);
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.related-card__info {
    padding: 15px;
}

.related-card__title {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.related-card__desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.3rem;
    /* Larger as requested */
    margin-bottom: 10px;
    font-weight: 600;
}

.related-card__price {
    color: var(--neon-green);
    font-weight: 800;
    font-size: 1.4rem;
    text-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */
@media (max-width: 768px) {
    .detail__layout {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: -10px;
    }

    .detail__left,
    .detail__right {
        margin-top: 0;
    }

    .gallery__main {
        min-height: 250px;
        border-radius: 12px;
    }

    .detail__product-title {
        font-size: 1.6rem;
    }

    .detail__price-simple {
        font-size: 2.2rem;
    }

    .spec-label,
    .spec-value {
        font-size: 1.2rem;
    }

    .special-tag {
        font-size: 1.1rem;
    }

    .detail__buttons-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .btn-buy,
    .btn-cart {
        padding: 12px;
        font-size: 1rem;
    }

    .btn-info {
        width: 100%;
        height: 45px;
    }

    .related-accounts__grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .related-card__image {
        height: 120px;
    }

    .related-card__title {
        font-size: 0.9rem;
    }

    .related-card__desc {
        font-size: 0.8rem;
    }

    .related-card__price {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .related-accounts__grid {
        grid-template-columns: 1fr;
    }

    .detail__info-card {
        padding: 12px;
    }
}

/* =========================================
   CLONE ACCOUNT INFO (No specs)
   ========================================= */
.detail__clone-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px 0;
}

.clone-info__note {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
}

.clone-info__icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: linear-gradient(135deg, #00d4ff, #0088ff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.clone-info__content {
    flex: 1;
}

.clone-info__label {
    display: block;
    color: #00d4ff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.clone-info__text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

.clone-info__benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
    font-weight: 500;
}

.benefit-item i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #39ff14;
    font-size: 1rem;
}

.benefit-item i.fa-check-circle {
    color: #39ff14;
}

.benefit-item i.fa-bolt {
    color: #ffd700;
}

.benefit-item i.fa-shield-alt {
    color: #00d4ff;
}

/* Mobile responsive for clone info */
@media (max-width: 768px) {
    .clone-info__note {
        padding: 15px;
        gap: 12px;
    }

    .clone-info__icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 1.2rem;
    }

    .clone-info__label {
        font-size: 0.9rem;
    }

    .clone-info__text {
        font-size: 1.15rem;
    }

    .benefit-item {
        font-size: 1rem;
    }
}