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

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

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

.glass-card-main {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(max(16px, var(--profile-blur, 16px)));
    -webkit-backdrop-filter: blur(max(16px, var(--profile-blur, 16px)));
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--profile-radius, 16px);
    padding: clamp(1.75rem, 5vw, 2.5rem) clamp(1.15rem, 4vw, 2rem);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-align: var(--profile-align, center);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    animation: glassCardEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.glass-card-main::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 20%, rgba(99, 102, 241, 0.15), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.glass-card-main > * {
    position: relative;
    z-index: 1;
}

.glass-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(255, 255, 255, 0.15);
    box-sizing: border-box;
}

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

.glass-avatar-box.avatar-offset {
    margin-top: -55px;
    z-index: 2;
}

.glass-avatar {
    width: clamp(90px, 18vw, 115px);
    height: clamp(90px, 18vw, 115px);
    object-fit: cover;
    border-radius: var(--profile-avatar-radius, 9999px);
    border: var(--profile-avatar-border, none);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
    background: #0f111a;
}

.glass-status-tag {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 17, 26, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    padding: 0.25rem 0.8rem;
    font-size: 0.75rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 90%;
    box-sizing: border-box;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--profile-accent);
    box-shadow: 0 0 10px var(--profile-accent);
    flex-shrink: 0;
}

.glass-identity {
    width: 100%;
}

.glass-name {
    font-size: clamp(1.4rem, 4vw, 1.75rem);
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    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: #38bdf8;
    flex-shrink: 0;
}

.glass-handle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.2rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.glass-bio {
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 1rem 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.glass-meta-pill {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: var(--profile-justify, center);
    gap: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 1.25rem;
    max-width: 100%;
}

.glass-audio {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    margin: 1.25rem 0;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

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

.glass-audio-details {
    flex: 1;
    min-width: 0;
}

.glass-audio-details .title {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.glass-audio-details .artist {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.glass-social-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.glass-social-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--profile-accent);
    color: #fff;
    transform: translateY(-2px);
}

.glass-social-btn svg {
    width: 20px;
    height: 20px;
}

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

.glass-link-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: calc(var(--profile-radius, 16px) * 0.8);
    color: var(--profile-text, #fff);
    text-decoration: none;
    transition: all 0.25s ease;
    min-height: 52px;
    width: 100%;
    box-sizing: border-box;
    animation: glassFadeUp 0.4s calc(0.18s + var(--link-index, 0) * 0.04s) cubic-bezier(0.16, 1, 0.3, 1) both;
}

.glass-link-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--profile-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

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

.glass-link-icon svg {
    width: 20px;
    height: 20px;
}

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

.glass-link-text .title {
    font-weight: 600;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.glass-link-text .desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.1rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.glass-link-arrow {
    font-size: 1.2rem;
    color: var(--profile-accent);
    flex-shrink: 0;
}

.glass-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    box-sizing: border-box;
}

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

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

.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) {
    .glass-card-main {
        padding: 1.5rem 1rem;
    }
    .glass-link-btn {
        padding: 0.85rem 1rem;
        gap: 0.75rem;
    }
}
