/* Account detail — layered charcoal surfaces with focused red accents. */
body {
    background: #0b0c0e !important;
}

.detail-container {
    --detail-bg: #0b0c0e;
    --detail-surface: #17191d;
    --detail-surface-2: #1e2125;
    --detail-border: rgba(255, 255, 255, 0.12);
    --detail-muted: #aeb4be;
    --detail-red: #ff464b;
    min-height: calc(100vh - 180px);
    padding: 1.4rem 0 2.5rem;
    color: #f7f8fa;
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 70, 75, 0.14), transparent 30rem),
        radial-gradient(circle at 95% 24%, rgba(255, 255, 255, 0.045), transparent 26rem),
        var(--detail-bg);
}

.detail-container .container {
    max-width: 1240px;
}

.detail-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.detail-back-link,
.detail-availability {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 36px;
    padding: 0.45rem 0.68rem;
    border: 1px solid var(--detail-border);
    border-radius: 9px;
    font-size: 0.76rem;
    font-weight: 750;
}

.detail-back-link {
    color: #e9ebef;
    background: rgba(255, 255, 255, 0.045);
    text-decoration: none;
}

.detail-back-link:hover {
    border-color: rgba(255, 70, 75, 0.48);
    color: #fff;
    background: rgba(255, 70, 75, 0.09);
}

.detail-availability {
    border-color: rgba(52, 211, 153, 0.25);
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.08);
}

.account-info-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0.85rem;
    border: 1px solid var(--detail-border);
    border-radius: 18px;
    background:
        linear-gradient(125deg, rgba(255, 70, 75, 0.08), transparent 38%),
        linear-gradient(155deg, #1a1c20, #121315);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

.account-info-wrapper::before {
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--detail-red), transparent);
    content: "";
}

.detail-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.7rem;
    padding: 0.2rem 0.15rem 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-category {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #ff8588;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.detail-heading h1 {
    margin: 0.25rem 0 0;
    color: #fff;
    font-size: clamp(1.35rem, 2.3vw, 2rem);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.detail-heading p {
    margin: 0.25rem 0 0;
    color: var(--detail-muted);
    font-size: 0.82rem;
}

.detail-heading-id {
    flex: 0 0 auto;
    padding: 0.38rem 0.58rem;
    border: 1px solid rgba(255, 70, 75, 0.3);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 70, 75, 0.11);
    font-size: 0.77rem;
    font-weight: 850;
}

.detail-card {
    overflow: hidden;
    margin-bottom: 0.55rem !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 13px !important;
    color: #f8f9fb !important;
    background: rgba(255, 255, 255, 0.035) !important;
    box-shadow: none !important;
}

.detail-card-header {
    padding: 0.58rem 0.72rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
}

.detail-card-header h5 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
}

.detail-card-header i {
    color: #ff686c;
}

.detail-card .card-body {
    padding: 0.15rem 0.72rem 0.35rem;
}

.info-table {
    width: 100%;
    margin: 0;
    color: #fff;
}

.info-table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
    font-size: 0.78rem;
}

.info-table tr:last-child td {
    border-bottom: 0;
}

.info-table td:first-child {
    width: 38%;
    color: var(--detail-muted);
    font-size: 0.72rem;
    font-weight: 650;
}

.info-table td:last-child {
    text-align: right;
}

.account-id-badge,
.info-badge-custom,
.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.27rem 0.48rem;
    border-radius: 7px;
    font-size: 0.67rem;
    font-weight: 800;
}

.account-id-badge,
.info-badge-custom {
    border: 1px solid rgba(255, 70, 75, 0.28);
    color: #ff7a7e;
    background: rgba(255, 70, 75, 0.1);
}

.vip-badge {
    border: 1px solid rgba(255, 201, 71, 0.32);
    color: #ffd45e;
    background: rgba(255, 183, 0, 0.1);
}

.account-description-detail {
    margin-bottom: 0.55rem;
    padding: 0.55rem 0.68rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-left: 3px solid rgba(255, 70, 75, 0.76);
    border-radius: 8px 11px 11px 8px;
    background: rgba(255, 255, 255, 0.035);
}

.description-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.22rem;
    color: #ff8588;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.account-description-detail p {
    margin: 0;
    color: #d9dde3;
    font-size: 0.74rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.detail-assurance {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    margin: 0.6rem 0;
}

.detail-assurance span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 34px;
    padding: 0.38rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    color: #cdd2d9;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.64rem;
    font-weight: 700;
    text-align: center;
}

.detail-assurance i {
    color: #ff686c;
    font-size: 0.9rem;
}

.price-buy-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 0.75fr);
    gap: 0.7rem;
    margin-top: 0.65rem;
}

.detail-price-compact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 50px;
    padding: 0.42rem 0.68rem;
    border: 1px solid rgba(255, 70, 75, 0.28);
    border-radius: 11px;
    background: linear-gradient(120deg, rgba(255, 70, 75, 0.13), rgba(255, 70, 75, 0.055));
}

.detail-price-compact small {
    color: var(--detail-muted);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.detail-price-compact strong {
    color: #ff686c;
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 900;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.buy-now-btn-compact {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 50px;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 11px !important;
    color: #fff !important;
    background: linear-gradient(120deg, #f43d44, #bd1b28) !important;
    box-shadow: 0 10px 24px rgba(189, 27, 40, 0.28);
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.buy-now-btn-compact:hover {
    transform: translateY(-2px);
    color: #fff;
    filter: brightness(1.1);
}

.images-wrapper {
    padding: 1rem;
    border: 1px solid var(--detail-border);
    border-radius: 18px;
    background: linear-gradient(155deg, #181a1e, #111214);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.detail-gallery-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
    padding: 0.2rem 0.15rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-gallery-heading span {
    color: #ff7a7e;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.detail-gallery-heading h2 {
    margin: 0.2rem 0 0;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 850;
}

.detail-gallery-heading small {
    padding: 0.36rem 0.58rem;
    border-radius: 999px;
    color: #cfd3da;
    background: rgba(255, 255, 255, 0.055);
    font-size: 0.68rem;
}

.images-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.detail-gallery-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 1.5rem;
    color: var(--detail-muted);
    text-align: center;
}

.detail-gallery-empty > span {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 0.7rem;
    border: 1px solid rgba(255, 70, 75, 0.25);
    border-radius: 14px;
    color: #ff7074;
    background: rgba(255, 70, 75, 0.08);
    font-size: 1.35rem;
    place-items: center;
}

.detail-gallery-empty h2 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.detail-gallery-empty p {
    margin: 0.3rem 0 0;
    font-size: 0.76rem;
}

.image-item {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 13px;
    background: #202328;
    transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.image-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 70, 75, 0.45);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.image-wrapper {
    position: relative;
    width: 100%;
}

.image-item .detail-image {
    display: block;
    width: 100%;
    max-height: 780px;
    margin: 0;
    border: 0;
    border-radius: 0;
    object-fit: contain;
    cursor: zoom-in;
    transition: filter 0.22s ease;
}

.image-item:hover .detail-image {
    filter: brightness(1.04);
}

.image-placeholder {
    transition: opacity 0.3s ease;
}

.detail-image.loaded {
    opacity: 1 !important;
}

#confirmPurchaseModal .purchase-confirm-dialog {
    width: min(640px, calc(100vw - 1.25rem));
    max-width: 640px;
    margin-right: auto;
    margin-left: auto;
}

#confirmPurchaseModal .purchase-confirm-modal {
    overflow: hidden;
    max-height: min(92dvh, 760px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    background:
        radial-gradient(circle at 0 0, rgba(239, 59, 59, 0.09), transparent 36%),
        #121315;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.62);
}

#confirmPurchaseModal .purchase-confirm-header {
    min-height: 72px;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.085);
    background: rgba(255, 255, 255, 0.018);
}

.purchase-confirm-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.72rem;
}

.purchase-confirm-heading-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    color: #ff5b60;
    border: 1px solid rgba(255, 75, 80, 0.25);
    border-radius: 11px;
    background: rgba(255, 59, 64, 0.1);
    font-size: 1.05rem;
}

.purchase-confirm-heading > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.purchase-confirm-heading small {
    margin-bottom: 0.12rem;
    color: #777b82;
    font-size: 0.61rem;
    font-weight: 750;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.purchase-confirm-heading .modal-title {
    margin: 0;
    color: #f7f7f8;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.2;
}

#confirmPurchaseModal .btn-close {
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    background-size: 0.7rem;
    opacity: 0.7;
}

#confirmPurchaseModal .btn-close:hover {
    border-color: rgba(255, 91, 96, 0.36);
    background-color: rgba(255, 59, 64, 0.1);
    opacity: 1;
}

#confirmPurchaseModal .purchase-confirm-body {
    overflow-y: auto;
    padding: 0.9rem;
    background: transparent;
}

.purchase-confirm-note {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.7rem;
    padding: 0.65rem 0.75rem;
    color: #c9c9cb;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
}

.purchase-confirm-note > i {
    color: #ff5b60;
    font-size: 1rem;
}

.purchase-confirm-note > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.purchase-confirm-note strong {
    color: #e9e9ea;
    font-size: 0.72rem;
}

.purchase-confirm-note small {
    margin-top: 0.08rem;
    color: #7f8186;
    font-size: 0.65rem;
    line-height: 1.4;
}

.purchase-account-panel,
.purchase-payment-panel {
    padding: 0.78rem;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.purchase-account-panel {
    margin-bottom: 0.7rem;
}

.purchase-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.62rem;
}

.purchase-panel-heading h6 {
    display: flex;
    align-items: center;
    gap: 0.38rem;
    margin: 0;
    color: #f0f0f1;
    font-size: 0.75rem;
    font-weight: 750;
}

.purchase-panel-heading h6 i {
    color: #ff5b60;
}

.purchase-panel-heading > span {
    overflow: hidden;
    max-width: 48%;
    padding: 0.24rem 0.42rem;
    color: #a3a3a6;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 999px;
    font-size: 0.6rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.purchase-account-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.purchase-account-item {
    display: flex;
    min-width: 0;
    min-height: 58px;
    flex-direction: column;
    justify-content: center;
    padding: 0.55rem 0.62rem;
    border: 1px solid rgba(255, 255, 255, 0.065);
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.17);
}

.purchase-account-item small,
.purchase-payment-item small {
    color: #85878c;
    font-size: 0.61rem;
    font-weight: 650;
}

.purchase-account-item strong {
    overflow: hidden;
    margin-top: 0.18rem;
    color: #f2f2f3;
    font-size: 0.73rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.purchase-account-item strong i {
    margin-right: 0.2rem;
    color: #f6b83f;
}

.purchase-payment-values {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
    align-items: center;
}

.purchase-payment-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 0.15rem 0.35rem;
}

.purchase-payment-item.is-balance {
    text-align: right;
}

.purchase-payment-item strong {
    margin-top: 0.12rem;
    color: #f7f7f8;
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.purchase-payment-item.is-price strong {
    color: #ff555b;
}

.purchase-payment-divider {
    width: 1px;
    height: 38px;
    background: rgba(255, 255, 255, 0.09);
}

.purchase-payment-status {
    display: flex;
    min-height: 34px;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.62rem;
    padding: 0.48rem 0.58rem;
    border: 1px solid currentColor;
    border-radius: 8px;
    font-size: 0.67rem;
    font-weight: 650;
}

.purchase-payment-status.is-insufficient {
    color: #ff696e;
    border-color: rgba(255, 82, 88, 0.25);
    background: rgba(239, 51, 57, 0.075);
}

.purchase-payment-status.is-ready {
    color: #4bd183;
    border-color: rgba(34, 197, 94, 0.24);
    background: rgba(34, 197, 94, 0.065);
}

.purchase-confirm-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 0.55rem;
    margin-top: 0.75rem;
}

.purchase-confirm-actions form {
    display: flex;
    min-width: 0;
    margin: 0;
}

.purchase-confirm-primary,
.purchase-confirm-cancel {
    display: inline-flex;
    height: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    margin: 0;
    padding: 0 0.9rem;
    border-radius: 10px;
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1;
    box-shadow: none !important;
    transform: none !important;
}

.purchase-confirm-primary {
    width: 100%;
    color: #fff !important;
    border: 1px solid #e35459 !important;
    background: #d94349 !important;
}

.purchase-confirm-primary:hover {
    border-color: #ed666b !important;
    background: #e04b51 !important;
}

.purchase-confirm-cancel {
    min-width: 92px;
    color: #bcbcc0 !important;
    border: 1px solid rgba(255, 255, 255, 0.13) !important;
    background: rgba(255, 255, 255, 0.045) !important;
}

.purchase-confirm-cancel:hover {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.78) !important;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

#imageLightboxModal .modal-dialog {
    max-width: min(94vw, 1440px) !important;
}

#imageLightboxModal .modal-content {
    border: 0 !important;
    background: rgba(8, 9, 10, 0.97) !important;
}

#imageLightboxModal .lightbox-nav,
#imageLightboxModal .btn-close-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 50% !important;
    color: #fff !important;
    background: rgba(225, 40, 47, 0.92) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

#imageLightboxModal .lightbox-nav:hover,
#imageLightboxModal .btn-close-custom:hover {
    background: #ff464b !important;
}

@media (max-width: 767px) {
    .detail-container {
        padding: 0.85rem 0 1.5rem;
    }

    .detail-container .container {
        padding-right: 0.85rem;
        padding-left: 0.85rem;
    }

    .detail-navigation {
        margin-bottom: 0.7rem;
    }

    .detail-back-link,
    .detail-availability {
        min-height: 34px;
        padding: 0.4rem 0.55rem;
        font-size: 0.68rem;
    }

    .account-info-wrapper,
    .images-wrapper {
        padding: 0.65rem;
        border-radius: 15px;
    }

    .detail-heading {
        align-items: start;
    }

    .detail-heading p {
        font-size: 0.72rem;
    }

    .detail-heading-id {
        padding: 0.4rem 0.55rem;
        font-size: 0.68rem;
    }

    .detail-card .card-body {
        padding: 0.2rem 0.75rem 0.45rem;
    }

    .detail-assurance {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .detail-assurance span {
        justify-content: flex-start;
        min-height: 32px;
        padding: 0.35rem 0.5rem;
    }

    .price-buy-container {
        grid-template-columns: 1fr;
    }

    .detail-price-compact,
    .buy-now-btn-compact {
        min-height: 46px;
    }

    .detail-gallery-heading h2 {
        font-size: 1rem;
    }

    .images-grid {
        gap: 0.7rem;
    }

    .image-item .detail-image {
        max-height: none;
    }

    #confirmPurchaseModal .purchase-confirm-dialog {
        width: calc(100vw - 1rem);
        margin: 0.5rem auto;
    }

    #confirmPurchaseModal .purchase-confirm-modal {
        max-height: calc(100dvh - 1rem);
        border-radius: 15px;
    }

    #confirmPurchaseModal .purchase-confirm-header {
        min-height: 64px;
        padding: 0.72rem;
    }

    #confirmPurchaseModal .purchase-confirm-body {
        padding: 0.7rem;
    }

    .purchase-confirm-heading-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 9px;
    }

    .purchase-confirm-heading .modal-title {
        font-size: 0.9rem;
    }

    .purchase-confirm-note {
        padding: 0.55rem 0.6rem;
    }

    .purchase-account-panel,
    .purchase-payment-panel {
        padding: 0.65rem;
    }

    .purchase-account-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .purchase-account-item {
        min-height: 52px;
        padding: 0.48rem 0.52rem;
    }

    .purchase-confirm-primary,
    .purchase-confirm-cancel {
        min-height: 42px;
    }

    #imageLightboxModal .modal-dialog {
        max-width: 100vw !important;
        margin: 0 !important;
    }

    #imageLightboxModal .lightbox-body img {
        width: 100vw !important;
        height: 100vh !important;
        object-fit: contain !important;
    }
}

@media (max-width: 420px) {
    .detail-availability {
        font-size: 0;
    }

    .detail-availability i {
        font-size: 0.85rem;
    }

    .detail-heading {
        display: grid;
    }

    .detail-heading-id {
        width: fit-content;
    }
}
