/* Hero profile */
/* ── Liquid Glass Hero (Performance Optimized) ────────────── */
:root {
    --hero-accent-indigo: #6366f1;
    --hero-accent-violet: #8b5cf6;
    --hero-accent-cyan: #06b6d4;
}

.hero-profile {
    position: relative;
    background: transparent;
    margin-top: -96px;
    padding: calc(2.5rem + 96px) 0 2rem;
    overflow-x: clip;
    overflow-y: visible;
    isolation: isolate;
}

/* ── Lens backdrop layer (static, no animation) ─── */
.hero-profile::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% 30%,
            rgba(99,102,241,0.10) 0%, transparent 60%),
        radial-gradient(ellipse 50% 35% at 75% 20%,
            rgba(6,182,212,0.05) 0%, transparent 50%);
}

/* ── Video Background ────────────────────────────────── */
.hero-video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: 34px;
    overflow: hidden;
    isolation: isolate;
    clip-path: inset(0 round 34px);
    background: rgba(12,8,45,0.28);
    -webkit-backdrop-filter: blur(22px) saturate(1.8) brightness(1.05);
    backdrop-filter: blur(22px) saturate(1.8) brightness(1.05);
    border: 1px solid rgba(255,255,255,0.22);
    border-top-color: rgba(255,255,255,0.48);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.62),
        0 28px 64px -12px rgba(8,8,26,0.45);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    will-change: transform;
    transform: translateZ(0);
    contain: layout style paint;
}

/* Static reflections — no animation */
.hero-video-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    border-radius: inherit;
    background:
        radial-gradient(ellipse 90% 35% at 50% 0%,
            rgba(255,255,255,0.14) 0%, transparent 60%),
        radial-gradient(circle 240px at 10% -5%,
            rgba(99,102,241,0.16), transparent 48%),
        radial-gradient(circle 180px at 88% 8%,
            rgba(6,182,212,0.10), transparent 44%),
        linear-gradient(118deg,
            rgba(255,255,255,0.03) 0%,
            rgba(6,182,212,0.06) 12%,
            transparent 40%,
            rgba(139,92,246,0.06) 82%);
}

.hero-video-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.04) translateZ(0);
    filter: saturate(1.28) contrast(1.12) brightness(1.05);
    border-radius: inherit;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    background: linear-gradient(
        180deg,
        rgba(12, 8, 45, 0.18) 0%,
        rgba(18, 12, 55, 0.10) 50%,
        rgba(12, 8, 45, 0.22) 100%
    );
}

/* ── Floating aura orbs ─────────────────────────── */
.hero-bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.6;
    will-change: transform;
}
.hero-bg-circle--1 {
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(99,102,241,0.32) 0%, transparent 65%);
    top: -80px; left: -80px;
}
.hero-bg-circle--2 {
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(139,92,246,0.28) 0%, transparent 65%);
    bottom: -60px; right: -60px;
}
.hero-dots-grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
    z-index: 1;
}

/* ── Inner content ───────────────────────────────── */
.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

/* ── Avatar — no backdrop-filter on rings ───────── */
.hero-avatar-wrap {
    position: relative;
    width: 130px; height: 130px;
    display: flex; align-items: center; justify-content: center;
}

.hero-avatar-ring {
    position: absolute; inset: -6px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: conic-gradient(from 0deg, rgba(99,102,241,0.6), rgba(139,92,246,0.2), rgba(99,102,241,0.05), rgba(99,102,241,0.6)) border-box;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
    box-shadow: 0 0 20px rgba(99,102,241,0.15), 0 0 40px rgba(99,102,241,0.05);
    will-change: transform;
    animation: avatarRingSpin 8s linear infinite;
}
.hero-avatar-ring--2 {
    inset: -16px;
    border: 1px solid transparent;
    background: conic-gradient(from 180deg, rgba(6,182,212,0.5), rgba(103,232,249,0.15), rgba(6,182,212,0.03), rgba(6,182,212,0.5)) border-box;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 calc(100% - 0px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 1px), #000 calc(100% - 0px));
    box-shadow: 0 0 28px rgba(6,182,212,0.12), 0 0 50px rgba(6,182,212,0.04);
    animation: avatarRingSpinRev 12s linear infinite;
}
@keyframes avatarRingSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes avatarRingSpinRev {
    from { transform: rotate(360deg); }
    to   { transform: rotate(0deg); }
}

.hero-avatar-ring::before {
    content: '';
    position: absolute;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px #c7d2fe, 0 0 28px rgba(139,92,246,0.7), 0 0 40px rgba(165,180,252,0.4);
    top: -5px; left: 50%; transform: translateX(-50%);
    animation: dotPulseIndigo 2s ease-in-out infinite;
    z-index: 3;
}
@keyframes dotPulseIndigo {
    0%,100% { box-shadow: 0 0 10px #c7d2fe, 0 0 20px rgba(165,180,252,0.5); }
    50%     { box-shadow: 0 0 18px #a5b4fc, 0 0 34px rgba(165,180,252,0.8); }
}

.hero-avatar-ring--2::before {
    background: #fff;
    box-shadow: 0 0 10px #67e8f9, 0 0 24px rgba(6,182,212,0.6), 0 0 36px rgba(103,232,249,0.35);
    width: 7px; height: 7px;
    top: 8%; left: 8%;
    animation: dotPulseCyan 2.5s ease-in-out infinite;
    z-index: 3;
}
@keyframes dotPulseCyan {
    0%,100% { box-shadow: 0 0 10px #67e8f9, 0 0 20px rgba(6,182,212,0.5); }
    50%     { box-shadow: 0 0 16px #67e8f9, 0 0 30px rgba(6,182,212,0.75); }
}

.hero-avatar-img {
    width: 110px; height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.55);
    border-top-color: rgba(255,255,255,0.75);
    box-shadow:
        0 0 0 6px rgba(99,102,241,0.15),
        0 0 30px rgba(99,102,241,0.25),
        0 0 60px rgba(139,92,246,0.10),
        0 16px 40px rgba(0,0,0,0.32);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative; z-index: 1;
    animation: avatarFloat 4s ease-in-out infinite, avatarGlow 3s ease-in-out infinite;
}
/* Logo frame overlay */
.hero-avatar-frame {
    position: absolute;
    inset: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    border-radius: 50%;
    object-fit: contain;
    pointer-events: none;
    z-index: 3;
}
/* Shimmer overlay on avatar wrap */
.hero-avatar-wrap::after {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), transparent 60%);
    pointer-events: none;
    z-index: 2;
    animation: avatarShine 3s ease-in-out infinite;
}
@keyframes avatarFloat {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-5px); }
}
@keyframes avatarGlow {
    0%,100% { box-shadow: 0 0 0 6px rgba(99,102,241,0.15), 0 0 30px rgba(99,102,241,0.25), 0 0 60px rgba(139,92,246,0.10), 0 16px 40px rgba(0,0,0,0.32); }
    50%     { box-shadow: 0 0 0 8px rgba(99,102,241,0.25), 0 0 45px rgba(139,92,246,0.40), 0 0 80px rgba(99,102,241,0.18), 0 16px 40px rgba(0,0,0,0.32); }
}
@keyframes avatarShine {
    0%,100% { opacity: 0.15; }
    50%     { opacity: 0.45; }
}

.hero-avatar-wrap:hover .hero-avatar-img {
    animation: none;
    transform: scale(1.08) translateY(-3px);
    box-shadow:
        0 0 0 10px rgba(99,102,241,0.22),
        0 0 40px rgba(139,92,246,0.35),
        0 0 70px rgba(99,102,241,0.15),
        0 22px 50px rgba(0,0,0,0.40);
}
.hero-avatar-wrap:hover .hero-avatar-ring {
    animation-duration: 4s;
}
.hero-avatar-wrap:hover .hero-avatar-ring--2 {
    animation-duration: 6s;
}

.hero-avatar-badge {
    position: absolute;
    bottom: 6px; right: 6px;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 13px;
    box-shadow:
        0 4px 12px rgba(99,102,241,0.40),
        inset 0 1px 0 rgba(255,255,255,0.35);
    border: 2px solid rgba(255,255,255,0.50);
    z-index: 2;
    animation: badgePulse 2.8s ease-in-out infinite;
}
@keyframes badgePulse {
    0%,100% { box-shadow: 0 4px 12px rgba(99,102,241,0.40), inset 0 1px 0 rgba(255,255,255,0.35); transform: scale(1); }
    50%     { box-shadow: 0 4px 20px rgba(139,92,246,0.55), inset 0 1px 0 rgba(255,255,255,0.45); transform: scale(1.08); }
}

/* ── Name ────────────────────────────────────────── */
.hero-name {
    color: #ffffff;
    font-family: var(--design-font-display, 'Fredoka', 'Quicksand', system-ui, sans-serif);
    font-size: clamp(1.7rem, 5.2vw, 2.35rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex; align-items: center; justify-content: center;
    gap: 6px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.typed-name-el {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-height: 1.1em;
    transition: color 0.3s ease;
}

.typed-name-text {
    display: inline;
}

.typed-name-caret {
    display: none;
    width: 2px;
    height: 0.82em;
    margin-left: 2px;
    border-radius: 2px;
    background: #e0a48d;
    box-shadow: 0 0 10px rgba(204, 120, 92, 0.45);
    vertical-align: -0.05em;
    flex: 0 0 auto;
}

.typed-name-el.is-typing .typed-name-caret,
.typed-name-el.typed-done .typed-name-caret,
.typed-name-caret.is-on {
    display: inline-block;
    animation: typedCaretBlink 0.85s steps(1, end) infinite;
}

@keyframes typedCaretBlink {
    0%, 45% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .typed-name-caret,
    .typed-name-el.is-typing .typed-name-caret {
        display: none !important;
        animation: none !important;
    }
}

.verified-badge {
    width: 20px; height: 20px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
}

/* ── Username handle — no backdrop-filter ───────── */
.hero-username {
    display: flex; align-items: center; justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.username-handle {
    font-size: clamp(0.82rem, 2.5vw, 0.92rem);
    font-weight: 600;
    color: rgba(255,255,255,0.70);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-top-color: rgba(255,255,255,0.24);
    border-radius: 14px;
    padding: 4px 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
}

.username-handle:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.24);
    border-top-color: rgba(255,255,255,0.38);
    color: rgba(255,255,255,0.90);
}

/* View count button — no backdrop-filter */
.view-count-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-top-color: rgba(255,255,255,0.24);
    color: rgba(255,255,255,0.76);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

.view-count-btn:hover {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.26);
    border-top-color: rgba(255,255,255,0.42);
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.36),
        0 4px 14px rgba(99,102,241,0.16);
    transform: translateY(-1px);
}

.view-count-btn:active {
    transform: scale(0.95);
    transition: transform 0.08s ease;
}

.view-count-btn i { color: #a5b4fc; font-size: 13px; transition: transform 0.3s ease; }

@keyframes eyeSpin {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-12deg) scale(1.15); }
    50% { transform: rotate(5deg) scale(1.2); opacity: 1; }
    75% { transform: rotate(-3deg) scale(1.1); }
    100% { transform: rotate(0deg) scale(1); opacity: 0.8; }
}
.view-count-btn i.i-pulse {
    animation: eyeSpin 0.9s ease-in-out;
    color: #22d3ee;
}

@keyframes countGlow {
    0%   { text-shadow: 0 0 2px rgba(165,180,252,0.2); filter: brightness(1); }
    30%  { text-shadow: 0 0 8px rgba(165,180,252,0.5), 0 0 20px rgba(99,102,241,0.2); filter: brightness(1.2); }
    60%  { text-shadow: 0 0 14px rgba(165,180,252,0.7), 0 0 35px rgba(99,102,241,0.35), 0 0 60px rgba(139,92,246,0.15); filter: brightness(1.4); }
    100% { text-shadow: 0 0 20px rgba(165,180,252,0.9), 0 0 50px rgba(99,102,241,0.5), 0 0 80px rgba(139,92,246,0.2); filter: brightness(1.6); }
}
.view-count-num.counting {
    animation: countGlow 0.6s ease-out forwards;
    background: linear-gradient(90deg, #a5b4fc, #22d3ee, #a78bfa, #a5b4fc);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes countDonePulse {
    0%   { text-shadow: 0 0 8px rgba(165,180,252,0.4); filter: brightness(1); }
    50%  { text-shadow: 0 0 16px rgba(165,180,252,0.7), 0 0 40px rgba(99,102,241,0.3); filter: brightness(1.3); }
    100% { text-shadow: 0 0 8px rgba(165,180,252,0.4); filter: brightness(1); }
}
.view-count-num.counting-done {
    color: #a5b4fc;
    animation: countDonePulse 1.6s ease-in-out 2;
}

@keyframes rippleRing {
    0%   { box-shadow: 0 0 0 0 rgba(165,180,252,0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(165,180,252,0); }
    100% { box-shadow: 0 0 0 0 rgba(165,180,252,0); }
}
.view-count-btn.ripple {
    animation: rippleRing 0.7s ease-out;
}

.view-count-num {
    display: inline-block;
    transition: transform 0.15s ease;
}
.view-count-num.bump {
    transform: scale(1.08);
}

/* ── Action Buttons — no backdrop-filter ────────── */
.hero-actions {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; flex-wrap: wrap;
    margin-top: 4px;
}

.hero-action-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px; font-weight: 700;
    text-decoration: none;
    border: none; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero-action-btn--fb,
.hero-action-btn--tg,
.hero-action-btn--mail {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-top-color: rgba(255,255,255,0.30);
    color: rgba(255,255,255,0.86);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.36),
        0 4px 14px rgba(0,0,0,0.16);
}

.hero-action-btn--fb:hover,
.hero-action-btn--tg:hover,
.hero-action-btn--mail:hover {
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.24);
    border-top-color: rgba(255,255,255,0.45);
    transform: translateY(-2px);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.52),
        0 6px 20px rgba(99,102,241,0.18);
}

.hero-action-btn--fb:active,
.hero-action-btn--tg:active,
.hero-action-btn--mail:active {
    transform: scale(0.94);
    transition: transform 0.08s ease;
}

/* ── Toast — no backdrop-filter ─────────────────── */
.view-toast {
    position: fixed;
    top: 16px; right: 16px;
    background: rgba(12,8,45,0.82);
    border: 1px solid rgba(255,255,255,0.18);
    border-top-color: rgba(255,255,255,0.40);
    border-radius: 14px;
    color: #fff;
    padding: 11px 18px;
    font-size: 13px; font-weight: 600;
    box-shadow:
        0 10px 32px rgba(99,102,241,0.20),
        inset 0 1px 0 rgba(255,255,255,0.40);
    z-index: 9999;
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex; align-items: center; gap: 8px;
    max-width: 320px;
}

.view-toast.show {
    opacity: 1; visibility: visible; transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 480px) {
    .hero-profile { margin-top: -64px; padding: calc(1.8rem + 64px) 0 1.5rem; }
    .hero-avatar-wrap { width: 110px; height: 110px; }
    .hero-avatar-img { width: 90px; height: 90px; }
    .hero-action-btn { padding: 8px 14px; font-size: 12px; }
    .hero-video-bg { border-radius: 28px; clip-path: inset(0 round 28px); }
    .hero-avatar-ring--2 { inset: -12px; }
}

/* ── Reduced motion ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .hero-avatar-ring,
    .hero-avatar-ring--2,
    .hero-avatar-ring::before,
    .hero-avatar-ring--2::before,
    .hero-avatar-img,
    .hero-avatar-badge,
    .hero-bg-circle {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dead selectors removed — rings/lens handled in geist-performance.css */
