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

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

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

.neon-card {
    background: rgba(10, 11, 20, var(--profile-opacity, 0.9));
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.2), inset 0 0 15px rgba(6, 182, 212, 0.1);
    border-radius: var(--profile-radius, 16px);
    padding: clamp(1.75rem, 5vw, 2.5rem) clamp(1.15rem, 4vw, 2rem);
    text-align: var(--profile-align, center);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    animation: neonEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.neon-banner {
    width: calc(100% + 2 * clamp(1.15rem, 4vw, 2rem));
    height: clamp(120px, 25vw, 160px);
    margin: calc(-1 * clamp(1.75rem, 5vw, 2.5rem)) 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 rgba(6, 182, 212, 0.4);
    box-sizing: border-box;
}

.neon-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 1.25rem;
}

.neon-avatar-wrap.avatar-offset {
    margin-top: -55px;
    z-index: 2;
}

.neon-avatar {
    width: clamp(90px, 18vw, 110px);
    height: clamp(90px, 18vw, 110px);
    border-radius: var(--profile-avatar-radius, 9999px);
    border: 2px solid #06b6d4;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
    object-fit: cover;
    display: block;
    background: #0a0b14;
}

.neon-identity {
    width: 100%;
}

.neon-name {
    font-size: clamp(1.4rem, 4vw, 1.75rem);
    font-weight: 800;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
    overflow-wrap: anywhere;
    word-break: break-word;
    display: inline-flex;
    align-items: center;
    justify-content: var(--profile-justify, center);
    gap: 0.4rem;
    flex-wrap: wrap;
    width: 100%;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    color: #06b6d4;
    text-shadow: 0 0 8px #06b6d4;
    flex-shrink: 0;
}

.neon-username {
    font-size: 0.9rem;
    color: #06b6d4;
    font-family: 'Fira Code', monospace;
    margin-top: 0.25rem;
    letter-spacing: 0.05em;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.neon-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin: 1.25rem 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.neon-audio {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    margin-bottom: 1.25rem;
    max-width: 100%;
    box-sizing: border-box;
}

.neon-audio .audio-toggle-btn {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    border-radius: 50%;
    background: #06b6d4;
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.neon-audio-text {
    flex: 1;
    min-width: 0;
}

.neon-audio-text .title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #06b6d4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.neon-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: var(--profile-justify, center);
    gap: 0.6rem;
    margin: 1.5rem 0;
    width: 100%;
}

.neon-social-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: #c084fc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.neon-social-icon:hover {
    background: rgba(6, 182, 212, 0.2);
    border-color: #06b6d4;
    color: #06b6d4;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.5);
    transform: translateY(-2px);
}

.neon-social-icon svg {
    width: 20px;
    height: 20px;
}

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

.neon-link-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1.25rem;
    background: rgba(15, 17, 28, 0.8);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    min-height: 52px;
    width: 100%;
    box-sizing: border-box;
    animation: neonFadeUp 0.4s calc(0.18s + var(--link-index, 0) * 0.04s) cubic-bezier(0.16, 1, 0.3, 1) both;
}

.neon-link-btn:hover {
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.08);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}

.neon-btn-icon {
    color: #a855f7;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.neon-btn-icon svg {
    width: 20px;
    height: 20px;
}

.neon-btn-content {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.neon-btn-content .title {
    font-weight: 600;
    font-size: 0.92rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.neon-btn-content .desc {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.1rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.neon-btn-arrow {
    color: #06b6d4;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.neon-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    font-size: 0.8rem;
    width: 100%;
    box-sizing: border-box;
}

.branding-watermark {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
    text-decoration: none;
}

.branding-watermark span {
    color: #a855f7;
    text-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

.report-link-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    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) {
    .neon-card {
        padding: 1.5rem 1rem;
    }
    .neon-link-btn {
        padding: 0.85rem 1rem;
        gap: 0.75rem;
    }
}
