/* =========================================================
   POKENEXO — PERFIL INDIVIDUAL EN PDA
   ========================================================= */

.creator-profile-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.creator-profile-main {
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 64px 24px 80px;
}

.creator-device {
    position: relative;
    width: min(100%, 1000px);
    padding: 18px;
    border: 1px solid rgba(98, 238, 222, 0.38);
    border-radius: 28px;
    background:
        linear-gradient(145deg, #303c4b 0%, #151e2a 35%, #202d39 72%, #111923 100%);
    box-shadow:
        0 30px 70px rgba(12, 15, 38, 0.42),
        inset 0 1px 1px rgba(255, 255, 255, 0.13),
        inset 0 -3px 5px rgba(0, 0, 0, 0.45);
}

.creator-device::before {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(255, 255, 255, 0.045);
    border-radius: 23px;
    pointer-events: none;
}

.creator-device-top,
.creator-device-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #a8bdcb;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.creator-device-top {
    padding: 0 10px 15px;
}

.creator-device-brand {
    display: flex;
    align-items: center;
    gap: 9px;
}

.creator-device-led,
.creator-screen-status span {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #69f5c7;
    box-shadow: 0 0 10px rgba(105, 245, 199, 0.65);
}

.creator-device-divider {
    color: #57dccc;
}

.creator-device-model {
    color: #6ee5d8;
}

.creator-device-screen {
    position: relative;
    overflow: hidden;
    padding: clamp(22px, 4vw, 42px);
    border: 2px solid #394b58;
    border-radius: 17px;
    color: #e9f4f7;
    background:
        radial-gradient(ellipse at 12% 0%, rgba(41, 190, 185, 0.10), transparent 45%),
        linear-gradient(145deg, #101d29, #14232e 60%, #101923);
    box-shadow:
        inset 0 0 0 1px rgba(110, 229, 216, 0.10),
        inset 0 8px 25px rgba(0, 0, 0, 0.25);
}

.creator-screen-heading,
.creator-screen-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #8ca8b7;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.creator-screen-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #82f4c8;
}

.creator-screen-status span {
    width: 6px;
    height: 6px;
    flex-basis: 6px;
}

.creator-profile-header {
    display: grid;
    grid-template-columns: minmax(150px, 230px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 5vw, 54px);
    padding: 42px 0 36px;
}

.creator-profile-avatar {
    width: 100%;
    max-width: 230px;
    aspect-ratio: 1;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid #64e7d5;
    border-radius: 50%;
    background: linear-gradient(145deg, #273c4a, #111e29);
    box-shadow:
        0 0 0 8px rgba(100, 231, 213, 0.055),
        0 0 28px rgba(65, 222, 204, 0.12);
    color: #79ead9;
    font-size: 4rem;
    font-weight: 800;
}

.creator-profile-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.creator-profile-identity {
    min-width: 0;
}

.creator-profile-label {
    color: #6fe6d6;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.creator-profile-identity h1 {
    margin: 10px 0 22px;
    overflow-wrap: anywhere;
    color: #f4fbff;
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.creator-profile-socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.creator-profile-socials a {
    width: 43px;
    height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(111, 230, 214, 0.28);
    border-radius: 10px;
    background: rgba(72, 207, 195, 0.07);
    color: #9cefe4;
    font-size: 1.35rem;
    text-decoration: none;
    transition:
        background 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.creator-profile-socials a:hover {
    transform: translateY(-2px);
    border-color: #6fe6d6;
    background: rgba(72, 207, 195, 0.17);
}

.creator-profile-description {
    padding: 24px 26px;
    border: 1px solid rgba(111, 230, 214, 0.19);
    border-radius: 12px;
    background: rgba(4, 13, 22, 0.30);
}

.creator-description-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
}

.creator-description-marker {
    width: 4px;
    height: 19px;
    border-radius: 3px;
    background: #6fe6d6;
    box-shadow: 0 0 10px rgba(111, 230, 214, 0.30);
}

.creator-description-heading h2 {
    margin: 0;
    color: #80eadd;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.creator-profile-description p {
    margin: 0;
    color: #d1e0e8;
    font-size: 1rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.creator-profile-description .creator-description-empty {
    color: #8ca8b7;
    font-style: italic;
}

.creator-screen-footer {
    margin-top: 24px;
    font-size: 0.62rem;
}

.creator-screen-footer b {
    color: #77efc4;
}

.creator-device-bottom {
    justify-content: center;
    padding: 15px 10px 0;
}

.creator-device-bottom-label {
    text-align: center;
    font-size: 0.58rem;
}

.creator-device-decoration {
    width: 35px;
    height: 3px;
    border-radius: 3px;
    background: #647988;
}

@media (max-width: 600px) {
    .creator-profile-name-row {
        justify-content: center;
        gap: 0 4px;
        margin-top: 0;
        margin-bottom: 14px;
    }

    .creator-profile-name-row h1 {
        flex-basis: 100%;
        text-align: center;
    }

    .creator-member-tenure {
        justify-content: center;
        gap: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .creator-profile-socials a {
        transition: none;
    }
}


/* Ajustes PDA: carcasa metálica y pantalla azul PokeNexo */
.creator-device {
    border: 1px solid #aab8c2;
    background: linear-gradient(
        135deg,
        #f5f8fa 0%,
        #c5cfd6 13%,
        #eef2f5 27%,
        #aebbc5 43%,
        #e4eaee 59%,
        #b4c0c9 77%,
        #f7f9fa 100%
    );
    box-shadow:
        0 30px 70px rgba(12, 25, 39, 0.28),
        inset 0 2px 2px rgba(255, 255, 255, 0.95),
        inset 0 -3px 6px rgba(70, 86, 99, 0.35);
}

.creator-device::before {
    border-color: rgba(91, 108, 121, 0.34);
}

.creator-device-top,
.creator-device-bottom {
    color: #405362;
    text-shadow: 0 1px rgba(255, 255, 255, 0.75);
}

.creator-device-led,
.creator-screen-status span {
    background: #20b86b;
    box-shadow:
        0 0 0 2px rgba(32, 184, 107, 0.14),
        0 0 9px rgba(32, 184, 107, 0.62);
}

.creator-device-divider {
    color: #168fd0;
}

.creator-device-screen {
    border-color: #8296a5;
    color: #102f46;
    background:
        radial-gradient(ellipse at 10% 0%, rgba(255, 255, 255, 0.5), transparent 46%),
        linear-gradient(145deg, #a9e4f7 0%, #65c5ed 44%, #168fd0 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.65),
        inset 0 8px 24px rgba(255, 255, 255, 0.12);
}

.creator-screen-heading,
.creator-screen-footer {
    color: #174c6c;
}

.creator-screen-status {
    margin-left: auto;
    gap: 0;
}

.creator-profile-avatar {
    border-color: #f4fbff;
    background: linear-gradient(145deg, #d8f3fc, #73cbed);
    box-shadow:
        0 0 0 7px rgba(255, 255, 255, 0.22),
        0 0 24px rgba(8, 95, 145, 0.2);
    color: #126c9d;
}

.creator-profile-label {
    color: #075d8c;
}

.creator-profile-identity h1 {
    color: #10364e;
}

.creator-profile-socials a {
    border-color: rgba(9, 76, 113, 0.28);
    background: rgba(255, 255, 255, 0.55);
    color: #104f75;
}

.creator-profile-socials a:hover {
    border-color: #075f94;
    background: rgba(255, 255, 255, 0.82);
}

.creator-profile-description {
    border-color: rgba(10, 85, 127, 0.22);
    background: rgba(242, 251, 255, 0.52);
}

.creator-description-marker {
    background: #087fb9;
    box-shadow: 0 0 8px rgba(8, 127, 185, 0.25);
}

.creator-description-heading h2 {
    color: #075d8c;
}

.creator-profile-description p {
    color: #173c53;
}

.creator-profile-description .creator-description-empty {
    color: #476c80;
}

.creator-screen-footer b {
    color: #075d8c;
}

.creator-device-decoration {
    background: linear-gradient(90deg, #8999a4, #f7f9fa, #8999a4);
}


/* AJUSTES PDA: encabezado, conexión y pie */
.creator-device-top .creator-device-brand {
    gap: 0;
}

.creator-screen-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.creator-screen-status {
    display: inline-flex;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
}

.creator-screen-status > span {
    display: block;
    width: 10px;
    height: 10px;
    min-width: 10px;
    border-radius: 50%;
    background: #39f17b;
    box-shadow: 0 0 0 3px rgba(57, 241, 123, 0.18),
                0 0 12px rgba(57, 241, 123, 0.85);
}

.creator-screen-footer {
    display: flex;
    justify-content: flex-end;
    text-align: right;
}


/* PDA FIX 2: encabezado interior, cobertura y pie inferior */
.creator-screen-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.creator-signal-icon {
    display: inline-flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 2px;
    flex: 0 0 22px;
    width: 22px;
    height: 20px;
    color: #38ef7d;
}

.creator-signal-icon span {
    display: block;
    width: 4px;
    border-radius: 1px 1px 0 0;
    background: #38ef7d;
    box-shadow: 0 0 5px rgba(56, 239, 125, .5);
}

.creator-signal-icon span:nth-child(1) { height: 6px; }
.creator-signal-icon span:nth-child(2) { height: 10px; }
.creator-signal-icon span:nth-child(3) { height: 15px; }
.creator-signal-icon span:nth-child(4) { height: 20px; }

.creator-device-screen {
    display: flex;
    flex-direction: column;
}

.creator-screen-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    align-self: stretch;
    margin-top: auto;
    padding-top: 18px;
    text-align: right;
}


/* PDA FIX 3: posiciones y contraste */
.creator-device-top {
    display: none !important;
}

.creator-device-screen {
    display: flex !important;
    flex-direction: column !important;
    min-height: 420px;
    box-sizing: border-box;
    padding-top: 8px !important;
    padding-bottom: 12px !important;
}

.creator-screen-heading {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 18px !important;
    color: #102b48 !important;
}

.creator-signal-icon {
    display: inline-flex !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
    gap: 2px !important;
    flex: 0 0 24px !important;
    width: 24px !important;
    height: 22px !important;
    padding: 3px !important;
    border-radius: 4px;
    background: #102b48 !important;
    box-sizing: border-box;
}

.creator-signal-icon span {
    display: block !important;
    width: 4px !important;
    border-radius: 1px 1px 0 0;
    background: #76ff9b !important;
    box-shadow: 0 0 5px rgba(118, 255, 155, .65);
}

.creator-signal-icon span:nth-child(1) { height: 5px !important; }
.creator-signal-icon span:nth-child(2) { height: 9px !important; }
.creator-signal-icon span:nth-child(3) { height: 13px !important; }
.creator-signal-icon span:nth-child(4) { height: 17px !important; }

.creator-screen-footer {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    align-self: stretch !important;
    margin-top: auto !important;
    padding-top: 18px !important;
    text-align: right !important;
}


/* PDA FIX 4: punto de conexión y posición del icono */
.creator-screen-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.creator-title-led {
    display: inline-block;
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: #38ef7d;
    box-shadow: 0 0 0 2px rgba(56, 239, 125, .2),
                0 0 8px rgba(56, 239, 125, .8);
}

.creator-screen-heading .creator-signal-icon {
    margin-right: -5px !important;
}

/* PDA FIX 5: mayor contraste y desplazamiento visible */
.creator-title-led {
    width: 10px !important;
    height: 10px !important;
    flex: 0 0 10px !important;
    background: #00ff70 !important;
    border: 1px solid #087b3a !important;
    box-shadow: 0 0 0 2px rgba(0, 255, 112, .25),
                0 0 12px rgba(0, 255, 112, .95) !important;
}

.creator-screen-heading .creator-signal-icon {
    margin-right: -14px !important;
    transform: translateX(10px);
}

/* PDA FIX 5: mayor contraste y desplazamiento visible */
.creator-title-led {
    width: 10px !important;
    height: 10px !important;
    flex: 0 0 10px !important;
    background: #00ff70 !important;
    border: 1px solid #087b3a !important;
    box-shadow: 0 0 0 2px rgba(0, 255, 112, .25),
                0 0 12px rgba(0, 255, 112, .95) !important;
}

.creator-screen-heading .creator-signal-icon {
    margin-right: -14px !important;
    transform: translateX(10px);
}

/* PDA FIX 6: alineación vertical del punto de conexión */
.creator-screen-title {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1.2 !important;
    vertical-align: middle;
}

.creator-title-led {
    display: block !important;
    align-self: center !important;
    position: relative;
    top: 0;
    margin: 0 !important;
    transform: translateY(0) !important;
}

/* PDA FIX 7: encabezado adaptable a pantallas estrechas */
.creator-screen-heading {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.creator-screen-title {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow-wrap: anywhere;
}

.creator-screen-heading .creator-signal-icon {
    position: static !important;
    transform: none !important;
    margin-right: 0 !important;
    flex: 0 0 24px !important;
    width: 24px !important;
    max-width: 24px !important;
    box-sizing: border-box !important;
}

/* PDA FIX 8: escritorio conservado y ajuste solo en pantallas estrechas */
@media (min-width: 769px) {
    .creator-screen-heading .creator-signal-icon {
        transform: translateX(10px) !important;
        margin-right: -14px !important;
    }
}

@media (max-width: 768px) {
    .creator-screen-heading {
        gap: 6px !important;
    }

    .creator-screen-title {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        font-size: clamp(10px, 2.5vw, 14px) !important;
        overflow-wrap: anywhere !important;
    }

    .creator-screen-heading .creator-signal-icon {
        transform: none !important;
        margin-right: 0 !important;
        flex: 0 0 24px !important;
        width: 24px !important;
    }
}

/* GALERÍA DE PUBLICACIONES DEL PERFIL */

/* GALERÍA DE PUBLICACIONES DEL PERFIL */
.creator-publications {
    margin-top: 30px;
    padding: 24px;
    border: 1px solid rgba(111, 230, 214, 0.19);
    border-radius: 12px;
    background: rgba(242, 251, 255, 0.52);
}

.creator-publications-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.creator-publications-heading h2 {
    margin: 0;
    color: #075d8c;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.creator-publications-count {
    margin-left: auto;
    color: #8ca8b7;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.creator-publications-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.creator-publication-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(111, 230, 214, 0.18);
    border-radius: 10px;
    background: rgba(7, 17, 26, 0.72);
}

.creator-publication-visual {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #0b1721;
}

.creator-publication-visual > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-publication-platforms {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.creator-publication-platforms a {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(111, 230, 214, 0.35);
    border-radius: 8px;
    background: rgba(9, 24, 34, 0.92);
    color: #9cefe4;
    font-size: 1.1rem;
    text-decoration: none;
}

.creator-publication-platforms a:hover {
    border-color: #6fe6d6;
    background: #183642;
}

.creator-publication-info {
    padding: 12px;
}

.creator-publication-info h3 {
    margin: 0;
    color: #e9f4f7;
    font-size: 0.9rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.creator-publication-date {
    display: block;
    margin-top: 8px;
    color: #8ca8b7;
    font-size: 0.72rem;
    overflow-wrap: anywhere;
}

.creator-publications-empty {
    margin: 0;
    padding: 0 0 4px;
    color: #173c53;
    font-size: 0.9rem;
    line-height: 1.6;
}

@media (max-width: 760px) {
    .creator-publications-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .creator-publications {
        padding: 18px;
    }
}

@media (max-width: 420px) {
    .creator-publications-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}


.creator-publications-heading .creator-description-marker {
    background: #087fb9;
    box-shadow: 0 0 8px rgba(8, 127, 185, 0.25);
}

/* ESTILOS FILTROS Y PAGINACIÓN PUBLICACIONES */

.creator-publications-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.creator-publications-filter {
    padding: 8px 13px;
    border: 1px solid rgba(8, 127, 185, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.65);
    color: #173c53;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.creator-publications-filter:hover {
    border-color: #087fb9;
}

.creator-publications-filter.is-active {
    border-color: #087fb9;
    background: #087fb9;
    color: #fff;
}

.creator-publications-filter:focus-visible,
.creator-publications-page:focus-visible,
.creator-publications-reset:focus-visible {
    outline: 2px solid #087fb9;
    outline-offset: 2px;
}

.creator-publication-card[hidden],
.creator-publications-filtered-empty[hidden],
.creator-publications-pagination[hidden],
.creator-publications-pages[hidden] {
    display: none !important;
}

.creator-publications-filtered-empty {
    margin: 0;
    padding: 14px 0 4px;
    color: #173c53;
    font-size: 0.9rem;
    line-height: 1.6;
}

.creator-publications-reset {
    margin-left: 6px;
    padding: 5px 9px;
    border: 1px solid rgba(8, 127, 185, 0.3);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.7);
    color: #075d8c;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.creator-publications-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}

.creator-publications-results {
    margin: 0;
    color: #476c80;
    font-size: 0.8rem;
}

.creator-publications-pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.creator-publications-page {
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border: 1px solid rgba(8, 127, 185, 0.24);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.7);
    color: #173c53;
    cursor: pointer;
}

.creator-publications-page.is-active {
    border-color: #087fb9;
    background: #087fb9;
    color: #fff;
}

.creator-publications-page:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 420px) {
    .creator-publications-filters {
        gap: 6px;
    }

    .creator-publications-filter {
        padding: 7px 10px;
    }

    .creator-publications-pagination {
        align-items: flex-start;
    }
}


/* Estado en directo del creador */
.creator-profile-status-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.creator-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #d7193f;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.creator-live-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: #ed2348;
    box-shadow: 0 0 8px rgba(237, 35, 72, 0.65);
    animation: creator-live-pulse 1.5s ease-in-out infinite;
}

@keyframes creator-live-pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(237, 35, 72, 0.65);
    }
    50% {
        opacity: 0.45;
        box-shadow: 0 0 2px rgba(237, 35, 72, 0.25);
    }
}

.creator-profile-socials a.is-live {
    border-color: #ed2348;
    background: rgba(237, 35, 72, 0.12);
    color: #c91639;
    box-shadow:
        0 0 0 1px rgba(237, 35, 72, 0.12),
        0 0 14px rgba(237, 35, 72, 0.25);
}

.creator-profile-socials a.is-live:hover {
    border-color: #c91639;
    background: rgba(237, 35, 72, 0.2);
}

@media (max-width: 622px) {
    .creator-profile-status-line {
        justify-content: center;
        gap: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .creator-live-dot {
        animation: none;
    }
}

/* ===== Logros públicos del creador ===== */

.creator-achievements {
    margin-top: 14px;
}

.creator-achievements-display {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.creator-achievement-medal,
.creator-achievement-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(58, 210, 255, 0.5);
    border-radius: 50%;
    background: rgba(15, 31, 48, 0.95);
    color: #72e5ff;
    overflow: hidden;
}

.creator-achievement-medal {
    padding: 5px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.creator-achievement-medal:hover {
    border-color: #72e5ff;
    background: rgba(36, 75, 99, 0.95);
}

.creator-achievement-medal img,
.creator-achievement-list-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.creator-achievements-all {
    padding: 8px 12px;
    border: 1px solid rgba(58, 210, 255, 0.35);
    border-radius: 8px;
    background: transparent;
    color: #72e5ff;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.creator-achievements-all:hover {
    background: rgba(58, 210, 255, 0.1);
}

.creator-achievement-dialog {
    width: min(600px, calc(100% - 28px));
    max-width: 600px;
    max-height: 85vh;
    padding: 22px;
    border: 1px solid rgba(58, 210, 255, 0.45);
    border-radius: 14px;
    background: #101925;
    color: #edf6ff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    overflow-y: auto;
}

.creator-achievement-dialog::backdrop {
    background: rgba(3, 8, 15, 0.78);
    backdrop-filter: blur(3px);
}

.creator-achievement-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.creator-achievement-dialog-header h2 {
    margin: 0;
    color: #72e5ff;
    font-size: 1.25rem;
    overflow-wrap: anywhere;
}



.creator-achievements-list {
    display: grid;
    gap: 8px;
}

.creator-achievement-list-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 8px 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.creator-achievement-list-item:hover {
    border-color: rgba(58, 210, 255, 0.5);
    background: rgba(58, 210, 255, 0.06);
}

.creator-achievement-list-icon {
    grid-row: span 2;
}

.creator-achievement-list-title {
    font-weight: 600;
    overflow-wrap: anywhere;
}

.creator-achievement-list-date,
.creator-achievement-detail-date {
    color: #aab9ca;
    font-size: 0.85rem;
}

.creator-achievement-list-date:empty {
    display: none;
}

.creator-achievement-detail-image {
    display: block;
    max-width: 100%;
    max-height: 260px;
    margin: 0 auto 16px;
    border-radius: 8px;
    object-fit: contain;
}

.creator-achievement-detail-description {
    white-space: pre-line;
    overflow-wrap: anywhere;
    line-height: 1.6;
}

.creator-achievement-event-link {
    display: inline-block;
    margin-top: 10px;
    color: #72e5ff;
    text-decoration: none;
}

.creator-achievement-event-link:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .creator-achievement-dialog {
        padding: 16px;
    }

    .creator-achievement-medal {
        width: 40px;
        height: 40px;
    }
}


/* ===== Estuche compacto de logros ===== */
.creator-achievements {
    position: relative;
    display: inline-block;
    width: max-content;
    min-width: 142px;
    max-width: 100%;
    align-self: flex-start;
    margin: 22px 0 10px;
    padding: 15px 10px 12px;
    box-sizing: border-box;
    background: #101e2b;
    border: 1px solid #587587;
    border-radius: 5px;
    box-shadow: inset 0 0 0 2px rgba(100, 170, 195, .07);
}

.creator-achievements::before {
    content: "LOGROS";
    position: absolute;
    top: -11px;
    left: 9px;
    padding: 2px 7px;
    color: #bcefff;
    background: #101e2b;
    border: 1px solid #587587;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.2;
}

.creator-achievements::after {
    content: none;
}

.creator-achievements-display {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 9px;
    width: max-content;
    min-width: 100%;
    box-sizing: border-box;
}

.creator-achievements .creator-achievement-medal {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 0;
    padding: 5px;
    box-sizing: border-box;
    background: #091521;
    border: 1px solid #405b6b;
    border-radius: 4px;
    box-shadow: none;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.creator-achievements .creator-achievement-medal img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 0;
    filter: none;
}

.creator-achievements .creator-achievement-medal span {
    font-size: 28px;
    line-height: 1;
}

.creator-achievements .creator-achievement-medal:hover,
.creator-achievements .creator-achievement-medal:focus-visible {
    background: #193247;
    border-color: #a0eaff;
    outline: none;
}

.creator-achievements .creator-achievements-all {
    flex: 0 0 auto;
    margin-left: 1px;
    padding: 5px 7px;
    color: #bcefff;
    background: #0b1926;
    border: 1px solid #405b6b;
    border-radius: 4px;
    font-size: .76rem;
    white-space: nowrap;
    cursor: pointer;
}

.creator-achievements .creator-achievements-all:hover,
.creator-achievements .creator-achievements-all:focus-visible {
    background: #193247;
    border-color: #a0eaff;
    outline: none;
}

@media (max-width: 600px) {
    .creator-achievements {
        min-width: 142px;
        margin-top: 18px;
        padding: 14px 8px 10px;
    }

    .creator-achievements-display {
        gap: 8px;
    }
}

/* ===== Ajustes finales del estuche y modales de logros ===== */

/* Estuche fijo de tres huecos y botón exterior a su derecha */
.creator-achievements-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: max-content;
    max-width: 100%;
    margin-top: 16px;
}

.creator-achievements-wrapper .creator-achievements {
    flex: 0 0 172px;
    width: 172px;
    min-width: 172px;
    max-width: 172px;
    margin: 0;
}

.creator-achievements-display {
    display: grid;
    grid-template-columns: repeat(3, 44px);
    gap: 9px;
    width: 150px;
    min-width: 0;
}

.creator-achievements .creator-achievement-medal,
.creator-achievement-empty {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    box-sizing: border-box;
}

.creator-achievement-empty {
    display: block;
    background: #091521;
    border: 1px dashed #405b6b;
    border-radius: 4px;
}

.creator-achievements .creator-achievement-medal {
    padding: 5px;
}

.creator-achievements .creator-achievement-medal img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Botón visible y situado a la derecha del estuche */
.creator-achievements-wrapper > .creator-achievements-all {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #64e7d5;
    border-radius: 7px;
    background: #173b49;
    color: #d9fff8;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background 160ms ease, border-color 160ms ease;
}

.creator-achievements-wrapper > .creator-achievements-all:hover,
.creator-achievements-wrapper > .creator-achievements-all:focus-visible {
    background: #245568;
    border-color: #a0fff0;
    outline: 2px solid rgba(100, 231, 213, 0.25);
    outline-offset: 2px;
}

/* Distribución de logros en pantallas estrechas */
@media (min-width: 623px) and (max-width: 646px) {
    .creator-achievements-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .creator-achievements-wrapper .creator-achievements {
        align-self: flex-start;
        flex: 0 0 auto;
        height: auto;
        margin: 0;
        padding: 12px 8px 6px;
    }

    .creator-achievements-wrapper > .creator-achievements-all {
        align-self: flex-start;
        width: auto;
        margin: 0 0 0 86px;
        transform: translateX(-50%);
    }
}

@media (max-width: 622px) {
    .creator-achievements-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
        margin-top: 16px;
    }

    .creator-achievements-wrapper .creator-achievements {
        align-self: center;
        flex: 0 0 auto;
        height: auto;
        margin: 0;
        padding: 12px 8px 6px;
    }

    .creator-achievements-wrapper > .creator-achievements-all {
        align-self: center;
        margin: 0;
    }
}

/* Iconos de la lista */
.creator-achievement-list-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* El atributo hidden debe prevalecer sobre display:inline-block */
.creator-achievement-event-link[hidden] {
    display: none !important;
}

/* Cierre: solo la X hexagonal, sin borde ni fondo */
.creator-achievement-close {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #edf6ff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.creator-achievement-close i {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
}

.creator-achievement-close:hover,
.creator-achievement-close:active {
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    color: #64e7d5;
}

.creator-achievement-close:focus {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.creator-achievement-close:focus-visible {
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: 2px solid rgba(100, 231, 213, 0.4);
    outline-offset: 2px;
}


/* Ampliación de la imagen adicional del logro */
.creator-achievement-detail-image:not([hidden]) {
    cursor: zoom-in;
}

.creator-achievement-image-dialog {
    width: fit-content;
    max-width: 92vw;
    max-height: 90vh;
    margin: auto;
    padding: 12px;
    border: 1px solid rgba(58, 210, 255, 0.45);
    border-radius: 12px;
    background: #101925;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
    overflow: visible;
}

.creator-achievement-image-dialog::backdrop {
    background: rgba(3, 8, 15, 0.86);
    backdrop-filter: blur(3px);
    cursor: zoom-out;
}

.creator-achievement-image-dialog img {
    display: block;
    max-width: calc(92vw - 24px);
    max-height: calc(90vh - 24px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}

/* Cierre de la imagen ampliada */
.creator-achievement-image-dialog {
    position: relative;
}

.creator-achievement-image-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #edf6ff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.creator-achievement-image-close i {
    display: block;
    line-height: 1;
}

.creator-achievement-image-close:hover {
    color: #64e7d5;
}

.creator-achievement-image-close:focus-visible {
    outline: 2px solid rgba(100, 231, 213, 0.7);
    outline-offset: 2px;
}



/* Antigüedad como miembro de PokeNexo */
.creator-profile-name-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 8px;
    row-gap: 0;
    margin: 0;
    min-width: 0;
}

.creator-profile-name-row h1 {
    flex: 0 1 100%;
    min-width: 0;
    margin: 0;
    text-align: left;
}

.creator-member-tenure {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
    max-width: 100%;
    position: static;
    margin-top: -5px;
    transform: translateX(-6px);
}

.creator-member-gem {
    display: block;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: contain;
    image-rendering: auto;
    margin-right: -5px;
    border: none;
    outline: none;
    box-shadow: none;
    filter: none;
}

.creator-member-label {
    display: inline;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    -webkit-text-stroke: 0;
    text-shadow:
        -1px 0 #000,
        1px 0 #000,
        0 -1px #000,
        0 1px #000;
}

.creator-member-date {
    color: #173c53;
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
}

.creator-member-new { color: #C6D7E5; }
.creator-member-bronze { color: #bd8339; }
.creator-member-silver { color: #c7d2fc; }
.creator-member-gold { color: #e6cd00; }
.creator-member-platinum { color: #6aeeee; }

/* Cabecera en formato móvil */
@media (max-width: 622px) {
    .creator-profile-header {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .creator-profile-avatar {
        width: min(180px, 65%);
        max-width: 180px;
    }

    .creator-profile-identity {
        width: 100%;
        min-width: 0;
        text-align: center;
    }

    .creator-profile-label {
        text-align: center;
    }

    .creator-profile-name-row {
        justify-content: center;
    }

    .creator-profile-name-row h1 {
        flex-basis: 100%;
        text-align: center;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: manual;
    }

    .creator-member-tenure {
        justify-content: center;
        width: max-content;
        max-width: 100%;
        align-self: center;
    }

    .creator-profile-socials {
        justify-content: center;
        gap: 10px;
    }

    .creator-profile-socials a {
        flex: 0 0 43px;
        box-sizing: border-box;
    }
}

/* Mantener la separación entre redes y logros */
.creator-achievements-wrapper {
    margin-top: 16px;
}

.creator-member-tenure-new {
    margin-top: 0;
    margin-bottom: 10px;
    transform: translateX(0);
}

.creator-member-tenure-new .creator-member-new {
    color: #C6D7E5;
}

/* Participaciones en la ficha pública del creador */

.creator-participations-list {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
}

.creator-participation-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(23, 60, 83, 0.035);
    border: 1px solid rgba(23, 60, 83, 0.16);
    border-radius: 10px;
}

.creator-participation-image {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    object-fit: cover;
    border-radius: 8px;
}

.creator-participation-info {
    flex: 1 1 auto;
    min-width: 0;
}

.creator-participation-info h3 {
    margin: 0 0 7px;
    color: #173c53;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
}

.creator-participation-date {
    display: block;
    color: #526b78;
    font-size: 0.9rem;
}

.creator-participation-link {
    flex: 0 0 auto;
    margin-left: auto;
    color: #087ea4;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.creator-participation-link:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .creator-participation-card {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        align-items: start;
        gap: 10px 12px;
    }

    .creator-participation-image {
        width: 64px;
        height: 64px;
        flex-basis: 64px;
        grid-column: 1;
        grid-row: 1;
    }

    .creator-participation-info {
        grid-column: 2;
        grid-row: 1;
    }

    .creator-participation-link {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        margin-left: 0;
        font-size: 0.85rem;
    }

    .creator-participation-card:not(:has(.creator-participation-image)) {
        grid-template-columns: minmax(0, 1fr);
    }

    .creator-participation-card:not(:has(.creator-participation-image)) .creator-participation-info {
        grid-column: 1;
        grid-row: 1;
    }

    .creator-participation-card:not(:has(.creator-participation-image)) .creator-participation-link {
        grid-column: 1;
        grid-row: 2;
    }
}
