/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #050505;
    color: #1a1a1a;
    cursor: none;
    /* Hide scrollbar globally for cleanliness */
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Chan copy text */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body::-webkit-scrollbar,
*::-webkit-scrollbar {
    display: none;
}

/* Hide default cursor on interactive elements */
a,
button,
input,
.icon-box,
.social-icon,
.btn-visit,
.btn-roblox {
    cursor: none;
}

/* ===== CUSTOM CURSOR SYSTEM ===== */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
}

.cursor-blob {
    position: fixed;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    filter: blur(1px);
    transition: width 0.3s, height 0.3s;
}

/* Multiple trailing blobs with different delays */
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    filter: blur(2px);
}

/* Cursor line connecting effect */
.cursor-line {
    position: fixed;
    pointer-events: none;
    z-index: 9997;
    stroke: rgba(0, 0, 0, 0.3);
    stroke-width: 1;
    fill: none;
}

/* ===== BACKGROUND CANVAS ===== */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* ===== CURSOR CANVAS ===== */
#cursorCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ===== OVERLAY ===== */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #050510 0%, #0a0520 50%, #050510 100%);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: none;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.overlay-content {
    text-align: center;
}

/* Shimmer Text Effect */
.shimmer-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    text-transform: lowercase;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.3) 0%,
            rgba(255, 255, 255, 0.3) 40%,
            rgba(255, 255, 255, 1) 50%,
            rgba(255, 255, 255, 0.3) 60%,
            rgba(255, 255, 255, 0.3) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

@keyframes overlayPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ===== CONTAINER ===== */
/* ===== CONTAINER ===== */
.container {
    max-width: 100%;
    /* Changed from 600px to allow separation */
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ===== LANDING SECTION ===== */
.landing-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

/* ===== PROFILE HEADER ===== */
.profile-header {
    text-align: center;
}

/* Avatar Container with Decoration */
.avatar-container {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Soft Glow Behind Avatar */
.avatar-glow {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(180, 220, 255, 0.6) 0%, rgba(180, 220, 255, 0) 70%);
    filter: blur(15px);
    z-index: 1;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.1);
    }
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: none;
    box-shadow: 0 0 30px rgba(180, 220, 255, 0.5), 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* Discord Decoration (Golden Halo) */
.avatar-decoration {
    position: absolute;
    width: 142px;
    height: 142px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;
}

/* Username */
.username {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.verified-badge {
    color: #3b82f6;
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.3));
}

/* Badges */
.badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.badges i {
    font-size: 1rem;
    color: #666;
    padding: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.badges i:hover {
    color: #1a1a1a;
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.9);
}

/* Social Links */
.socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    color: #333;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.social-icon:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    animation: bounce 2s ease-in-out infinite;
    z-index: 50;
}

.scroll-indicator i {
    display: block;
    margin-top: 0.5rem;
    font-size: 1rem;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ===== CONTENT SECTION ===== */
.content-section {
    padding: 20px 0 100px;
}

/* ===== CARDS ===== */
.card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
}

/* About Card */
.about-card h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #1a1a1a;
}

.about-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

/* Link Card */
.link-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.link-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.link-title {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
}

.link-sub {
    font-size: 0.8rem;
    color: #888;
}

.btn-visit {
    padding: 10px 24px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-visit:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(34, 197, 94, 0.4);
}

/* Roblox Card */
.roblox-card {
    background: rgba(255, 255, 255, 0.6);
}

.roblox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.roblox-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.roblox-avatar {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
}

.roblox-name {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
}

.roblox-status {
    font-size: 0.75rem;
    color: #888;
}

.btn-roblox {
    padding: 8px 18px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-roblox:hover {
    transform: scale(1.05);
}

.roblox-stats {
    display: flex;
    gap: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.r-stat {
    display: flex;
    flex-direction: column;
}

.r-stat .count {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a1a;
}

.r-stat .label {
    font-size: 0.75rem;
    color: #888;
}

/* ===== MUSIC PLAYER ===== */
.music-player {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.album-art img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
}

.track-info {
    flex: 1;
}

.song-title {
    display: block;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.artist-name {
    font-size: 0.8rem;
    color: #888;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.progress-container .time {
    font-size: 0.7rem;
    color: #888;
    min-width: 32px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    outline: none;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #1a1a1a;
    border-radius: 50%;
    cursor: none;
}

.controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

.controls i {
    font-size: 1.2rem;
    color: #555;
    transition: all 0.3s ease;
}

.controls i:hover {
    color: #1a1a1a;
    transform: scale(1.2);
}

/* ===== FLOATING UI ===== */
.floating-ui {
    position: fixed;
    z-index: 100;
}

.floating-ui.top-left {
    top: 15px;
    left: 15px;
    display: flex;
    gap: 2px;
    /* Closer together */
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.floating-ui.top-left:hover {
    opacity: 1;
}

.floating-ui.bottom-left {
    bottom: 15px;
    left: 15px;
}

.icon-box {
    width: 40px;
    height: 40px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: none;
    transition: transform 0.3s ease;
    /* Removed floating animation */
}



.icon-box i {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0));
}

.icon-box:hover i {
    color: #fff;
    transform: scale(1.3) rotate(10deg);
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.9));
}

/* Disable hover effect for volume icon specifically */
.volume-control .icon-box:hover i {
    color: rgba(255, 255, 255, 0.6);
    transform: none;
    filter: none;
}

@keyframes floatingIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.stat-row {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-row i {
    font-size: 0.8rem;
}

.text-row {
    font-size: 0.75rem;
    color: #888;
    margin-top: 8px;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-delay-1 {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.fade-in-delay-2 {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .username {
        font-size: 2rem;
    }

    .avatar-container {
        width: 120px;
        height: 120px;
    }

    .halo {
        width: 150px;
        height: 150px;
    }

    .floating-ui.top-left,
    .floating-ui.bottom-left {
        left: 16px;
    }

    .music-player {
        flex-wrap: wrap;
    }

    .controls {
        width: 100%;
        justify-content: center;
        margin-top: 12px;
    }
}

/* ===== GOOEY FILTER (SVG) ===== */
.goo-filter {
    position: absolute;
    visibility: hidden;
}

/* ===== VOLUME SLIDER ===== */
.volume-control {
    display: flex;
    align-items: center;
    position: relative;
    padding-right: 15px;
    /* Hit area for sliding */
}

.slider-container {
    width: 0;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    opacity: 0;
}

.volume-control:hover .slider-container {
    width: 70px;
    opacity: 1;
    margin-left: 8px;
}

#volumeSlider {
    -webkit-appearance: none;
    width: 100%;
    height: 100%;
    background: transparent;
    outline: none;
    cursor: none;
    margin: 0;
}

/* ===== NEW STYLES FOR EVA 3D WIDGET ===== */

.profile-3d-box {
    position: relative;
    width: 520px;
    height: 110px;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.6) 0%, rgba(20, 20, 25, 0.5) 50%, rgba(10, 10, 15, 0.6) 100%);
    /* Mau toi hon, trong suot hon de hoa vao nen */
    backdrop-filter: blur(10px);
    /* Giam blur di mot chut */
    border-radius: 12px;

    /* Ethereal Thin Border */
    border: 1px solid rgba(100, 100, 100, 0.5);
    border-top: 1px solid rgba(150, 150, 150, 0.6);
    border-bottom: 1px solid rgba(50, 50, 50, 0.4);

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 0 30px rgba(255, 255, 255, 0.03);

    /* 3D Skewed Horizontal */
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateY(-25deg) rotateX(5deg);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Flex Layout */
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-align: left !important;
    padding: 0 20px;
    overflow: hidden;
    /* Chan chu bi day ra ngoai */
}

.profile-3d-box:hover {
    transform: perspective(1000px) rotateY(-25deg) rotateX(5deg) translateZ(15px) scale(1.01);
    /* removed lighter background on hover */
    border-color: rgba(100, 100, 100, 0.5);
    /* Giu nguyen mau vien, khong sang len */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ===== LEFT CONTENT (Name) ===== */
.profile-3d-box .glitch-name {
    margin: 0;
    font-family: 'Vampiro One', system-ui;
    font-weight: 400;
    font-size: 1.5rem;
    /* Adjusted for Vampiro One */
    /* Tang size len mot xiu */
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    /* Khong xuong dong */
}

/* ===== CENTER CONTENT (Info) ===== */
.box-center-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Left align text in the center box */
    gap: 6px;
    padding: 0 20px;
    /* Spacing from Name and Icons */
    flex-grow: 1;
    /* Take up available space */
}

.profile-3d-box .widget-status {
    display: block;
    font-family: 'Indie Flower', cursive;
    /* Font Sakura */
    font-size: 1.1rem;
    /* Dieu chinh size cho phu hop */
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    padding: 0;
    white-space: nowrap;
    /* Prevent wrap */
}

.profile-3d-box .terminal-line {
    position: static;
    transform: none;
    width: auto;
    text-align: left;
    margin: 0;
    padding: 0;
    font-family: 'Indie Flower', cursive;
    /* Giong about me */
    font-size: 1.0rem;
    /* Tang size len */
    color: #a0a0a0;
    /* Sang hon 1 xiu */
    border: none;
}

/* ===== RIGHT CONTENT (Icons) ===== */
.box-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    /* Tighter gap */
    flex-shrink: 0;
    /* Keep icons fixed size */
}

/* Right Side: Icons Container (2 Rows) */
/* We need to restructure HTML slightly or use absolute positioning if structure is fixed.
   But better to just target specific elements.
   Since structure is: Header(Name+MiniIcons) -> Status -> Socials -> Terminal.
   We need to visually move Socials up to the right. 
   We will use absolute positioning for the icon groups to force them "behind" (right side). */

.profile-3d-box .mini-icons-grid {
    position: static;
    display: flex;
    gap: 6px;
    margin: 0;
}

.profile-3d-box .social-grid {
    position: static;
    display: flex;
    gap: 10px;
    margin: 0;
}

.mini-icons-grid img,
.mini-icons-grid i {
    width: 18px;
    height: 18px;
    font-size: 18px;
    /* For font icons */
    opacity: 0.9;
    color: #fff;
    /* Ensure visibility */
    display: flex;
    align-items: center;
    justify-content: center;
    /* transition handled by global rule if needed, or re-add */
}

.social-grid img,
.social-grid i {
    width: 20px;
    height: 20px;
    font-size: 20px;
    /* For font icons */
    opacity: 0.8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.terminal-line .typewriter {
    color: #000000;
    /* Hacker Green for numbers */
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Auto Glitch Text Override */
.glitch-name.auto-glitch {
    position: relative;
    /* Ensure it behaves like the original glitch */
}



#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    cursor: none;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: transform 0.2s;
    margin-top: 0;
    /* Align thumb dynamically usually works, but just in case */
}

#volumeSlider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

/* ===== ONE PAGE SCROLL ===== */
.main-wrapper {
    height: 100vh;
    width: 100%;
    transition: transform 1.4s cubic-bezier(0.23, 1, 0.32, 1);
    /* Smooth easeOutQuint for elegant transition */
}

.page-section {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.landing-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    max-width: 100% !important;
    /* Override generic container limit */
    padding: 0 100px;
    /* Comfortable edge spacing */
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
    animation: bounce 2s infinite;
    transition: opacity 0.5s ease;
}

.scroll-indicator span {
    font-family: 'Fredoka', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.scroll-indicator i {
    font-size: 1.2rem;
    color: #fff;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ===== LEADERBOARD SECTION ===== */
.leaderboard-container {
    padding: 20px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 20;
    font-family: 'Inter', sans-serif;
    color: #fff;
    text-align: center;
}

.leaderboard-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 3.5rem;
    color: #aeb9e1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(174, 185, 225, 0.3);
}

.leaderboard-subtitle {
    font-size: 1rem;
    color: #8892b0;
    margin-bottom: 2rem;
}

.leaderboard-box {
    background: rgba(16, 18, 27, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Table Header */
.table-header {
    display: flex;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-items: center;
    position: relative;
    z-index: 10;
    /* Ensure header stays on top */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* Subtle shadow separator */
}

/* User Avatar Image */
.user-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    /* Fix inline spacing issues */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Flex alignment fix */
    flex-shrink: 0;
}

/* Column Widths */
.col-rank {
    width: 50px;
    text-align: left;
}

.col-user {
    width: 200px;
    text-align: left;
}

.col-track {
    flex: 1;
    /* Takes remaining space (Spacer) */
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Contain the runner */
    padding: 0 10px;
}

.col-action {
    width: 100px;
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

/* Table Rows */
.table-body {
    max-height: 450px;
    overflow-y: auto;
}

.table-row {
    display: flex;
    padding: 12px 24px;
    /* Slightly taller for mascot breathing room */
    height: 70px;
    /* Fixed height for reliable track */
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    align-items: center;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
    position: relative;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.table-row .col-rank {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    color: #8892b0;
    font-weight: 600;
}

/* Top 3 Highlighting */
.table-row:nth-child(1) .col-rank {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.table-row:nth-child(2) .col-rank {
    color: #c0c0c0;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.3);
}

.table-row:nth-child(3) .col-rank {
    color: #cd7f32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.3);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.9rem;
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}



/* Fun colors for avatars */
.mars-color {
    background: linear-gradient(135deg, #ff6b6b, #c0392b);
}

.neptune-color {
    background: linear-gradient(135deg, #48dbfb, #2980b9);
}

.jupiter-color {
    background: linear-gradient(135deg, #feca57, #f39c12);
}

.love-color {
    background: linear-gradient(135deg, #ff9ff3, #f368e0);
}

.moon-color {
    background: linear-gradient(135deg, #c8d6e5, #8395a7);
}

.user-name {
    font-weight: 600;
    font-size: 1rem;
    color: #e6f1ff;
    letter-spacing: 0.02em;
}

/* ===== RUNNING ICONS ===== */
.running-icon-wrapper {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 50%;
    transform: translateY(-50%);
    animation: runLoop linear infinite;
    pointer-events: none;
    /* Don't block click on row */
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
}

/* Hover row makes icon brighter */
.table-row:hover .running-icon-wrapper {
    color: #fff;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

@keyframes runLoop {
    0% {
        left: 0%;
        transform: translateY(-50%) scaleX(1);
    }

    45% {
        left: calc(100% - 30px);
        transform: translateY(-50%) scaleX(1);
    }

    50% {
        left: calc(100% - 30px);
        transform: translateY(-50%) scaleX(-1);
    }

    95% {
        left: 0%;
        transform: translateY(-50%) scaleX(-1);
    }

    100% {
        left: 0%;
        transform: translateY(-50%) scaleX(1);
    }
}

/* ===== CLICK BUTTON ===== */
.btn-click {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #aeb9e1;
    transition: all 0.3s ease;
}

.table-row:hover .btn-click {
    background: #fff;
    color: #000;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* ===== AUTO-SCROLL CONTAINER ===== */
/* ===== AUTO-SCROLL CONTAINER ===== */
.table-body-container {
    height: 350px;
    /* Visible window height */
    overflow-y: auto;
    /* Allow manual scroll */
    position: relative;
    /* Adjusted Mask: Start fully visible at top (black 0%), fade out only at bottom */
    mask-image: linear-gradient(to bottom, black 0%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 85%, transparent 100%);
    /* Prevent scroll chaining to background */
    overscroll-behavior: contain;
    /* Hide Scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Hide Scrollbar for Chrome/Safari */
.table-body-container::-webkit-scrollbar {
    display: none;
}

.table-body {
    display: flex;
    flex-direction: column;
    /* JS handles scrolling via scrollTop */
    padding-top: 5px;
    padding-bottom: 20px;
}

/* Pagination styles removed */

/* ===== SECTION 1 REDESIGN: MINIMALIST COUPLE ===== */
/* ===== SECTION 1 REDESIGN: MINIMALIST COUPLE ===== */
.couple-container {
    /* Create a large canvas for them to float in */
    width: 100vw;
    /* Full viewport width */
    height: 60vh;
    /* Good vertical spread */
    position: relative;
    z-index: 10;
    margin-left: -40px;
    /* Counteract container padding if needed, or just break out */
    left: 0;
}

.profile-widget {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    /* Absolute freedom */
}

/* Specific alignment */
.widget-left {
    top: 30%;
    left: 27%;
    align-items: flex-start;
}

.widget-right {
    bottom: 18%;
    right: 34%;
    align-items: flex-end;
    text-align: right;
}

.widget-right .widget-header {
    flex-direction: row-reverse;
}

.widget-right .mini-icons {
    flex-direction: row-reverse;
    /* Ensure icons flip correctly */
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.glitch-name {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    /* Much smaller */
    color: #fff;
    letter-spacing: -1px;
    margin: 0;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    line-height: 1;
}

/* ... existing styles ... */

.mini-icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.mini-icons i,
.mini-icons img {
    /* Handle both font icons and image icons */
    font-size: 1rem;
    color: #94a3b8;
    background: transparent;
    border: none;
    width: 20px;
    /* Fixed small size for images */
    height: 20px;
    object-fit: contain;
    transition: all 0.2s;
    vertical-align: middle;
}

.mini-icons i:hover,
.mini-icons img:hover {
    color: #fff;
    transform: scale(1.2);
    filter: brightness(1.2);
}

.social-row {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    /* Space from status */
}

.social-row img {
    width: 24px;
    /* Slightly larger for touch targets */
    height: 24px;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.2s;
    cursor: pointer;
    /* Clickable */
}

.social-row img:hover {
    opacity: 1;
    transform: translateY(-2px);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.widget-status {
    /* Pure text, no box */
    font-size: 0.8rem;
    color: #cbd5e1;
    font-weight: 400;
    padding-left: 2px;
    opacity: 0.9;
}

.terminal-line {
    font-family: monospace;
    color: #000000;
    /* Chu mau den */
    font-weight: 700;
    /* Dam hon de de doc */
    font-size: 0.85rem;
    margin-top: 2px;
    padding-left: 2px;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.5);
    /* Glow nhe de noi bat tren nen toi neu co */
}

.shimmer-text-small {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0.95) 50%,
            rgba(255, 255, 255, 0.4) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmerSmall 3s infinite linear;
    font-weight: 500;
}

@keyframes shimmerSmall {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .couple-container {
        flex-direction: column;
        /* Stack on mobile */
        gap: 40px;
        align-items: center;
    }

    .profile-widget {
        align-items: center;
        text-align: center;
    }

    .widget-header {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .widget-status {
        text-align: center;
    }
}

/* ===== ELECTRIC TEXT EFFECT (Black/White Elegant) ===== */
.electric-text {
    /* Running Gradient: White -> Black -> White */
    background: linear-gradient(120deg,
            #ffffff 20%,
            #000000 50%,
            #ffffff 80%);
    background-size: 200% auto;

    /* Text Fill */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;

    /* Animation */
    animation: electricRun 3s infinite linear;

    /* Glow Effect */
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.6),
        0 0 15px rgba(255, 255, 255, 0.3);

    font-weight: 600;
    letter-spacing: 0.5px;
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.8));
}

@keyframes electricRun {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

/* ===== LIKE BUTTON STATE ===== */
.liked i {
    color: #ff4757 !important;
    /* Red color for liked state */
    font-weight: 900;
    /* Make it solid */
    animation: heartPulse 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* ===== DISCORD BANNER ===== */
.discord-banner {
    display: block;
    width: 600px;
    /* Bang voi leaderboard (max-width) */
    max-width: 90%;
    height: 120px;
    background: #333;
    /* Placeholder color */
    background-image: url('placeholder_banner.jpg');
    /* Placeholder image */
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin: 0 auto 20px auto;
    /* Canh giua, cach leaderboard 20px */
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.discord-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
}

.banner-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
}

.click-text {
    font-family: 'Fredoka', sans-serif;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
    letter-spacing: 1px;
    animation: textFloat 2s ease-in-out infinite;
}

@keyframes textFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* ===== LINK DISCORD BUTTON ===== */
.discord-link-section {
    text-align: center;
    margin-top: 20px;
}

.link-discord-btn {
    background: #5865F2;
    /* Discord Color */
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.link-discord-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

.link-note {
    color: #888;
    font-size: 0.8rem;
    margin-top: 5px;
    font-style: italic;
}

/* ===== DASHBOARD ===== */
.dashboard-section {
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    text-align: left;
}

.user-greeting {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #fff;
}

.my-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
}

.custom-control {
    margin-bottom: 20px;
}

.custom-control label {
    display: block;
    font-size: 0.95rem;
    color: #ddd;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-group input {
    flex: 1;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 6px;
    color: #fff;
    outline: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.input-group input:focus {
    border-color: #fff;
    background: rgba(0, 0, 0, 0.6);
}

.input-group button {
    background: #20bf6b;
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.input-group button:hover {
    background: #26de81;
    transform: translateY(-2px);
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon-item {
    font-size: 1.4rem;
    color: #ccc;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.05);
}

.icon-item:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: scale(1.1);
}

.icon-item.active {
    background: #e84118;
    color: #fff;
    box-shadow: 0 0 10px rgba(232, 65, 24, 0.5);
}

/* Custom Text Display in Leaderboard */
.custom-text-display {
    color: #fff;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 8px;
    border-radius: 4px;
}