/* ============================================
   SpicyLinks — Public Profile Page
   Premium Visual Design v3 — Full Redesign
   ============================================ */

/* ── Top-level radial light source for depth ── */
body.profile-body {
    background-color: var(--profile-bg, var(--bg));
}

body.profile-body::before {
    content: '';
    position: fixed;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 70%;
    background: radial-gradient(
        ellipse at 50% 20%,
        color-mix(in srgb, var(--profile-accent, var(--primary)) 8%, transparent) 0%,
        color-mix(in srgb, var(--profile-accent, var(--primary)) 3%, transparent) 35%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
}

.profile-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 520px;
    margin: 0 auto;
    position: relative;
}

/* ── Desktop Side Decoration ── */
.profile-bg-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Ambient light orbs — richer atmosphere with 3 orbs */
.profile-bg-decor::before,
.profile-bg-decor::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 700px;
    border-radius: 50%;
    filter: blur(160px);
    opacity: 0.1;
}

.profile-bg-decor::before {
    top: 5%;
    left: -140px;
    background: var(--profile-accent, var(--primary));
    animation: profileOrbDrift 25s ease-in-out infinite;
}

.profile-bg-decor::after {
    bottom: 5%;
    right: -140px;
    background: var(--profile-secondary, var(--secondary));
    animation: profileOrbDrift 25s ease-in-out infinite reverse;
}

@keyframes profileOrbDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -50px) scale(1.05); }
    66% { transform: translate(-30px, 40px) scale(0.95); }
}

/* Subtle vertical lines on the sides */
.profile-bg-decor .side-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        color-mix(in srgb, var(--profile-text) 4%, transparent) 20%,
        color-mix(in srgb, var(--profile-text) 7%, transparent) 50%,
        color-mix(in srgb, var(--profile-text) 4%, transparent) 80%,
        transparent 100%
    );
}

.profile-bg-decor .side-line--left { left: calc(50% - 280px); }
.profile-bg-decor .side-line--right { right: calc(50% - 280px); }

/* Floating dots along the sides */
.profile-bg-decor .side-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--profile-accent, var(--primary));
    opacity: 0;
    animation: sideDotFloat 14s ease-in-out infinite;
}

.profile-bg-decor .side-dot:nth-child(3) { left: calc(50% - 280px - 2px); top: 25%; animation-delay: 0s; }
.profile-bg-decor .side-dot:nth-child(4) { right: calc(50% - 280px - 2px); top: 40%; animation-delay: 3.5s; }
.profile-bg-decor .side-dot:nth-child(5) { left: calc(50% - 280px - 2px); top: 60%; animation-delay: 7s; }
.profile-bg-decor .side-dot:nth-child(6) { right: calc(50% - 280px - 2px); top: 75%; animation-delay: 10.5s; }

@keyframes sideDotFloat {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

@media (max-width: 600px) {
    .profile-bg-decor { display: none; }
}

/* ── Report Button (top right) ── */
.profile-report-btn {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-report-btn:hover {
    background: rgba(255, 61, 113, 0.2);
    border-color: rgba(255, 61, 113, 0.35);
    color: #FF3D71;
    transform: scale(1.1);
}

.profile-report-btn:active {
    transform: scale(0.92);
}

/* ── Cover ── */
.profile-cover {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
}

.profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Multi-stop fade — smoother, deeper */
.profile-cover::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 160px;
    background: linear-gradient(
        to top,
        var(--profile-bg, var(--bg)) 0%,
        color-mix(in srgb, var(--profile-bg, var(--bg)) 95%, transparent) 20%,
        color-mix(in srgb, var(--profile-bg, var(--bg)) 65%, transparent) 50%,
        color-mix(in srgb, var(--profile-bg, var(--bg)) 25%, transparent) 75%,
        transparent 100%
    );
    pointer-events: none;
}

.profile-cover-gradient {
    width: 100%;
    height: 100%;
}

/* ── Content ── */
.profile-content {
    width: 100%;
    max-width: 480px;
    padding: 0 var(--space-xl) var(--space-2xl);
    margin: -60px auto 0;
    position: relative;
    z-index: 1;
}

/* ── Avatar ── */
.profile-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-lg);
    position: relative;
}

/* Outer soft bloom */
.profile-avatar-glow {
    position: absolute;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        var(--profile-accent),
        var(--profile-secondary),
        var(--profile-accent)
    );
    filter: blur(40px);
    opacity: calc(var(--profile-glow-opacity, 0.25) * 0.7);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: avatarPulse 4s ease-in-out infinite;
}

/* Inner sharp ring glow */
.profile-avatar-glow::after {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: conic-gradient(
        from 120deg,
        var(--profile-accent),
        var(--profile-secondary),
        var(--profile-accent)
    );
    filter: blur(14px);
    opacity: 0.85;
}

@keyframes avatarPulse {
    0%, 100% { opacity: calc(var(--profile-glow-opacity, 0.25) * 0.55); transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    50% { opacity: calc(var(--profile-glow-opacity, 0.25) * 0.8); transform: translate(-50%, -50%) scale(1.05) rotate(8deg); }
}

/* Animated rotating gradient border on avatar */
.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: var(--profile-avatar-border-width, 3px) solid transparent;
    background-clip: padding-box;
    position: relative;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--profile-accent) 65%, var(--profile-secondary)),
        0 0 0 6px color-mix(in srgb, var(--profile-bg) 85%, var(--profile-accent)),
        0 0 30px color-mix(in srgb, var(--profile-accent) 30%, transparent),
        0 0 60px color-mix(in srgb, var(--profile-accent) 12%, transparent),
        0 12px 40px rgba(0, 0, 0, 0.3);
}

.profile-avatar:hover {
    transform: scale(1.06);
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--profile-accent) 80%, var(--profile-secondary)),
        0 0 0 6px color-mix(in srgb, var(--profile-bg) 75%, var(--profile-accent)),
        0 0 40px color-mix(in srgb, var(--profile-accent) 40%, transparent),
        0 0 80px color-mix(in srgb, var(--profile-accent) 18%, transparent),
        0 16px 50px rgba(0, 0, 0, 0.35);
}

.profile-avatar-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--profile-accent), var(--profile-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: var(--weight-bold);
    color: #fff;
    position: relative;
    z-index: 1;
    border: 3px solid rgba(255,255,255,0.12);
    box-shadow:
        0 0 0 4px color-mix(in srgb, var(--profile-bg) 80%, transparent),
        0 0 30px color-mix(in srgb, var(--profile-accent) 30%, transparent),
        0 12px 40px rgba(0, 0, 0, 0.3);
}

/* ── Info Section — entrance animation ── */
.profile-info {
    text-align: center;
    margin-bottom: var(--space-md);
    animation: fadeSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

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

.profile-display-name {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: var(--profile-font-weight-name, 800);
    letter-spacing: var(--profile-letter-spacing, -0.03em);
    text-transform: var(--profile-text-transform, none);
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    text-shadow: 0 0 50px color-mix(in srgb, var(--profile-accent) 15%, transparent);
}

.profile-badge {
    font-size: var(--text-2xs);
    font-weight: var(--weight-semibold);
    padding: 2px 10px;
    background: var(--gradient-hot);
    color: #fff;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.profile-verified {
    color: var(--info);
    font-size: var(--text-lg);
}

/* Verified Badge with theme-aware glow */
.verified-badge {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    filter: drop-shadow(0 0 8px color-mix(in srgb, var(--profile-accent, #4DA6FF) 50%, rgba(77, 166, 255, 0.5)));
    transition: filter 0.3s ease;
}

.profile-display-name:hover .verified-badge {
    filter: drop-shadow(0 0 14px color-mix(in srgb, var(--profile-accent, #4DA6FF) 65%, rgba(77, 166, 255, 0.6)));
}

.profile-username {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
    letter-spacing: 0.03em;
    opacity: 0.6;
}

.profile-bio {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 340px;
    margin: 0 auto;
    opacity: 0.8;
}

/* ── Social Icons — entrance animation ── */
.profile-socials {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
    animation: fadeSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.profile-social-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--profile-icon-bg);
    border: 1px solid var(--profile-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 8px rgba(0, 0, 0, 0.12);
    position: relative;
}

.profile-social-icon:hover {
    background: color-mix(in srgb, var(--profile-accent) 18%, var(--profile-bg));
    border-color: color-mix(in srgb, var(--profile-accent) 40%, transparent);
    transform: translateY(-4px) scale(1.12);
    box-shadow:
        0 8px 24px color-mix(in srgb, var(--profile-accent) 25%, transparent),
        0 0 0 1px color-mix(in srgb, var(--profile-accent) 12%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.profile-social-icon:active {
    transform: translateY(0) scale(0.92);
    transition-duration: 0.1s;
}

/* Social SVG Icons */
.profile-social-icon svg {
    width: 20px;
    height: 20px;
    color: var(--profile-text, var(--text));
    transition: all 0.3s ease;
}

.profile-social-icon:hover svg {
    color: var(--profile-accent, var(--primary));
}

/* ── Announcement Bar ── */
.profile-announcement {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: color-mix(in srgb, var(--profile-accent) 8%, var(--profile-bg));
    border: 1px solid color-mix(in srgb, var(--profile-accent) 15%, transparent);
    border-left: 3px solid var(--profile-accent);
    border-radius: var(--profile-radius, var(--radius-xl));
    font-size: var(--text-sm);
    color: var(--profile-text, var(--text));
    margin-bottom: var(--space-xl);
    text-align: center;
    justify-content: center;
    animation: fadeSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.profile-announcement-icon {
    flex-shrink: 0;
    animation: announcePulse 2s ease-in-out infinite;
}

@keyframes announcePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15) rotate(-5deg); }
}

/* ── Contact Button ── */
.profile-contact {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-xl);
    animation: fadeSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.profile-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 13px 30px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--profile-accent) 14%, var(--profile-icon-bg)),
        color-mix(in srgb, var(--profile-secondary) 8%, var(--profile-icon-bg))
    );
    border: 1px solid color-mix(in srgb, var(--profile-accent) 20%, transparent);
    border-radius: var(--radius-full);
    color: var(--profile-text, var(--text));
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 4px 16px rgba(0, 0, 0, 0.15);
}

.profile-contact-btn:hover {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--profile-accent) 22%, var(--profile-bg)),
        color-mix(in srgb, var(--profile-secondary) 14%, var(--profile-bg))
    );
    border-color: color-mix(in srgb, var(--profile-accent) 40%, transparent);
    transform: translateY(-3px) scale(1.03);
    box-shadow:
        0 8px 28px color-mix(in srgb, var(--profile-accent) 20%, transparent),
        0 0 0 1px color-mix(in srgb, var(--profile-accent) 8%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.profile-contact-btn:active {
    transform: translateY(0) scale(0.96);
    transition-duration: 0.1s;
}

.profile-contact-btn svg {
    transition: transform 0.3s ease;
}

.profile-contact-btn:hover svg {
    transform: rotate(-10deg) scale(1.1);
}

/* ── Link Cards ── */
.profile-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: var(--space-2xl);
}

.profile-link-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
    max-width: 100%;
    padding: 14px 20px;
    background: var(--profile-card);
    border: var(--profile-card-border-width, 1px) solid var(--profile-border);
    border-radius: var(--profile-radius, var(--radius-xl));
    text-decoration: none;
    color: inherit;
    transition: all var(--profile-transition-speed, 0.3s) cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 2px 10px rgba(0, 0, 0, 0.12),
        0 0 0 0 color-mix(in srgb, var(--profile-accent) 0%, transparent);
}

/* Shine sweep on hover */
.profile-link-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 25%,
        rgba(255, 255, 255, 0.03) 40%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 60%,
        transparent 75%
    );
    transition: left 0.55s ease;
    pointer-events: none;
}

.profile-link-card:hover::after {
    left: 130%;
}

.profile-link-card:hover {
    background: var(--profile-card-hover);
    border-color: color-mix(in srgb, var(--profile-accent) 28%, transparent);
    transform: translateY(var(--profile-hover-lift, -4px)) scale(var(--profile-hover-scale, 1.01));
    box-shadow:
        0 12px 36px color-mix(in srgb, var(--profile-accent) 12%, transparent),
        0 4px 10px rgba(0, 0, 0, 0.15),
        0 0 0 1px color-mix(in srgb, var(--profile-accent) 6%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.profile-link-card:active {
    transform: translateY(0) scale(0.97);
    transition-duration: 0.1s;
}

/* Highlighted cards — premium glow treatment */
.profile-link-card.highlighted {
    border-color: color-mix(in srgb, var(--profile-accent) 40%, transparent);
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--profile-accent) 10%, var(--profile-card)),
        color-mix(in srgb, var(--profile-secondary) 5%, var(--profile-card))
    );
    box-shadow:
        0 0 24px color-mix(in srgb, var(--profile-accent) 12%, transparent),
        0 4px 14px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.profile-link-card.highlighted::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--profile-accent), var(--profile-secondary), var(--profile-accent));
    background-size: 200% 100%;
    animation: highlightShimmer 3s linear infinite;
}

@keyframes highlightShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.profile-link-card.highlighted:hover {
    border-color: color-mix(in srgb, var(--profile-accent) 55%, transparent);
    box-shadow:
        0 12px 40px color-mix(in srgb, var(--profile-accent) 20%, transparent),
        0 0 0 1px color-mix(in srgb, var(--profile-accent) 12%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Link thumbnail */
.profile-link-thumb {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Link icon — subtle accent tint */
.profile-link-icon {
    font-size: 1.05rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--profile-accent) 8%, var(--profile-icon-bg));
    border: 1px solid color-mix(in srgb, var(--profile-accent) 8%, transparent);
    border-radius: 10px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.profile-link-icon--default svg {
    opacity: 0.5;
}

.profile-link-card:hover .profile-link-icon {
    background: color-mix(in srgb, var(--profile-accent) 15%, var(--profile-icon-bg));
    border-color: color-mix(in srgb, var(--profile-accent) 20%, transparent);
}

.profile-link-card:hover .profile-link-icon--default svg {
    opacity: 0.8;
}

.profile-link-title {
    flex: 1;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    text-align: center;
}

.profile-link-arrow {
    color: var(--text-faint);
    flex-shrink: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0.4;
}

.profile-link-arrow svg {
    width: 15px;
    height: 15px;
}

.profile-link-card:hover .profile-link-arrow {
    color: var(--profile-accent);
    transform: translateX(4px);
    opacity: 1;
}

/* Staggered entrance now handled by .blk class in blocks.css */

/* ── Footer ── */
.profile-footer {
    text-align: center;
    padding: var(--space-2xl) 0 var(--space-xl);
    position: relative;
}

.profile-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        color-mix(in srgb, var(--profile-accent) 10%, var(--profile-border)),
        transparent
    );
}

.profile-footer-actions {
    margin-bottom: var(--space-md);
}

.profile-footer-actions a {
    font-size: var(--text-xs);
    color: var(--text-faint);
    text-decoration: none;
}

.profile-footer-actions a:hover {
    color: var(--text-muted);
}

.profile-powered {
    font-size: var(--text-xs);
    color: var(--text-faint);
}

.profile-powered a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.25s ease;
    font-weight: var(--weight-medium);
}

.profile-powered a:hover {
    color: var(--profile-accent, var(--primary));
    text-shadow: 0 0 16px color-mix(in srgb, var(--profile-accent) 30%, transparent);
}

/* ============================================
   Button Style Variants
   ============================================ */

/* Pill */
.btn-style-pill .profile-link-card {
    border-radius: 50px;
    padding-left: 28px;
    padding-right: 28px;
}
.btn-style-pill .profile-link-icon { border-radius: 50%; }
.btn-style-pill .profile-social-icon { border-radius: 50%; }
.btn-style-pill .profile-announcement { border-radius: 50px; }
.btn-style-pill .profile-contact-btn { border-radius: 50px; }

/* Square */
.btn-style-square .profile-link-card { border-radius: 6px; }
.btn-style-square .profile-link-icon { border-radius: 4px; }
.btn-style-square .profile-social-icon { border-radius: 6px; }
.btn-style-square .profile-announcement { border-radius: 6px; }
.btn-style-square .profile-contact-btn { border-radius: 6px; }

/* Outline */
.btn-style-outline .profile-link-card {
    background: transparent;
    border: 1.5px solid color-mix(in srgb, var(--profile-border) 80%, var(--profile-accent));
    box-shadow: none;
}
.btn-style-outline .profile-link-card:hover {
    background: color-mix(in srgb, var(--profile-accent) 6%, var(--profile-card));
    border-color: color-mix(in srgb, var(--profile-accent) 50%, transparent);
    box-shadow: 0 0 28px color-mix(in srgb, var(--profile-accent) 14%, transparent);
}
.btn-style-outline .profile-link-card.highlighted {
    border-color: color-mix(in srgb, var(--profile-accent) 50%, transparent);
    background: transparent;
}
.btn-style-outline .profile-link-card.highlighted:hover {
    background: color-mix(in srgb, var(--profile-accent) 8%, var(--profile-card));
}

/* Glass */
.btn-style-glass .profile-link-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 4px 18px rgba(0, 0, 0, 0.1);
}
.btn-style-glass .profile-link-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow:
        0 14px 44px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.btn-style-glass .profile-social-icon {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Neon */
.btn-style-neon .profile-link-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid color-mix(in srgb, var(--profile-accent) 30%, transparent);
    box-shadow: 0 0 12px color-mix(in srgb, var(--profile-accent) 8%, transparent);
}
.btn-style-neon .profile-link-card:hover {
    border-color: color-mix(in srgb, var(--profile-accent) 65%, transparent);
    box-shadow:
        0 0 18px color-mix(in srgb, var(--profile-accent) 22%, transparent),
        0 0 45px color-mix(in srgb, var(--profile-accent) 10%, transparent),
        inset 0 0 28px color-mix(in srgb, var(--profile-accent) 5%, transparent);
}
.btn-style-neon .profile-social-icon {
    border-color: color-mix(in srgb, var(--profile-accent) 22%, transparent);
}
.btn-style-neon .profile-social-icon:hover {
    border-color: color-mix(in srgb, var(--profile-accent) 55%, transparent);
    box-shadow: 0 0 22px color-mix(in srgb, var(--profile-accent) 30%, transparent);
}

/* Gradient */
.btn-style-gradient .profile-link-card {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--profile-accent) 14%, var(--profile-card)),
        color-mix(in srgb, var(--profile-secondary) 10%, var(--profile-card))
    );
    border-color: color-mix(in srgb, var(--profile-accent) 14%, transparent);
}
.btn-style-gradient .profile-link-card:hover {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--profile-accent) 22%, var(--profile-card)),
        color-mix(in srgb, var(--profile-secondary) 16%, var(--profile-card))
    );
    border-color: color-mix(in srgb, var(--profile-accent) 28%, transparent);
    box-shadow: 0 12px 40px color-mix(in srgb, var(--profile-accent) 14%, transparent);
}
.btn-style-gradient .profile-link-card.highlighted {
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--profile-accent) 22%, var(--profile-card)),
        color-mix(in srgb, var(--profile-secondary) 18%, var(--profile-card))
    );
}

/* ============================================
   Age Gate
   ============================================ */
.age-gate {
    position: fixed;
    inset: 0;
    background: rgba(4, 4, 8, 0.92);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: ageGateFadeIn 0.4s ease-out;
}

@keyframes ageGateFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.age-gate-card {
    max-width: 400px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(165deg, rgba(20, 20, 30, 0.95) 0%, rgba(10, 10, 16, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 24px 80px rgba(0, 0, 0, 0.6),
        0 0 120px rgba(255, 43, 85, 0.08);
    animation: ageGateCardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

/* Card shimmer */
.age-gate-shimmer {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,255,255,0.03) 45%,
        rgba(255,255,255,0.05) 50%,
        rgba(255,255,255,0.03) 55%,
        transparent 60%
    );
    background-size: 200% 100%;
    animation: ageGateShimmer 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* Inner glow border */
.age-gate-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        160deg,
        rgba(255, 43, 85, 0.2) 0%,
        transparent 30%,
        transparent 70%,
        rgba(157, 78, 221, 0.12) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

@keyframes ageGateCardIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ageGateShimmer {
    0% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
    100% { background-position: -200% 0; }
}

.age-gate-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    opacity: 0.5;
}

.age-gate-orb--1 {
    width: 200px;
    height: 200px;
    top: -60px;
    right: -40px;
    background: rgba(255, 43, 85, 0.15);
    animation: ageOrbFloat1 7s ease-in-out infinite;
}

.age-gate-orb--2 {
    width: 160px;
    height: 160px;
    bottom: -40px;
    left: -30px;
    background: rgba(157, 78, 221, 0.12);
    animation: ageOrbFloat2 8s ease-in-out infinite;
}

@keyframes ageOrbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-12px, 8px) scale(1.06); }
    66% { transform: translate(8px, -6px) scale(0.95); }
}
@keyframes ageOrbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10px, -8px) scale(1.05); }
    66% { transform: translate(-6px, 5px) scale(0.96); }
}

.age-gate-content {
    position: relative;
    z-index: 2;
    padding: 36px 28px 28px;
    text-align: center;
}

.age-gate-shield {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 43, 85, 0.14), rgba(157, 78, 221, 0.1));
    border: 1px solid rgba(255, 43, 85, 0.15);
    color: #ff4d7a;
    margin-bottom: 22px;
    animation: ageShieldPulse 3s ease-in-out infinite;
}

@keyframes ageShieldPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 43, 85, 0); }
    50% { box-shadow: 0 0 20px rgba(255, 43, 85, 0.15), 0 0 40px rgba(255, 43, 85, 0.05); }
}

.age-gate-shield-badge {
    position: absolute;
    bottom: -6px;
    right: -8px;
    background: linear-gradient(135deg, #FF2B55, #FF5C3A);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 8px;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 10px rgba(255, 43, 85, 0.4);
}

.age-gate-card h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: var(--weight-bold);
    margin-bottom: 8px;
    color: #fff;
    letter-spacing: -0.02em;
}

.age-gate-card p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    margin-bottom: 26px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.age-gate-buttons {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
}

.age-gate-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px 11px 16px;
    border-radius: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    border: none;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.age-gate-btn-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.age-gate-btn-text strong {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}

.age-gate-btn-text small {
    font-size: 0.66rem;
    opacity: 0.55;
    font-weight: 400;
}

.age-gate-btn svg {
    flex-shrink: 0;
}

.age-gate-btn--accept {
    background: linear-gradient(135deg, #FF2B55 0%, #FF5C3A 100%);
    color: #fff;
    box-shadow: 0 4px 24px rgba(255, 43, 85, 0.3), 0 0 0 1px rgba(255, 43, 85, 0.1);
}

.age-gate-btn--accept::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.age-gate-btn--accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 43, 85, 0.4), 0 0 0 1px rgba(255, 43, 85, 0.2);
}

.age-gate-btn--accept:active {
    transform: translateY(0);
}

.age-gate-btn--leave {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.age-gate-btn--leave:hover {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.12);
}

.age-gate-legal {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    text-align: left;
}

.age-gate-legal svg {
    flex-shrink: 0;
    margin-top: 1px;
    opacity: 0.4;
}

/* ============================================
   In-App Browser Detection — Banner & Modal
   ============================================ */

/* ── Animations ── */
@keyframes inappSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes inappStepIn {
    from { opacity: 0; transform: translateX(-16px) scale(0.96); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes inappOrbDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-15px, 10px) scale(1.05); }
    66% { transform: translate(10px, -8px) scale(0.95); }
}
@keyframes inappOrbDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(12px, -10px) scale(1.08); }
    66% { transform: translate(-8px, 6px) scale(0.94); }
}
@keyframes inappShimmer {
    0% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
    100% { background-position: -200% 0; }
}
@keyframes inappNumGlow {
    0%, 100% { opacity: 0.35; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}
@keyframes inappFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes inappFloatDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}
@keyframes inappTargetPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}
@keyframes inappSonar {
    0% { transform: scale(0.5); opacity: 0.5; }
    100% { transform: scale(1.8); opacity: 0; }
}
@keyframes inappDashFlow {
    to { stroke-dashoffset: -22; }
}
@keyframes inappArrowFadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes inappCheckPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ── Banner ── */
.inapp-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(10, 10, 13, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.inapp-banner.visible {
    transform: translateY(0);
}
.inapp-banner-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.inapp-banner-icon svg {
    width: 18px;
    height: 18px;
}
.inapp-banner-text {
    flex: 1;
    min-width: 0;
}
.inapp-banner-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f5f5f7;
    margin-bottom: 1px;
}
.inapp-banner-hint {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.inapp-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.inapp-btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}
.inapp-btn-copy:active {
    transform: scale(0.95);
}
.inapp-btn-copy svg {
    width: 14px;
    height: 14px;
}
.inapp-btn-copied {
    filter: brightness(1.2);
}
.inapp-btn-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.inapp-btn-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ── Modal ── */
.inapp-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(4, 4, 8, 0.90);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.inapp-modal.visible {
    opacity: 1;
}
.inapp-modal-card {
    position: relative;
    width: 100%;
    max-width: 380px;
    background: linear-gradient(145deg, rgba(22, 22, 30, 0.96), rgba(12, 12, 18, 0.98));
    border: 1px solid; /* color set via inline style per-app */
    border-radius: 24px;
    padding: 36px 28px 28px;
    text-align: center;
    overflow: hidden;
    transform: scale(0.9) translateY(24px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.inapp-modal.visible .inapp-modal-card {
    transform: scale(1) translateY(0);
}

/* ── Decorative Orbs (brand-colored, animated) ── */
.inapp-modal-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
    pointer-events: none;
}
.inapp-modal-orb--1 {
    width: 200px;
    height: 200px;
    top: -80px;
    right: -60px;
    animation: inappOrbDrift1 6s ease-in-out infinite;
}
.inapp-modal-orb--2 {
    width: 150px;
    height: 150px;
    bottom: -50px;
    left: -40px;
    animation: inappOrbDrift2 7s ease-in-out infinite;
}

/* ── Card shimmer sweep ── */
.inapp-modal-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,255,255,0.03) 45%,
        rgba(255,255,255,0.06) 50%,
        rgba(255,255,255,0.03) 55%,
        transparent 60%
    );
    background-size: 200% 100%;
    animation: inappShimmer 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

/* ── Card inner glow border ── */
.inapp-modal-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        160deg,
        rgba(255,255,255,0.12) 0%,
        transparent 30%,
        transparent 70%,
        rgba(255,255,255,0.06) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

/* ── App Badge ── */
.inapp-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px 7px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.06);
    animation: inappSlideIn 0.5s ease 0.2s both;
}
.inapp-modal-badge-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.inapp-modal-badge-icon svg {
    width: 18px;
    height: 18px;
}
.inapp-modal h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f5f5f7;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}
.inapp-modal-sub {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 24px;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

/* ── Steps ── */
.inapp-steps {
    text-align: left;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 2;
}
.inapp-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 16px;
    position: relative;
    opacity: 0;
    animation: inappStepIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.inapp-step:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Connector line between steps */
.inapp-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 28px;
    bottom: -6px;
    width: 2px;
    height: 8px;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.inapp-step-num {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0;
    position: relative;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Glow ring behind active step number */
.inapp-step:first-child .inapp-step-num::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 12px;
    border: 1.5px solid;
    border-color: inherit;
    opacity: 0.35;
    animation: inappNumGlow 2s ease-in-out infinite;
}

.inapp-step--done .inapp-step-num {
    opacity: 0.7;
}
.inapp-step--done .inapp-step-num svg {
    animation: inappCheckPop 0.4s ease forwards;
    animation-delay: inherit;
}
.inapp-step-content {
    flex: 1;
    min-width: 0;
    padding-top: 4px;
}
.inapp-step-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}
.inapp-step-text strong {
    font-weight: 700;
}
.inapp-step-desc {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.76rem;
    margin-top: 2px;
}
.inapp-step--done {
    opacity: 0.6;
}
.inapp-step--done .inapp-step-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.82rem;
}

/* ── Screen-Edge Arrow Indicator ── */
/* Arrow indicator (arrow line + pill label — floats) */
.inapp-screen-arrow {
    position: fixed;
    z-index: 10002;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    animation: inappArrowFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

/* Tap Target — fixed in corner, half off-screen, pulses in place */
.inapp-arrow-ring {
    position: fixed;
    z-index: 10003;
    pointer-events: none;
    opacity: 0;
    animation: inappArrowFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}
.inapp-arrow-ring-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--ring-color) 0%, color-mix(in srgb, var(--ring-color) 55%, transparent) 50%, transparent 72%);
    animation: inappTargetPulse 2s ease-in-out infinite;
}
.inapp-arrow-ring-sonar {
    position: absolute;
    width: 48px;
    height: 48px;
    top: 0;
    left: 0;
    border-radius: 50%;
    border: 1.5px solid var(--ring-color);
    opacity: 0;
    animation: inappSonar 2s ease-out infinite;
}
.inapp-arrow-ring-sonar:nth-child(3) {
    animation-delay: 0.7s;
}

/* Ring positions — locked half off-screen */
.inapp-arrow-ring--top-right {
    top: -30px;
    right: 4px;
}
.inapp-arrow-ring--bottom-right {
    bottom: -30px;
    right: 4px;
}
.inapp-arrow-ring--bottom-center {
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
}

/* Curved arrow line */
.inapp-arrow-svg {
    width: 60px;
    height: 75px;
}
.inapp-arrow-svg--vertical {
    width: 34px;
}
.inapp-arrow-svg path[stroke-dasharray] {
    animation: inappDashFlow 1.2s linear infinite;
}

/* Pill label */
.inapp-arrow-pill {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* ── Arrow Positions ── */
/* Top-right: Instagram, TikTok, Snapchat etc. */
.inapp-screen-arrow--top-right {
    top: 14px;
    right: 16px;
    animation: inappArrowFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards,
               inappFloat 2.5s ease-in-out 1.3s infinite;
}
/* Bottom-right: Facebook */
.inapp-screen-arrow--bottom-right {
    bottom: 14px;
    right: 16px;
    animation: inappArrowFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards,
               inappFloatDown 2.5s ease-in-out 1.3s infinite;
}
/* Bottom-center: X/Twitter, LINE */
.inapp-screen-arrow--bottom-center {
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    animation: inappArrowFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards,
               inappFloatDown 2.5s ease-in-out 1.3s infinite;
}

/* ── Modal Buttons ── */
.inapp-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 2;
}
.inapp-btn-copy--full {
    width: 100%;
    justify-content: center;
    padding: 14px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.inapp-btn-copy--full::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}
.inapp-btn-copy--full:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.inapp-btn-copy--full:active {
    transform: scale(0.97);
}

/* ── Dismiss ── */
.inapp-dismiss-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    cursor: pointer;
    position: relative;
    z-index: 2;
}
.inapp-dismiss-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #9d4edd;
    cursor: pointer;
}
.inapp-dismiss-row label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: color 0.2s;
}
.inapp-dismiss-row:hover label {
    color: rgba(255, 255, 255, 0.5);
}

/* ── Responsive ── */
@media (max-width: 520px) {
    .inapp-banner {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 14px;
    }
    .inapp-banner-hint {
        white-space: normal;
    }
    .inapp-banner-actions {
        width: 100%;
        justify-content: flex-end;
    }
    .inapp-modal-card {
        padding: 28px 20px 22px;
        border-radius: 20px;
    }
    .inapp-modal h2 {
        font-size: 1.05rem;
    }
    .inapp-step {
        padding: 10px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inapp-step { animation: none; opacity: 1; }
    .inapp-modal-orb { animation: none; }
    .inapp-modal-card::before { animation: none; }
    .inapp-step-num::after { animation: none; }
    .inapp-modal-badge { animation: none; opacity: 1; }
    .inapp-screen-arrow { animation: none; opacity: 1; }
    .inapp-arrow-ring-sonar { animation: none; }
    .inapp-arrow-ring-circle { animation: none; }
    .inapp-arrow-svg path { animation: none; }
    .inapp-banner { transition: none; }
    .inapp-modal { transition: none; }
    .inapp-modal-card { transition: none; }
}

/* ============================================
   Report Modal — Compact Inline Style
   ============================================ */
.report-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: var(--z-modal);
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    animation: reportBackdropIn 0.2s ease;
}

@keyframes reportBackdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.report-modal.active { display: flex; }

.report-modal-card {
    background: rgba(18, 18, 26, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: reportSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes reportSlideUp {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}

/* Drag handle indicator */
.report-modal-card::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.15);
    margin: 12px auto 0;
}

.report-modal-header {
    padding: 16px 24px 10px;
    text-align: left;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.report-modal-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ef4444;
}

.report-modal-icon svg {
    width: 16px;
    height: 16px;
}

.report-modal-title {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    margin-bottom: 0;
}

.report-modal-desc {
    display: none;
}

.report-modal-body {
    padding: 8px 24px 4px;
}

.report-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.report-textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    line-height: 1.5;
    resize: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 80px;
}

.report-textarea:focus {
    outline: none;
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.report-textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-size: var(--text-xs);
}

.report-modal-footer {
    padding: 12px 24px 20px;
    display: flex;
    gap: 8px;
}

.report-modal-footer .btn {
    flex: 1;
    justify-content: center;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: var(--text-sm);
}

.report-modal-footer .btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.report-modal-footer .btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Desktop: centered floating modal */
@media (min-width: 521px) {
    .report-modal {
        align-items: center;
        padding: var(--space-xl);
    }

    .report-modal-card {
        border-radius: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
        animation: reportCardPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .report-modal-card::before {
        display: none;
    }

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

/* ============================================
   Toast Notification
   ============================================ */
.profile-toast {
    position: fixed;
    bottom: var(--space-2xl);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--surface-elevated);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-xl);
    padding: var(--space-md) var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    box-shadow: var(--shadow-xl);
    z-index: calc(var(--z-modal) + 1);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 90vw;
}

.profile-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.profile-toast.toast-success {
    border-color: rgba(34, 197, 94, 0.3);
}

.profile-toast.toast-error {
    border-color: rgba(239, 68, 68, 0.3);
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .profile-avatar-glow,
    .profile-bg-decor::before,
    .profile-bg-decor::after,
    .profile-bg-decor .side-dot,
    .profile-announcement-icon,
    .profile-link-card,
    .blk,
    .profile-info,
    .profile-socials,
    .profile-contact,
    .profile-announcement {
        animation: none !important;
    }

    .profile-link-card::after {
        display: none;
    }

    .profile-link-card.highlighted::before {
        animation: none !important;
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .profile-cover { height: 190px; }
    .profile-content { padding: 0 var(--space-md) var(--space-2xl); }
    .profile-link-card { padding: 13px 18px; width: 100%; }
    .profile-bio { max-width: 100%; }
    .age-gate-content { padding: 32px 24px 26px; }
    .report-modal-header { padding: var(--space-xl) var(--space-xl) var(--space-md); }
    .report-modal-body { padding: var(--space-lg) var(--space-xl); }
    .report-modal-footer { padding: var(--space-md) var(--space-xl) var(--space-xl); }
}

@media (max-width: 480px) {
    body.profile-body::before { display: none; }
    .profile-cover { height: 160px; }
    .profile-avatar,
    .profile-avatar-placeholder { width: 95px; height: 95px; font-size: 2rem; }
    .profile-avatar-glow { width: 120px; height: 120px; }
    .profile-avatar-glow::after { display: none; }
    .profile-content { margin-top: -50px; padding: 0 var(--space-sm) var(--space-2xl); }
    .profile-display-name { font-size: var(--text-xl); }
    .profile-socials { gap: var(--space-sm); }
    .profile-social-icon { width: 40px; height: 40px; }
    .profile-link-card { padding: 12px 16px; gap: var(--space-sm); width: 100%; }
    .profile-link-card::after { display: none; }
    .profile-link-icon { width: 30px; height: 30px; font-size: 0.95rem; }
    .profile-link-title { font-size: var(--text-sm); }
    .age-gate { padding: 16px; }
    .age-gate-card { border-radius: 24px; }
    .age-gate-content { padding: 28px 20px 22px; }
    .age-gate-shield { width: 60px; height: 60px; border-radius: 16px; }
    .age-gate-card h2 { font-size: 1.15rem; }
    .age-gate-card p { font-size: 0.78rem; margin-bottom: 22px; }
    .age-gate-btn { padding: 12px 16px; gap: 12px; border-radius: 14px; }
    .age-gate-btn-text strong { font-size: 0.82rem; }
    .age-gate-btn-text small { font-size: 0.68rem; }
    .age-gate-legal { font-size: 0.6rem; margin-top: 18px; padding-top: 14px; }
    .report-modal-card { border-radius: var(--radius-xl); }
    .report-modal-footer { flex-direction: column; }
    .report-modal-footer .btn { width: 100%; }
}
