:root {
    --bg-void: #030305;
    --card-bg: rgba(10, 11, 16, 0.78);
    --white-pure: #ffffff;
    --silver-soft: #cbd5e1;
    
    --glow-subtle: 0 0 12px rgba(255, 255, 255, 0.35);
    --glow-medium: 0 0 18px rgba(255, 255, 255, 0.65), 0 0 35px rgba(255, 255, 255, 0.25);
    --glow-strong: 0 0 22px rgba(255, 255, 255, 0.95), 0 0 45px rgba(255, 255, 255, 0.5), 0 0 75px rgba(255, 255, 255, 0.25);
    --border-glow: rgba(255, 255, 255, 0.28);

    --aura-rgb: 255, 255, 255;
    --aura-hex: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

body, html {
    width: 100%;
    min-height: 100vh;
    background-color: #030305 !important;
    color: var(--white-pure);
    font-family: 'Kanit', sans-serif;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#bg-image {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.65 !important;
    filter: none !important;
    z-index: 0 !important;
}

.vignette-overlay {
    position: fixed;
    inset: 0;
    z-index: 1 !important;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.75) 100%) !important;
    pointer-events: none;
}

.eclipse-halo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: #000000;
    box-shadow: 
        0 0 35px 4px rgba(var(--aura-rgb), 0.65),
        0 0 90px 20px rgba(var(--aura-rgb), 0.25),
        inset 0 0 40px rgba(var(--aura-rgb), 0.45) !important;
    opacity: 0.4;
    z-index: 2 !important;
    pointer-events: none;
    transition: box-shadow 0.6s ease;
    animation: pulseEclipse 6s ease-in-out infinite alternate;
}

@keyframes pulseEclipse {
    0% { transform: translate(-50%, -50%) scale(0.96); opacity: 0.32; }
    100% { transform: translate(-50%, -50%) scale(1.04); opacity: 0.48; }
}

#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 3 !important;
    pointer-events: none;
}

#enter-screen {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, #0c0d14 0%, #020204 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.7s ease, visibility 0.7s;
}

#enter-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.enter-eclipse-icon {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #000;
    border: 2px solid #fff;
    box-shadow: var(--glow-strong);
    margin-bottom: 24px;
    animation: pulseGlow 2.4s infinite ease-in-out;
}

.enter-text {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    letter-spacing: 5px;
    color: #ffffff;
    text-shadow: var(--glow-medium);
    animation: pulseGlow 2.4s infinite ease-in-out;
}

.enter-sub {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--silver-soft);
    letter-spacing: 1px;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.55; transform: scale(0.97); }
    50% { opacity: 1; transform: scale(1.03); }
}

/* การ์ดโปรไฟล์หลัก */
.card-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    padding: 20px 16px;
    z-index: 10 !important;
}

.profile-card {
    position: relative;
    background: var(--card-bg);
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(var(--aura-rgb), 0.35) !important;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.92),
        0 0 32px rgba(var(--aura-rgb), 0.22) !important;
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    transition: all 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--aura-hex), transparent) !important;
    box-shadow: 0 0 18px 2px var(--aura-hex) !important;
    z-index: 5;
    transition: all 0.5s ease;
}

.profile-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 9, 14, 0.72);
    z-index: 0;
    pointer-events: none;
}

.card-banner,
.card-body {
    position: relative;
    z-index: 2;
}

.card-banner {
    width: 100%;
    height: 135px;
    background-color: #11131c;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.card-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(10, 11, 16, 0.98));
}

/* ซ่อนปุ่มยอดวิว และปุ่มเปิด-ปิดเสียงเดิม */
.views-badge,
.audio-btn {
    display: none !important;
}

.card-body {
    padding: 0 22px 24px;
    text-align: center;
}

.avatar-box {
    position: relative;
    width: 104px;
    height: 104px;
    margin: -54px auto 14px;
    z-index: 5;
}

.avatar-img {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid var(--aura-hex) !important;
    background-color: #050508;
    box-shadow: 0 0 20px rgba(var(--aura-rgb), 0.7), 0 0 40px rgba(var(--aura-rgb), 0.3) !important;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    z-index: 2;
}

.avatar-box:hover .avatar-img {
    transform: scale(1.05);
}

.status-dot {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--aura-hex) !important;
    border: 3px solid #0a0b10;
    box-shadow: 0 0 12px var(--aura-hex), 0 0 20px var(--aura-hex) !important;
    z-index: 3;
}

.display-name {
    font-family: 'Cinzel', serif;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-shadow: 0 0 18px rgba(var(--aura-rgb), 0.75), 0 0 35px rgba(var(--aura-rgb), 0.35) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#name-text {
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s ease;
}
#name-text:hover {
    transform: scale(1.04);
}

.verified-icon {
    font-size: 0.95rem;
    color: var(--aura-hex) !important;
    filter: drop-shadow(0 0 8px rgba(var(--aura-rgb), 0.95)) !important;
}

.role-tag {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--silver-soft);
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.bio-box {
    min-height: 24px;
    margin: 10px 0 16px;
    font-size: 0.88rem;
    color: #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cursor {
    margin-left: 3px;
    color: #ffffff;
    text-shadow: 0 0 8px #ffffff;
    animation: blink 0.9s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.social-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.social-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.25s ease;
    overflow: hidden;
}

.social-icon-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-icon-btn:hover,
.copy-link-btn:hover {
    background: var(--aura-hex) !important;
    color: #000000;
    border-color: var(--aura-hex) !important;
    transform: translateY(-3px);
    box-shadow: 0 0 16px rgba(var(--aura-rgb), 0.9) !important;
}

/* กรอบรวมปุ่มลิงก์ */
.links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    padding-bottom: 6px;
    scroll-behavior: smooth;
}

.links-list::-webkit-scrollbar { width: 5px; }
.links-list::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.04); border-radius: 10px; }
.links-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.45);
    border-radius: 10px;
    box-shadow: 0 0 8px #ffffff;
}
.links-list::-webkit-scrollbar-thumb:hover { background: #ffffff; }

.link-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-decoration: none;
    color: #ffffff;
    overflow: hidden;
    flex-shrink: 0;
    transition: all 0.28s ease;
}

.link-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--aura-hex) !important;
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(var(--aura-rgb), 0.55) !important;
}

.link-left {
    display: flex;
    align-items: center;
    gap: 13px;
    text-align: left;
    min-width: 0;
}

.link-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: var(--glow-subtle);
}

.link-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.45);
}

.link-sub {
    font-size: 0.75rem;
    color: var(--silver-soft);
}

.link-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 10px;
}

.copy-link-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.22s ease;
}

.link-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--aura-hex) !important;
    color: #000000 !important;
    white-space: nowrap;
    box-shadow: 0 0 12px rgba(var(--aura-rgb), 0.85) !important;
    transition: all 0.4s ease;
}

.music-bar {
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-disc {
    font-size: 1.1rem;
    color: #ffffff;
    filter: drop-shadow(0 0 6px #ffffff);
    animation: spinDisc 6s linear infinite;
}

@keyframes spinDisc {
    100% { transform: rotate(360deg); }
}

.music-title {
    font-size: 0.78rem;
    color: #ffffff;
}

.copy-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(10, 11, 16, 0.92);
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 10px 30px rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.copy-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.aura-switcher {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(var(--aura-rgb), 0.35);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 12px rgba(var(--aura-rgb), 0.25);
}

.aura-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    cursor: pointer;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.aura-dot:hover,
.aura-dot.active {
    transform: scale(1.25);
    border-color: #ffffff;
}

.time-status-pill {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 20;
    margin: 0 !important;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(var(--aura-rgb, 255, 255, 255), 0.35);
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.76rem;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 1px;
    box-shadow: 0 0 12px rgba(var(--aura-rgb, 255, 255, 255), 0.25);
}

.time-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--aura-hex, #ffffff);
    box-shadow: 0 0 8px var(--aura-hex, #ffffff);
    animation: blink 1.5s infinite ease-in-out;
}

.click-rune-ring {
    position: fixed;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--aura-hex, #ffffff);
    box-shadow: 0 0 10px var(--aura-hex, #ffffff);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%) scale(0.2);
    animation: runeRingExpand 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}

@keyframes runeRingExpand {
    0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0.95; }
    100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
}

.click-rune-char {
    position: fixed;
    font-size: 0.85rem;
    color: var(--aura-hex, #ffffff);
    text-shadow: 0 0 8px var(--aura-hex, #ffffff);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    animation: runeCharFloat 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}

@keyframes runeCharFloat {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.4); opacity: 0; }
}

.boss-hud {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px) scale(0.95);
    z-index: 9995;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.boss-hud.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.boss-warning-pill {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 30px;
    background: rgba(10, 11, 16, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.75);
    font-family: 'Cinzel', 'Kanit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 3px;
    text-shadow: 0 0 14px #ffffff, 0 0 25px rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.45), 0 10px 30px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

/* ละอองฝุ่นสีขาว (White Dust Particles) ตอนคลิกรูปโปรไฟล์ครบ 5 ครั้ง */
.white-dust-particle {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
    box-shadow: 0 0 10px #ffffff, 0 0 20px rgba(255, 255, 255, 0.8);
    pointer-events: none;
    z-index: 9996;
    transform: translate(-50%, -50%);
    animation: dustFloatOut var(--dur, 1.2s) cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}

@keyframes dustFloatOut {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.4);
        opacity: 0;
    }
}

.avatar-box::before {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 1.5px dashed rgba(var(--aura-rgb), 0.45);
    box-shadow: 0 0 15px rgba(var(--aura-rgb), 0.2);
    animation: spinArcaneRing 18s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes spinArcaneRing {
    100% { transform: rotate(360deg); }
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    transform: skewX(-25deg);
    animation: linkShimmerSweep 6s infinite;
    pointer-events: none;
}

.link-card:nth-child(2)::before { animation-delay: 1.2s; }
.link-card:nth-child(3)::before { animation-delay: 2.4s; }
.link-card:nth-child(4)::before { animation-delay: 3.6s; }

@keyframes linkShimmerSweep {
    0%, 65% { left: -120%; }
    100% { left: 160%; }
}

.music-eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 3px;
    height: 12px;
    margin-left: 4px;
}

.music-eq span {
    width: 2.5px;
    background-color: var(--aura-hex);
    border-radius: 2px;
    box-shadow: 0 0 6px var(--aura-hex);
    animation: eqBounce 0.8s ease-in-out infinite alternate;
}

.music-eq span:nth-child(1) { height: 4px; animation-duration: 0.6s; }
.music-eq span:nth-child(2) { height: 11px; animation-duration: 0.85s; }
.music-eq span:nth-child(3) { height: 6px; animation-duration: 0.7s; }

@keyframes eqBounce {
    0% { height: 3px; opacity: 0.5; }
    100% { height: 12px; opacity: 1; }
}

@media (max-width: 600px) {
    body, html {
        height: 100dvh;
        overflow: hidden;
    }
    .card-wrapper {
        padding: 10px 14px;
        max-height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .profile-card {
        width: 100%;
        max-height: 94dvh;
        display: flex;
        flex-direction: column;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    .card-banner {
        height: 105px;
        flex-shrink: 0;
    }
    .card-body {
        padding: 0 16px 16px;
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }
    .avatar-box {
        width: 88px;
        height: 88px;
        margin: -44px auto 10px;
        flex-shrink: 0;
    }
    .display-name { font-size: 1.35rem; }
    .bio-box { margin: 6px 0 12px; font-size: 0.82rem; }
    .social-row { margin-bottom: 12px; gap: 8px; flex-shrink: 0; }
    .social-icon-btn { width: 38px; height: 38px; font-size: 1rem; }
    .links-list {
        max-height: 240px;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .link-card { padding: 9px 12px; }
    .link-thumb { width: 38px; height: 38px; font-size: 1.05rem; }
    .music-bar { margin-top: 12px; padding: 8px 12px; flex-shrink: 0; }
    .eclipse-halo { width: 280px; height: 280px; }
}

.music-bar {
    position: relative;
    justify-content: space-between !important;
    padding: 10px 16px !important;
    gap: 10px;
}

.music-vol-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(var(--aura-rgb, 255, 255, 255), 0.28);
    padding: 5px 10px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.music-vol-wrapper:hover,
.music-vol-wrapper.expanded {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--aura-hex, #ffffff);
    box-shadow: 0 0 12px rgba(var(--aura-rgb, 255, 255, 255), 0.35);
}

.music-vol-btn {
    background: none;
    border: none;
    color: var(--aura-hex, #ffffff);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 0 6px rgba(var(--aura-rgb, 255, 255, 255), 0.8));
    transition: transform 0.2s ease;
}

.music-vol-btn:hover {
    transform: scale(1.15);
}

.music-vol-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 0px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.25);
    outline: none;
    opacity: 0;
    cursor: pointer;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.music-vol-wrapper:hover .music-vol-slider,
.music-vol-wrapper.expanded .music-vol-slider {
    width: 68px;
    opacity: 1;
}

/* หัวกลมสำหรับลากปรับระดับเสียง */
.music-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--aura-hex, #ffffff);
    box-shadow: 0 0 10px var(--aura-hex, #ffffff);
    cursor: pointer;
}

.music-vol-slider::-moz-range-thumb {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--aura-hex, #ffffff);
    box-shadow: 0 0 10px var(--aura-hex, #ffffff);
    cursor: pointer;
    border: none;
}

.music-vol-percent {
    font-size: 0.7rem;
    color: #cbd5e1;
    min-width: 28px;
    text-align: right;
    display: none;
}

.music-vol-wrapper:hover .music-vol-percent,
.music-vol-wrapper.expanded .music-vol-percent {
    display: inline-block;
}

.abyssal-mist {
    position: fixed;
    bottom: -30px;
    left: -50%;
    width: 200%;
    height: 180px;
    background: 
        radial-gradient(ellipse at 25% 100%, rgba(var(--aura-rgb, 255, 255, 255), 0.14) 0%, transparent 60%),
        radial-gradient(ellipse at 75% 100%, rgba(var(--aura-rgb, 255, 255, 255), 0.11) 0%, transparent 65%),
        linear-gradient(to top, rgba(3, 3, 5, 0.95) 10%, transparent 100%);
    filter: blur(18px);
    pointer-events: none;
    z-index: 4;
    animation: mistDrift 16s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

@keyframes mistDrift {
    0% { transform: translateX(-8%) scaleY(0.95); opacity: 0.65; }
    100% { transform: translateX(8%) scaleY(1.1); opacity: 0.95; }
}

@keyframes borderMusicPulse {
    0% {
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.92), 0 0 22px rgba(var(--aura-rgb), 0.18);
        border-color: rgba(var(--aura-rgb), 0.28);
    }
    50% {
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.92), 0 0 42px rgba(var(--aura-rgb), 0.48), inset 0 0 18px rgba(var(--aura-rgb), 0.12);
        border-color: rgba(var(--aura-rgb), 0.72);
    }
    100% {
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.92), 0 0 28px rgba(var(--aura-rgb), 0.25);
        border-color: rgba(var(--aura-rgb), 0.38);
    }
}

.profile-card.music-pulsing {
    animation: borderMusicPulse 1.6s ease-in-out infinite !important;
}

.profile-card.music-pulsing::before {
    animation: topLinePulse 0.8s ease-in-out infinite alternate !important;
}

@keyframes topLinePulse {
    0% { opacity: 0.65; transform: scaleX(0.88); }
    100% { opacity: 1; transform: scaleX(1.06); box-shadow: 0 0 26px 4px var(--aura-hex); }
}

body.deep-eclipse-mode #bg-image {
    opacity: 0.12 !important;
    filter: brightness(0.35) contrast(150%) !important;
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

body.deep-eclipse-mode .profile-card {
    opacity: 0.15 !important;
    transform: scale(0.94) !important;
    filter: blur(3px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body.deep-eclipse-mode .eclipse-halo {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1.18) !important;
    box-shadow: 
        0 0 65px 15px rgba(var(--aura-rgb, 255, 255, 255), 0.95),
        0 0 150px 45px rgba(var(--aura-rgb, 255, 255, 255), 0.45),
        inset 0 0 60px rgba(var(--aura-rgb, 255, 255, 255), 0.85) !important;
    z-index: 9990 !important;
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-card,
.social-icon-btn,
.copy-link-btn,
.aura-dot,
.music-vol-btn {
    transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.22s ease, 
                background 0.22s ease, 
                border-color 0.22s ease !important;
    will-change: transform;
}

.link-card:active {
    transform: scale(0.96) !important;
    background: rgba(var(--aura-rgb, 255, 255, 255), 0.16) !important;
    border-color: var(--aura-hex, #ffffff) !important;
    box-shadow: 0 0 22px rgba(var(--aura-rgb, 255, 255, 255), 0.75), 
                inset 0 0 12px rgba(var(--aura-rgb, 255, 255, 255), 0.35) !important;
}

.social-icon-btn:active,
.copy-link-btn:active,
.music-vol-btn:active {
    transform: scale(0.86) !important;
}

.link-card:nth-child(odd)::before {
    animation-delay: 0s !important;
}
.link-card:nth-child(even)::before {
    animation-delay: 2.5s !important;
}

.card-banner::before {
    content: '✦';
    position: absolute;
    top: 48px;
    right: 22px;
    font-size: 0.95rem;
    color: var(--aura-hex, #ffffff);
    text-shadow: 
        0 0 10px var(--aura-hex, #ffffff), 
        0 0 20px var(--aura-hex, #ffffff),
        -340px 18px 0 var(--aura-hex, #ffffff),
        -340px 18px 12px var(--aura-hex, #ffffff);
    pointer-events: none;
    z-index: 6;
    animation: starlightFlarePulse 3.2s ease-in-out infinite alternate;
    will-change: transform, opacity;
}

@keyframes starlightFlarePulse {
    0% {
        opacity: 0.2;
        transform: scale(0.75) rotate(-15deg);
    }
    100% {
        opacity: 0.95;
        transform: scale(1.18) rotate(15deg);
    }
}

.profile-card {
    overflow: hidden;
}

.abyssal-aura-ripple {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.85;
    background: radial-gradient(
        circle,
        rgba(var(--ripple-rgb, 255, 255, 255), 0.45) 0%,
        rgba(var(--ripple-rgb, 255, 255, 255), 0.18) 45%,
        rgba(0, 0, 0, 0.4) 70%,
        transparent 100%
    );
    box-shadow: 0 0 35px rgba(var(--ripple-rgb, 255, 255, 255), 0.5);
    animation: abyssalRippleExpand 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}

@keyframes abyssalRippleExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.9;
    }
    70% {
        opacity: 0.45;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}