.etp-profile {
    --etp-accent: #6B9B45;
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 0 55px;
    color: var(--et-text, #f5f5f0);
}

.etp-hero {
    overflow: hidden;
    background: var(--et-card, #182218);
    border: 1px solid var(--et-line, #344332);
    border-radius: 14px;
}

.etp-cover {
    position: relative;
    height: 190px;
    overflow: hidden;
    background:
        linear-gradient(115deg, transparent 48%, rgba(255,255,255,.025) 49%, transparent 50%),
        linear-gradient(25deg, transparent 48%, rgba(255,255,255,.025) 49%, transparent 50%),
        var(--et-surface, #101810);
    background-size: 34px 34px, 34px 34px, auto;
    border-bottom: 1px solid var(--et-line, #344332);
}

.etp-cover::after {
    position: absolute;
    inset: auto 0 0;
    height: 70px;
    content: "";
    background: linear-gradient(transparent, rgba(0,0,0,.24));
}

.etp-cover-label {
    position: absolute;
    right: 22px;
    bottom: 18px;
    z-index: 1;
    color: var(--et-muted, #b8c2b2);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.etp-identity {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 0 28px 26px;
}

.etp-avatar-frame {
    flex: 0 0 116px;
    width: 116px;
    height: 116px;
    margin-top: -48px;
    padding: 5px;
    position: relative;
    z-index: 2;
    background: var(--et-card, #182218);
    border: 1px solid var(--et-line, #344332);
    border-radius: 14px;
}

.etp-avatar {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
}

.etp-identity-info {
    min-width: 0;
    flex: 1;
    padding-top: 17px;
}

.etp-eyebrow {
    display: block;
    color: var(--et-muted, #b8c2b2);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.etp-identity-info h1 {
    margin: 5px 0 10px;
    color: var(--et-text, #f5f5f0);
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.etp-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.etp-role,
.etp-member {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 27px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 650;
}

.etp-role {
    border: 1px solid rgba(255,255,255,.12);
}

.etp-member {
    color: var(--et-muted, #b8c2b2);
    background: var(--et-surface, #101810);
    border: 1px solid var(--et-line, #344332);
}

.etp-edit-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    color: var(--et-text, #f5f5f0);
    background: var(--et-surface, #101810);
    border: 1px solid var(--et-line, #344332);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.etp-edit-link:hover {
    color: var(--etp-accent);
    border-color: var(--etp-accent);
}

.etp-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 20px;
    margin-top: 20px;
}

.etp-main,
.etp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.etp-card {
    padding: 23px;
    background: var(--et-card, #182218);
    border: 1px solid var(--et-line, #344332);
    border-radius: 12px;
}

.etp-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.etp-card-heading h2 {
    margin: 5px 0 0;
    color: var(--et-text, #f5f5f0);
    font-size: 19px;
    font-weight: 750;
}

.etp-card-heading > i {
    color: var(--etp-accent);
    font-size: 22px;
}

.etp-bio {
    margin: 0;
    color: var(--et-text, #f5f5f0);
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.etp-empty {
    margin: 0;
    color: var(--et-muted, #b8c2b2);
    font-size: 13px;
}

.etp-custom-placeholder {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 17px;
    background: var(--et-surface, #101810);
    border: 1px dashed var(--et-line, #344332);
    border-radius: 9px;
}

.etp-custom-icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--etp-accent);
    background: color-mix(in srgb, var(--etp-accent) 13%, transparent);
    border-radius: 9px;
    font-size: 19px;
}

.etp-custom-placeholder strong {
    font-size: 13px;
}

.etp-custom-placeholder p {
    margin: 5px 0 0;
    color: var(--et-muted, #b8c2b2);
    font-size: 12px;
    line-height: 1.6;
}

.etp-detail-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 12px 0;
    border-top: 1px solid var(--et-line, #344332);
}

.etp-detail-row:first-of-type {
    border-top: 0;
}

.etp-detail-row span {
    color: var(--et-muted, #b8c2b2);
    font-size: 11px;
}

.etp-detail-row strong {
    color: var(--et-text, #f5f5f0);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.etp-server {
    position: relative;
    overflow: hidden;
}

.etp-server-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    background: var(--etp-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--etp-accent) 15%, transparent);
}

.etp-server h2 {
    margin: 13px 0 8px;
    font-size: 18px;
    font-weight: 750;
}

.etp-server p {
    color: var(--et-muted, #b8c2b2);
    font-size: 12px;
    line-height: 1.7;
}

.etp-server-address {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
    padding: 12px;
    color: var(--et-text, #f5f5f0);
    background: var(--et-surface, #101810);
    border: 1px solid var(--et-line, #344332);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 750;
}

.etp-server-address i {
    color: var(--etp-accent);
    font-size: 17px;
}

@media (max-width: 760px) {
    .etp-profile {
        padding: 15px 0 35px;
    }

    .etp-cover {
        height: 145px;
    }

    .etp-identity {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 12px;
        padding: 0 17px 20px;
    }

    .etp-avatar-frame {
        flex-basis: 92px;
        width: 92px;
        height: 92px;
        margin-top: -38px;
    }

    .etp-identity-info {
        padding-top: 10px;
    }

    .etp-edit-link {
        margin-left: 104px;
    }

    .etp-content {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 15px;
    }

    .etp-main,
    .etp-sidebar {
        gap: 15px;
    }

    .etp-card {
        padding: 18px;
    }
}

/* =========================================
   COSMETIQUES ETERNIA - BANNIERES ET CADRES
   ========================================= */

/* Bannieres */
.etp-cover-custom {
    background-color: var(--et-surface, #101810);
    background-image: none;
}

.etp-cover-vip {
    background-color: #20351d;
    background-image:
        radial-gradient(circle at 85% 25%, rgba(107, 155, 69, .18) 0 2px, transparent 3px);
    background-size: 24px 24px;
}

.etp-cover-vip-plus {
    background-color: #292719;
    background-image:
        linear-gradient(90deg, transparent 0 48%, rgba(229, 168, 59, .08) 48% 52%, transparent 52%);
    background-size: 38px 38px;
}

.etp-cover-vip-plus .etp-cover-label {
    color: #E5A83B;
}

/* Cadres d'avatar */
.etp-avatar-frame-custom {
    border-width: 2px;
}

.etp-frame-vip {
    border: 2px solid #6B9B45;
    box-shadow: 0 0 0 3px rgba(107, 155, 69, .16);
}

.etp-frame-vip-plus {
    border: 2px solid #E5A83B;
    box-shadow: 0 0 0 3px rgba(229, 168, 59, .18);
}

/* Liste des cosmétiques équipés */
.etp-cosmetics-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.etp-cosmetic-item {
    display: grid;
    grid-template-columns: 9px minmax(90px, .7fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--et-surface, #101810);
    border: 1px solid var(--et-line, #344332);
    border-radius: 8px;
}

.etp-cosmetic-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--etp-accent, #6B9B45);
}

.etp-cosmetic-item > span:nth-child(2) {
    color: var(--et-muted, #B8C2B2);
    font-size: 12px;
}

.etp-cosmetic-item strong {
    color: var(--et-text, #F5F5F0);
    font-size: 13px;
    text-align: right;
}

@media (max-width: 520px) {
    .etp-cosmetic-item {
        grid-template-columns: 9px minmax(0, .8fr) minmax(0, 1fr);
        gap: 8px;
        padding: 11px;
    }
}

/* Images personnelles du profil */
.etp-cover {
    position: relative;
    overflow: hidden;
}

.etp-cover-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.etp-cover-pattern {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.etp-cover-label {
    position: relative;
    z-index: 2;
}

.etp-avatar-frame {
    position: relative;
    isolation: isolate;
}

.etp-avatar-frame .etp-avatar {
    position: relative;
    z-index: 1;
}

.etp-avatar-frame-image {
    position: absolute;
    z-index: 2;
    inset: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    object-fit: contain;
    pointer-events: none;
}

/* IMAGES PERSONNELLES DU PROFIL */
.etp-cover {
    position: relative;
    overflow: hidden;
}

.etp-cover-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.etp-cover-pattern {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.etp-cover-label {
    z-index: 2;
}

.etp-avatar-frame {
    isolation: isolate;
}

.etp-avatar-frame .etp-avatar {
    position: relative;
    z-index: 1;
}

.etp-avatar-frame-image {
    position: absolute;
    z-index: 2;
    inset: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    object-fit: contain;
    pointer-events: none;
}

/* APERCUS DE PERSONNALISATION */
.etp-customize-real-banner {
    position: relative;
    width: 100%;
    min-height: 150px;
    overflow: hidden;
    border-radius: 12px;
}

.etp-customize-banner-image {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.etp-customize-frame-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 20px;
}

.etp-customize-frame-preview .etp-avatar-frame {
    flex: 0 0 116px;
    margin: 0;
}

.etp-customize-frame-preview .etp-avatar {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 9px;
}

.etp-customize-frame-preview .etp-avatar-frame-image {
    inset: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    object-fit: contain;
}

/* =====================================================
   ETERNIA PROFILES — INTERFACE DE PERSONNALISATION
   ===================================================== */

.etp-customize-page {
    --etp-accent: var(--et-primary, #4F7F3D);
    width: min(100% - 30px, 1120px);
    max-width: 1120px;
    margin: 0 auto;
    padding: 34px 0 60px;
    color: var(--et-text, #F5F5F0);
}

.etp-customize-page,
.etp-customize-page * {
    box-sizing: border-box;
}

.etp-customize-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
    padding: 26px 28px;
    background: var(--et-card, #182218);
    border: 1px solid var(--et-line, #344332);
    border-radius: 13px;
}

.etp-customize-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--et-secondary, #6B9B45);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.etp-customize-header h1 {
    margin: 0;
    color: var(--et-text, #F5F5F0);
    font-size: clamp(23px, 4vw, 31px);
    font-weight: 800;
}

.etp-customize-header p {
    margin: 8px 0 0;
    color: var(--et-muted, #B8C2B2);
    font-size: 13px;
    line-height: 1.6;
}

.etp-customize-header > a {
    flex-shrink: 0;
    padding: 10px 15px;
    border-color: var(--et-line, #344332);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
}

.etp-customize-section {
    margin-top: 30px;
}

.etp-customize-section-heading {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.etp-customize-section-heading > div {
    position: relative;
    padding-left: 48px;
}

.etp-customize-number {
    position: absolute;
    top: 1px;
    left: 0;
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    color: var(--et-secondary, #6B9B45);
    background: rgba(107, 155, 69, .12);
    border: 1px solid rgba(107, 155, 69, .28);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.etp-customize-section-heading h2 {
    margin: 0;
    color: var(--et-text, #F5F5F0);
    font-size: 20px;
    font-weight: 800;
}

.etp-customize-section-heading p {
    margin: 5px 0 0;
    color: var(--et-muted, #B8C2B2);
    font-size: 12px;
}

.etp-customize-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
    background: var(--et-card, #182218);
    border: 1px solid var(--et-line, #344332);
    border-radius: 13px;
}

.etp-customize-preview {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 190px;
    padding: 14px;
    overflow: hidden;
    background: var(--et-surface, #101810);
    border: 1px solid var(--et-line, #344332);
    border-radius: 9px;
}

.etp-customize-preview .etp-cover,
.etp-customize-real-banner {
    width: 100%;
    min-height: 160px;
    height: 190px;
    border: 1px solid var(--et-line, #344332);
    border-radius: 7px;
}

.etp-customize-real-banner {
    padding: 0;
}

.etp-customize-banner-image {
    width: 100%;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
}

.etp-customize-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 160px;
    color: var(--et-muted, #B8C2B2);
    background: var(--et-surface, #101810);
    border: 1px dashed var(--et-line, #344332);
    border-radius: 7px;
    font-size: 13px;
}

.etp-customize-frame-preview {
    min-height: 210px;
}

.etp-customize-frame-preview .etp-avatar-frame {
    flex: 0 0 116px;
    width: 116px;
    height: 116px;
    margin: 0;
}

.etp-customize-content {
    min-width: 0;
    padding: 19px;
    background: var(--et-surface, #101810);
    border: 1px solid var(--et-line, #344332);
    border-radius: 9px;
}

.etp-customize-content h3 {
    margin: 0 0 6px;
    color: var(--et-text, #F5F5F0);
    font-size: 15px;
    font-weight: 750;
}

.etp-customize-content > p {
    margin: 0 0 16px;
    color: var(--et-muted, #B8C2B2);
    font-size: 12px;
    line-height: 1.65;
}

.etp-customize-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 9px;
    padding: 12px;
    background: var(--et-card, #182218);
    border: 1px solid var(--et-line, #344332);
    border-radius: 7px;
}

.etp-customize-option > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.etp-customize-option strong {
    color: var(--et-text, #F5F5F0);
    font-size: 12px;
}

.etp-customize-option small {
    color: var(--et-muted, #B8C2B2);
    font-size: 11px;
    line-height: 1.5;
}

.etp-customize-option form {
    flex-shrink: 0;
    margin: 0;
}

.etp-customize-option .btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.etp-customize-selected {
    flex-shrink: 0;
    padding: 6px 9px;
    color: #A8D58B;
    background: rgba(107, 155, 69, .13);
    border: 1px solid rgba(107, 155, 69, .3);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 750;
}

.etp-customize-muted {
    margin: 14px 0 0 !important;
    padding: 13px;
    background: var(--et-card, #182218);
    border: 1px dashed var(--et-line, #344332);
    border-radius: 7px;
}

.etp-customize-upload form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.etp-customize-file {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 43px;
    padding: 10px 14px;
    overflow: hidden;
    color: var(--et-text, #F5F5F0);
    background: var(--et-card, #182218);
    border: 1px dashed var(--et-secondary, #6B9B45);
    border-radius: 7px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    transition: border-color .15s ease, background .15s ease;
}

.etp-customize-file:hover {
    background: rgba(107, 155, 69, .1);
    border-color: var(--et-accent, #E5A83B);
}

.etp-customize-file input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.etp-customize-upload form > small {
    color: var(--et-muted, #B8C2B2);
    font-size: 10px;
    line-height: 1.6;
}

.etp-customize-upload .btn-primary {
    padding: 9px 15px;
    background: var(--et-primary, #4F7F3D);
    border-color: var(--et-primary, #4F7F3D);
    border-radius: 7px;
    font-size: 11px;
    font-weight: 750;
}

.etp-upload-preview {
    display: block;
    width: 100%;
    max-height: 170px;
    object-fit: contain;
    background: var(--et-card, #182218);
    border: 1px solid var(--et-line, #344332);
    border-radius: 7px;
}

.etp-upload-frame-preview {
    width: 150px;
    height: 150px;
    align-self: center;
}

.etp-customize-locked {
    padding: 15px;
    background: rgba(229, 168, 59, .06);
    border: 1px solid rgba(229, 168, 59, .24);
    border-radius: 7px;
}

.etp-customize-locked strong {
    color: var(--et-accent, #E5A83B);
    font-size: 12px;
}

.etp-customize-locked p {
    margin: 6px 0 0;
    color: var(--et-muted, #B8C2B2);
    font-size: 11px;
    line-height: 1.6;
}

.etp-customize-remove {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 3px;
}

.etp-customize-remove form {
    margin: 0;
}

.etp-customize-remove .btn {
    font-size: 11px;
    border-radius: 6px;
}

.etp-customize-page .alert {
    border-radius: 8px;
    font-size: 12px;
}

@media (max-width: 760px) {
    .etp-customize-page {
        width: min(100% - 22px, 1120px);
        padding-top: 18px;
    }

    .etp-customize-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        padding: 20px;
        margin-bottom: 25px;
    }

    .etp-customize-card {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 12px;
    }

    .etp-customize-preview,
    .etp-customize-remove {
        grid-column: 1;
    }

    .etp-customize-content {
        padding: 15px;
    }

    .etp-customize-section-heading h2 {
        font-size: 18px;
    }
}

@media (max-width: 420px) {
    .etp-customize-option {
        align-items: flex-start;
    }

    .etp-customize-option .btn {
        padding: 6px 9px;
    }

    .etp-customize-preview .etp-cover,
    .etp-customize-real-banner {
        height: 145px;
        min-height: 145px;
    }
}
