.template-clean-container {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: clamp(1rem, 4vw, 1.5rem);
    box-sizing: border-box;
}

@keyframes cleanEntrance {
    from { opacity: 0; transform: translateY(18px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cleanFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.clean-box {
    background: rgba(22, 24, 33, 0.92);
    border: 1px solid #2d3142;
    border-radius: var(--profile-radius, 16px);
    padding: clamp(1.5rem, 5vw, 2.25rem) clamp(1.15rem, 4vw, 2rem);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    animation: cleanEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.clean-banner {
    width: calc(100% + 2 * clamp(1.15rem, 4vw, 2rem));
    height: clamp(120px, 25vw, 150px);
    margin: calc(-1 * clamp(1.5rem, 5vw, 2.25rem)) calc(-1 * clamp(1.15rem, 4vw, 2rem)) 1.25rem calc(-1 * clamp(1.15rem, 4vw, 2rem));
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid #2d3142;
    box-sizing: border-box;
}

.clean-profile-top {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-align: left;
    width: 100%;
}

.clean-profile-top.avatar-offset {
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.clean-avatar {
    width: clamp(75px, 16vw, 85px);
    height: clamp(75px, 16vw, 85px);
    border-radius: var(--profile-avatar-radius, 9999px);
    border: var(--profile-avatar-border, none);
    object-fit: cover;
    flex-shrink: 0;
    background: #111420;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    display: block;
}

.clean-info {
    flex: 1;
    min-width: 0;
}

.clean-name {
    font-size: clamp(1.3rem, 3.5vw, 1.55rem);
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    color: #38bdf8;
    flex-shrink: 0;
}

.clean-user {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 0.2rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.clean-location {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    overflow-wrap: anywhere;
}

.clean-bio {
    font-size: 0.92rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 1.25rem 0;
    text-align: left;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.clean-audio {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: #181b26;
    border: 1px solid #2c3042;
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    margin-bottom: 1.25rem;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.clean-audio .audio-toggle-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    background: var(--profile-accent);
    color: #fff;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.clean-audio .audio-title {
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.clean-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    width: 100%;
}

.clean-social-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border-radius: 8px;
    background: #181b26;
    border: 1px solid #282c3c;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.clean-social-btn:hover {
    background: var(--profile-accent);
    border-color: var(--profile-accent);
    color: #fff;
    transform: translateY(-2px);
}

.clean-social-btn svg {
    width: 18px;
    height: 18px;
}

.clean-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.clean-link-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1.15rem;
    background: #171924;
    border: 1px solid #262939;
    border-radius: 8px;
    color: var(--profile-text, #fff);
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 52px;
    width: 100%;
    box-sizing: border-box;
    animation: cleanFadeUp 0.4s calc(0.18s + var(--link-index, 0) * 0.04s) cubic-bezier(0.16, 1, 0.3, 1) both;
}

.clean-link-item:hover {
    background: #1f2231;
    border-color: #383d54;
    transform: translateY(-2px);
}

.clean-link-item .link-icon {
    color: var(--profile-accent);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.clean-link-item .link-icon svg {
    width: 18px;
    height: 18px;
}

.clean-link-item .link-label {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.clean-link-item .title {
    font-size: 0.92rem;
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.clean-link-item .sub {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.1rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.clean-link-item .link-arrow {
    color: #475569;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.clean-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #232738;
    font-size: 0.8rem;
    width: 100%;
    box-sizing: border-box;
}

.branding-watermark {
    color: #64748b;
    font-weight: 700;
    text-decoration: none;
}

.branding-watermark span {
    color: var(--profile-accent);
}

.report-link-btn {
    background: transparent;
    border: none;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    min-width: 36px;
    min-height: 36px;
}

.report-link-btn:hover {
    color: #ef4444;
}

@media (max-width: 480px) {
    .clean-box {
        padding: 1.5rem 1rem;
    }
    .clean-profile-top {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    .clean-name {
        justify-content: center;
    }
    .clean-location {
        justify-content: center;
    }
    .clean-bio {
        text-align: center;
    }
    .clean-socials {
        justify-content: center;
    }
    .clean-link-item {
        padding: 0.85rem 1rem;
        gap: 0.75rem;
    }
}
