/* Profile */
.profileContentBox {
    background: url(../img/personal/texture.png) no-repeat center center rgba(0, 0, 0, .35);
    background-size: 100%;
    height: 190px;
    width: 100%;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15);
    border-radius: 2px;
    position: relative;
    margin-bottom: 10px;
    image-rendering: -moz-crisp-edges;
    image-rendering: pixelated;
}

.profileContentBox::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7); /* Sombra oscura del 70% */
    border-radius: 2px;
    z-index: 0; /* Para que esté debajo del contenido */
}

.profileContentBox .avatar {
    background: no-repeat center -30px;
    height: 130px;
    width: 130px;
    position: absolute;
    top: 30px;
    left: 30px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);  /* Sombra más suave y oscura */
    background-color: rgba(255, 255, 255, 0.1);  /* Fondo blanco con baja opacidad */
    border: 2px solid rgba(255, 255, 255, 0.6);  /* Borde blanco con opacidad moderada */
    transition: all 0.3s ease-in-out;
}

.profileContentBox .avatar.kx-hover-avatar .kx-hover-avatar-layer {
    background-position: center -30px;
}

.profileContentBox .userDetails {
    position: absolute;
    margin-top: 60px;
    margin-left: 180px;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.4), 0 0 10px rgba(255, 255, 255, 0.3); /* Brillo leve */
}


.profileContentBox .userDetails h2 {
    font-weight: 300;
    margin: 5px 0 0 0;
    font-size: 30px;
    line-height: 1;
}

.profileContentBox .userDetails h2 .username-readable.username-main {
    display: inline-block;
    width: fit-content;
    height: auto;
    box-sizing: border-box;
    line-height: 1;
    vertical-align: baseline;
    max-width: none;
    white-space: nowrap;
}

.username-readable {
    color: #fff;
    position: relative;
    z-index: 1;
    -webkit-text-stroke: 0.25px rgba(0, 0, 0, 0.72);
    paint-order: stroke fill;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.78),
        0 0 1px rgba(0, 0, 0, 0.95),
        0 0 1px rgba(255, 255, 255, 0.40),
        0 0 3px rgba(255, 255, 255, 0.18);
}

.profileContentBox .userDetails .registration,
.profileContentBox .userDetails .lastOnline {
    font-size: 11px;
    color: #ccc;
}

.profileContentBox .userDetails .allGrayBox {
    width: 250px;
    position: absolute;
    top: -25px;
    margin-left: 225px;
}

.profileContentBox .userDetails .allGrayBox .grayBox {
    background: rgba(255, 255, 255, 0.3);
    width: 50%;
    height: 32px;
    text-align: center;
    border-radius: 5px;
    position: relative;
    line-height: 30px;
    margin-right: 15px;
    margin-bottom: 15px;
}

.profileContentBox .userDetails .allGrayBox .grayBox .icon {
    height: 30px;
    width: 30px;
    position: absolute;
    left: 14;
}


.profileContentBox .userDetails .allGrayBox .grayBox .icon .credits {
    background-image: var(--kx-currency-credits-image);
    background-repeat: no-repeat;
    background-size: contain;
    height: 15px;
    width: 15px;
    position: absolute;
    left: 8px;
    top: 8px;
}

.profileContentBox .userDetails .allGrayBox .grayBox .icon .duckets {
    background-image: var(--kx-currency-duckets-image);
    background-repeat: no-repeat;
    background-size: contain;
    height: 15px;
    width: 15px;
    position: absolute;
    left: 8px;
    top: 8px;
}

.profileContentBox .userDetails .allGrayBox .grayBox .icon .diamonds {
    background-image: var(--kx-currency-diamonds-image);
    background-repeat: no-repeat;
    background-size: contain;
    height: 15px;
    width: 15px;
    position: absolute;
    left: 8px;
    top: 8px;
}

.profileContentBox .userDetails .allGrayBox .grayBox .count {
    font-weight: bold;
    font-size: 13px;
    text-align: center;
    padding-left: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /* Sombra negra sutil */
    background-color: rgba(0, 0, 0, 0.5); /* Fondo negro con baja opacidad */
    border: 1.8px solid rgba(255, 255, 255, 0.3); /* Borde blanco sutil */
    border-radius: 5px; /* Redondeo suave */
}


.profileContentBox .userDetails .allGrayBox .grayBox .count.credits {
    color: #CCA923;
    text-shadow: 0 0 2px rgba(204, 169, 35, 0.3), 0 0 3px rgba(204, 169, 35, 0.2); /* Brillo dorado más suave */
}

.profileContentBox .userDetails .allGrayBox .grayBox .count.duckets {
    color: #D184D3;
    text-shadow: 0 0 2px rgba(209, 132, 211, 0.3), 0 0 3px rgba(209, 132, 211, 0.2); /* Brillo rosa más suave */
}

.profileContentBox .userDetails .allGrayBox .grayBox .count.diamonds {
    color: #37C9EA;
    text-shadow: 0 0 2px rgba(55, 201, 234, 0.3), 0 0 3px rgba(55, 201, 234, 0.2); /* Brillo azul más suave */
}


.profileContentBox .checkIn {
    background: rgba(0, 0, 0, .28);
    padding: 0 12px;
    color: #fff;
    font: 700 10px 'Roboto Condensed', sans-serif;
    letter-spacing: .7px;
    text-transform: uppercase;
    outline: none;
    transition: opacity .18s ease;
    text-decoration: none;
    position: absolute;
    right: 76px;
    top: 53px;
    width: 164px;
    height: 58px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 2px;
    box-shadow: none;
}

.profileContentBox .checkIn:hover {
    color: #fff;
    border-color: rgba(255, 155, 0, .45);
    background: rgba(255, 155, 0, .12);
}


.profileContentBox .icon {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.profileContentBox .checkIn .icon {
    height: 58px;
    width: 28px;
    border-radius: 2px;
    margin-bottom: 0;
    flex: 0 0 28px;
    color: rgba(255, 255, 255, .72);
    background: transparent;
    border: 0;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.profileContentBox .checkIn:hover .icon {
    color: #fff;
}

.profileContentBox .icon .vip {
    height: 40px;
    width: 40px;
}

.profileContentBox .count.vip {
    color: #e9eaea;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    line-height: 1.05;
    text-align: left;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .65);
}

.profileContentBox .count.vip .senior-title {
    color: #ffa600;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.profileContentBox .count.vip .senior-days {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.kx-overlay-loading-host {
    position: relative;
}

.kx-overlay-skeleton {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: #15191a;
    pointer-events: none;
    overflow: hidden;
}

.profileContentBox .kx-overlay-skeleton {
    border-radius: 2px;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .76), rgba(0, 0, 0, .58)),
        url(../img/personal/texture.png) no-repeat center center,
        rgba(18, 22, 23, .88);
    background-size: 100% 100%, 100%, auto;
    image-rendering: -moz-crisp-edges;
    image-rendering: pixelated;
}

.kx-overlay-avatar {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .38);
    background-repeat: no-repeat;
    background-position: center -30px;
    background-size: auto;
    background-color: rgba(255, 255, 255, .08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, .36);
    opacity: .74;
}

.kx-overlay-avatar::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
    background-size: 220% 100%;
    animation: kxSkeletonSweep 1.15s ease-in-out infinite;
    pointer-events: none;
}

.kx-overlay-profile-lines {
    position: absolute;
    left: 180px;
    top: 72px;
    width: 250px;
}

.kx-skeleton-line.is-profile-name {
    width: 150px;
    height: 30px;
}

.kx-skeleton-line.is-profile-small {
    width: 155px;
    height: 9px;
    margin-top: 6px;
}

.kx-skeleton-line.is-profile-small.is-short {
    width: 128px;
}

.kx-overlay-currency {
    position: absolute;
    top: 35px;
    left: 405px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kx-overlay-currency div {
    width: 125px;
    height: 32px;
    border-radius: 5px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .22), rgba(255, 255, 255, .11));
    background-size: 220% 100%;
    animation: kxSkeletonSweep 1.15s ease-in-out infinite;
}

.ai-analysis-box .kx-overlay-skeleton.is-ai {
    position: static;
    inset: auto;
    background: transparent;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 10px;
    padding: 0;
    box-sizing: border-box;
    align-items: start;
}

.kx-overlay-ai-card {
    min-width: 0;
    min-height: 152px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .055);
    border-radius: 6px;
    background: rgba(255, 255, 255, .025);
    box-sizing: border-box;
}

.ai-analysis-box .png15.kx-overlay-loading-host {
    min-height: 182px;
}

.kx-skeleton-line.is-ai-title {
    width: 34%;
    height: 10px;
    margin-bottom: 8px;
}

.kx-skeleton-line.is-ai-item {
    width: 100%;
    height: 29px;
    margin-top: 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .16);
    position: relative;
    overflow: hidden;
    animation: none;
}

.kx-skeleton-line.is-ai-item span {
    position: absolute;
    left: 9px;
    right: 24%;
    top: 50%;
    height: 10px;
    margin-top: -5px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .11), rgba(255, 255, 255, .045));
    background-size: 220% 100%;
    animation: kxSkeletonSweep 1.15s ease-in-out infinite;
}

.kx-overlay-ai-card .kx-skeleton-line.is-ai-item:nth-child(3) span {
    right: 12%;
}

.kx-overlay-ai-card .kx-skeleton-line.is-ai-item:nth-child(5) span {
    right: 36%;
}

.profile-action-buttons {
    float: right;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-header-title {
    position: relative;
    min-height: 24px;
    box-sizing: border-box;
}

.profile-header-title .profile-action-buttons {
    float: none;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.button-wayback {
    min-height: 24px;
    height: 24px;
    line-height: 22px;
    padding-top: 0;
    padding-bottom: 0;
}

.button-wayback i {
    margin-right: 6px;
}

.button-wayback:hover {
    text-decoration: none;
}

.button-ai-analysis,
.ai-analysis-expand-toggle {
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 4px;
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .88);
    font: 700 10px 'Roboto Condensed', sans-serif;
    letter-spacing: 1px;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.button-ai-analysis:hover,
.ai-analysis-expand-toggle:hover {
    background: rgba(255, 255, 255, .09);
}

.button-ai-analysis.is-busy {
    opacity: .7;
    cursor: wait;
    border-color: rgba(40, 126, 166, .26);
}

.button-ai-analysis.is-disabled,
.button-ai-analysis:disabled {
    opacity: .82;
    cursor: not-allowed;
    box-shadow: none;
}

.ai-analysis-box {
    background: rgba(0, 0, 0, .35);
    margin-bottom: 10px;
    overflow: visible;
}

.ai-analysis-box > .png15 {
    background: transparent;
}

.ai-analysis-box .title.small {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.ai-analysis-box .title.small .ai-analysis-title-inline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.ai-analysis-box .title.small .profile-action-buttons {
    margin-left: auto;
    flex-shrink: 0;
}

.ai-analysis-box .title.small .profile-action-buttons.ai-analysis-action-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.ai-analysis-box .title.small .button-ai-analysis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    min-height: 28px;
    height: 28px;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
    line-height: 1;
}

.ai-analysis-box .title.small .ai-analysis-expand-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    height: 26px;
    box-sizing: border-box;
    line-height: 1;
}

.ai-analysis-root {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.ai-analysis-status-summary {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 320px;
    min-height: 28px;
    height: 28px;
    padding: 0 10px;
    box-sizing: border-box;
    border-radius: 4px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    position: relative;
    overflow: hidden;
}

.ai-analysis-status-summary.status-queued,
.ai-analysis-status-summary.status-processing,
.ai-analysis-status-summary.status-retry_pending {
    border-color: rgba(40, 126, 166, .35);
    animation: ai-analysis-status-glow 10s ease-in-out infinite;
}

.ai-analysis-status-summary.status-paused {
    border-color: rgba(223, 145, 39, .35);
}

.ai-analysis-status-summary.status-ready {
    border-color: rgba(39, 174, 96, .35);
}

.profile-rares-title {
    display: block;
    padding-right: 132px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-rares-title span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-rares-box {
    height: 240px;
    overflow: hidden;
}

.profile-rares-refresh {
    position: absolute;
    top: 8px;
    right: 12px;
    z-index: 2;
}

.profile-rares-refresh:hover {
    color: #fff;
}

.profile-rares-refresh:disabled {
    cursor: default;
}

.profile-rares-container {
    margin-left: 0;
    padding: 2px 10px 0;
    box-sizing: border-box;
    max-width: 100%;
    height: 183px;
    min-height: 183px;
    max-height: 183px;
    overflow-y: auto;
    overflow-x: hidden;
}

.profile-rares-container.is-loading {
    overflow: hidden;
}

.profile-rares-container .profile-rares-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, 43px);
    column-gap: 0;
    row-gap: 2px;
    justify-content: space-between;
    align-content: start;
    max-width: 100%;
    overflow: visible;
}

.profile-rares-container .profile-rares-list .item {
    left: 0;
    margin: 0;
    box-sizing: border-box;
    transition: box-shadow .14s ease, border-color .14s ease, background-color .14s ease;
}

.profile-rares-container .profile-rares-list .item:hover {
    box-shadow: inset 0 0 0 1px rgba(255, 155, 0, .55), 0 0 0 1px rgba(0, 0, 0, .28);
    background-color: rgba(255, 255, 255, .025);
}

.profile-rares-container .profile-rares-list > .error-message {
    grid-column: 1 / -1;
    width: 100%;
    height: 100%;
    min-height: 190px;
    margin: 0;
    padding: 0;
}

.profile-rares-container .profile-rares-list > .error-message p {
    margin: 0;
}

.ai-analysis-status-summary.status-ready_stale {
    border-color: rgba(223, 145, 39, .4);
    background: rgba(223, 145, 39, .06);
}

.ai-analysis-status-summary.status-error {
    border-color: rgba(192, 57, 43, .4);
}

.ai-analysis-status-summary-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font: 700 10px 'Roboto Condensed', sans-serif;
    line-height: 1;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .78);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-analysis-status-summary-text .fa {
    flex: 0 0 auto;
    font-size: 11px;
    line-height: 1;
    opacity: .82;
}

@keyframes ai-analysis-status-glow {
    0% {
        border-color: rgba(40, 126, 166, .34);
        box-shadow: 0 0 0 rgba(40, 126, 166, 0), inset 0 0 0 1px rgba(40, 126, 166, .04);
    }

    50% {
        border-color: rgba(82, 176, 219, .72);
        box-shadow: 0 0 14px rgba(40, 126, 166, .18), inset 0 0 0 1px rgba(82, 176, 219, .22);
    }

    100% {
        border-color: rgba(40, 126, 166, .34);
        box-shadow: 0 0 0 rgba(40, 126, 166, 0), inset 0 0 0 1px rgba(40, 126, 166, .04);
    }
}

.ai-analysis-profile-view {
    padding-top: 0;
    overflow: visible;
}

.ai-analysis-empty {
    margin: 0;
    font: 300 13px 'Roboto', sans-serif;
    line-height: 1.6;
    color: rgba(255, 255, 255, .72);
}

.ai-analysis-profile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 10px;
    align-items: start;
}

.ai-analysis-section {
    min-width: 0;
    padding: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .025);
    border: 1px solid rgba(255, 255, 255, .055);
    display: flex;
    flex-direction: column;
}

.ai-analysis-section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font: 700 10px 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, .72);
}

.ai-analysis-section-label .fa {
    font-size: 11px;
    line-height: 1;
}

.ai-analysis-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 6px;
}

.ai-analysis-list li {
    padding: 7px 9px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .16);
    font: 400 11px 'Roboto', sans-serif;
    line-height: 1.35;
    color: rgba(255, 255, 255, .88);
    word-break: break-word;
}

.ai-analysis-section-empty {
    margin: 0;
    font: 300 11px 'Roboto', sans-serif;
    line-height: 1.4;
    color: rgba(255, 255, 255, .5);
}

.ai-analysis-status-summary.is-hidden,
.button-ai-analysis.is-hidden {
    display: none !important;
}

.is-hidden {
    display: none !important;
}

/* Estado compartido para listas de perfil: evita que el grid comprima los mensajes. */
.profile-section-state {
    align-items: center;
    align-self: stretch;
    box-sizing: border-box;
    color: rgba(255, 255, 255, .72);
    display: flex;
    flex: 1 0 100%;
    font: 400 14px 'Roboto', sans-serif;
    grid-column: 1 / -1;
    justify-content: center;
    line-height: 1.45;
    list-style: none;
    margin: 0 !important;
    min-height: 190px;
    padding: 20px;
    text-align: center;
    width: 100%;
}

.profile-section-state-error {
    color: rgba(255, 255, 255, .82);
}

.profile-badges-list > .profile-section-state,
.profile-inventory-list > .profile-section-state {
    min-height: 193px;
}

/* Inventario unificado: las dos colecciones comparten una navegación local. */
.profile-inventory-tabs {
    min-width: 0;
}

.profile-inventory-title {
    align-items: center;
    display: flex !important;
    gap: 12px;
    justify-content: space-between;
}

.profile-inventory-title > span {
    min-width: 0;
}

.profile-inventory-title .profile-inventory-tabs {
    flex: 0 0 auto;
    margin-left: auto;
}

.profile-inventory-tab-strip {
    margin: 0;
    padding: 0;
}

.profile-inventory-tab-strip .hk-tab-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.profile-inventory-tab-strip .hk-tab-button {
    align-items: center;
    appearance: none;
    background: rgba(255, 255, 255, .035);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 3px;
    box-sizing: border-box;
    color: rgba(255, 255, 255, .68);
    cursor: pointer;
    display: inline-flex;
    font: 700 11px 'Roboto Condensed', sans-serif;
    justify-content: center;
    line-height: 1;
    min-height: 28px;
    padding: 0 11px;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.profile-inventory-tab-strip .hk-tab-button:hover,
.profile-inventory-tab-strip .hk-tab-button:focus-visible,
.profile-inventory-tab-strip .hk-tab-button.is-active {
    background: rgba(255, 155, 0, .14);
    border-color: rgba(255, 155, 0, .7);
    color: #fff;
    outline: none;
}

.profile-inventory-tab-panel[hidden] {
    display: none !important;
}

.profile-inventory-tab-panel .item {
    cursor: pointer;
}

.profile-inventory-tab-panel .item[aria-selected="true"] {
    outline: 2px solid rgba(255, 155, 0, .86);
    outline-offset: 1px;
}

.profile-inventory-actions .function {
    width: 100%;
}

#list-users > .profile-section-state {
    height: 100%;
    min-height: 100%;
}

/* Empty/error messages are panel states, not alternating data rows. */
.profile-page #list-users > .profile-section-state,
.profile-page #hot-rooms > .profile-section-state {
    background: transparent;
}
