/* ====================================================================
   NHAT TAM BIO - LUXURY MONOCHROME STYLESHEET (zyo.lol style)
   Grand Centered Bento Viewport - Bold & Ultra Legible
   ==================================================================== */

:root {
    --bg-black: #050505;
    --bg-darker: #09090b;
    --bg-card: rgba(14, 14, 17, 0.86);
    --bg-card-hover: rgba(20, 20, 25, 0.94);
    --bg-subtle: rgba(255, 255, 255, 0.035);
    --bg-subtle-hover: rgba(255, 255, 255, 0.08);

    --border-dim: rgba(255, 255, 255, 0.08);
    --border-mid: rgba(255, 255, 255, 0.18);
    --border-glow: rgba(255, 255, 255, 0.4);

    --text-white: #ffffff;
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-dim: #52525b;

    --status-online: #22c55e;
    --status-idle: #eab308;
    --status-dnd: #ef4444;
    --status-offline: #71717a;

    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --card-radius: 24px;
    --inner-radius: 14px;
    --pill-radius: 9999px;
    
    --transition-smooth: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Reset & Anti-Copy Protection */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

img, svg, canvas, video, audio {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
}

html, body {
    width: 100vw;
    height: 100vh;
    overflow: hidden; /* Căn giữa không cần cuộn trang */
    font-size: 15px;
}

body {
    background-color: var(--bg-black);
    color: var(--text-primary);
    font-family: var(--font-main);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: default;
    user-select: none;
}

/* Background Particle Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.9;
}

/* Bottom Audio Beat Visualizer (Sleek Wave Spanning Entire Screen Bottom) */
#bottom-audio-visualizer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 44px;
    z-index: 10;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.4s ease;
}

@media (max-width: 768px) {
    #bottom-audio-visualizer {
        height: 34px;
        opacity: 0.75;
    }
}

/* Ambient Mouse Spotlight */
#mouse-spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(750px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.05), transparent 70%);
    transition: background 0.05s ease-out;
}

/* ====================================================================
   CYBER RETICLE HUD CURSOR (Defiantly Non-Circle, Ultra Sleek HUD)
   ==================================================================== */
.cyber-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    pointer-events: none;
    z-index: 99999;
    will-change: transform;
    transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Micro Diamond Center Core */
.cursor-diamond {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #ffffff;
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.95);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

/* Crosshair Lines (+) */
.cursor-crosshair {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.cursor-crosshair::before,
.cursor-crosshair::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.25s ease;
}
.cursor-crosshair::before {
    top: 50%;
    left: 3px;
    right: 3px;
    height: 1px;
    transform: translateY(-50%);
}
.cursor-crosshair::after {
    left: 50%;
    top: 3px;
    bottom: 3px;
    width: 1px;
    transform: translateX(-50%);
}

/* 4 Corner Brackets ⌜ ⌝ ⌞ ⌟ */
.cursor-brackets {
    position: absolute;
    inset: 0;
}
.cursor-brackets .corner {
    position: absolute;
    width: 6px;
    height: 6px;
    border-color: rgba(255, 255, 255, 0.85);
    border-style: solid;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.cursor-brackets .c-tl { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
.cursor-brackets .c-tr { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.cursor-brackets .c-br { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }
.cursor-brackets .c-bl { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; }

/* Interactive Hover State (Locks on & expands) */
body.cursor-hover .cyber-cursor {
    width: 44px;
    height: 44px;
}
body.cursor-hover .cursor-brackets .corner {
    border-color: #ffffff;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
    width: 9px;
    height: 9px;
}
body.cursor-hover .cursor-diamond {
    transform: translate(-50%, -50%) rotate(225deg) scale(1.6);
    background: #ffffff;
    box-shadow: 0 0 16px rgba(255, 255, 255, 1);
}
body.cursor-hover .cursor-crosshair::before,
body.cursor-hover .cursor-crosshair::after {
    background: rgba(255, 255, 255, 0.75);
}

/* ====================================================================
   CUTE & AESTHETIC WELCOME SCREEN (Soft, Cozy & Charming)
   ==================================================================== */
.enter-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.08) 0%, rgba(12, 12, 16, 0.78) 50%, rgba(4, 4, 6, 0.92) 100%);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 0.7s ease,
                visibility 0.7s;
}

.enter-overlay.entered {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.08);
    filter: blur(20px);
    pointer-events: none;
}

/* Floating Soft Decor (Cloud, Hearts, Stars) */
.cute-floating-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.decor-sparkle {
    position: absolute;
    font-size: 1.2rem;
    opacity: 0.45;
    animation: floatSparkle 6s ease-in-out infinite alternate;
    user-select: none;
}
.d-1 { top: 22%; left: 28%; animation-duration: 5s; font-size: 1.4rem; }
.d-2 { top: 28%; right: 26%; animation-duration: 6.5s; font-size: 1.6rem; opacity: 0.35; }
.d-3 { bottom: 30%; left: 25%; animation-duration: 5.5s; font-size: 1.1rem; color: #c084fc; }
.d-4 { bottom: 26%; right: 28%; animation-duration: 7s; font-size: 1.3rem; opacity: 0.5; }
.d-5 { top: 48%; right: 18%; animation-duration: 4.5s; font-size: 1.2rem; opacity: 0.4; }

@keyframes floatSparkle {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(6deg); }
    100% { transform: translateY(8px) rotate(-6deg); }
}

/* Cute Frosted Card */
.cute-enter-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 
                0 0 35px rgba(168, 85, 247, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 36px;
    padding: 38px 46px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
    max-width: 380px;
    width: 90vw;
    animation: cardFloat 5s ease-in-out infinite;
    transition: var(--transition-smooth);
}

.enter-overlay:hover .cute-enter-card {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.75), 
                0 0 45px rgba(168, 85, 247, 0.22);
}

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Cute Avatar Wrap */
.cute-avatar-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cute-avatar-halo {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4), rgba(255, 255, 255, 0.2), transparent 70%);
    animation: haloBreathe 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes haloBreathe {
    0%, 100% { transform: scale(0.95); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
}

.cute-avatar-img {
    width: 90px;
    height: 90px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    object-position: center center;
    border: 3px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
    transition: var(--transition-bounce);
}

.enter-overlay:hover .cute-avatar-img {
    transform: scale(1.05) rotate(2deg);
}

.cute-avatar-frame-ring {
    position: absolute;
    top: -15%;
    left: -10%;
    width: 120%;
    aspect-ratio: 1/1;
    pointer-events: none;
    z-index: 5;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.7));
    transition: var(--transition-bounce);
}

.enter-overlay:hover .cute-avatar-frame-ring {
    transform: scale(1.05);
}

.cute-greet-bubble {
    position: absolute;
    top: -8px;
    right: -24px;
    background: rgba(18, 18, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 3;
    white-space: nowrap;
    animation: bubbleWiggle 4s ease-in-out infinite;
}

@keyframes bubbleWiggle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(4deg); }
}

/* Cute Identity */
.cute-identity {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cute-name-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cute-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.cute-sparkle-icon {
    color: #c084fc;
    font-size: 1.1rem;
    animation: spinSparkle 8s linear infinite;
    display: inline-block;
}

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

.cute-subtext {
    font-size: 0.86rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Soft Glowing Pill Button (NO "CLICK TO ENTER" text!) */
.cute-pill-btn {
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 10px 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transition: var(--transition-bounce);
    cursor: pointer;
}

.cute-pill-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    color: #0d0d10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    padding-left: 2px;
    transition: var(--transition-bounce);
}

.cute-pill-label {
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #f4f4f5;
}

.cute-pill-star {
    font-size: 0.85rem;
    color: #c084fc;
    transition: transform 0.3s ease;
}

.enter-overlay:hover .cute-pill-btn {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
    box-shadow: 0 10px 28px rgba(168, 85, 247, 0.25), 0 0 18px rgba(255, 255, 255, 0.2);
}

.enter-overlay:hover .cute-pill-icon {
    transform: scale(1.15);
    background: #c084fc;
    color: #ffffff;
}

.enter-overlay:hover .cute-pill-star {
    transform: rotate(20deg) scale(1.2);
}

/* Audio Hint Note */
.cute-audio-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    margin-top: 2px;
}

.cute-audio-hint i {
    font-size: 0.78rem;
    color: #c084fc;
}

/* ====================================================================
   FLOATING AUDIO WIDGET
   ==================================================================== */
.audio-widget {
    position: fixed;
    bottom: 20px;
    right: 24px;
    z-index: 100;
    background: rgba(18, 18, 22, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-mid);
    padding: 9px 16px;
    border-radius: var(--pill-radius);
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

.audio-widget:hover {
    border-color: var(--border-glow);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 255, 255, 0.08);
}

.audio-disc {
    font-size: 1.35rem;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotateDisc 4s linear infinite;
    animation-play-state: paused;
}

.audio-disc.playing {
    animation-play-state: running;
}

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

.audio-info {
    display: flex;
    flex-direction: column;
    max-width: 140px;
    overflow: hidden;
}

.audio-track {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-artist {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 7px;
}

.ctrl-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-dim);
    color: var(--text-white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    outline: none;
}

.ctrl-btn.play-btn-main {
    width: 32px;
    height: 32px;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.08);
}

.ctrl-btn:hover {
    background: var(--text-white);
    color: var(--bg-black);
    transform: scale(1.1);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
}

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

.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
}

.equalizer .bar {
    width: 3px;
    background: var(--text-secondary);
    border-radius: 2px;
    height: 4px;
    transition: height 0.2s ease;
}

.equalizer.active .bar-1 { animation: eqJump 0.8s infinite ease-in-out alternate; }
.equalizer.active .bar-2 { animation: eqJump 0.6s infinite 0.2s ease-in-out alternate; }
.equalizer.active .bar-3 { animation: eqJump 0.9s infinite 0.4s ease-in-out alternate; }
.equalizer.active .bar-4 { animation: eqJump 0.7s infinite 0.1s ease-in-out alternate; }

@keyframes eqJump {
    0% { height: 4px; background: var(--text-muted); }
    100% { height: 16px; background: var(--text-white); box-shadow: 0 0 6px rgba(255, 255, 255, 0.7); }
}

.volume-slider-wrap {
    display: flex;
    align-items: center;
}

#volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 65px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-white);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* ====================================================================
   MAIN VIEWPORT (Centered Grand Bento Layout, No Scroll)
   ==================================================================== */
.main-viewport {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1180px;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    perspective: 1200px;
}

.card-tilt-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
}

.bio-card {
    position: relative;
    width: 100%;
    max-height: min(92vh, 810px);
    background: var(--bg-card);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--border-mid);
    border-radius: var(--card-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 35px 85px rgba(0, 0, 0, 0.9), 
                0 0 0 1px rgba(255, 255, 255, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.bio-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 40px 95px rgba(0, 0, 0, 0.98), 
                0 0 50px rgba(255, 255, 255, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Dynamic Glare */
.card-glare {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 450px at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.08), transparent 80%);
    pointer-events: none;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bio-card:hover .card-glare {
    opacity: 1;
}

/* Top Banner */
.card-banner {
    width: 100%;
    height: 95px;
    background-size: cover;
    background-position: center 45%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.card-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 20%, rgba(168, 85, 247, 0.18), transparent 50%),
                radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08), transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.card-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.25) 30%, rgba(168, 85, 247, 0.5) 50%, rgba(255, 255, 255, 0.25) 70%, transparent 100%);
    z-index: 3;
}

.banner-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(10, 10, 14, 0.4) 55%, rgba(13, 13, 16, 0.88) 90%, var(--bg-card) 100%);
    z-index: 1;
}

.banner-badge-top {
    position: absolute;
    top: 14px;
    right: 22px;
    background: rgba(10, 10, 14, 0.8);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 5px 14px;
    border-radius: var(--pill-radius);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), inset 0 0 12px rgba(255, 255, 255, 0.05);
    z-index: 2;
    transition: var(--transition-smooth);
}

.banner-badge-top:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.9), 0 0 15px rgba(255, 255, 255, 0.15);
}

.live-dot-ping {
    width: 8px;
    height: 8px;
    background: var(--status-online);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--status-online);
    animation: pingDot 2s infinite ease-in-out;
}

@keyframes pingDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

/* ====================================================================
   FULL-WIDTH PROFILE HEADER BAR (Never Clipped, 100% Visible)
   ==================================================================== */
.card-profile-bar {
    position: relative;
    z-index: 10;
    padding: 0 28px 10px 28px;
    margin-top: -38px; /* Avatar nhô lên banner tự nhiên */
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    flex-shrink: 0;
}

.profile-main-info {
    display: flex;
    align-items: flex-end;
    gap: 18px;
}

.avatar-wrapper {
    position: relative;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    object-position: center center;
    border: 3.5px solid #0d0d10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 0 2.5px rgba(255, 255, 255, 0.2);
    background-color: #121214;
    transition: var(--transition-smooth);
}

.avatar-wrapper:hover .profile-avatar {
    transform: scale(1.04);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.95), 0 0 0 2.5px var(--text-white);
}

.avatar-frame-ring {
    position: absolute;
    top: -15%;
    left: -10%;
    width: 120%;
    aspect-ratio: 1/1;
    pointer-events: none;
    z-index: 5;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.7));
    transition: var(--transition-smooth);
}

.avatar-wrapper:hover .avatar-frame-ring {
    transform: scale(1.05);
}

.status-indicator {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    background: #0d0d10;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0d0d10;
    z-index: 6;
}

.status-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: var(--status-offline);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.status-dot.online { background-color: var(--status-online); box-shadow: 0 0 12px var(--status-online); }
.status-dot.idle { background-color: var(--status-idle); box-shadow: 0 0 12px var(--status-idle); }
.status-dot.dnd { background-color: var(--status-dnd); box-shadow: 0 0 12px var(--status-dnd); }
.status-dot.offline { background-color: var(--status-offline); }

.user-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-bottom: 2px;
}

.name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-display-name {
    font-family: var(--font-heading);
    font-size: 2.15rem; /* Tên Nhat Tam to rõ, hiển thị 100% */
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.verified-badge {
    color: var(--text-white);
    font-size: 1.25rem;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
}

.handle-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.user-handle {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.copy-tag-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    cursor: pointer;
    position: relative;
    padding: 3px 6px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.copy-tag-btn:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.08);
}

.tooltip {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #18181b;
    border: 1px solid var(--border-mid);
    color: var(--text-white);
    font-size: 0.72rem;
    font-family: var(--font-main);
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.copy-tag-btn:hover .tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.meta-dot-sep {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.user-tagline {
    font-size: 0.86rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Badges Bar (Inside Header) */
.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-self: flex-end;
    padding-bottom: 4px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--border-dim);
    padding: 5px 12px;
    border-radius: var(--pill-radius);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.badge-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-glow);
    color: var(--text-white);
    transform: translateY(-2px);
}

.badge-pill i {
    font-size: 0.82rem;
    color: var(--text-white);
}

/* ====================================================================
   BENTO BODY GRID (2-COLUMN BALANCED VIEW - EXPANDED)
   ==================================================================== */
.card-bento-body {
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    gap: 24px;
    padding: 8px 28px 18px 28px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.card-bento-body::-webkit-scrollbar {
    width: 6px;
    display: block;
}

.card-bento-body::-webkit-scrollbar-track {
    background: transparent;
}

.card-bento-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 4px;
}

.card-bento-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.bento-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Quote & Bio */
.quote-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-dim);
    border-radius: var(--inner-radius);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.quote-icon {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.quote-text {
    color: var(--text-primary);
    min-height: 1.2rem;
}

.typewriter-cursor {
    animation: blinkCursor 0.8s infinite;
    color: var(--text-white);
    font-weight: 700;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.user-bio {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

/* Section Title Headers */
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.section-title i {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Presence Section */
.presence-section {
    display: flex;
    flex-direction: column;
}

.lanyard-ping {
    margin-left: auto;
    position: relative;
    width: 8px;
    height: 8px;
}

.ping-core {
    position: absolute;
    inset: 0;
    background: var(--status-online);
    border-radius: 50%;
}

.ping-wave {
    position: absolute;
    inset: -3px;
    border: 1.5px solid var(--status-online);
    border-radius: 50%;
    animation: pingRipple 1.8s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

@keyframes pingRipple {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

.custom-status-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dim);
    border-radius: var(--inner-radius);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    transition: var(--transition-smooth);
}

.custom-status-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-mid);
}

.status-emoji {
    font-size: 1.35rem;
    flex-shrink: 0;
    line-height: 1;
}

.status-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.status-label {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.status-message {
    font-size: 0.88rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Spotify & Activity Card */
.activity-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dim);
    border-radius: var(--inner-radius);
    padding: 13px 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
    transition: var(--transition-smooth);
}

.activity-card:hover {
    background: rgba(255, 255, 255, 0.055);
    border-color: var(--border-mid);
}

.spotify-art-wrap, .game-art-wrap {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-mid);
}

.spotify-art, .game-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotify-details, .game-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.activity-badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 1px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.spotify-badge { color: #1db954; }
.game-badge { color: var(--text-white); }

.track-title, .game-name {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist, .game-state {
    font-size: 0.82rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-details-text {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.spotify-progress-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.time-stamp {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.progress-track {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--text-white);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    width: 0%;
    border-radius: 2px;
    transition: width 0.5s linear;
}

/* ====================================================================
   RIGHT COLUMN: 2 DISCORD SERVERS & SOCIALS
   ==================================================================== */
.servers-section {
    display: flex;
    flex-direction: column;
}

.servers-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.server-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dim);
    border-radius: var(--inner-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.server-card:hover {
    background: rgba(255, 255, 255, 0.055);
    border-color: var(--border-glow);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 255, 255, 0.05);
}

.server-banner-img {
    width: 100%;
    height: 75px;
    object-fit: cover;
    opacity: 0.88;
    background-color: #121216;
    transition: var(--transition-smooth);
}

.server-card:hover .server-banner-img {
    opacity: 1;
    transform: scale(1.03);
}

.server-body {
    padding: 10px 18px 14px 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    margin-top: -26px;
    z-index: 2;
}

.server-icon-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.server-icon {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: cover;
    background-color: #121216;
    border: 2.5px solid #141416;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.7);
}

.server-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.server-top-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.server-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.2px;
}

.server-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--border-mid);
    color: var(--text-white);
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
}

.server-role {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.server-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.server-join-btn {
    align-self: center;
    flex-shrink: 0;
    background: var(--text-white);
    color: var(--bg-black);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: var(--pill-radius);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.server-join-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: rotate(25deg) translateY(-100%);
    transition: transform 0.6s ease;
}

.server-join-btn:hover::after {
    transform: rotate(25deg) translateY(100%);
}

.server-join-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.45);
}

/* Social Links */
.socials-section {
    display: flex;
    flex-direction: column;
    margin-top: 6px;
}

.socials-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-pill {
    flex: 1 1 calc(50% - 10px);
    min-width: 105px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--border-dim);
    border-radius: var(--inner-radius);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.social-pill:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--border-glow);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.4);
}

.social-pill i {
    font-size: 0.95rem;
    color: var(--text-white);
}

/* ====================================================================
   CARD FOOTER
   ==================================================================== */
.card-footer {
    margin-top: auto;
    padding: 12px 28px;
    background: rgba(0, 0, 0, 0.45);
    border-top: 1px solid var(--border-dim);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.footer-left, .footer-right {
    display: flex;
    align-items: center;
    gap: 7px;
}

.mono-logo {
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--text-secondary);
}

/* ====================================================================
   TOAST NOTIFICATION
   ==================================================================== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(20, 20, 25, 0.96);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    color: var(--text-white);
    padding: 10px 18px;
    border-radius: var(--pill-radius);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 15px rgba(255, 255, 255, 0.1);
    animation: toastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.toast-out {
    animation: toastOut 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-16px) scale(0.9); }
}

/* ====================================================================
   RESPONSIVE DESIGN (Adaptive for Smaller Tablets / Mobile)
   ==================================================================== */
@media (max-width: 900px) {
    html, body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    .main-viewport {
        height: auto;
        max-height: none;
        padding: 40px 16px 100px 16px;
    }

    .bio-card {
        max-height: none;
    }

    .card-profile-bar {
        padding: 0 20px 10px 20px;
        flex-direction: column;
        align-items: flex-start;
        margin-top: -30px;
    }

    .card-bento-body {
        grid-template-columns: 1fr;
        gap: 20px;
        overflow-y: visible;
        padding: 0 20px 20px 20px;
    }

    .server-body {
        flex-direction: row;
    }

    .audio-widget {
        bottom: 14px;
        right: 14px;
        left: 14px;
        justify-content: space-between;
    }

    #cursor-dot, #cursor-ring {
        display: none !important;
    }
}

/* ====================================================================
   TECH STACK & CORE SKILLS SECTION (Bento Card Integration)
   ==================================================================== */
.skills-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 2px;
}

.skill-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-tabs {
    display: inline-flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 4px;
    border-radius: var(--pill-radius);
    border: 1px solid var(--border-dim);
}

.skill-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-family: var(--font-mono);
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--pill-radius);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.skill-tab-btn:hover {
    color: var(--text-white);
}

.skill-tab-btn.active {
    background: rgba(255, 255, 255, 0.16);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.12);
}

.skills-card {
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid var(--border-dim);
    border-radius: var(--inner-radius);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: var(--transition-smooth);
    min-height: 100px;
}

.skills-card:hover {
    background: rgba(255, 255, 255, 0.045);
    border-color: var(--border-mid);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), inset 0 0 15px rgba(255, 255, 255, 0.02);
}

.skill-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.skills-card:hover .skill-img {
    transform: scale(1.015);
}

/* skillWap is displayed by default for rich multi-row grid viewing */
.skill-wap {
    display: block !important;
    max-width: 440px;
    max-height: 190px;
    margin: 0 auto;
}

.skill-pc {
    display: none;
    max-height: 52px;
}

