/*
    ==========================================================================
    INFINITY PROFILE "SOVEREIGN v7.0 THE EMPEROR" (CINEMATIC)
    ==========================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Montserrat:wght@400;500;700;900&display=swap');

:root {
    /* IMPERIAL COLOR MATRIX v7.0 */
    --text-start: #ffffff;
    --text-end: #f59e0b;
    --border-start: #ffffff;
    --border-end: #000000;
    
    /* GLOW INFRASTRUCTURE */
    --card-glow-start: #ffffff22;
    --card-glow-end: #000000;
    --border-glow-start: #ffffff;
    
    --bg-glow-start: #000000;
    --bg-glow-end: #0a0a0a;
    
    /* UI TOKENS */
    --accent-primary: #ffffff;
    --accent-glow: rgba(250, 204, 21, 0.45);
    --bg-master: #020202;
    --card-glass: rgba(12, 12, 12, 0.25);
    --border-luxe: rgba(255, 255, 255, 0.15);
    
    --icon-start: #ffffff;
    --icon-end: #ffffff;
    
    --text-high: #ffffff;
    --text-mid: #9ca3af;
    --text-low: #4b5563;
    
    --ease-v7: cubic-bezier(0.16, 1, 0.3, 1);

    /* AUDIO REACTIVE INITIALS */
    --bass-scale: 1;
    --bass-blur: 0px;
    --bass-glow: 0px;
    --bass-rotate: 0deg;
}

* { margin:0; padding:0; box-sizing:border-box; outline:none; cursor: inherit; }
html, body { cursor: default; }

body.sovereign-master {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    background: var(--bg-master);
    color: var(--text-high);
    font-family: 'Poppins', sans-serif;
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), 
                transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), 
                filter 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform: scale(1);
    display: block; /* Default to block for normal scrolling */
}

/* HOMEPAGE SPECIFIC (Pinned Layout) */
body.sovereign-master.is-homepage {
    display: grid;
    place-items: center;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
}

/* 
    ==========================================================================
    CINEMATIC TRANSITION SYSTEM v8.0
    ==========================================================================
*/

body.page-exit {
    opacity: 0;
    transform: scale(0.85) rotateX(10deg) translateY(-20px);
    filter: blur(25px) brightness(1.5) contrast(1.2);
}

body.page-enter {
    opacity: 0;
    transform: scale(1.2) rotateX(-10deg) translateY(20px);
    filter: blur(15px) contrast(0.8);
}

/* Fallback for situations where JS might fail or we want immediate visibility for bots */
@media screen and (prefers-reduced-motion: reduce) {
    body.page-enter, body.page-exit {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
}

.transition-glitch-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: overlay;
}

@keyframes glitch-flash {
    0% { opacity: 0; transform: scale(1); }
    30% { opacity: 1; transform: scale(1.1) skew(5deg); }
    60% { opacity: 0.8; transform: scale(0.9) skew(-5deg); filter: invert(1); }
    100% { opacity: 0; transform: scale(1); }
}

.glitch-flash-active {
    animation: glitch-flash 0.5s var(--ease-v7) forwards;
}

/* 
    ==========================================================================
    BACKGROUND ENGINE v7.0
    ==========================================================================
*/
.video-bg-v7 {
    position: fixed; inset: 0; z-index: -3; overflow: hidden;
    background: #000; pointer-events: none; opacity: 0; transition: 1.5s var(--ease-v7);
}
.video-bg-v7.active { opacity: 0.65; }
.video-bg-v7 iframe, .video-bg-v7 video {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.05);
}

.bg-v7 { position: fixed; inset: 0; z-index: -2; opacity: 0.5; }
.vignette { position: fixed; inset: 0; background: radial-gradient(circle, transparent 20%, #000 100%); pointer-events: none; z-index: -1; }
.scanlines { position: fixed; inset: 0; background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03)); z-index: 10; background-size: 100% 2px, 3px 100%; pointer-events: none; }

.glow-matrix {
    position: fixed; inset: 0; z-index: -2;
    background: radial-gradient(circle at 50% 50%, var(--bg-glow-start), var(--bg-glow-end));
    opacity: 0.4; pointer-events: none;
}

/* 
    ==========================================================================
    ULTIMATE SPLASH v7.0
    ==========================================================================
*/
.splash-overlay-v7 {
    position: fixed; inset: 0; background: #000; z-index: 9999;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: opacity 1.5s var(--ease-v7), transform 1.5s var(--ease-v7), filter 1.5s var(--ease-v7), visibility 1.5s;
    opacity: 1; visibility: visible;
}
.splash-overlay-v7.splash-exited { 
    opacity: 0; pointer-events: none; transform: scale(1.15) translateY(-30px); 
    filter: blur(50px); visibility: hidden;
}

.avatar-portal-v7 {
    width: 200px; height: 200px; position: relative;
    padding: 12px; border-radius: 50%; margin-bottom: 2.5rem;
}

.portal-ring {
    position: absolute; border: 2px solid transparent;
    border-radius: 50%;
    animation: rotatePortal 12s linear infinite, animateShift 8s ease-in-out infinite alternate;
}
.portal-ring.outer { 
    inset: 0; opacity: 0.8; 
    border: 2px solid transparent;
    background: linear-gradient(#000,#000) padding-box, linear-gradient(45deg, var(--accent-primary), var(--border-end, #fff), var(--accent-primary)) border-box;
    background-size: 200% 200%;
}
.portal-ring.inner { 
    inset: 15px; animation: rotatePortal 8s linear infinite reverse, animateShift 6s ease-in-out infinite alternate; opacity: 0.6; 
    border: 2px solid transparent;
    background: linear-gradient(#000,#000) padding-box, linear-gradient(45deg, var(--border-end, #fff), var(--accent-primary), var(--border-end, #fff)) border-box;
    background-size: 200% 200%;
}

.portal-glow {
    position: absolute; inset: -15px; border-radius: 50%;
    background: radial-gradient(circle, var(--avatar-glow, #7d3cff) 0%, transparent 70%);
    animation: pulseGlow 4s ease-in-out infinite;
}

.avatar-v7-img { 
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover; 
    border: 3px solid rgba(255,255,255,0.05); position: relative; z-index: 2;
    background: var(--avatar-bg, #000000);
    transition: opacity 0.6s ease;
}
/* Hide broken image icon when src is empty */
.avatar-v7-img:not([src]), .avatar-v7-img[src=""] { color: transparent; }

@keyframes rotatePortal { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulseGlow { 0%, 100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.1); } }

/* SPLASH LAYOUT — exact centering */
.splash-core-v7 {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; width: 100%; padding: 0 2rem;
}

.splash-info-v7 {
    display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.splash-info-v7 h1 {
    font-family: 'Montserrat'; font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 900; color: #fff; letter-spacing: 4px; margin: 0;
}

.splash-info-v7 p {
    font-family: 'Poppins'; font-size: 0.85rem; color: rgba(255,255,255,0.45);
    letter-spacing: 2px; margin: 0;
}

/* HUD DECORATORS */
.splash-hud-top {
    position: absolute; top: 2.5rem; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: 1.2rem; width: max-content;
}
.hud-tag { font-family: 'Montserrat'; font-size: 0.65rem; color: var(--accent-primary); letter-spacing: 3px; font-weight: 900; }
.hud-line { width: 60px; height: 1px; background: linear-gradient(90deg, var(--accent-primary), transparent); }

.splash-hud-bottom {
    position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.8rem;
}
.hud-line-long { width: 200px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-primary), transparent); }
.hud-meta { font-family: 'Montserrat'; font-size: 0.55rem; color: rgba(255,255,255,0.2); letter-spacing: 3px; font-weight: 900; }

.emperor-btn-v7 {
    background: transparent; border: 1px solid var(--border-luxe);
    color: #fff; padding: 1.4rem 5rem; border-radius: 100px;
    font-family: 'Montserrat'; font-size: 0.9rem; letter-spacing: 4px; font-weight: 900;
    cursor: pointer; position: relative; overflow: hidden; transition: 0.5s var(--ease-v7);
    margin-top: 2rem; pointer-events: auto !important; z-index: 100;
}
.emperor-btn-v7:hover { border-color: var(--accent-primary); box-shadow: 0 0 60px var(--accent-glow); transform: translateY(-5px) scale(1.05); }

/* 
    ==========================================================================
    IMPERIAL INTERFACE v7.0
    ==========================================================================
*/
.main-container-v7 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 480px; /* Reduced from 560px to push it backwards a bit */
    padding: 0 1.5rem; /* Ensures it never touches screen edges on mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 1.5s var(--ease-v7);
    /* Ensure immediate visibility for crawlers */
    opacity: 1 !important;
}
/* Global hidden utility - used for other elements */
.hidden { display: none !important; }

/* TILT WRAPPER — centers the card */
.tilt-wrapper {
    width: 100%;
    max-width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.profile-card-v7 {
    width: 100%;
    max-width: 480px;
    background: var(--card-glass);
    backdrop-filter: blur(15px); border: 1px solid var(--border-luxe);
    border-radius: 40px; overflow: visible; position: relative;
    transform-style: preserve-3d;
    flex-shrink: 0;
    will-change: transform, filter;

    /* MASTER IMPERIAL GLOW */
    box-shadow: 0 40px 120px rgba(0,0,0,0.95), 
                0 0 100px -30px var(--card-glow-start), 
                0 0 150px -60px var(--card-glow-end);
    
    animation: cardEntrance 1.5s var(--ease-v7) backwards;
    z-index: 10;

    /* AUDIO REACTIVE TRANSFORM */
    transform: translateZ(0) scale(var(--bass-scale)) rotate(var(--bass-rotate));
    filter: blur(var(--bass-blur));
    transition: transform 0.1s linear, filter 0.2s linear;
}

@property --border-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes borderSweep {
    to { --border-angle: 360deg; }
}

.profile-card-v7::before {
    content: "";
    position: absolute;
    inset: -2px;
    /* Sharp LED Sweep - 5% width */
    background: conic-gradient(from var(--border-angle), transparent 95%, var(--accent-primary) 100%);
    border-radius: 42px;
    animation: borderSweep 2s linear infinite;
    z-index: -1;
    mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
    -webkit-mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
    mask-composite: exclude;
    -webkit-mask-composite: destination-out;
    padding: 2px;
    pointer-events: none;
    box-shadow: 0 0 15px var(--accent-glow);
}



@keyframes starSlide {
    0% { margin-left: -50px; }
    100% { margin-left: 50px; }
}

@keyframes starPulse {
    0%, 100% { opacity: 0.12; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.22; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes starRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(60px) rotateX(15deg) scale(0.9); filter: blur(20px); }
    to { opacity: 1; transform: translateY(0) rotateX(0deg) scale(1); filter: blur(0); }
}

.gradient-border::before {
    content: ""; position: absolute; inset: 0; border: 3px solid transparent;
    border-radius: 40px; background: linear-gradient(45deg, var(--border-start), var(--border-end), var(--border-start)) border-box;
    background-size: 200% 200%;
    animation: animateShift 8s ease-in-out infinite alternate;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out; mask-composite: exclude;
    pointer-events: none;
    
    /* BORDER GLOW */
    filter: drop-shadow(0 0 15px var(--border-glow-start));
}

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

/* 
    ==========================================================================
    CARD CONTENT v7.0
    ==========================================================================
*/
.card-header-v7 { position: relative; border-radius: 40px 40px 0 0; }
.banner-area-v7 { height: 170px; background: linear-gradient(135deg, var(--card-glow-start), var(--card-glow-end)); opacity: 1; border-radius: 40px 40px 0 0; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%); mask-image: linear-gradient(to bottom, black 50%, transparent 100%); }
.avatar-wrap-v7 { position: absolute; bottom: -50px; left: 40px; width: 130px; height: 130px; z-index: 10; overflow: visible; }
.profile-img-v7 { position: relative; z-index: 5; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 25px rgba(255,255,255,0.3), 0 15px 45px rgba(0,0,0,0.6); transition: opacity 0.6s ease; border: 2px solid rgba(255,255,255,0.8); }
.avatar-decoration-v7 { position: absolute; top: -12%; left: -12%; width: 124%; height: 124%; pointer-events: none; z-index: 25 !important; filter: drop-shadow(0 0 8px rgba(255,255,255,0.3)); }
/* Hide broken image icon when src is empty */
.profile-img-v7:not([src]), .profile-img-v7[src=""] { color: transparent; }
.status-indicator-v7 { position: absolute; bottom: -4px; right: -4px; width: 24px; height: 24px; border-radius: 50%; border: 4px solid var(--bg-master); z-index: 30; }

.card-body-v7 { padding: 5rem 3rem 3rem; text-align: left; }

@media (max-width: 600px) {
    .card-body-v7 { padding: 4rem 1.8rem 2rem; text-align: center; }
    .avatar-wrap-v7 { left: 50%; transform: translateX(-50%); } 
    .bio-area-v7 { border-left: none; padding-left: 0; }
    .discord-badges-row { justify-content: center; }
    .badges-v7 { justify-content: center; }
}

.gradient-text {
    background: linear-gradient(45deg, var(--text-start), var(--text-end));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block; font-family: 'Montserrat'; font-size: 2.3rem; letter-spacing: 4px;
    text-shadow: 0 0 30px var(--name-glow-start, var(--accent-glow));
}

.name-pulse { animation: nameGlowPulse 5s ease-in-out infinite; }
@keyframes nameGlowPulse { 0%, 100% { filter: drop-shadow(0 0 5px var(--name-glow-start, var(--accent-glow))); } 50% { filter: drop-shadow(0 0 25px var(--name-glow-end, var(--accent-glow))); } }

.bio-area-v7 { margin: 2rem 0; color: var(--text-mid); font-weight: 500; font-size: 0.95rem; line-height: 1.7; border-left: 2px solid var(--accent-primary); padding-left: 1.5rem; }

/* DISCORD REAL BADGES ROW */
.discord-badges-row {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin: 0 0 1rem 0;
}
.d-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px; padding: 4px 10px; font-size: 0.72rem;
    font-family: 'Montserrat'; letter-spacing: 1px; color: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    transition: background 0.2s;
}
.d-badge:hover { background: rgba(255,255,255,0.1); }
.d-badge img { width: 16px; height: 16px; object-fit: contain; }

/* GUILD WIDGET */
.guild-widget {
    display: flex; align-items: center; gap: 12px;
    background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 10px 16px; margin: 0 0 1.5rem 0;
    max-width: 340px; backdrop-filter: blur(20px);
    transition: border-color 0.3s;
}
.guild-widget:hover { border-color: var(--accent-primary); }
.guild-icon {
    width: 44px; height: 44px; border-radius: 12px; object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1); flex-shrink: 0;
    background: var(--accent-primary);
}
.guild-icon-placeholder {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--card-glow-end, #000));
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 900; color: #fff; font-family: 'Montserrat';
}
.guild-info { display: flex; flex-direction: column; gap: 2px; }
.guild-label { font-size: 0.6rem; font-family: 'Montserrat'; letter-spacing: 2px; color: var(--accent-primary); opacity: 0.8; }
.guild-name { font-size: 0.88rem; font-weight: 600; color: #fff; }


/* RICH PRESENCE v8.0 "GUNS.LOL" STYLE */
.presence-container-v7 { 
    margin: 1.5rem 0 2rem 0 !important; 
    width: 100% !important; 
    display: block !important; 
    min-height: 10px;
    z-index: 9999 !important;
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
}
.p-card { 
    background: rgba(0, 0, 0, 0.8) !important; 
    border: 1px solid rgba(255, 255, 255, 0.1) !important; 
    border-radius: 20px; 
    padding: 1rem 1.4rem; 
    margin: 0 auto 0.8rem auto !important; 
    max-width: 380px !important;
    position: relative; 
    overflow: hidden; 
    display: flex !important; 
    align-items: center; 
    justify-content: space-between;
    gap: 1.2rem;
    backdrop-filter: blur(30px);
    box-shadow: 0 20px 80px rgba(0,0,0,0.7);
    animation: pFadeIn 0.5s var(--ease-v7) forwards;
    z-index: 10000 !important;
    pointer-events: auto !important;
}
.presence-container-v7.hidden { display: none !important; }
@keyframes pFadeIn { from { opacity: 0; transform: scale(0.98); } to { opacity: 1; transform: scale(1); } }

.p-left { display: flex; align-items: center; gap: 1.2rem; flex: 1; min-width: 0; }
.p-avatar-wrap { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.p-av-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.p-av-status { 
    position: absolute; bottom: -2px; right: -2px; width: 22px; height: 22px; 
    border-radius: 50%; border: 3px solid #0a0a0a;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: #fff;
}
.p-av-status.online { background: #22c55e; }
.p-av-status.idle { background: #f59e0b; }
.p-av-status.dnd { background: #ef4444; }
.p-av-status.offline { background: #4b5563; }

.p-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.p-name-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.2rem; }
.p-n-text { font-family: 'Poppins'; font-weight: 800; font-size: 1rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-n-badge-row { display: flex; align-items: center; gap: 0.4rem; height: 20px; }

.p-info-row { font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-info-row span { color: #fff; font-weight: 700; }
.p-sub-row { font-size: 0.8rem; color: rgba(255,255,255,0.5); font-weight: 500; }

.p-right { width: 64px; height: 64px; flex-shrink: 0; border-radius: 12px; overflow: hidden; }
.p-art-img { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }

/* SPOTIFY EXTRA */
.spotify-active .p-info-row span { color: #1db954; }
.spotify-progress-wrap { position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: rgba(255,255,255,0.05); }
.spotify-progress-bar { height: 100%; background: #1db954; width: 0%; transition: width 1s linear; }

/* DISCORD PREFERENCES REVISION V8.0 */
.discord-prefs-v8 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.v8-pref-widget {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px; padding: 1.2rem;
    display: flex; flex-direction: column; gap: 0.5rem;
    transition: 0.4s var(--ease-v7);
    position: relative; overflow: hidden;
    z-index: 1000 !important;
}
.v8-pref-widget:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}
.pref-label {
    font-family: 'Montserrat'; font-size: 0.6rem; color: var(--accent-primary);
    font-weight: 900; letter-spacing: 2px; display: flex; align-items: center; gap: 0.5rem;
    opacity: 0.9;
}
.pref-val {
    font-family: 'Poppins'; font-size: 0.85rem; color: #fff; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pref-val .status-dot-mini { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }

.guild-box { display: flex; align-items: center; gap: 1rem; }
.guild-icon { width: 28px; height: 28px; border-radius: 8px; box-shadow: 0 0 15px rgba(0,0,0,0.5); }

.social-grid-v7 { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 3rem; }
.social-item { width: 50px; height: 50px; background: rgba(255,255,255,0.03); border: 1px solid var(--border-luxe); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; transition: 0.4s var(--ease-v7); font-size: 1.2rem; pointer-events: auto !important; }
.social-item:hover { transform: translateY(-8px) rotate(5deg); border-color: var(--accent-primary); box-shadow: 0 10px 30px var(--accent-glow); color: var(--accent-primary); }

.card-footer-v7 { padding: 1.8rem 3rem; background: rgba(0,0,0,0.3); border-top: 1px solid var(--border-luxe); }
.footer-hud { display: flex; justify-content: space-between; align-items: center; font-size: 0.7rem; color: var(--text-low); font-weight: 850; letter-spacing: 1.5px; }

/* CUSTOM SCROLLBAR */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-master); }
::-webkit-scrollbar-thumb { background: var(--border-luxe); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

/* =========================================
   GUNS.LOL PRO FEATURES v7.0 
   ========================================= */

/* BADGES */
.badges-v7 {
    display: flex; gap: 0.6rem; align-items: center; justify-content: flex-start;
    margin-top: 0.8rem; margin-bottom: 0.5rem; flex-wrap: wrap;
}
.badge-item {
    width: 28px; height: 28px; background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-luxe); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 0.85rem; cursor: pointer; transition: 0.3s var(--ease-v7);
    position: relative;
}
.badge-item:hover {
    background: rgba(255,255,255,0.1); border-color: var(--accent-primary);
    transform: translateY(-3px); box-shadow: 0 5px 15px var(--accent-glow);
    color: var(--accent-primary);
}
.badge-item::after {
    content: attr(data-tooltip); position: absolute; bottom: 130%; left: 50%;
    transform: translateX(-50%) translateY(10px); background: #000;
    color: #fff; font-family: 'Poppins'; font-size: 0.65rem; padding: 4px 8px;
    border-radius: 6px; border: 1px solid var(--border-luxe); white-space: nowrap;
    opacity: 0; pointer-events: none; transition: 0.3s var(--ease-v7);
    font-weight: 600; box-shadow: 0 4px 10px rgba(0,0,0,0.5); z-index: 100;
}
.badge-item:hover::after {
    opacity: 1; transform: translateX(-50%) translateY(0);
}

/* TYPEWRITER BIO */
.typewriter-cursor {
    display: inline-block; width: 8px; height: 1.1em; background-color: var(--accent-primary);
    vertical-align: text-bottom; margin-left: 2px;
    animation: blinkCursor 0.8s step-end infinite;
}
@keyframes blinkCursor { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* EYE LOOK ANIMATION */
.fa-eye {
    display: inline-block;
    animation: eyeLook 4s ease-in-out infinite;
}

@keyframes eyeLook {
    0%, 100% { transform: translate(0, 0) scale(1); filter: drop-shadow(0 0 5px #fff); }
    25% { transform: translate(2px, -1px) scale(1.05); filter: drop-shadow(0 0 10px #ff0000); }
    50% { transform: translate(-1.5px, 1.5px) scale(0.95); filter: drop-shadow(0 0 5px #fff); }
    75% { transform: translate(-2px, -1px) scale(1.05); filter: drop-shadow(0 0 10px #ff0000); }
}

/* VIEWS COUNTER */
.view-counter-v7 {
    margin-top: 3rem; text-align: center; width: 100%; border-top: 1px dashed rgba(255,255,255,0.1);
    padding-top: 1.5rem; font-family: 'Poppins'; font-size: 0.8rem; color: var(--text-mid);
    letter-spacing: 2px; display: flex; align-items: center; justify-content: center; gap: 0.8rem;
}
.view-counter-v7 i { color: var(--accent-primary); font-size: 1rem; filter: drop-shadow(0 0 10px var(--accent-glow)); }
.view-counter-v7 span { color: #fff; font-weight: 700; font-family: 'Montserrat'; font-size: 1.1rem; }

/* DISCORD PREFS v8.0 1-COLUMN ADAPTATION */
.discord-prefs-v8 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem;
    margin-top: 1.5rem;
}

canvas.bg-v7 { position: fixed; inset: 0; z-index: -2; width: 100vw; height: 100vh; pointer-events: none; }

/* IMPERIAL HEARTBEAT v8.2 */
@keyframes avatarPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 15px var(--accent-glow); }
    50% { transform: scale(1.05); box-shadow: 0 0 45px var(--accent-primary); }
}

/* CARD SHIMMER */
@keyframes cardShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.profile-card-v7::after {
    content: ""; position: absolute; inset: -1px; border-radius: 40px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    background-size: 200% 100%;
    animation: cardShimmer 6s linear infinite;
    pointer-events: none; z-index: 5;
}

/* =========================================
   INFO PAGE & DOSSIER v7.0 
   ========================================= */

.info-btn-wrap {
    cursor: pointer;
    transition: 0.3s var(--ease-v7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    margin: 0 10px;
}

.info-icon-v7 {
    font-size: 1.1rem;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 8px var(--accent-glow));
    transition: 0.3s var(--ease-v7);
}

.info-btn-wrap:hover .info-icon-v7 {
    transform: scale(1.2) rotate(15deg);
    filter: drop-shadow(0 0 15px var(--accent-primary));
}

/* =========================================
   INFO PAGE & ABOUT LAYOUT v8.0 
   ========================================= */

.about-container {
    width: 100%;
    max-width: 1100px;
    margin: 15vh auto;
    padding: 0 4rem;
    position: relative;
    z-index: 100;
}

.about-layout {
    display: flex;
    align-items: center;
    gap: 5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: aboutEntrance 1.5s var(--ease-v7) forwards;
}

@keyframes aboutEntrance {
    to { opacity: 1; transform: translateY(0); }
}

.about-left {
    flex-shrink: 0;
    position: relative;
}

.about-avatar-wrap {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    position: relative;
    overflow: visible;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: contrast(1.1) brightness(0.9);
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
}

.about-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
}

.about-label {
    font-family: 'Montserrat';
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.about-title {
    font-family: 'Montserrat';
    font-size: 5rem;
    font-weight: 950;
    color: #fff;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: -0.5rem;
    line-height: 1;
}

.about-description {
    font-family: 'Poppins';
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    max-width: 600px;
    min-height: 100px;
}

.about-description b {
    color: #fff;
    font-weight: 700;
}

.typewriter-cursor-info {
    display: inline-block;
    width: 12px;
    height: 1.5rem;
    background: var(--accent-primary);
    vertical-align: middle;
    margin-left: 5px;
    animation: blinkCursor 0.8s step-end infinite;
}

.back-btn-v8 {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--accent-primary);
    text-decoration: none;
    font-family: 'Montserrat';
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    transition: 0.3s var(--ease-v7);
    width: fit-content;
}

.back-btn-v8:hover {
    transform: translateX(-10px);
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

@media (max-width: 1024px) {
    .about-layout { flex-direction: column; text-align: center; gap: 3rem; }
    .about-right { align-items: center; }
    .about-title { font-size: 3.5rem; }
    .about-label { font-size: 1.6rem; }
    .about-container { margin: 10vh auto; }
}

/* =========================================
   TIKTOK BACKGROUND WATERMARK v9.0 
   ========================================= */

.background-watermark {
    position: fixed;
    top: 55%;
    right: -10%;
    transform: translate(-50%, -50%) rotateY(-25deg) rotateX(15deg);
    z-index: -1;
    pointer-events: none;
    user-select: none;
    opacity: 0.05;
    perspective: 1000px;
    animation: float3d 20s ease-in-out infinite alternate;
}

@keyframes float3d {
    0% { transform: translate(-50%, -52%) rotateY(-25deg) rotateX(15deg); }
    100% { transform: translate(-48%, -48%) rotateY(-35deg) rotateX(25deg); }
}

.tiktok-card-3d {
    width: 500px;
    height: 700px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    backdrop-filter: blur(5px);
}

.tiktok-card-3d i {
    font-size: 8rem;
    color: #fff;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.2));
}

.tk-header-v9 {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}

.ac-now-playing {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden; /* CRITICAL for marquee */
    white-space: nowrap;
    width: 150px; /* FIXED width to force overflow */
}

.ac-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    display: inline-block;
}

.ac-artist {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    display: inline-block;
}

/* MARQUEE SYSTEM v8.0 */
.marquee-active {
    animation: marquee 10s linear infinite;
    display: inline-block;
    padding-left: 100%; /* Start from outside */
}

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

.ac-listening-label {
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #1ed760; /* Spotify Green */
    text-transform: uppercase;
    margin-bottom: 3px;
    display: none; /* Only show when syncing */
}

.tk-stats {
    display: flex;
    gap: 40px;
    margin: 30px 0;
}

.tk-bio-v9 {
    text-align: center;
    font-family: 'Poppins';
    font-size: 1rem;
    line-height: 1.6;
    color: #fff;
    opacity: 0.6;
    max-width: 80%;
}

.tk-stat-item {
    text-align: center;
}

.tk-stat-val { font-size: 1.5rem; font-weight: 800; color: #fff; }
.tk-stat-lbl { font-size: 0.8rem; opacity: 0.6; font-family: 'Poppins'; letter-spacing: 2px; }

/* =========================================
   SOCIAL SIDEBAR v10.0 
   ========================================= */

.social-sidebar-v10 {
    position: fixed;
    left: 4rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1000;
    transition: 0.8s var(--ease-v7);
}

.social-sidebar-v10.closed {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(-40px);
}

.sidebar-item {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    backdrop-filter: blur(20px);
    transition: 0.5s var(--ease-v7);
    position: relative;
    opacity: 1;
    transform: translateX(0);
}

.social-sidebar-v10.closed .sidebar-item {
    opacity: 0;
    transform: translateX(-20px);
}

/* Staggered Entrance */
.social-sidebar-v10:not(.closed) .sidebar-item:nth-child(1) { transition-delay: 0.1s; }
.social-sidebar-v10:not(.closed) .sidebar-item:nth-child(2) { transition-delay: 0.2s; }
.social-sidebar-v10:not(.closed) .sidebar-item:nth-child(3) { transition-delay: 0.3s; }
.social-sidebar-v10:not(.closed) .sidebar-item:nth-child(4) { transition-delay: 0.4s; }
.social-sidebar-v10:not(.closed) .sidebar-item:nth-child(5) { transition-delay: 0.5s; }

.sidebar-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.05));
    opacity: 0;
    transition: 0.4s;
}

.sidebar-item:hover {
    transform: translateX(10px) scale(1.1);
    background: rgba(250, 204, 21, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px var(--accent-glow);
    color: var(--accent-primary);
}

.sidebar-item:hover::before {
    opacity: 1;
}

.sidebar-item i {
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2));
    transition: 0.4s;
}

.sidebar-item:hover i {
    filter: drop-shadow(0 0 15px var(--accent-primary));
}

.sidebar-item::after {
    content: attr(data-label);
    position: absolute;
    left: 140%;
    opacity: 0;
    background: #000;
    color: var(--accent-primary);
    font-family: 'Montserrat';
    font-size: 0.65rem;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--accent-primary);
    white-space: nowrap;
    transition: 0.3s var(--ease-v7);
    pointer-events: none;
    letter-spacing: 2px;
    z-index: 100;
}

.sidebar-item:hover::after {
    opacity: 1;
    left: 120%;
}

@media (max-width: 1280px) {
    .social-sidebar-v10 { left: 1.5rem; }
    .sidebar-item { width: 50px; height: 50px; font-size: 1.2rem; }
}

@media (max-width: 768px) {
    .social-sidebar-v10 {
        position: relative;
        left: unset;
        top: unset;
        transform: none;
        flex-direction: row;
        justify-content: center;
        margin-top: 3rem;
        animation: aboutEntrance 1.5s var(--ease-v7) backwards;
    }
    .sidebar-item:hover { transform: translateY(-5px) scale(1.1); }
    .sidebar-item::after { display: none; }
}

/* =========================================
   INTERACTIVE ELEMENTS v11.0 
   ========================================= */

/* Cursor Glow Effect */
#cursorGlow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -2;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    transition: opacity 0.5s ease;
}

/* Sidebar Toggle */
.sidebar-toggle-btn {
    position: fixed;
    left: 4.5rem;
    top: 5rem;
    z-index: 1001;
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    transition: 0.4s var(--ease-v7);
    box-shadow: 0 0 20px var(--accent-glow);
}

.sidebar-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--accent-primary);
}

.social-sidebar-v10.closed {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) translateX(-100px);
}

/* Profile Decorations (Angry Mark, Bubble, Rings) */
.decor-rings {
    position: absolute;
    inset: -15px;
    border: 2px solid rgba(239, 68, 68, 0.15);
    border-radius: 50%;
    pointer-events: none;
    animation: ringsPulse 3s infinite alternate;
}

.decor-rings::after {
    content: "";
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: 50%;
}

@keyframes ringsPulse {
    from { transform: scale(1); opacity: 0.2; }
    to { transform: scale(1.05); opacity: 0.4; }
}

/* Profile Decorations Refined v13.0 */
.decor-arcs-v13 {
    position: absolute;
    inset: -22px;
    pointer-events: none;
    z-index: 5;
    animation: arcsRotate 10s linear infinite;
}

.decor-arcs-v13 div {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.arc-top {
    border: 3px solid transparent;
    border-top-color: #ef4444;
    border-left-color: #ef4444;
    opacity: 0.8;
}

.arc-bottom {
    border: 3px solid transparent;
    border-bottom-color: #ef4444;
    border-right-color: #ef4444;
    opacity: 0.6;
}

@keyframes arcsRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.decor-angry {
    position: absolute;
    top: -5px;
    right: -15px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    animation: angryShake 0.4s infinite alternate ease-in-out;
}

.decor-angry i {
    font-size: 3rem;
    color: #ef4444;
    filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0.8));
    -webkit-text-stroke: 1px #000;
}

@keyframes angryShake {
    from { transform: scale(1) rotate(-5deg); }
    to { transform: scale(1.15) rotate(5deg); }
}

.decor-bubble {
    position: absolute;
    bottom: 25px;
    left: -20px;
    width: 65px;
    height: 65px;
    background: #fff;
    border: 4px solid #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat';
    font-size: 2.2rem;
    font-weight: 950;
    color: #000;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.4);
    z-index: 15;
}

.decor-bubble::after {
    content: "";
    position: absolute;
    bottom: -12px;
    right: 18px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-right: 4px solid #111;
    border-bottom: 4px solid #111;
    transform: rotate(45deg);
}



/* =========================================
   TIKTOK BACKGROUND AVATAR & GLOW 
   ========================================= */

.tk-avatar-wrap {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 10px;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.03);
}

.tk-avatar-wrap::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid var(--accent-primary);
    opacity: 0.1;
    animation: floatGlow 3s ease-in-out infinite alternate;
}

@keyframes floatGlow {
    from { opacity: 0.05; transform: scale(1); }
    to { opacity: 0.2; transform: scale(1.1); }
}

.tk-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0.5;
}

@keyframes blinkText { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }
.blink-text { animation: blinkText 2.2s infinite; }

.social-links-v7 { display: flex; justify-content: center; gap: 25px; margin-top: 20px; margin-bottom: 25px; } .social-item { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); color: #fff; border-radius: 12px; text-decoration: none; font-size: 1.2rem; transition: all 0.3s; box-shadow: 0 0 10px rgba(255,255,255,0.2); } .social-item:hover { background: #fff; color: #000; transform: translateY(-3px); box-shadow: 0 0 20px rgba(255,255,255,0.8); }

.profile-name-v7 { 
    font-family: 'UnifrakturMaguntika', 'Poppins', cursive, sans-serif !important;
    background: linear-gradient(135deg, #d5c0a2, #dcdddc) !important; 
    -webkit-background-clip: text !important; 
    background-clip: text !important; 
    color: transparent !important; 
    font-size: 2.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-shadow: 0 0 10px rgba(213, 192, 162, 0.4) !important; 
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2)) !important; 
    -webkit-text-fill-color: transparent !important; 
    animation: namePulse 3s infinite alternate;
}

@keyframes namePulse {
    0% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.4); }
    100% { text-shadow: 0 0 25px rgba(255, 255, 255, 0.9), 0 0 45px rgba(255, 255, 255, 0.3); }
}

.telemetry-card { padding: 15px; background: rgba(255, 255, 255, 0.03); border-right: 1px solid rgba(255, 255, 255, 0.1); border-top: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; min-width: 0; display: flex; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.05); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); perspective: 1000px; transform-style: preserve-3d; }
.spotify-card:hover { transform: perspective(1000px) rotateY(-12deg) translateY(-8px) scale(1.02); border-color: rgba(30, 215, 96, 0.4); box-shadow: 0 20px 40px rgba(0,0,0,0.7), 0 0 20px rgba(30, 215, 96, 0.1); }
.activity-card:hover { transform: perspective(1000px) rotateY(12deg) translateY(-8px) scale(1.02); border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 20px 40px rgba(0,0,0,0.7), 0 0 20px rgba(255, 255, 255, 0.1); }

/* =========================================
   MOBILE MASTER OPTIMIZATION v8.0 
   ========================================= */
@media (max-width: 900px) {
    /* Hero Grid for info.html */
    .hero-grid {
        display: flex !important;
        flex-direction: column !important;
        padding-top: 80px !important;
        gap: 30px !important;
    }
}

@media (max-width: 600px) {
    /* Safe padding at the bottom so content doesn't get hidden behind bottom nav */
    html, body {
        padding-bottom: 80px !important; 
    }

    /* Universal Side Nav (Move to bottom!) */
    .side-nav {
        top: auto !important;
        bottom: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        flex-direction: row !important;
        width: 90% !important;
        max-width: 400px !important;
        border-radius: 40px !important;
        justify-content: space-evenly !important;
        padding: 10px !important;
        background: rgba(10, 10, 10, 0.85) !important;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.8) !important;
    }
    
    .nav-item {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.3rem !important;
    }
    .nav-item.active {
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.4) !important;
    }
    .nav-label { display: none !important; }

    /* Move Top Right Action Buttons to Center so they don't hit edge */
    .action-btns, .action-btns-home {
        top: 25px !important;
        right: 50% !important;
        transform: translateX(50%) scale(0.95) !important;
        background: rgba(0,0,0,0.6) !important;
        padding: 8px 20px !important;
        border-radius: 40px !important;
        width: max-content !important;
        backdrop-filter: blur(15px) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.6) !important;
    }
    
    .side-nav {
        bottom: 25px !important;
    }

    /* Social specific fixes */
    .app-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        padding: 0 10px 50px 10px !important;
        max-width: 320px !important;
        margin: 0 auto !important;
    }
    .app-card {
        aspect-ratio: auto !important; /* Stop squares, make them wide */
        padding: 20px !important;
        flex-direction: row !important; /* Icon next to text */
        gap: 15px !important;
        justify-content: flex-start !important;
        border-radius: 20px !important;
    }
    .app-icon { font-size: 20px !important; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;}
    .app-name { font-size: 1.1rem !important; flex-grow: 1; text-align: left; margin-bottom: 0 !important;}
    .app-card > div:last-child { margin-top: 0 !important; }
    
    /* Info Text Fixes */
    .hero-text .title-line-1 { font-size: 2.2rem !important; text-align: center !important; }
    .hero-text .title-line-2 { font-size: 2.5rem !important; text-align: center !important; margin-bottom: 20px !important;}
    .hero-badge { margin: 0 auto 15px auto !important; }
    .bio-text { font-size: 1rem !important; text-align: center !important; }
    /* CRITICAL FIX: Allow scrolling on mobile so the card doesn't get cut off! */
    body.sovereign-master {
        overflow-y: auto !important;
        height: auto !important;
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        padding-bottom: 120px !important; /* Space for bottom nav */
    }
    .main-container-v7 {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        margin: 80px auto 100px auto !important;
        padding: 0 1rem !important;
    }
    .tilt-wrapper {
        margin: 0 auto !important;
    }

    /* Presence Card scaling for mobile */
    .p-card {
        flex-direction: column !important;
        padding: 0.8rem !important;
        gap: 0.8rem !important;
        text-align: center;
    }
    .p-left {
        width: 100% !important;
        justify-content: center !important;
    }
    .p-mid {
        align-items: center !important;
    }
    .p-right {
        display: none !important;
    }
}/* =========================================
   UNIFIED TELEMETRY WIDGETS v8.5
   ========================================= */

.v8-pref-widget {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px); /* Chrome/Opera Support */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    color: #fff;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
}

.telemetry-card.spotify-card { border-left: 4px solid #1ed760; }
.telemetry-card.activity-card { border-left: 4px solid #ffffff; }

.ss-album-art, .ss-game-art {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.ss-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.ss-listening-tag, .ss-playing-tag {
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #1ed760;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ss-playing-tag { color: #ffffff; }

.ss-title-wrap, .ss-artist-wrap {
    overflow: hidden;
    width: 100%;
}

.ss-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    display: inline-block;
    padding-right: 20px;
}

.ss-artist {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    display: inline-block;
    padding-right: 20px;
}

/* =========================================
   INDEPENDENT 3D MEGA-HOLOGRAM v8.8
   ========================================= */

.mega-hologram-v8 {
    position: fixed;
    top: 50%;
    left: 8%;
    transform: translateY(-50%) perspective(1500px) rotateY(15deg);
    width: 380px;
    height: 380px;
    z-index: 1001; 
    opacity: 0.35; 
    display: none;
    pointer-events: none;
    filter: saturate(1.1) contrast(1.1);
    -webkit-filter: saturate(1.1) contrast(1.1);
    transition: opacity 0.8s var(--ease-v7), filter 0.8s var(--ease-v7), transform 0.8s var(--ease-v7);
}

.is-homepage .mega-hologram-v8 {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hologram-float 12s ease-in-out infinite;
}

.mega-hologram-v8 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    mask-image: radial-gradient(circle, black 65%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle, black 65%, transparent 100%);
    /* PREMIUM NEON GLOW v9.0 - NO BLUR */
    filter: brightness(1.1) contrast(1.1) 
            drop-shadow(0 0 40px rgba(255, 255, 255, 0.25));
    -webkit-filter: brightness(1.1) contrast(1.1) 
            drop-shadow(0 0 40px rgba(255, 255, 255, 0.25));
    transition: opacity 0.8s var(--ease-v7), filter 0.8s var(--ease-v7), transform 0.8s var(--ease-v7);
}

@keyframes hologram-float {
    0%, 100% { transform: translateY(-50%) perspective(1500px) rotateY(15deg) translateZ(0); }
    50% { transform: translateY(-52%) perspective(1500px) rotateY(18deg) translateZ(30px); }
}

/* BRANDING TEXT REFINEMENT */
.card-decor-right {
    position: fixed;
    right: 3%;
    top: 50%;
    transform: translateY(-50%) perspective(1500px) rotateY(-20deg) translateZ(60px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: 'Montserrat';
    font-size: 5rem;
    font-weight: 950;
    color: transparent;
    -webkit-text-stroke: 2px var(--accent-primary, rgba(255, 255, 255, 0.2));
    line-height: 1.1;
    letter-spacing: 4px;
    filter: drop-shadow(0 0 15px var(--accent-glow, rgba(255,255,255,0.1)));
    opacity: 0.8;
    pointer-events: none;
    transition: all 0.8s var(--ease-v7);
    animation: text-float-right 8s ease-in-out infinite;
    z-index: 1001;
}

@keyframes text-float-right {
    0%, 100% { transform: translateY(-50%) perspective(1500px) rotateY(-20deg) translateZ(60px); }
    50% { transform: translateY(-53%) perspective(1500px) rotateY(-25deg) translateZ(90px); }
}

/* =========================================
   GLOBAL MOBILE OPTIMIZATION v8.9
   ========================================= */

@media (max-width: 1024px) {
    .card-decor-left, .card-decor-right, .mega-hologram-v8 {
        display: none !important; /* Hide 3D sidebars on all mobile/tablets */
    }

    .main-container-v7 {
        padding: 0 1rem;
        max-width: 100vw;
    }

    .profile-card-v7 {
        max-width: 92vw;
        border-radius: 30px;
    }

    /* TikTok Grid optimization */
    .grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    .info-grid {
        grid-template-columns: 1fr !important;
    }

    .banner-area-v7 {
        height: 200px;
    }

    .p-avatar-v7 {
        width: 110px;
        height: 110px;
        margin-top: -55px;
    }

    .social-grid-v7 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .v8-pref-widget {
        padding: 10px 15px;
        gap: 12px;
    }

    .ss-album-art, .ss-game-art {
        width: 48px;
        height: 48px;
    }

    .ss-title { font-size: 0.85rem; }
    .ss-artist { font-size: 0.7rem; }
}

@media (max-height: 700px) {
    .profile-card-v7 {
        transform: scale(0.9) translateY(-10px);
    }
}

.card-decor-left.active {
    opacity: 0.7;
    left: -150px;
}

@media (max-width: 900px) {
    .card-decor-left, .card-decor-right {
        display: none !important; /* Hide on small screens to prevent overlap */
    }
}

/* MARQUEE SYSTEM v8.5 */
.ss-marquee {
    animation: ss-marquee 10s linear infinite;
    padding-left: 20px;
}

@keyframes ss-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* =========================================
   SHOOTING STARS EFFECT
   ========================================= */

.shooting-star {
    position: fixed;
    top: 0;
    left: 0;
    width: 2px;
    height: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1), 0 0 0 8px rgba(255, 255, 255, 0.1), 0 0 20px rgba(255, 255, 255, 1);
    animation: shooting-animation 3s linear forwards;
    z-index: 1;
    pointer-events: none;
}

.shooting-star::before {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, #fff, transparent);
}

@keyframes shooting-animation {
    0% { transform: rotate(315deg) translateX(0); opacity: 1; }
    70% { opacity: 1; }
    100% { transform: rotate(315deg) translateX(-1000px); opacity: 0; }
}

.ac-artist {
    font-size: 0.65rem;
    opacity: 0.5;
    font-weight: 500;
    white-space: nowrap;
}

.ac-visualizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 20px;
}

.v-bar {
    width: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
    height: 50%;
    animation: barFlow 1s infinite alternate;
}

@keyframes barFlow {
    from { height: 10%; }
    to { height: 100%; opacity: 0.5; }
}

/* =========================================
   PORTFOLIO GRID v14.0 
   ========================================= */

.portfolio-container {
    max-width: 1200px;
    margin: 120px auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.edit-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: 0.5s var(--ease-v7);
    aspect-ratio: 16/9;
}

.edit-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px var(--accent-glow);
}

/* 
    ==========================================================================
    PORTFOLIO & TIKTOK INTEGRATION v7.5
    ==========================================================================
*/

.top-nav-v7 {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background: rgba(15, 15, 15, 0.4);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding: 8px 20px;
    z-index: 1000;
    gap: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.top-nav-v7 .nav-item {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.4s var(--ease-v7);
    position: relative;
    cursor: pointer;
}

.top-nav-v7 .nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.top-nav-v7 .nav-item.active {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.top-nav-v7 .nav-label {
    position: absolute;
    top: 65px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,0.1);
}

.top-nav-v7 .nav-item:hover .nav-label {
    opacity: 1;
    top: 55px;
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
}

.tiktok-card-v7 {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 9/16;
    transition: all 0.6s var(--ease-v7);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transform-style: preserve-3d;
}

.tiktok-card-v7:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 30px rgba(255,255,255,0.05);
}

.tiktok-card-v7 iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.portfolio-header {
    text-align: center;
    margin-top: 120px;
    margin-bottom: 20px;
}

.portfolio-title {
    font-family: 'Montserrat';
    font-size: 4.5rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 10px;
    text-transform: uppercase;
    text-shadow: 0 0 40px rgba(255,255,255,0.2);
    margin-bottom: 10px;
}

.portfolio-header p {
    font-size: 0.8rem;
    letter-spacing: 5px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .portfolio-title { font-size: 2.2rem; letter-spacing: 4px; }
    .portfolio-container { grid-template-columns: 1fr; margin-top: 20px; }
    .top-nav-v7 { top: 15px; width: 90%; justify-content: space-around; transform: translateX(-50%); padding: 5px; }
    .top-nav-v7 .nav-item { width: 44px; height: 44px; font-size: 1rem; }
    .top-nav-v7 .nav-label { display: none; }
    .audio-controller-v14 { bottom: 85px; right: 50%; transform: translateX(50%); width: 90%; }
}

/* CINEMATIC TRANSITIONS UTILS v9.2 PROMINENT */
.telemetry-card { transition: all 0.8s var(--ease-v7); }
.fade-sync { opacity: 0; transform: translateY(30px) scale(0.85); transition: opacity 0.5s var(--ease-v7), transform 0.5s var(--ease-v7), filter 0.5s var(--ease-v7); filter: blur(10px) brightness(1.5); }

.v8-bloom { animation: v8-bloom-anim 0.5s var(--ease-v7) forwards; }
@keyframes v8-bloom-anim { 0% { filter: brightness(1) blur(0px); } 50% { filter: brightness(3) blur(20px); } 100% { filter: brightness(1) blur(0px); } }

:root {
    /* For smooth CSS variable shifts */
    transition: --accent-primary 0.8s var(--ease-v7), --accent-glow 0.8s var(--ease-v7);
}
