/* Premium Pulse Page Aesthetics */
:root {
    --primary-rgb: 79, 70, 229;
    /* Indigo 600 */
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes sweep-light {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.premium-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .premium-glass {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pulse-overlay-badge {
    position: absolute;
    z-index: 20;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pulse-stats-overlay {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.95), rgba(17, 24, 39, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.vote-btn-premium {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vote-btn-premium:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.vote-btn-premium::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.vote-btn-premium:hover::after {
    transform: translateX(100%);
}

.blurred-locked-content {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
    opacity: 0.6;
}

.locked-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.8));
}

.dark .locked-overlay {
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
}

.premium-headline {
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 900;
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark .premium-headline {
    background: linear-gradient(135deg, #F9FAFB 0%, #D1D5DB 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.wow-bar-animate {
    animation: bar-grow 1s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes bar-grow {
    from {
        width: 0;
    }
}

.identity-chip {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.type-badge {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 800;
    box-shadow: 0 4px 14px 0 rgba(139, 92, 246, 0.39);
}

/* Mobile Info Drawer Aesthetics */
#mobile-poll-info-trigger {
    animation: trigger-reveal 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes trigger-reveal {
    from {
        transform: translate(100%, -50%);
        opacity: 0;
    }

    to {
        transform: translate(0, -50%);
        opacity: 1;
    }
}

#mobile-poll-info-trigger div.flex div {
    animation: dots-pulse 2s infinite;
}

#mobile-poll-info-trigger div.flex div:nth-child(2) {
    animation-delay: 0.3s;
}

#mobile-poll-info-trigger div.flex div:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes dots-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

#mobile-poll-info-drawer {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-info-drawer-backdrop {
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Poll Media Border Radius */
.poll-media-grid,
.poll-media-grid img,
.poll-media-grid video,
.poll-media-grid iframe,
.poll-media-grid .relative,
.poll-media-grid .poll-media-cell,
#poll-media-slides-list .poll-media-slide-item,
.related-pulse-thumb,
[class*="rounded-lg"].flex-shrink-0.w-16.h-16 {
    border-radius: 1em !important;
}

.pulse-winning-badge {
    animation: badge-float 6s ease-in-out infinite;
}

@keyframes badge-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-6px) scale(1.03);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-150%) skewX(-20deg);
    }

    100% {
        transform: translateX(250%) skewX(-20deg);
    }
}

/* Vitality Heartbeat / EKG Line */
.heartbeat-wrap {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.heartbeat-line {
    width: 200%;
    height: 120px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="120" viewBox="0 0 200 120"><path d="M0,60 L80,60 L90,20 L100,100 L110,60 L200,60" style="fill:none; stroke:black; stroke-width:1.5; opacity:0.4;"/></svg>');
    background-repeat: repeat-x;
    background-position: left center;
    animation: heartbeat-flow 4s linear infinite;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    filter: drop-shadow(0 0 2px currentColor);
}

.heartbeat-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-repeat: repeat-x;
    background-position: center;
    opacity: 0.5;
    filter: blur(4px) brightness(1.5);
    animation: heartbeat-flow 3s linear infinite reverse;
}

.dark .heartbeat-line {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="120" viewBox="0 0 200 120"><path d="M0,60 L80,60 L90,20 L100,100 L110,60 L200,60" style="fill:none; stroke:white; stroke-width:1.5; opacity:0.3;"/></svg>');
}

.heartbeat-line.flow-left {
    animation: heartbeat-flow-left 4s linear infinite;
}

.heartbeat-line.flow-right {
    animation: heartbeat-flow-right 4s linear infinite;
}

.heartbeat-line.flow-neutral {
    animation: heartbeat-flow-neutral 6s ease-in-out infinite;
}

@keyframes heartbeat-flow-left {
    from {
        background-position: 0 center;
    }

    to {
        background-position: -400px center;
    }
}

@keyframes heartbeat-flow-right {
    from {
        background-position: -400px center;
    }

    to {
        background-position: 0 center;
    }
}

@keyframes heartbeat-flow-neutral {

    0%,
    100% {
        background-position: 0 center;
    }

    50% {
        background-position: -200px center;
    }
}

.vitality-pulse {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    z-index: 4;
    transition: left 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

/* Peak Cluster Effect */
/* New Energy Core (Replaces Heartbeat Pulse) */
.heartbeat-peak {
    position: absolute;
    bottom: 35px;
    width: 60px;
    height: 60px;
    transform: translateX(-50%);
    z-index: 15;
    pointer-events: none;
    transition: left 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.energy-core-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-orb {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow:
        0 0 10px #fff,
        0 0 25px currentColor,
        0 0 50px currentColor;
    z-index: 5;
    animation: core-orb-pulse 1.2s ease-in-out infinite;
}

.core-ring {
    position: absolute;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    opacity: 0.5;
    filter: drop-shadow(0 0 5px currentColor);
}

.ring-1 {
    width: 32px;
    height: 32px;
    animation: core-pulse 2s ease-in-out infinite;
    opacity: 0.4;
}

.ring-2 {
    width: 48px;
    height: 48px;
    animation: core-pulse 3s ease-in-out infinite reverse;
    opacity: 0.2;
}

.core-flare {
    position: absolute;
    width: 2px;
    height: 120px;
    background: linear-gradient(to bottom, transparent, currentColor, #fff, currentColor, transparent);
    opacity: 0.3;
    filter: blur(1px);
    pointer-events: none;
    animation: core-flare-surge 2s ease-in-out infinite;
}

@keyframes core-rotate {

    /* Reserved for impact only if needed */
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes core-pulse {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.15);
        filter: brightness(1.8);
    }
}

@keyframes core-flare-surge {

    0%,
    100% {
        transform: scaleY(0.7);
        opacity: 0.2;
    }

    50% {
        transform: scaleY(1.3);
        opacity: 0.6;
    }
}


.energy-singularity {
    position: absolute;
    bottom: 12px;
    width: 22px;
    height: 22px;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 50%;
    box-shadow:
        0 0 15px #fff,
        0 0 30px currentColor,
        0 0 50px currentColor;
    z-index: 10;
    transition: left 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    animation: singularity-vortex 3s linear infinite;
}

@keyframes singularity-vortex {
    0% {
        transform: translateX(-50%) rotate(0deg) scale(1);
    }

    50% {
        transform: translateX(-50%) rotate(180deg) scale(1.2);
        box-shadow: 0 0 25px #fff, 0 0 45px currentColor, 0 0 75px currentColor;
    }

    100% {
        transform: translateX(-50%) rotate(360deg) scale(1);
    }
}

.energy-singularity.vortex-surge {
    animation: singularity-explosion 0.8s cubic-bezier(0.12, 0, 0.39, 0);
}

@keyframes singularity-explosion {
    0% {
        transform: translateX(-50%) scale(1);
        filter: brightness(1);
    }

    15% {
        transform: translateX(-50%) scale(5);
        filter: brightness(10) blur(2px);
        box-shadow: 0 0 50px #fff, 0 0 100px currentColor;
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) scale(1.5);
        filter: brightness(1);
        box-shadow: 0 0 15px #fff;
        opacity: 1;
    }
}

.energy-impact-flash {
    animation: impact-flash 0.6s ease-out;
}

@keyframes impact-flash {
    0% {
        filter: brightness(5) saturate(2);
        transform: scale(1.02);
    }

    100% {
        filter: brightness(1) saturate(1);
        transform: scale(1);
    }
}

.singularity-core {
    position: absolute;
    inset: 15%;
    background: #fff;
    border-radius: 50%;
    filter: blur(2px);
    box-shadow:
        inset 0 0 10px #000,
        0 0 20px #fff;
}

/* Fluid Plasma Effect (Base layer for Tesla) */
.beam-line {
    position: absolute;
    bottom: 22px;
    height: 1px;
    z-index: 5;
    transition: left 1s cubic-bezier(0.34, 1.56, 0.64, 1),
        right 1s cubic-bezier(0.34, 1.56, 0.64, 1),
        width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.beam-left {
    right: 50%;
    background: linear-gradient(90deg, transparent, #4f46e5, #0ea5e9, #fff);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
}

.beam-left::before,
.beam-left::after {
    background: inherit;
}

.beam-right {
    left: 50%;
    background: linear-gradient(90deg, #fff, #f97316, #ef4444, transparent);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.4);
}

.beam-right::before,
.beam-right::after {
    background: inherit;
}

.beam-container.active-me .beam-left {
    height: 4px;
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.6);
    filter: brightness(1.5);
}

.beam-container.active-me .beam-left::before,
.beam-container.active-me .beam-left::after {
    animation-duration: 1.5s;
    opacity: 1;
}

.beam-container.active-not-me .beam-right {
    height: 4px;
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.6);
    filter: brightness(1.5);
}

.beam-container.active-not-me .beam-right::before,
.beam-container.active-not-me .beam-right::after {
    animation-duration: 1.5s;
    opacity: 1;
}

.beam-container.active-me .beam-right,
.beam-container.active-not-me .beam-left {
    opacity: 0.4;
    filter: saturate(0.5) brightness(0.7);
}

.beam-node {
    position: absolute;
    bottom: 18px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 15px #fff;
    z-index: 15;
    transition: all 0.3s ease;
}

.node-left {
    left: 15%;
}

.node-right {
    right: 15%;
}

.choice-label-v3 {
    position: relative;
    z-index: 20;
    cursor: pointer;
    transition: all 0.4s ease;
}

.choice-label-v3:hover {
    transform: scale(1.1);
    text-shadow: 0 0 20px currentColor;
}

.choice-label-v3.active {
    transform: scale(1.15);
}

.pulse-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 2;
}

/* Energy Beam Choice Interface (High-Impact 120px) */
.energy-beam-container {
    background: transparent;
    height: 134px !important;
    min-height: 134px !important;
    max-height: 134px !important;
    border-radius: 1.5rem;
    position: relative !important;
    overflow: visible !important;
    display: flex;
    align-items: center;
    padding: 0 !important;
    margin: 1% 0 0 0 !important;
    box-shadow: none !important;
    border: none !important;
}

.dark .energy-beam-container {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.animate-button-breath {
    animation: button-breath 3s ease-in-out infinite;
    position: relative;
}

.animate-button-breath::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid currentColor;
    opacity: 0;
    animation: button-shockwave 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes button-breath {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.03);
        filter: brightness(1.2);
    }
}

@keyframes button-shockwave {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    70%,
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Floating Decision Badge */
.decision-badge-float {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    pointer-events: none;
    animation: badge-glide 4s ease-in-out infinite;
    transition: opacity 0.3s ease;
}

.energy-beam-container:hover .decision-badge-float {
    opacity: 0;
}

.decision-badge-content {
    background: #000;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

@keyframes badge-glide {

    0%,
    100% {
        left: 50%;
        transform: translateX(-50%) translateY(0);
    }

    25% {
        left: 30%;
        transform: translateX(-50%) translateY(-2px);
    }

    75% {
        left: 70%;
        transform: translateX(-50%) translateY(2px);
    }
}

/* Electric Surge Effect */
.electric-surge {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 1px;
    background: #fff;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    filter: blur(1px);
}

.surge-me {
    animation: surge-left 3s infinite 1s;
}

.surge-not-me {
    animation: surge-right 3s infinite 2.5s;
}

@keyframes surge-left {
    0% {
        width: 0;
        left: 50%;
        opacity: 0;
    }

    10% {
        width: 100px;
        left: calc(50% - 100px);
        opacity: 0.8;
    }

    20% {
        width: 0;
        left: calc(50% - 120px);
        opacity: 0;
    }
}

@keyframes surge-right {
    0% {
        width: 0;
        left: 50%;
        opacity: 0;
    }

    10% {
        width: 100px;
        left: 50%;
        opacity: 0.8;
    }

    20% {
        width: 0;
        left: calc(50% + 120px);
        opacity: 0;
    }
}

.energy-beam-container form {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 20;
    margin: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.poll-option-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.poll-option-btn:hover {
    transform: scale(1.05) translateY(-2px);
    filter: brightness(1.2);
}

.poll-option-btn:active {
    transform: scale(0.92);
}

/* Intensity Gradients on Hover */
.energy-beam-container .poll-option-btn[data-feed-vote="me"]:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), transparent);
}

.energy-beam-container .poll-option-btn[data-feed-vote="not_me"]:hover {
    background: linear-gradient(-90deg, rgba(249, 115, 22, 0.1), transparent);
}

/* Contained Background Layer */
.beam-bg-layer {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

/* Starfield Effect */
.starfield-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 20px 30px, rgba(0, 0, 0, 0.1), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(0, 0, 0, 0.05), transparent),
        radial-gradient(1px 1px at 50px 160px, rgba(0, 0, 0, 0.1), transparent),
        radial-gradient(1px 1px at 80px 120px, rgba(0, 0, 0, 0.05), transparent),
        radial-gradient(1px 1px at 110px 10px, rgba(0, 0, 0, 0.1), transparent);
    background-size: 200px 200px;
}

.dark .starfield-bg {
    background-image:
        radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 50px 160px, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 80px 120px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 110px 10px, rgba(255, 255, 255, 0.4), transparent);
}

/* Alignment Discovery Staggered Reveal */
.valign-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    font-size: 10px;
    font-weight: 700;
    color: #4b5563;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dark .valign-tag {
    background: rgba(255, 255, 255, 0.05);
    color: #9ca3af;
}

.valign-tag.reveal {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

.alignment-section-update {
    animation: premium-section-flash 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes premium-section-flash {
    0% {
        background-color: rgba(var(--primary-rgb), 0.2);
        filter: brightness(1.2);
    }

    100% {
        background-color: transparent;
        filter: brightness(1);
    }
}

/* Guest Beat CTA */
.guest-beat-cta {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.poll-voted .guest-beat-cta {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.guest-beat-cta button {
    box-shadow: 0 10px 20px -5px rgba(var(--primary-rgb), 0.3);
}

.guest-beat-cta button:hover {
    box-shadow: 0 15px 30px -5px rgba(var(--primary-rgb), 0.5);
}