body.profile-page {
    background-color: #000;
    color: var(--text-color) !important;
    cursor: var(--custom-cursor, auto) !important;
    position: relative;
    overflow-x: hidden;
}

body.profile-page::before {
    content: '';
    position: fixed;
    inset: 0;
    /* Homepage background pattern */
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.app-container,
.content-main {
    background-color: transparent !important;
}

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    border: none;
    height: 100%;
    background: #000000ec;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 1s ease, visibility 1s;
}

.splash-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.splash-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.app-container {
    opacity: 0;
    transition: opacity 2s ease, filter 2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 2;
    /* Increased z-index to be above the pattern */
}

.app-visible {
    opacity: 1;
    filter: blur(0px);
}

.profile-bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;

    background-image: var(--bg-image);
    background-size: cover;
    background-position: center;
    filter: blur(var(--bg-blur));
}

video.profile-video-bg {
    object-fit: cover;
    pointer-events: none;
    background-image: none !important;
}

/* Centered Card */
.content-main {
    flex: 0 1 auto;
    width: var(--card-width, 450px);
    padding: 0 !important;
}

.tilt-wrapper {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
    isolation: isolate;
    /* Ensures a separate stacking context for the glass inside */
}

.custom-card {
    background-color: var(--card-bg-color) !important;
    backdrop-filter: blur(var(--p-card-blur, var(--card-bg-blur, 15px))) !important;
    -webkit-backdrop-filter: blur(var(--p-card-blur, var(--card-bg-blur, 15px))) !important;
    color: var(--text-color) !important;
    text-align: center;
    border-radius: 40px !important;
    position: relative;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Dynamic Sizing & Centering */
    width: 100% !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 50px 30px !important;
    box-sizing: border-box;
    overflow: hidden;
}



/* Discord Status Dot */
.avatar-sm.avatar-large {
    position: relative !important;
}

.discord-status-dot {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 4px solid var(--card-bg-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 20;
}

.status-online {
    background-color: #23a55a;
}

.status-idle {
    background-color: #f0b232;
}

.status-dnd {
    background-color: #f23f43;
}

.status-offline {
    background-color: #80848e;
}

.status-streaming {
    background-color: #593695;
}

.custom-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, var(--card-frost-opacity)) 0%,
            rgba(255, 255, 255, calc(var(--card-frost-opacity) * 0.4)) 25%,
            transparent 50%,
            rgba(255, 255, 255, calc(var(--card-frost-opacity) * 0.2)) 75%,
            rgba(255, 255, 255, var(--card-frost-opacity)) 100%);
    border-radius: inherit;
    z-index: 1;
}

.custom-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, var(--card-border-glow));
    mask-image: linear-gradient(135deg, black, transparent 40%, transparent 60%, black);
    -webkit-mask-image: linear-gradient(135deg, black, transparent 40%, transparent 60%, black);
    z-index: 2;
}

.custom-card>* {
    position: relative;
    z-index: 10;
}

/* Premium Name Effects */
.name-pulse {
    animation: namePulse 2s infinite ease-in-out;
}

@keyframes namePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.name-shine {
    background: linear-gradient(to right, var(--name-color) 20%, #fff 40%, #fff 60%, var(--name-color) 80%);
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.name-rainbow {
    background: linear-gradient(to right, #ef5350, #f48fb1, #7e57c2, #2196f3, #26c6da, #43a047, #eeff41, #f9a825, #ff5722);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 400% 400%;
    animation: rainbow 5s ease infinite;
}

@keyframes rainbow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Avatar Ring */
.avatar-ring {
    position: relative;
}

.avatar-ring::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 2px solid var(--ring-color);
    border-radius: var(--avatar-radius);
    animation: ringGlow 2s infinite;
    opacity: 0.6;
}

@keyframes ringGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Background Effects - Removed static patterns, now handled by ParticleEngine */
.bg-effect-layer {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.6;
    /* Balanced for premium feel */
}

#particle-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Typewriter Effect */
.typewriter {
    display: inline-block;
    overflow: hidden;
    border-right: .15em solid var(--name-color);
    white-space: nowrap;
    margin: 0;
    letter-spacing: .05em;
    width: 0;
    animation:
        typing 3.5s steps(40, end),
        blink-caret .75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--name-color);
    }
}

/* Glitch Effect */
.name-glitch {
    position: relative;
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.05em 0 rgba(0, 255, 0, 0.75), 0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: glitch 500ms infinite;
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.05em -0.025em 0 rgba(0, 255, 0, 0.75), -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }

    14% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75), -0.05em -0.025em 0 rgba(0, 255, 0, 0.75), -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }

    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75), 0.025em 0.025em 0 rgba(0, 255, 0, 0.75), -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }

    49% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75), 0.025em 0.025em 0 rgba(0, 255, 0, 0.75), -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }

    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75), 0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }

    99% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75), 0.05em 0 0 rgba(0, 255, 0, 0.75), 0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }

    100% {
        text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75), -0.025em -0.025em 0 rgba(0, 255, 0, 0.75), -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
}

/* Fire Effect */
.name-fire {
    color: #ffaa00 !important;
    text-shadow: 0 0 10px #ff0000, 0 0 20px #ffaa00, 0 0 30px #ff0000;
    animation: fire 1.5s ease-in-out infinite alternate;
}

@keyframes fire {
    0% {
        text-shadow: 0 0 10px #ff0000, 0 0 20px #ffaa00, 0 0 30px #ff0000;
    }

    100% {
        text-shadow: 0 0 20px #ff0000, 0 0 40px #ffaa00, 0 0 60px #ff0000;
        transform: translateY(-2px);
    }
}

/* Ghost Effect */
.name-ghost {
    opacity: 0.5;
    filter: blur(1px);
    animation: ghost 3s ease-in-out infinite;
}

@keyframes ghost {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
        filter: blur(2px);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.02);
        filter: blur(0px);
    }
}

/* Neon Effect */
.name-neon {
    text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px var(--name-color), 0 0 30px var(--name-color), 0 0 40px var(--name-color);
    animation: neon 1.5s ease-in-out infinite alternate;
}

@keyframes neon {
    from {
        text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 20px var(--name-color), 0 0 30px var(--name-color), 0 0 40px var(--name-color);
    }

    to {
        text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px var(--name-color), 0 0 40px var(--name-color), 0 0 50px var(--name-color);
    }
}

/* Custom Tooltip */
.u-wrapper,
.badge-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    cursor: help;
}

.u-wrapper2,
.badge-wrapper2 {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    cursor: help;
}


.u-tooltip {
    display: block;
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-color);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    z-index: 1000;
}

.u-tooltip2 {
    display: block;
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-color);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    z-index: 1000;
}

.u-wrapper:hover .u-tooltip,
.badge-wrapper:hover .u-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0px);
}

.u-wrapper2:hover .u-tooltip2,
.badge-wrapper2:hover .u-tooltip2 {
    opacity: 1;
    visibility: visible;
    transform: translateX(-73%) translateY(100px);
}


.custom-name {
    color: var(--name-color) !important;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--text-color);
    opacity: 0.6;
    transition: 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    opacity: 1;
    transform: scale(1.2);
}

.btn-edit {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 6px;
    color: var(--text-color);
    opacity: 0.5;
    text-decoration: none;
    transition: all 0.2s;
    position: fixed;
    top: 2rem;
    right: 2rem;
}

.btn-edit:hover {
    opacity: 1;
    border-color: var(--text-color);
}

.card-label {
    color: var(--text-color);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card-value {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Volume Control Top-Left */
.volume-engine {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 10001;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    padding: 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    width: 50px;
    height: 50px;
    color: var(--text-color);
}

.volume-engine:hover {
    width: 180px;
    background: rgba(0, 0, 0, 0.6);
}

.volume-slider {
    width: 0;
    opacity: 0;
    margin-left: 1rem;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.4s;
    cursor: pointer;
}

.volume-engine:hover .volume-slider {
    width: 100px;
    opacity: 1;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--text-color);
    border-radius: 50%;
}

/* Card Stats Styling */
.footer-stat {
    position: absolute;
    bottom: 1.5rem;
    font-size: 0.9rem;
    opacity: 1;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

.stat-left {
    left: 2.5rem;
}

.stat-right {
    right: 2.5rem;
}

/* Utility Classes for profile.php Cleanup */
.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.card-padding {
    padding: 3rem 2.5rem;
    border-radius: 30px;
}

.flex-center-column {
    display: flex;
    flex-direction: column;
    gap: 15px;

    align-items: center;
    position: relative;
    z-index: 1;
}

.avatar-large {
    width: 150px;
    height: 150px;
    font-size: 4rem;
    border-radius: var(--avatar-radius);
    color: var(--text-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.display-name-styled {
    border: none;
    margin: 0;
    font-size: 2.2rem;
    font-family: var(--profile-font), 'Outfit', sans-serif !important;
    font-weight: 700 !important;
}

.badge-img {
    width: 30px;
    height: 30px;

    vertical-align: middle;
    object-fit: contain;
    border-radius: 4px;
}

.badge-icon {
    font-size: 1.2rem;
    color: #00a8ff;
    margin-left: 10px;
}

.mr-5 {
    margin-right: 5px;
}

.premium-pop {
    animation: premiumPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation-delay: 1.5s;
}

@keyframes premiumPop {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

/* --- PREMIUM FEATURES --- */
.bio-typewriter {
    border-right: 2px solid var(--accent);
    animation: bio-cursor 0.8s infinite step-start;
}

@keyframes bio-cursor {
    50% {
        border-color: transparent
    }
}

.bio-rainbow {
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff);
    background-size: 400% 400%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbow 5s ease infinite !important;
}

.bio-neon {
    color: #fff;
    text-shadow: 0 0 5px #fff, 0 0 10px #00a8ff, 0 0 15px #00a8ff, 0 0 20px #00a8ff;
    animation: neon-pulse 1.5s ease-in-out infinite alternate;
}

.avatar-frame {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    border-radius: var(--avatar-radius);
    pointer-events: none;
    z-index: 2;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.frame-gold {
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.frame-silver {
    border-color: #c0c0c0;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.4);
}

.frame-neon {
    border-color: #00a8ff;
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.6);
    animation: neon-pulse 2s infinite alternate;
}

.frame-royal {
    border-color: #8e44ad;
    box-shadow: 0 0 15px rgba(142, 68, 173, 0.5);
}

.frame-rainbow {
    border-color: transparent;
    background: linear-gradient(var(--card-bg-color), var(--card-bg-color)) padding-box,
        linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8b00ff) border-box;
    border: 3px solid transparent;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.frame-fire {
    border-color: #ff4500 !important;
    box-shadow: 0 0 15px #ff4500, inset 0 0 8px #ff8c00;
    animation: fire-pulse 1.5s infinite alternate;
}

.frame-frozen {
    border-color: #afeeee !important;
    box-shadow: 0 0 20px rgba(175, 238, 238, 0.6), inset 0 0 10px #fff;
}

.frame-emerald {
    border-color: #50c878 !important;
    box-shadow: 0 0 15px rgba(80, 200, 120, 0.5), inset 0 0 5px #000;
}

.frame-shadow {
    border-color: #1a1a1a !important;
    box-shadow: 0 0 25px #000;
    opacity: 0.9;
}

.frame-hexagon {
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: linear-gradient(45deg, var(--accent), #fff);
    opacity: 0.5;
    border: none !important;
}

.frame-rotating {
    border: 3px solid transparent !important;
    background: linear-gradient(45deg, var(--accent) 0%, transparent 50%, var(--accent) 100%) border-box;
    animation: rotate-frame 3s linear infinite;
    box-shadow: 0 0 15px var(--accent);
}

.frame-double {
    border: 2px solid #fff !important;
    box-shadow: 0 0 0 4px var(--accent), 0 0 15px var(--accent);
}

@keyframes rotate-frame {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes fire-pulse {
    from {
        box-shadow: 0 0 10px #ff4500, inset 0 0 5px #ff8c00;
    }

    to {
        box-shadow: 0 0 25px #ff4500, inset 0 0 12px #ff8c00;
    }
}

/* --- NAME EFFECTS --- */
.name-shake {
    animation: shake-ani 0.3s infinite;
    display: inline-block;
}

.name-bounce {
    animation: bounce-ani 0.5s infinite alternate;
    display: inline-block;
}

.name-sparkle {
    text-shadow: 0 0 10px #fff, 0 0 20px #fff;
    animation: sparkle-ani 1.5s infinite;
}

@keyframes shake-ani {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(2px, 2px);
    }

    50% {
        transform: translate(-2px, -2px);
    }

    75% {
        transform: translate(-2px, 2px);
    }
}

/* --- MODERN PLAYER --- */
.modern-player {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
    border-radius: 16px;
    padding: 15px 20px;
    width: 280px;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
    animation: player-slide 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes player-slide {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.player-disc {
    font-size: 1.5rem;
    color: var(--accent);
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.song-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--profile-font);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    min-width: 30px;
    font-family: 'JetBrains Mono', monospace;
}

.progress-container {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.progress-container:hover .progress-bar {
    background: #fff;
    box-shadow: 0 0 10px var(--accent);
}

@media (max-width: 768px) {
    .modern-player {
        bottom: 20px;
        left: 20px;
        right: 20px;
        width: auto;
    }
}

@keyframes bounce-ani {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-8px);
    }
}

@keyframes sparkle-ani {

    0%,
    100% {
        opacity: 1;
        filter: brightness(1.2);
    }

    50% {
        opacity: 0.7;
        filter: brightness(0.8);
    }
}

.embed-section {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    border-radius: 15px;
    overflow: hidden;
}

/* --- OLD TV EFFECT --- */
.bg-effect-layer.effect-oldtv {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.05), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.05));
    background-size: 100% 2px, 3px 100%;
    animation: tv-flicker 0.1s infinite alternate;
}

@keyframes tv-flicker {
    0% {
        opacity: 0.95;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.98;
    }
}

.embed-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.embed-card iframe {
    width: 100%;
    display: block;
    border: none;
}

.custom-badge-top-right {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 1000;
}

.discord-connection {
    display: flex;
    align-items: center;
    gap: 1rem;

    /* Üstten ışık vurgusu */
    border-radius: 16px;
    margin-top: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.discord-connection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}



.d-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.d-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 70px;
    padding: 14px 18px;
    backdrop-filter: blur(25px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
    border: 1px solid var(--border, rgba(255, 255, 255, 0.1)) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    /* Üstten ışık vurgusu */
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    background-color: rgba(255, 255, 255, 0.02);
}

.d-avatar {
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.discord-connection:hover .d-avatar {
    transform: rotate(5deg);
}

.d-status-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #1a1a1a;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.status-online {
    background-color: #23a559;
}

.status-idle {
    background-color: #f0b232;
}

.status-dnd {
    background-color: #f23f43;
}

.status-offline {
    background-color: #80848e;
}

.d-info {
    flex-grow: 1;
    min-width: 0;
}

.d-tag {
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.d-badges {
    display: flex;
    gap: 5px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.d-badges i {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

/* Discord Presence & Integration */
/* Music Player & Discord Stacking Fix */
.modern-player {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 9998;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 12px 20px;
    min-width: 280px;
    animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.discord-floating {
    position: fixed !important;
    z-index: 9999 !important;
    margin: 0 !important;
    /* Manual positioning via bottom/left etc */
    width: 280px;
    animation: floatIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.discord-floating.top-left {
    top: 25px;
    left: 25px;
}

.discord-floating.top-right {
    top: 25px;
    right: 25px;
}

.discord-floating.bottom-left {
    bottom: 25px;
    left: 25px;
}

.discord-floating.bottom-right {
    bottom: 25px;
    right: 25px;
}

/* Shift if music is in the same spot (Calculated in PHP) */
.discord-shifted-left {
    left: 325px !important;
}

.discord-shifted-right {
    right: 325px !important;
}

/* Responsive adjustments for floating */
@media (max-width: 768px) {
    .discord-floating {
        position: relative !important;
        width: 100% !important;
        margin: 20px 0 !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        animation: none;
    }
}

.discord-connection {
    display: flex;
    flex-direction: row;
    /* Force horizontal layout */
    align-items: flex-start;
    /* Align to top */
    gap: 12px;
    margin-top: 2rem;
    transition: 0.3s;
    width: fit-content;
}

.d-main,
.d-activity-card {
    height: 70px;
    /* Fixed height for uniformity */
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 12px 18px;
    backdrop-filter: blur(25px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.d-activity-card {
    min-width: 200px;
    max-width: 300px;
}

.d-activity-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.d-activity-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.d-act-type {
    font-size: 0.55rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.d-act-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
}

.d-act-details {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .discord-connection {
        flex-direction: column !important;
        align-items: flex-start;
        width: 100%;
    }

    .d-main,
    .d-activity-card {
        width: 100%;
        max-width: 100%;
    }
}