/* ================================================================
   📌 CSS HOÀN CHỈNH - PHÚC NEXUS v25.0
   📅 CẬP NHẬT: 02/09/2026
   ================================================================ */


/* ================================================================
   📌 MỤC 1: RESET & BASE
   ================================================================ */

 :root {
    --bg-primary: #0a0a12;
    --bg-secondary: #12121e;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.06);
    --text-primary: #f0f0f5;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --accent: #7c3aed;
    --accent-1: #7c3aed;
    --accent-2: #4f46e5;
    --accent-3: #06b6d4;
    --accent-gold: #fbbf24;
    --accent-pink: #ec4899;
    --accent-green: #34d399;
    --accent-orange: #fb923c;
    --accent-blue: #60a5fa;
    --accent-purple: #a78bfa;
    --accent-bright: #fbbf24;
    --red: #ef4444;
    --green: #22c55e;
    --shadow-glow: 0 0 80px rgba(124, 58, 237, 0.1);
    --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.3);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    --navbar-height: 68px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding-top: var(--navbar-height);
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
    transition: background 0.5s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ================================================================
   📌 MỤC 1.1: LIGHT MODE
   ================================================================ */

[data-theme="light"] body,
body.light-theme {
    --bg-primary: #f0f2f8;
    --bg-secondary: #e8ecf5;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(0, 0, 0, 0.04);
    --border-glass: rgba(0, 0, 0, 0.06);
    --text-primary: #1a1a2e;
    --text-secondary: rgba(0, 0, 0, 0.7);
    --text-muted: rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 60px rgba(124, 58, 237, 0.05);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.06);
    --accent: #7c3aed;
    --accent-1: #7c3aed;
    --accent-2: #4f46e5;
    --accent-3: #06b6d4;
    --accent-gold: #f59e0b;
    --accent-pink: #ec4899;
    --accent-green: #22c55e;
    --accent-orange: #fb923c;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --red: #ef4444;
    --green: #22c55e;
}


/* ================================================================
   📌 MỤC 2: SCROLLBAR
   ================================================================ */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.5);
}


/* ================================================================
   📌 MỤC 3: LOADING SCREEN
   ================================================================ */

#loadingScreen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

#loadingScreen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-container {
    text-align: center;
    padding: 20px;
    animation: fadeInUp 0.6s ease;
}

.loader-image-wrapper {
    position: relative;
    display: inline-block;
}

.loader-gif {
    width: 150px;
    height: 150px;
    object-fit: contain;
    display: block;
    margin: 0 auto 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
}

.loader-ring {
    position: absolute;
    inset: -8px;
    border: 3px solid rgba(124, 58, 237, 0.08);
    border-top-color: var(--accent-1);
    border-radius: 50%;
    animation: spin 0.9s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-title {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-1), var(--accent-3));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s ease-in-out infinite;
}

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

.loader-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.loader-progress {
    width: 220px;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    margin: 0 auto 8px;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-3), var(--accent-gold));
    background-size: 200% 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    animation: progressShimmer 1.5s ease-in-out infinite;
}

@keyframes progressShimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.loader-percent {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}


/* ================================================================
   📌 MỤC 4: BLOBS BACKGROUND
   ================================================================ */

.blob-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12;
    animation: blobFloat 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, var(--accent-1), var(--accent-2));
    animation-duration: 25s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, var(--accent-3), #3b82f6);
    animation-duration: 28s;
    animation-delay: -7s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--accent-purple), var(--accent-pink));
    animation-duration: 22s;
    animation-delay: -12s;
    opacity: 0.08;
}

.blob-4 {
    width: 350px;
    height: 350px;
    top: 20%;
    right: 20%;
    background: radial-gradient(circle, var(--accent-gold), var(--accent-orange));
    animation-duration: 30s;
    animation-delay: -5s;
    opacity: 0.06;
}

@keyframes blobFloat {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    33% {
        transform: translate(70px, -50px) scale(1.1) rotate(5deg);
    }
    66% {
        transform: translate(-40px, 60px) scale(0.9) rotate(-3deg);
    }
    100% {
        transform: translate(50px, -30px) scale(1.05) rotate(2deg);
    }
}


/* ================================================================
   📌 MỤC 5: FPS COUNTER
   ================================================================ */

.fps-counter {
    position: fixed;
    top: calc(var(--navbar-height) + 12px);
    right: 16px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 14px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    z-index: 999;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.fps-counter:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
}


/* ================================================================
   📌 MỤC 6: NAVBAR
   ================================================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--navbar-height);
    background: rgba(10, 10, 18, 0.85);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid var(--border-glass);
    transition: all var(--transition);
}

[data-theme="light"] .navbar {
    background: rgba(244, 246, 250, 0.9);
}

.navbar.scrolled {
    background: rgba(10, 10, 18, 0.96);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    height: 60px;
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(244, 246, 250, 0.96);
}

.navbar-container {
    max-width: 1280px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}


/* ================================================================
   📌 MỤC 6.1: NAVBAR BRAND
   ================================================================ */

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.nav-toggle:hover {
    background: var(--bg-card);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.15);
}

.logo-text {
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b, var(--accent-gold));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 4s ease-in-out infinite;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}


/* ================================================================
   📌 MỤC 6.2: NAVBAR MENU CHÍNH
   ================================================================ */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
}

.nav-link i {
    font-size: 15px;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: #fff;
    background: var(--bg-card);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--accent-gold);
    background: rgba(251, 191, 36, 0.08);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2.5px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-1), var(--accent-3));
    background-size: 200% 100%;
    transform: translateX(-50%);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
    opacity: 1;
    animation: underlineShimmer 2s linear infinite;
}

@keyframes underlineShimmer {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    margin-left: 2px;
    opacity: 0.6;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}


/* ================================================================
   📌 MỤC 6.3: NAVBAR DROPDOWN MENU - PHIÊN BẢN DỌC (DESKTOP)
   ================================================================ */

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-12px) scale(0.92);
    min-width: 260px;
    background: rgba(18, 18, 30, 0.95);
    backdrop-filter: blur(32px) saturate(1.6);
    -webkit-backdrop-filter: blur(32px) saturate(1.6);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: block !important;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-1), var(--accent-3), var(--accent-pink));
    background-size: 300% 300%;
    z-index: -1;
    opacity: 0.3;
    animation: borderGradient 4s ease-in-out infinite;
    transition: opacity 0.4s ease;
}

.dropdown-menu:hover::before {
    opacity: 0.8;
}

.dropdown-menu::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    border-radius: 4px;
    opacity: 0;
    transition: all 0.4s ease;
}

.dropdown-menu:hover::after {
    opacity: 1;
    width: 80px;
}

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

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}


/* ================================================================
   📌 MỤC 6.4: NAVBAR DROPDOWN ITEMS
   ================================================================ */

.dropdown-menu .dropdown-item {
    display: block !important;
    opacity: 0;
    transform: translateX(-15px) scale(0.96);
    animation: menuItemSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.dropdown-menu .dropdown-item:nth-child(1) {
    animation-delay: 0.04s;
}

.dropdown-menu .dropdown-item:nth-child(2) {
    animation-delay: 0.08s;
}

.dropdown-menu .dropdown-item:nth-child(3) {
    animation-delay: 0.12s;
}

.dropdown-menu .dropdown-item:nth-child(4) {
    animation-delay: 0.16s;
}

.dropdown-menu .dropdown-item:nth-child(5) {
    animation-delay: 0.20s;
}

.dropdown-menu .dropdown-item:nth-child(6) {
    animation-delay: 0.24s;
}

.dropdown-menu .dropdown-item:nth-child(7) {
    animation-delay: 0.28s;
}

.dropdown-menu .dropdown-item:nth-child(8) {
    animation-delay: 0.32s;
}

@keyframes menuItemSlide {
    from {
        opacity: 0;
        transform: translateX(-15px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.dropdown-menu .dropdown-item>a {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 10px 20px !important;
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 450 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-left: 3px solid transparent !important;
    cursor: pointer !important;
    position: relative !important;
    border-radius: 0 !important;
    background: transparent !important;
    width: 100% !important;
}

.dropdown-menu .dropdown-item>a::after {
    content: '';
    position: absolute;
    inset: 4px 8px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.04), rgba(6, 182, 212, 0.02));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.dropdown-menu .dropdown-item>a:hover::after {
    opacity: 1;
}

.dropdown-menu .dropdown-item>a:hover {
    color: #fff !important;
    transform: translateX(6px) scale(1.02) !important;
}

.dropdown-menu .dropdown-item>a i {
    font-size: 16px !important;
    width: 24px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
    transition: transform 0.3s ease !important;
    opacity: 0.6 !important;
}

.dropdown-menu .dropdown-item>a:hover i {
    transform: scale(1.15) rotate(-5deg) !important;
    opacity: 1 !important;
}

.dropdown-menu .dropdown-item>a span:not(.dd-badge) {
    flex: 1 !important;
}


/* ================================================================
   📌 MỤC 6.5: NAVBAR DROPDOWN BADGE
   ================================================================ */

.dropdown-menu .dd-badge {
    font-size: 9px !important;
    font-weight: 700 !important;
    padding: 2px 12px !important;
    border-radius: 50px !important;
    margin-left: auto !important;
    border: 1px solid !important;
    flex-shrink: 0 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.dropdown-menu .dd-badge::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50px;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
    animation: badgeShine 2s ease-in-out infinite;
}

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

.dropdown-menu .dd-badge.hot {
    color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.12) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
    animation: hotPulse 0.8s ease-in-out infinite !important;
}

.dropdown-menu .dd-badge.premium {
    color: var(--accent-gold) !important;
    background: rgba(251, 191, 36, 0.12) !important;
    border-color: rgba(251, 191, 36, 0.25) !important;
    animation: badgePulseGold 2s ease-in-out infinite !important;
}

.dropdown-menu .dd-badge.vip {
    color: var(--accent-pink) !important;
    background: rgba(236, 72, 153, 0.12) !important;
    border-color: rgba(236, 72, 153, 0.25) !important;
}

.dropdown-menu .dd-badge.new {
    color: var(--accent-green) !important;
    background: rgba(52, 211, 153, 0.12) !important;
    border-color: rgba(52, 211, 153, 0.25) !important;
}

@keyframes badgePulseGold {
    0%,
    100% {
        box-shadow: 0 0 10px rgba(251, 191, 36, 0.1);
    }
    50% {
        box-shadow: 0 0 25px rgba(251, 191, 36, 0.25);
    }
}

@keyframes hotPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}


/* ================================================================
   📌 MỤC 6.6: NAVBAR DROPDOWN MÀU SẮC HOVER
   ================================================================ */

.dropdown-item[data-color="blue"]>a:hover {
    color: var(--accent-blue) !important;
    border-left-color: var(--accent-blue) !important;
    background: rgba(96, 165, 250, 0.08) !important;
}

.dropdown-item[data-color="green"]>a:hover {
    color: var(--accent-green) !important;
    border-left-color: var(--accent-green) !important;
    background: rgba(52, 211, 153, 0.08) !important;
}

.dropdown-item[data-color="gold"]>a:hover {
    color: var(--accent-gold) !important;
    border-left-color: var(--accent-gold) !important;
    background: rgba(251, 191, 36, 0.08) !important;
}

.dropdown-item[data-color="orange"]>a:hover {
    color: var(--accent-orange) !important;
    border-left-color: var(--accent-orange) !important;
    background: rgba(251, 146, 60, 0.08) !important;
}

.dropdown-item[data-color="pink"]>a:hover {
    color: var(--accent-pink) !important;
    border-left-color: var(--accent-pink) !important;
    background: rgba(236, 72, 153, 0.08) !important;
}

.dropdown-item[data-color="purple"]>a:hover {
    color: var(--accent-purple) !important;
    border-left-color: var(--accent-purple) !important;
    background: rgba(167, 139, 250, 0.08) !important;
}

.dd-divider {
    height: 1px;
    margin: 6px 16px;
    background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}


/* ================================================================
   📌 MỤC 6.7: NAVBAR MEGA MENU NGANG (DỰ PHÒNG)
   ================================================================ */

.dropdown-horizontal {
    min-width: 560px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.dropdown-horizontal .dropdown-item>a {
    padding: 10px 16px;
    font-size: 13px;
    border-radius: 8px;
    border-left: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-horizontal .dropdown-item>a:hover {
    transform: translateX(6px) scale(1.02);
    border-radius: 8px;
    border-left: 3px solid;
}

.dropdown-horizontal .dropdown-item {
    position: relative;
}

.dropdown-horizontal .dropdown-item::before {
    content: '';
    position: absolute;
    inset: 4px 6px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.03), rgba(6, 182, 212, 0.01));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.dropdown-horizontal .dropdown-item:hover::before {
    opacity: 1;
}

.dropdown-horizontal .dropdown-item>a i {
    width: 24px;
    font-size: 16px;
    text-align: center;
    flex-shrink: 0;
}


/* ================================================================
   📌 MỤC 6.8: NAVBAR ACTIONS
   ================================================================ */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}


/* ================================================================
   📌 MỤC 6.9: NAVBAR THEME TOGGLE
   ================================================================ */

.nav-theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.nav-theme-btn:hover {
    background: var(--bg-card-hover);
    transform: rotate(20deg) scale(1.05);
    color: #fff;
}

.nav-theme-btn:active {
    transform: rotate(40deg) scale(0.95);
}

.nav-theme-btn.light i {
    transform: rotate(180deg);
}


/* ================================================================
   📌 MỤC 6.10: NAVBAR LANGUAGE DROPDOWN
   ================================================================ */

.nav-language-dropdown {
    position: relative;
    flex-shrink: 0;
}

.nav-lang-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px 5px 8px;
    border-radius: 50px;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.nav-lang-btn:hover {
    background: var(--bg-card-hover);
    color: #fff;
    transform: translateY(-1px);
}

.nav-lang-btn .lang-flag {
    font-size: 18px;
    line-height: 1;
}

.nav-lang-btn .lang-code {
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.nav-lang-btn .lang-arrow {
    font-size: 9px;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.nav-language-dropdown.active .lang-arrow {
    transform: rotate(180deg);
    opacity: 1;
}


/* ================================================================
   📌 MỤC 6.11: NAVBAR LANGUAGE MENU
   ================================================================ */

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 300px;
    max-width: 360px;
    max-height: 420px;
    background: rgba(18, 18, 30, 0.96);
    backdrop-filter: blur(32px) saturate(1.6);
    -webkit-backdrop-filter: blur(32px) saturate(1.6);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 100;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.nav-language-dropdown.active .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.lang-search {
    padding: 0 4px 12px 4px;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 8px;
    flex-shrink: 0;
}

.lang-search input {
    width: 100%;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: all 0.3s ease;
}

.lang-search input:focus {
    border-color: var(--accent-gold);
    background: var(--bg-card-hover);
}

.lang-search input::placeholder {
    color: var(--text-muted);
}

.lang-list {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    max-height: 320px;
}

.lang-list::-webkit-scrollbar {
    width: 4px;
}

.lang-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.lang-list::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.3);
    border-radius: 4px;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.lang-item:hover {
    background: rgba(251, 191, 36, 0.06);
    border-color: rgba(251, 191, 36, 0.1);
    transform: translateX(4px);
}

.lang-item.active {
    background: rgba(251, 191, 36, 0.08);
    border-color: rgba(251, 191, 36, 0.15);
}

.lang-item .lang-flag {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.lang-item .lang-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.lang-item .lang-name {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
}

.lang-item .lang-native {
    color: var(--text-muted);
    font-size: 11px;
}

.lang-item .lang-code-small {
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-gold);
    background: rgba(251, 191, 36, 0.1);
    padding: 2px 8px;
    border-radius: 50px;
    flex-shrink: 0;
}

.lang-item .lang-check {
    color: var(--accent-gold);
    font-size: 14px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

.lang-item.active .lang-check {
    opacity: 1;
    transform: scale(1);
}


/* ================================================================
   📌 MỤC 6.12: NAVBAR SEARCH
   ================================================================ */

.nav-search-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.nav-search-btn:hover {
    background: var(--bg-card-hover);
    color: #fff;
    transform: scale(1.05);
}


/* ================================================================
   📌 MỤC 6.13: NAVBAR SEARCH BAR
   ================================================================ */

.search-bar {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: rgba(18, 18, 30, 0.96);
    backdrop-filter: blur(24px);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
    min-width: 320px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: none;
    gap: 10px;
    align-items: center;
    z-index: 99;
}

.search-bar.active {
    display: flex;
}

.search-bar input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border 0.3s ease;
}

.search-bar input:focus {
    border-color: var(--accent-gold);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

#searchCloseBtn {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#searchCloseBtn:hover {
    background: var(--bg-card-hover);
    color: #fff;
    transform: rotate(90deg);
}


/* ================================================================
   📌 MỤC 6.14: NAVBAR LIGHT THEME
   ================================================================ */

[data-theme="light"] .nav-link {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .nav-link:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .nav-link.active {
    color: var(--accent-gold);
    background: rgba(251, 191, 36, 0.08);
}

[data-theme="light"] .dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .dropdown-menu .dropdown-item>a {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .dropdown-menu .dropdown-item>a:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .lang-dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .lang-item .lang-name {
    color: #1a1a2e;
}

[data-theme="light"] .lang-item .lang-native {
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .lang-item:hover {
    background: rgba(251, 191, 36, 0.06);
}

[data-theme="light"] .lang-item.active {
    background: rgba(251, 191, 36, 0.1);
}

[data-theme="light"] .search-bar {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .search-bar input {
    color: #1a1a2e;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .nav-theme-btn,
[data-theme="light"] .nav-search-btn,
[data-theme="light"] .nav-lang-btn {
    border-color: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .nav-theme-btn:hover,
[data-theme="light"] .nav-search-btn:hover,
[data-theme="light"] .nav-lang-btn:hover {
    color: #000;
    background: rgba(0, 0, 0, 0.04);
}


/* ================================================================
   📌 MỤC 6.15: NAVBAR RESPONSIVE - MOBILE (QUAN TRỌNG)
   ================================================================ */

@media (max-width: 1024px) {
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .nav-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        background: rgba(10, 10, 18, 0.98);
        backdrop-filter: blur(24px) saturate(1.6);
        flex-direction: column;
        padding: 16px 20px 32px;
        gap: 2px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-bottom: 1px solid var(--border-glass);
        pointer-events: none;
        align-items: stretch;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
    .nav-menu.active {
        max-height: 80vh;
        opacity: 1;
        pointer-events: all;
        overflow-y: auto;
    }
    [data-theme="light"] .nav-menu {
        background: rgba(244, 246, 250, 0.98);
    }
    .nav-item {
        width: 100%;
    }
    .nav-link {
        padding: 12px 16px;
        font-size: 15px;
        width: 100%;
        justify-content: flex-start;
    }
    /* ===== DROPDOWN TRÊN MOBILE - HIỆN RA LIỀN ===== */
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        background: rgba(255, 255, 255, 0.03) !important;
        backdrop-filter: none !important;
        border: none !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        padding: 4px 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: all 0.35s ease !important;
        margin: 0 12px !important;
        display: block !important;
        grid-template-columns: unset !important;
        min-width: unset !important;
        width: auto !important;
    }
    .dropdown-menu::before {
        display: none !important;
    }
    /* KHI ACTIVE - HIỆN RA ĐẦY ĐỦ */
    .nav-dropdown.active .dropdown-menu {
        max-height: 600px !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: all !important;
        padding: 8px 0 !important;
        background: rgba(255, 255, 255, 0.03) !important;
        overflow-y: auto !important;
    }
    [data-theme="light"] .nav-dropdown.active .dropdown-menu {
        background: rgba(0, 0, 0, 0.02) !important;
    }
    /* ITEMS TRONG DROPDOWN TRÊN MOBILE */
    .dropdown-menu .dropdown-item {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    .dropdown-menu .dropdown-item>a {
        padding: 10px 16px !important;
        padding-left: 44px !important;
        font-size: 14px !important;
        border-left: none !important;
        color: var(--text-secondary) !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        width: 100% !important;
    }
    .dropdown-menu .dropdown-item>a:hover {
        transform: none !important;
        padding-left: 52px !important;
        border-left: 3px solid !important;
        color: #fff !important;
    }
    .dropdown-menu .dropdown-item>a i {
        width: 20px !important;
        font-size: 14px !important;
        flex-shrink: 0 !important;
    }
    .dropdown-menu .dd-badge {
        font-size: 8px !important;
        padding: 1px 10px !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }
    .dropdown-horizontal {
        grid-template-columns: 1fr !important;
        min-width: unset !important;
        padding: 4px 0;
    }
    .nav-actions {
        gap: 4px;
    }
    .nav-theme-btn {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }
    .nav-lang-btn {
        padding: 4px 10px 4px 6px;
        font-size: 11px;
    }
    .nav-lang-btn .lang-flag {
        font-size: 15px;
    }
    .nav-lang-btn .lang-code {
        font-size: 10px;
    }
    .nav-search-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    .lang-dropdown-menu {
        min-width: 280px;
        max-width: 320px;
        right: -8px;
        max-height: 360px;
    }
    .search-bar {
        position: fixed;
        top: var(--navbar-height);
        left: 12px;
        right: 12px;
        min-width: unset;
    }
}


/* ================================================================
   📌 MỤC 6.16: NAVBAR RESPONSIVE - TABLET
   ================================================================ */

@media (max-width: 768px) {
    .navbar-container {
        padding: 0 16px;
    }
    .logo-text {
        font-size: 17px;
    }
    .logo-img {
        width: 32px;
        height: 32px;
    }
    .nav-lang-btn .lang-code {
        display: none;
    }
    .nav-lang-btn {
        padding: 4px 8px;
    }
    .lang-dropdown-menu {
        min-width: 260px;
        max-width: 300px;
        right: -4px;
    }
    .dropdown-horizontal {
        min-width: unset;
    }
}


/* ================================================================
   📌 MỤC 6.17: NAVBAR RESPONSIVE - ĐIỆN THOẠI NHỎ
   ================================================================ */

@media (max-width: 480px) {
     :root {
        --navbar-height: 60px;
    }
    .navbar {
        height: var(--navbar-height);
    }
    .navbar-container {
        padding: 0 12px;
    }
    .logo-text {
        font-size: 15px;
    }
    .logo-img {
        width: 28px;
        height: 28px;
    }
    .nav-menu {
        top: var(--navbar-height);
        padding: 12px 16px 24px;
    }
    .nav-link {
        font-size: 14px;
        padding: 10px 14px;
    }
    .dropdown-menu .dropdown-item>a {
        font-size: 13px !important;
        padding: 8px 14px !important;
        padding-left: 36px !important;
    }
    .dropdown-menu .dropdown-item>a i {
        font-size: 13px !important;
        width: 18px !important;
    }
    .dropdown-menu .dd-badge {
        font-size: 7px !important;
        padding: 1px 8px !important;
    }
    .nav-theme-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .nav-search-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .lang-dropdown-menu {
        min-width: 240px;
        max-width: 260px;
        right: -4px;
        padding: 8px;
    }
    .search-bar {
        padding: 8px 12px;
    }
    .search-bar input {
        font-size: 13px;
        padding: 8px 12px;
    }
    #searchCloseBtn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .fps-counter {
        top: calc(var(--navbar-height) + 8px);
        right: 10px;
        font-size: 10px;
        padding: 2px 10px;
    }
}


/* ================================================================
   📌 MỤC 7: TOAST NOTIFICATION
   ================================================================ */

.toast-glass {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: rgba(10, 10, 18, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    max-width: 90%;
    text-align: center;
}

.toast-glass.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.toast-glass.success {
    border-color: var(--accent-green);
}

.toast-glass.error {
    border-color: var(--red);
}

.toast-glass.info {
    border-color: var(--accent-blue);
}


/* ================================================================
   📌 MỤC 8: HERO BANNER
   ================================================================ */

.hero-banner {
    position: relative;
    min-height: calc(100vh - var(--navbar-height) - 20px);
    display: flex;
    align-items: center;
    padding: 40px 24px 60px;
    overflow: hidden;
    background: var(--bg-primary);
    transition: background var(--transition);
}

.hero-banner-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}


/* ================================================================
   📌 MỤC 8.1: HERO CONTENT
   ================================================================ */

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.15);
    color: var(--accent-gold);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    width: fit-content;
    animation: badgePulse 3s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-primary);
}

.hero-highlight {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-1), var(--accent-gold));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 4s ease-in-out infinite;
}

.hero-desc {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.7;
}


/* ================================================================
   📌 MỤC 8.2: HERO BUTTONS
   ================================================================ */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent-gold), #d97706);
    color: #0f0c29;
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.4);
}

.btn-shine-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
    animation: btnShine 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes btnShine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    animation: floatBtn 3s ease-in-out infinite;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

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


/* ================================================================
   📌 MỤC 8.3: HERO STATS
   ================================================================ */

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-glass);
}

.hero-stats span {
    font-size: 14px;
    color: var(--text-secondary);
}

.hero-stats strong {
    font-size: 20px;
    color: var(--text-primary);
    display: block;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    cursor: default;
    padding: 4px 12px;
    border-radius: 8px;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--bg-card);
}

.stat-item strong {
    font-size: 28px;
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ================================================================
   📌 MỤC 8.4: HERO VISUAL
   ================================================================ */

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual-image {
    position: relative;
    width: 380px;
    height: 380px;
}

.hero-visual-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent-gold);
    box-shadow: 0 0 60px rgba(251, 191, 36, 0.15);
    position: relative;
    z-index: 2;
    animation: avatarFloat 6s ease-in-out infinite;
    transition: all 0.5s ease;
}

.hero-visual-image img:hover {
    transform: scale(1.05) rotate(-3deg);
    box-shadow: 0 0 80px rgba(251, 191, 36, 0.3);
}

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

.hero-visual-ring {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px dashed rgba(251, 191, 36, 0.2);
    animation: ringSpin 30s linear infinite;
    z-index: 1;
}

.hero-visual-ring-2 {
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    border: 2px dashed rgba(124, 58, 237, 0.15);
    animation: ringSpin 40s linear infinite reverse;
    z-index: 1;
}

@keyframes ringSpin {
    to {
        transform: rotate(360deg);
    }
}


/* ================================================================
   📌 MỤC 8.5: HERO PARTICLES
   ================================================================ */

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    border-radius: 50%;
}

.particle {
    position: absolute;
    width: var(--size, 6px);
    height: var(--size, 6px);
    background: radial-gradient(circle, var(--accent-gold), #f59e0b);
    border-radius: 50%;
    left: var(--x, 50%);
    top: var(--y, 50%);
    animation: particleFloat 6s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    opacity: 0.6;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

@keyframes particleFloat {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(20px, -30px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translate(-10px, 20px) scale(0.8);
        opacity: 0.4;
    }
    75% {
        transform: translate(15px, -10px) scale(1.1);
        opacity: 0.8;
    }
}


/* ================================================================
   📌 MỤC 8.6: HERO BLOBS
   ================================================================ */

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.hero-blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-gold);
    top: -100px;
    right: -100px;
    animation: floatBlob 12s ease-in-out infinite alternate;
}

.hero-blob-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-1);
    bottom: -80px;
    left: -80px;
    animation: floatBlob 15s ease-in-out infinite alternate-reverse;
}

.hero-blob-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-pink);
    top: 50%;
    left: 40%;
    animation: floatBlob 18s ease-in-out infinite alternate;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(40px, -40px) scale(1.1);
    }
}


/* ================================================================
   📌 MỤC 8.7: HERO ANIMATIONS
   ================================================================ */

.hero-badge-animate {
    animation: fadeInDown 0.8s ease forwards;
}

.hero-title-animate {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-desc-animate {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-buttons-animate {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-stats-animate {
    animation: fadeInUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

.hero-visual-animate {
    animation: fadeInScale 1s ease 0.3s forwards;
    opacity: 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* ================================================================
   📌 MỤC 8.8: HERO RESPONSIVE
   ================================================================ */

@media (max-width: 1024px) {
    .hero-banner-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-content {
        align-items: center;
    }
    .hero-desc {
        max-width: 100%;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-visual-image {
        width: 280px;
        height: 280px;
    }
    .hero-banner {
        min-height: auto;
        padding: 30px 20px 50px;
    }
    .hero-particles {
        display: none;
    }
}

@media (max-width: 600px) {
    .hero-banner {
        padding: 20px 16px 40px;
    }
    .hero-visual-image {
        width: 200px;
        height: 200px;
    }
    .hero-visual-ring {
        inset: -12px;
    }
    .hero-visual-ring-2 {
        inset: -24px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
    }
    .hero-stats {
        gap: 20px;
    }
    .hero-stats strong {
        font-size: 18px;
    }
    .stat-item strong {
        font-size: 18px;
    }
}


/* ================================================================
   📌 MỤC 9: CONTAINER & GLASS CARD
   ================================================================ */

.container {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-glow), var(--shadow-card);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.03));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), 0 12px 50px rgba(0, 0, 0, 0.4);
}


/* ================================================================
   📌 MỤC 10: PROFILE
   ================================================================ */

.profile-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profile-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.avatar-sm {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-glass);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.15);
    transition: all var(--transition);
}

.avatar-sm:hover {
    transform: scale(1.05) rotate(-3deg);
    border-color: var(--accent-gold);
}

.avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent-3);
    border-bottom-color: var(--accent-1);
    animation: ringSpin 3s linear infinite;
    opacity: 0.5;
}

.online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--accent-green);
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.5;
    }
}

.profile-info .name {
    font-size: 22px;
    font-weight: 800;
    background: radial-gradient(circle at 30% 30%, #fff, var(--accent-purple), var(--accent-1), var(--accent-3));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: galaxySpin 6s ease-in-out infinite;
}

@keyframes galaxySpin {
    0% {
        background-position: 0% 0%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

.profile-info .title-tag {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.profile-info .title-tag span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.profile-info .title-tag i {
    color: var(--accent-3);
    font-size: 11px;
}

.clock-box {
    text-align: right;
}

.clock-box .time {
    font-size: 28px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.clock-box .date {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.clock-box .lunar-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}


/* ================================================================
   📌 MỤC 11: WEATHER
   ================================================================ */

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.weather-location-group {
    display: flex;
    flex-direction: column;
}

.weather-location {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.weather-sub-location {
    font-size: 11px;
    color: var(--text-muted);
}

.weather-location-btn {
    padding: 4px 14px;
    border-radius: 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
    font-size: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.weather-location-btn:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.3);
}

.weather-toggle-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.weather-toggle-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.weather-glass {
    padding: 22px 26px;
    cursor: pointer;
}

.weather-glass:hover {
    transform: translateY(-2px);
}

.weather-glass.compact .weather-details-grid,
.weather-glass.compact .weather-10day,
.weather-glass.compact .weather-hourly-forecast {
    display: none;
}

.weather-glass.compact .weather-main-temp {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 4px 0;
}

.weather-glass.compact .weather-temp-big {
    font-size: 36px;
    font-weight: 700;
}

.weather-glass.compact .weather-temp-condition {
    font-size: 14px;
    color: var(--text-secondary);
}

.weather-glass.compact .weather-high-low {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.weather-glass.compact .weather-rain-forecast {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}


/* ================================================================
   📌 MỤC 11.1: WEATHER MAIN TEMP
   ================================================================ */

.weather-temp-big {
    font-size: 60px;
    font-weight: 800;
    background: linear-gradient(135deg, #f59e0b, #ef4444, #f59e0b);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: tempGlow 4s ease-in-out infinite;
    line-height: 1.1;
    letter-spacing: -2px;
}

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

.weather-high-low {
    display: flex;
    justify-content: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 4px 0 8px;
}

.weather-high-low span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.weather-rain-forecast {
    background: rgba(77, 171, 247, 0.06);
    border: 1px solid rgba(77, 171, 247, 0.1);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    margin: 6px 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.weather-rain-forecast:hover {
    background: rgba(77, 171, 247, 0.1);
    border-color: rgba(77, 171, 247, 0.2);
}

.weather-rain-forecast i {
    font-size: 18px;
    flex-shrink: 0;
}


/* ================================================================
   📌 MỤC 11.2: WEATHER DETAILS GRID
   ================================================================ */

.weather-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 10px 0 14px;
}

.weather-detail-item {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 14px 10px;
    text-align: center;
    border: 1px solid var(--border-glass);
    transition: all var(--transition);
}

.weather-detail-item:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.detail-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.detail-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-label {
    font-size: 8px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.detail-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.detail-sub {
    font-size: 10px;
    color: var(--text-muted);
}


/* ================================================================
   📌 MỤC 11.3: WEATHER 10 DAY
   ================================================================ */

.weather-10day {
    margin-top: 6px;
    border-top: 1px solid var(--border-glass);
    padding-top: 12px;
}

.weather-10day-header {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.weather-10day-header i {
    color: var(--accent-3);
}

.weather-10day-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.weather-10day-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    transition: all var(--transition);
    font-size: 13px;
}

.weather-10day-item:hover {
    background: var(--bg-card-hover);
}

.weather-10day-item .day-name {
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 50px;
}

.weather-10day-item .day-icon {
    font-size: 18px;
}

.weather-10day-item .day-temp {
    font-weight: 600;
    color: var(--text-primary);
}

.weather-10day-item .day-temp-low {
    color: var(--text-muted);
    margin-left: 4px;
}

.weather-update-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 12px;
    text-align: right;
    padding-top: 10px;
    border-top: 1px solid var(--border-glass);
}


/* ================================================================
   📌 MỤC 11.4: WEATHER HOURLY FORECAST
   ================================================================ */

.weather-hourly-forecast {
    margin-top: 10px;
    overflow: hidden;
    position: relative;
}

.weather-hourly-forecast .hourly-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 4px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.weather-hourly-forecast .hourly-scroll::-webkit-scrollbar {
    height: 4px;
}

.weather-hourly-forecast .hourly-scroll::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 4px;
}

.weather-hourly-forecast .hourly-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-3);
    border-radius: 4px;
}

.hourly-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    min-width: 65px;
    border: 1px solid var(--border-glass);
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: all var(--transition);
}

.hourly-item:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.hourly-item .hourly-time {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.hourly-item .hourly-icon {
    font-size: 20px;
}

.hourly-item .hourly-temp {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}


/* ================================================================
   📌 MỤC 12: CALENDAR - THIẾT KẾ MỚI ĐẸP HƠN
   ================================================================ */

.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}


/* Calendar Container */

.calendar-wrapper {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow-glow), var(--shadow-card);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.calendar-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), 0 12px 50px rgba(0, 0, 0, 0.4);
}


/* Calendar Header */

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-glass);
}

.calendar-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calendar-header-left .calendar-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.calendar-header-left .calendar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.calendar-header-left .calendar-title span {
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.calendar-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-header-right .month-year {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 140px;
    text-align: center;
}

.calendar-header-right .calendar-nav {
    display: flex;
    gap: 4px;
}

.calendar-header-right .calendar-nav button {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.calendar-header-right .calendar-nav button:hover {
    background: var(--bg-card-hover);
    color: #fff;
    transform: scale(1.05);
    border-color: var(--accent-1);
}

.calendar-header-right .calendar-nav button:active {
    transform: scale(0.9);
}


/* Calendar Grid */

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 16px;
}

.calendar-grid .day-name {
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-grid .day {
    text-align: center;
    padding: 10px 0;
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--text-secondary);
    position: relative;
    min-height: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.calendar-grid .day:hover {
    background: var(--bg-card);
    transform: scale(1.08);
    z-index: 2;
}

.calendar-grid .day.today {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(6, 182, 212, 0.1));
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.15);
    border: 2px solid var(--accent-1);
}

.calendar-grid .day.today .lunar-day {
    color: var(--accent-gold);
}

.calendar-grid .day.other-month {
    color: var(--text-muted);
    opacity: 0.3;
    cursor: default;
}

.calendar-grid .day.other-month:hover {
    background: transparent;
    transform: none;
}

.calendar-grid .day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-3);
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
    animation: eventPulse 2s ease-in-out infinite;
}

@keyframes eventPulse {
    0%,
    100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateX(-50%) scale(1.4);
        opacity: 1;
    }
}

.calendar-grid .day .lunar-day {
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 1px;
    font-weight: 400;
    opacity: 0.7;
    line-height: 1;
}

.calendar-grid .day.today .lunar-day {
    color: var(--accent-gold);
    opacity: 1;
}

.calendar-grid .day.selected {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.calendar-grid .day.selected .lunar-day {
    color: rgba(255, 255, 255, 0.8);
}

.calendar-grid .day.weekend {
    color: var(--red);
}

.calendar-grid .day.weekend.other-month {
    color: rgba(239, 68, 68, 0.3);
}


/* Calendar Legend */

.calendar-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid var(--border-glass);
    font-size: 12px;
    color: var(--text-muted);
}

.calendar-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.calendar-legend .dot-today {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    border: 2px solid var(--accent-1);
}

.calendar-legend .dot-event {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-3);
    animation: eventPulse 2s ease-in-out infinite;
}

.calendar-legend .dot-selected {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
}


/* Lunar Date Display */

.calendar-lunar-info {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.calendar-lunar-info .lunar-date-display {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.calendar-lunar-info .lunar-date-display i {
    color: var(--accent-gold);
    font-size: 18px;
}

.calendar-lunar-info .lunar-date-display .lunar-date-text {
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.calendar-lunar-info .lunar-date-display .lunar-date-text span {
    font-weight: 400;
    color: var(--text-muted);
    -webkit-text-fill-color: var(--text-muted);
}

.calendar-lunar-info .lunar-phase {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    padding: 4px 14px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-glass);
}

.calendar-lunar-info .lunar-phase i {
    font-size: 20px;
}


/* Event List */

.calendar-events {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-glass);
}

.calendar-events .event-list-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calendar-events .event-list-title .event-count {
    background: var(--accent-1);
    color: #fff;
    font-size: 10px;
    padding: 2px 10px;
    border-radius: 12px;
}

.calendar-events .event-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    border-left: 3px solid var(--accent-3);
    transition: all var(--transition);
    cursor: pointer;
}

.calendar-events .event-item:hover {
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.calendar-events .event-item .event-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.calendar-events .event-item .event-text {
    font-size: 13px;
    color: var(--text-secondary);
}

.calendar-events .event-item .event-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
}

.calendar-events .no-events {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.calendar-events .no-events i {
    font-size: 30px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.3;
}


/* Responsive Calendar */

@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .calendar-wrapper {
        padding: 16px 18px;
        border-radius: var(--radius-md);
    }
    .calendar-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    .calendar-header-left {
        justify-content: center;
    }
    .calendar-header-right {
        justify-content: space-between;
    }
    .calendar-header-right .month-year {
        font-size: 14px;
        min-width: 100px;
    }
    .calendar-grid .day {
        padding: 8px 0;
        font-size: 13px;
        min-height: 40px;
    }
    .calendar-grid .day .lunar-day {
        font-size: 8px;
    }
    .calendar-lunar-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
    .calendar-lunar-info .lunar-date-display {
        font-size: 13px;
    }
    .calendar-events .event-item {
        padding: 6px 10px;
        font-size: 12px;
    }
    .calendar-events .event-item .event-time {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .calendar-wrapper {
        padding: 12px 12px;
        border-radius: var(--radius-sm);
    }
    .calendar-header-left .calendar-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    .calendar-header-left .calendar-title {
        font-size: 15px;
    }
    .calendar-grid {
        gap: 2px;
    }
    .calendar-grid .day {
        padding: 6px 0;
        font-size: 12px;
        min-height: 34px;
    }
    .calendar-grid .day .lunar-day {
        font-size: 7px;
    }
    .calendar-grid .day-name {
        font-size: 10px;
        padding: 4px 0;
    }
    .calendar-header-right .calendar-nav button {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    .calendar-header-right .month-year {
        font-size: 13px;
        min-width: 80px;
    }
}


/* ================================================================
   📌 MỤC 12.1: BIRTHDAY ICON
   ================================================================ */

.calendar-grid .day.birthday {
    position: relative;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(251, 191, 36, 0.1));
    border: 2px solid #ec4899;
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.2);
}

.calendar-grid .day.birthday .birthday-icon {
    position: absolute;
    top: -6px;
    right: -4px;
    font-size: 14px;
    animation: birthdayBounce 2s ease-in-out infinite;
}

.calendar-grid .day.birthday.today {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(251, 191, 36, 0.2));
    border-color: #ff6b8a;
}

.calendar-grid .day.birthday:hover {
    transform: scale(1.12) !important;
    box-shadow: 0 0 40px rgba(236, 72, 153, 0.3);
}

@keyframes birthdayBounce {
    0%,
    100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.2) rotate(-5deg);
    }
    75% {
        transform: scale(1.2) rotate(5deg);
    }
}


/* Event item màu sắc theo loại sự kiện */

.calendar-events .event-item.birthday-event {
    border-left-color: #ec4899;
    background: rgba(236, 72, 153, 0.05);
}

.calendar-events .event-item.birthday-event:hover {
    background: rgba(236, 72, 153, 0.12);
}

.calendar-events .event-item.holiday-event {
    border-left-color: #ef4444;
}

.calendar-events .event-item.holiday-event:hover {
    background: rgba(239, 68, 68, 0.08);
}

.calendar-events .event-item.festival-event {
    border-left-color: #f97316;
}

.calendar-events .event-item.festival-event:hover {
    background: rgba(249, 115, 22, 0.08);
}

.calendar-events .event-item.national-event {
    border-left-color: #22c55e;
}

.calendar-events .event-item.national-event:hover {
    background: rgba(34, 197, 94, 0.08);
}


/* ================================================================
   📌 MỤC 13: BUTTONS
   ================================================================ */

.button-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.btn-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
    position: relative;
    overflow: hidden;
}

.btn-modern::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.05), rgba(6, 182, 212, 0.05));
    opacity: 0;
    transition: all var(--transition);
}

.btn-modern:hover::after {
    opacity: 1;
}

.btn-modern:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.btn-call {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
    border-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.btn-call:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(16, 185, 129, 0.1));
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.btn-zalo {
    background: linear-gradient(135deg, rgba(0, 104, 255, 0.12), rgba(0, 104, 255, 0.04));
    border-color: rgba(0, 104, 255, 0.15);
    color: #4a8cff;
}

.btn-zalo:hover {
    background: linear-gradient(135deg, rgba(0, 104, 255, 0.22), rgba(0, 104, 255, 0.08));
    border-color: rgba(0, 104, 255, 0.3);
    color: #7aafff;
}

.social-btn[data-social="facebook"]:hover {
    color: #1877f2;
    border-color: rgba(24, 119, 242, 0.3);
    background: rgba(24, 119, 242, 0.08);
}

.social-btn[data-social="instagram"]:hover {
    color: #e4405f;
    border-color: rgba(228, 64, 95, 0.3);
    background: rgba(228, 64, 95, 0.08);
}

.social-btn[data-social="telegram"]:hover {
    color: #0088cc;
    border-color: rgba(0, 136, 204, 0.3);
    background: rgba(0, 136, 204, 0.08);
}

.social-btn[data-social="locket"]:hover {
    color: #ff6b9d;
    border-color: rgba(255, 107, 157, 0.3);
    background: rgba(255, 107, 157, 0.08);
}


/* ================================================================
   📌 MỤC 14: SHARE BUTTONS
   ================================================================ */

.share-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 4px;
    flex-wrap: wrap;
}

.share-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.share-btn:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}


/* ================================================================
   📌 MỤC 15: MUSIC PLAYER
   ================================================================ */

.music-player-modern {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: var(--shadow-glow), var(--shadow-card);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    min-width: 0;
    width: 100%;
}

.music-player-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.music-player-modern:hover {
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.music-player-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.music-avatar {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.35);
}

.music-avatar i {
    font-size: 32px;
    color: #fff;
    animation: musicPulse 2s ease-in-out infinite;
}

@keyframes musicPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.music-avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent-3);
    border-bottom-color: var(--accent-1);
    animation: ringSpin 3s linear infinite;
    opacity: 0.6;
}

.music-info {
    flex: 1;
    min-width: 0;
}

.music-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.music-title.playing {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.music-artist {
    font-size: 15px;
    color: var(--text-muted);
    margin-top: 3px;
    font-weight: 500;
}

.music-favorite {
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 24px;
    padding: 8px;
    flex-shrink: 0;
}

.music-favorite:hover {
    color: #ef4444;
    transform: scale(1.15);
}

.music-favorite.liked i {
    color: #ef4444;
    font-weight: 900;
}


/* ================================================================
   📌 MỤC 15.1: MUSIC SOURCE TABS
   ================================================================ */

.music-source-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    padding: 5px;
    border: 1px solid var(--border-glass);
    position: relative;
    z-index: 1;
}

.music-tab {
    flex: 1;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.music-tab:hover {
    color: var(--text-secondary);
    background: var(--bg-card-hover);
}

.music-tab.active {
    background: rgba(124, 58, 237, 0.12);
    color: var(--accent-1);
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.08);
}

.music-tab i {
    font-size: 18px;
}

.music-source-panel {
    display: none;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.music-source-panel.active {
    display: block;
}

.music-source-panel .music-controls {
    display: flex;
    gap: 14px;
}

.music-source-panel select {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    color: var(--text-secondary);
    font-size: 15px;
    font-family: var(--font-family);
    outline: none;
    cursor: pointer;
    transition: all var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='rgba(255,255,255,0.3)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
}

.music-source-panel select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 8px;
}


/* ================================================================
   📌 MỤC 15.2: MUSIC PLAYER CONTROLS
   ================================================================ */

.music-player-controls {
    position: relative;
    z-index: 1;
}

.music-control-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 18px;
}

.music-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}

.music-btn:hover {
    background: var(--bg-card-hover);
    transform: scale(1.08);
    color: #fff;
}

.music-btn-play {
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    border-color: transparent;
    color: #fff;
    font-size: 26px;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.35);
}

.music-btn-play:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 36px rgba(124, 58, 237, 0.5);
}

.music-btn-play.playing {
    animation: btnPulse 1.5s ease-in-out infinite;
}

@keyframes btnPulse {
    0%,
    100% {
        box-shadow: 0 4px 24px rgba(124, 58, 237, 0.35);
    }
    50% {
        box-shadow: 0 4px 48px rgba(124, 58, 237, 0.6);
    }
}

.music-btn.repeat-active {
    color: var(--accent-3);
    border-color: var(--accent-3);
    background: rgba(6, 182, 212, 0.1);
}


/* ================================================================
   📌 MỤC 15.3: MUSIC PROGRESS
   ================================================================ */

.music-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.music-time {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    min-width: 48px;
}

.music-progress-bar-container {
    flex: 1;
    height: 6px;
    background: var(--bg-card);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: height 0.2s ease;
}

.music-progress-bar-container:hover {
    height: 8px;
}

.music-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
    border-radius: 4px;
    transition: width 0.1s linear;
    position: relative;
}

.music-progress-dot {
    position: absolute;
    top: 50%;
    right: -7px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 24px rgba(124, 58, 237, 0.4);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.music-progress-bar-container:hover .music-progress-dot {
    opacity: 1;
}


/* ================================================================
   📌 MỤC 15.4: MUSIC BOTTOM CONTROLS
   ================================================================ */

.music-bottom-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.music-volume-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.music-volume-group i {
    color: var(--text-muted);
    font-size: 18px;
    min-width: 22px;
}

.music-volume-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 4px;
    background: var(--bg-card);
    outline: none;
    transition: all 0.3s ease;
    max-width: 140px;
}

.music-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    cursor: pointer;
    box-shadow: 0 0 24px rgba(124, 58, 237, 0.3);
}

.music-volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    cursor: pointer;
    border: none;
}

.music-btn-playlist {
    position: relative;
    font-size: 18px;
    width: 48px;
    height: 48px;
}

.playlist-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-1);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
}


/* ================================================================
   📌 MỤC 15.5: YOUTUBE
   ================================================================ */

.youtube-search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.youtube-input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-family);
    outline: none;
    transition: all var(--transition);
}

.youtube-input:focus {
    border-color: rgba(124, 58, 237, 0.3);
    background: var(--bg-card-hover);
}

.youtube-search-btn {
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #FF0000, #cc0000);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.youtube-search-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 24px rgba(255, 0, 0, 0.3);
}

.youtube-embed-wrapper {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    min-height: 140px;
}

.youtube-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
    text-align: center;
    color: var(--text-muted);
    gap: 12px;
}

.youtube-placeholder p {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.youtube-placeholder span {
    font-size: 14px;
}

.youtube-iframe-container {
    padding: 4px;
}

.youtube-iframe-container iframe {
    display: block;
    border-radius: 8px;
}

.youtube-now-playing {
    padding: 12px 16px;
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
    background: var(--bg-card);
    border-radius: 0 0 8px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ================================================================
   📌 MỤC 15.6: YOUTUBE SEARCH RESULTS
   ================================================================ */

.youtube-search-results {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    overflow: hidden;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.youtube-search-results .search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-glass);
}

.youtube-search-results .search-header span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.youtube-search-results .search-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
    transition: all 0.3s ease;
}

.youtube-search-results .search-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.video-result-item {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-glass);
}

.video-result-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 0, 0, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.video-result-item img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.video-result-info {
    padding: 10px 12px;
}

.video-result-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Standard property for compatibility */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.video-result-channel {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.video-result-play {
    margin-top: 8px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #FF0000, #cc0000);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-result-play:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.youtube-search-results .search-guide {
    padding: 10px 16px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    line-height: 1.6;
}

.youtube-search-results .search-guide strong {
    color: var(--text-secondary);
}


/* ================================================================
   📌 MỤC 15.7: MUSIC PLAYLIST DROPDOWN
   ================================================================ */

.music-playlist-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    z-index: 20;
    opacity: 0;
    transform: scale(0.95) translateY(-8px);
    pointer-events: none;
    transition: all var(--transition);
    max-height: 300px;
    overflow-y: auto;
}

.music-playlist-dropdown.open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-glass);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.playlist-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    transition: all 0.3s ease;
}

.playlist-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

.playlist-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 13px;
    color: var(--text-secondary);
}

.playlist-item:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.playlist-item.active {
    background: rgba(124, 58, 237, 0.08);
    color: var(--accent-1);
    border-left: 3px solid var(--accent-1);
}

.playlist-item .item-index {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 24px;
}

.playlist-item .item-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item .item-duration {
    font-size: 11px;
    color: var(--text-muted);
}

.playlist-item .item-play-icon {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.playlist-item.active .item-play-icon {
    opacity: 1;
    color: var(--accent-1);
}

.playlist-item:hover .item-play-icon {
    opacity: 1;
}


/* ================================================================
   📌 MỤC 16: TIMER
   ================================================================ */

.timer-modern {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: var(--shadow-glow), var(--shadow-card);
    transition: all var(--transition);
}

.timer-modern:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.timer-modern #timer {
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* ================================================================
   📌 MỤC 17: MARQUEE
   ================================================================ */

.marquee-wrapper {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 10px 0;
    overflow: hidden;
    box-shadow: var(--shadow-glow), var(--shadow-card);
}

.marquee-wrapper marquee {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

.marquee-section {
    margin-bottom: 16px;
    padding: 20px 0 10px;
}

.marquee-section-header {
    text-align: center;
    margin-bottom: 18px;
}

.marquee-section-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-3);
    background: rgba(99, 102, 241, 0.1);
    padding: 4px 16px;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    margin-bottom: 8px;
}

.marquee-section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.marquee-section-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.marquee-wrapper.compact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.marquee-track {
    display: flex;
    gap: 12px;
    width: max-content;
    will-change: transform;
    padding: 4px 0;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

.marquee-track.left {
    animation: marqueeLeft 35s linear infinite;
}

.marquee-track.right {
    animation: marqueeRight 35s linear infinite;
}

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

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

.marquee-track .feature-card {
    flex: 0 0 280px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.marquee-track .feature-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    background: var(--bg-card-hover);
    transform: scale(1.02);
}

.marquee-track .feature-card svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.marquee-track .feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.marquee-track .feature-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.marquee-track .feature-card p a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
}

.marquee-track .feature-card p a:hover {
    text-decoration: underline;
}


/* ================================================================
   📌 MỤC 17.1: MARQUEE RESPONSIVE
   ================================================================ */

@media (max-width: 768px) {
    .marquee-wrapper.compact {
        display: flex;
        flex-direction: column;
        gap: 6px;
        overflow: hidden;
        padding: 4px 0;
    }
    .marquee-track {
        display: flex;
        gap: 10px;
        width: max-content;
        animation: marqueeLeftMobile 20s linear infinite;
        will-change: transform;
        padding: 2px 0;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    .marquee-track.right {
        animation: marqueeRightMobile 20s linear infinite;
    }
    .marquee-track .feature-card {
        flex: 0 0 200px;
        padding: 12px 14px;
        font-size: 12px;
        min-height: 120px;
    }
    .marquee-track .feature-card h3 {
        font-size: 13px;
    }
    .marquee-track .feature-card p {
        font-size: 11px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        /* Standard property for compatibility */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .marquee-track .feature-card svg {
        width: 20px;
        height: 20px;
    }
    @keyframes marqueeLeftMobile {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(-50%);
        }
    }
    @keyframes marqueeRightMobile {
        0% {
            transform: translateX(-50%);
        }
        100% {
            transform: translateX(0);
        }
    }
    .marquee-track:active {
        animation-play-state: paused !important;
    }
    @supports (-webkit-touch-callout: none) {
        .marquee-track {
            animation-duration: 25s !important;
        }
        .marquee-track .feature-card {
            -webkit-touch-callout: none;
            -webkit-user-select: none;
            user-select: none;
        }
    }
}

@media (max-width: 480px) {
    .marquee-track .feature-card {
        flex: 0 0 170px;
        padding: 10px 12px;
        min-height: 100px;
    }
    .marquee-track .feature-card h3 {
        font-size: 12px;
    }
    .marquee-track .feature-card p {
        font-size: 10px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        /* Standard property for compatibility */
    }
    .marquee-track .feature-card svg {
        width: 16px;
        height: 16px;
    }
    .marquee-section-title {
        font-size: 18px;
    }
    .marquee-section-desc {
        font-size: 12px;
    }
}

@media (hover: none) {
    .marquee-track {
        animation-play-state: running !important;
    }
}


/* ================================================================
   📌 MỤC 18: TECH SHOWCASE
   ================================================================ */

.tech-showcase-section {
    margin-top: 40px;
    margin-bottom: 30px;
    text-align: center;
    --tech-canvas-w: 1200px;
    --tech-canvas-h: 380px;
    --tech-canvas-scale: 1;
    padding: 0 10px;
}

@media (max-width: 1200px) {
    .tech-showcase-section {
        --tech-canvas-scale: 0.85;
    }
}

@media (max-width: 992px) {
    .tech-showcase-section {
        --tech-canvas-scale: 0.7;
    }
}

@media (max-width: 768px) {
    .tech-showcase-section {
        --tech-canvas-w: 480px;
        --tech-canvas-h: 500px;
        --tech-canvas-scale: 0.9;
        margin-top: 30px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .tech-showcase-section {
        --tech-canvas-w: 480px;
        --tech-canvas-h: 500px;
        --tech-canvas-scale: 0.8;
        margin-top: 20px;
        margin-bottom: 15px;
    }
}

.tech-showcase-title {
    font-size: 26px;
    font-weight: 800;
    background: linear-gradient(135deg, #38bdf8, #818cf8, #a78bfa, #38bdf8);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: techTitleShimmer 5s ease-in-out infinite;
    letter-spacing: -0.5px;
}

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

.tech-showcase-sub {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.tech-map-outer-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glow), var(--shadow-card);
}

.tech-map-canvas {
    position: relative;
    width: 100%;
    max-width: var(--tech-canvas-w);
    height: calc(var(--tech-canvas-h) * var(--tech-canvas-scale, 1));
    margin: 0 auto;
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.04) 0%, transparent 70%), var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.tech-map-grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

.tech-map-content {
    position: relative;
    width: var(--tech-canvas-w);
    height: var(--tech-canvas-h);
    margin: 0 auto;
    flex-shrink: 0;
    transition: all 0.3s ease;
    opacity: 1;
    overflow: visible;
}

@media (max-width: 768px) {
    .tech-map-content {
        width: 100%;
        height: auto;
        min-height: 450px;
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .tech-map-content {
        min-height: 380px;
        padding: 10px 0;
    }
}


/* ================================================================
   📌 MỤC 18.1: TECH CENTER NODE
   ================================================================ */

.center-tech-node {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .center-tech-node {
        width: 68px;
        height: 68px;
    }
}

@media (max-width: 480px) {
    .center-tech-node {
        width: 54px;
        height: 54px;
    }
}

.center-tech-pulse {
    position: absolute;
    inset: -12px;
    border-radius: 28px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
    animation: centerTechPulse 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes centerTechPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.center-tech-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: linear-gradient(135deg, #1a1a2e, #0f0a14);
    border: 2.5px solid #38bdf8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(56, 189, 248, 0.2);
    z-index: 2;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.center-tech-inner i {
    font-size: 36px;
    color: #38bdf8;
    transition: transform 0.4s ease;
}

.center-tech-inner span {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.center-tech-node:hover .center-tech-inner {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(56, 189, 248, 0.3);
}

.center-tech-node:hover .center-tech-inner i {
    transform: scale(1.15) rotate(-5deg);
}


/* ================================================================
   📌 MỤC 18.2: FLOATING TECH NODE
   ================================================================ */

.floating-tech-node {
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    width: var(--tech-size-dt, 52px);
    height: var(--tech-size-dt, 52px);
    will-change: transform;
    cursor: pointer;
}

@media (max-width: 768px) {
    .floating-tech-node {
        width: var(--tech-size-mb, 44px);
        height: var(--tech-size-mb, 44px);
    }
}

.floating-tech-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1.5px solid var(--border-glass);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    gap: 1px;
}

.floating-tech-inner i {
    font-size: 22px;
    transition: transform 0.3s ease;
}

.floating-tech-inner span {
    font-size: 7px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.floating-tech-inner:hover {
    transform: scale(1.15);
    z-index: 10;
    border-color: rgba(255, 255, 255, 0.15);
}

.floating-tech-inner:hover span {
    color: var(--text-secondary);
}

.floating-tech-inner.frozen {
    transform: scale(1.25) !important;
    filter: drop-shadow(0 12px 32px rgba(56, 189, 248, 0.6)) !important;
    z-index: 100 !important;
    border-color: #38bdf8 !important;
}


/* ================================================================
   📌 MỤC 18.3: TECH THEMES
   ================================================================ */

.tech-theme-frontend {
    --tech-glow: rgba(97, 218, 251, 0.3);
}

.tech-theme-frontend:hover,
.tech-theme-frontend.frozen {
    filter: drop-shadow(0 8px 24px rgba(97, 218, 251, 0.6));
}

.tech-theme-backend {
    --tech-glow: rgba(52, 211, 153, 0.3);
}

.tech-theme-backend:hover,
.tech-theme-backend.frozen {
    filter: drop-shadow(0 8px 24px rgba(52, 211, 153, 0.6));
}

.tech-theme-database {
    --tech-glow: rgba(251, 191, 36, 0.3);
}

.tech-theme-database:hover,
.tech-theme-database.frozen {
    filter: drop-shadow(0 8px 24px rgba(251, 191, 36, 0.6));
}

.tech-theme-devops {
    --tech-glow: rgba(167, 139, 250, 0.3);
}

.tech-theme-devops:hover,
.tech-theme-devops.frozen {
    filter: drop-shadow(0 8px 24px rgba(167, 139, 250, 0.6));
}

.tech-theme-design {
    --tech-glow: rgba(244, 114, 182, 0.3);
}

.tech-theme-design:hover,
.tech-theme-design.frozen {
    filter: drop-shadow(0 8px 24px rgba(244, 114, 182, 0.6));
}

.tech-theme-tools {
    --tech-glow: rgba(56, 189, 248, 0.3);
}

.tech-theme-tools:hover,
.tech-theme-tools.frozen {
    filter: drop-shadow(0 8px 24px rgba(56, 189, 248, 0.6));
}

.tech-theme-mobile {
    --tech-glow: rgba(74, 222, 128, 0.3);
}

.tech-theme-mobile:hover,
.tech-theme-mobile.frozen {
    filter: drop-shadow(0 8px 24px rgba(74, 222, 128, 0.6));
}

.tech-theme-ai {
    --tech-glow: rgba(236, 72, 153, 0.3);
}

.tech-theme-ai:hover,
.tech-theme-ai.frozen {
    filter: drop-shadow(0 8px 24px rgba(236, 72, 153, 0.6));
}

.tech-theme-cms {
    --tech-glow: rgba(251, 146, 60, 0.3);
}

.tech-theme-cms:hover,
.tech-theme-cms.frozen {
    filter: drop-shadow(0 8px 24px rgba(251, 146, 60, 0.6));
}


/* ================================================================
   📌 MỤC 18.4: SOCIAL ICONS - BỎ MÀU NỀN
   ================================================================ */

.social-map-content {
    position: relative;
    width: var(--tech-canvas-w, 1200px);
    height: var(--tech-canvas-h, 520px);
    margin: 0 auto;
    flex-shrink: 0;
    transition: all 0.3s ease;
    opacity: 1;
    overflow: visible;
    min-height: 400px;
}

@media (max-width: 1200px) {
    .social-map-content {
        --tech-canvas-scale: 0.85;
    }
}

@media (max-width: 992px) {
    .social-map-content {
        --tech-canvas-scale: 0.7;
    }
}

@media (max-width: 768px) {
    .social-map-content {
        width: 100%;
        height: auto;
        min-height: 450px;
        padding: 20px 0;
        --tech-canvas-scale: 0.9;
    }
}

@media (max-width: 480px) {
    .social-map-content {
        min-height: 380px;
        padding: 10px 0;
        --tech-canvas-scale: 0.8;
    }
}

.social-map-content .floating-social-node {
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    width: var(--social-size-dt, 48px);
    height: var(--social-size-dt, 48px);
    will-change: transform;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 768px) {
    .social-map-content .floating-social-node {
        width: var(--social-size-mb, 40px);
        height: var(--social-size-mb, 40px);
    }
}

.social-map-content .floating-social-node:hover {
    transform: scale(1.4) translateY(-4px) !important;
    z-index: 10;
}


/* ===== BỎ MÀU NỀN - QUAN TRỌNG ===== */

.social-map-content .floating-social-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    /* BỎ MÀU NỀN */
    backdrop-filter: none;
    /* BỎ BLUR */
    border-radius: 16px;
    border: 1px solid var(--border-glass);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 4px;
    gap: 1px;
    overflow: hidden;
    box-shadow: none;
    /* BỎ SHADOW */
}

.social-map-content .floating-social-inner i {
    font-size: calc(var(--social-size-dt, 48px) * 0.42);
    transition: all 0.3s ease;
}

.social-map-content .floating-social-inner span {
    font-size: calc(var(--social-size-dt, 48px) * 0.16);
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}


/* ===== HOVER - CŨNG BỎ MÀU NỀN ===== */

.social-map-content .floating-social-node:hover .floating-social-inner {
    background: transparent !important;
    /* BỎ MÀU NỀN KHI HOVER */
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.social-map-content .floating-social-node:hover .floating-social-inner span {
    color: var(--text-primary);
}

.social-map-content .floating-social-inner.frozen {
    transform: scale(1.25) !important;
    filter: drop-shadow(0 12px 32px rgba(251, 191, 36, 0.6)) !important;
    z-index: 100 !important;
    border-color: var(--accent-gold) !important;
}


/* ================================================================
   📌 MỤC 18.5: SOCIAL THEMES - BỎ MÀU NỀN
   ================================================================ */


/* BỎ TẤT CẢ MÀU NỀN CỦA ICON MẠNG XÃ HỘI */

.social-theme-facebook {
    background: transparent !important;
}

.social-theme-facebook i {
    color: #1877F2 !important;
}

.social-theme-instagram {
    background: transparent !important;
}

.social-theme-instagram i {
    color: #E4405F !important;
}

.social-theme-youtube {
    background: transparent !important;
}

.social-theme-youtube i {
    color: #FF0000 !important;
}

.social-theme-twitter {
    background: transparent !important;
}

.social-theme-twitter i {
    color: #1DA1F2 !important;
}

.social-theme-linkedin {
    background: transparent !important;
}

.social-theme-linkedin i {
    color: #0A66C2 !important;
}

.social-theme-zalo {
    background: transparent !important;
}

.social-theme-zalo i {
    color: #0182F0 !important;
}

.social-theme-github {
    background: transparent !important;
}

.social-theme-github i {
    color: #fff !important;
}

.social-theme-telegram {
    background: transparent !important;
}

.social-theme-telegram i {
    color: #26A5E4 !important;
}

.social-theme-whatsapp {
    background: transparent !important;
}

.social-theme-whatsapp i {
    color: #25D366 !important;
}

.social-theme-tiktok {
    background: transparent !important;
}

.social-theme-tiktok i {
    color: #000000 !important;
}


/* ================================================================
   📌 MỤC 18.6: SOCIAL NODE APPEAR ANIMATION
   ================================================================ */

.social-map-content .floating-social-node {
    animation: socialAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.social-map-content .floating-social-node:nth-child(1) {
    animation-delay: 0.02s;
}

.social-map-content .floating-social-node:nth-child(2) {
    animation-delay: 0.04s;
}

.social-map-content .floating-social-node:nth-child(3) {
    animation-delay: 0.06s;
}

.social-map-content .floating-social-node:nth-child(4) {
    animation-delay: 0.08s;
}

.social-map-content .floating-social-node:nth-child(5) {
    animation-delay: 0.10s;
}

.social-map-content .floating-social-node:nth-child(6) {
    animation-delay: 0.12s;
}

.social-map-content .floating-social-node:nth-child(7) {
    animation-delay: 0.14s;
}

.social-map-content .floating-social-node:nth-child(8) {
    animation-delay: 0.16s;
}

.social-map-content .floating-social-node:nth-child(9) {
    animation-delay: 0.18s;
}

.social-map-content .floating-social-node:nth-child(10) {
    animation-delay: 0.20s;
}

.social-map-content .floating-social-node:nth-child(11) {
    animation-delay: 0.22s;
}

.social-map-content .floating-social-node:nth-child(12) {
    animation-delay: 0.24s;
}

.social-map-content .floating-social-node:nth-child(13) {
    animation-delay: 0.26s;
}

.social-map-content .floating-social-node:nth-child(14) {
    animation-delay: 0.28s;
}

.social-map-content .floating-social-node:nth-child(15) {
    animation-delay: 0.30s;
}

.social-map-content .floating-social-node:nth-child(16) {
    animation-delay: 0.32s;
}

.social-map-content .floating-social-node:nth-child(17) {
    animation-delay: 0.34s;
}

.social-map-content .floating-social-node:nth-child(18) {
    animation-delay: 0.36s;
}

.social-map-content .floating-social-node:nth-child(19) {
    animation-delay: 0.38s;
}

.social-map-content .floating-social-node:nth-child(20) {
    animation-delay: 0.40s;
}

.social-map-content .floating-social-node:nth-child(21) {
    animation-delay: 0.42s;
}

.social-map-content .floating-social-node:nth-child(22) {
    animation-delay: 0.44s;
}

.social-map-content .floating-social-node:nth-child(23) {
    animation-delay: 0.46s;
}

.social-map-content .floating-social-node:nth-child(24) {
    animation-delay: 0.48s;
}

.social-map-content .floating-social-node:nth-child(25) {
    animation-delay: 0.50s;
}

.social-map-content .floating-social-node:nth-child(26) {
    animation-delay: 0.52s;
}

.social-map-content .floating-social-node:nth-child(27) {
    animation-delay: 0.54s;
}

.social-map-content .floating-social-node:nth-child(28) {
    animation-delay: 0.56s;
}

.social-map-content .floating-social-node:nth-child(29) {
    animation-delay: 0.58s;
}

.social-map-content .floating-social-node:nth-child(30) {
    animation-delay: 0.60s;
}

.social-map-content .floating-social-node:nth-child(31) {
    animation-delay: 0.62s;
}

.social-map-content .floating-social-node:nth-child(32) {
    animation-delay: 0.64s;
}

.social-map-content .floating-social-node:nth-child(33) {
    animation-delay: 0.66s;
}

.social-map-content .floating-social-node:nth-child(34) {
    animation-delay: 0.68s;
}

.social-map-content .floating-social-node:nth-child(35) {
    animation-delay: 0.70s;
}

.social-map-content .floating-social-node:nth-child(36) {
    animation-delay: 0.72s;
}

.social-map-content .floating-social-node:nth-child(37) {
    animation-delay: 0.74s;
}

.social-map-content .floating-social-node:nth-child(38) {
    animation-delay: 0.76s;
}

.social-map-content .floating-social-node:nth-child(39) {
    animation-delay: 0.78s;
}

.social-map-content .floating-social-node:nth-child(40) {
    animation-delay: 0.80s;
}

.social-map-content .floating-social-node:nth-child(41) {
    animation-delay: 0.82s;
}

.social-map-content .floating-social-node:nth-child(42) {
    animation-delay: 0.84s;
}

.social-map-content .floating-social-node:nth-child(43) {
    animation-delay: 0.86s;
}

.social-map-content .floating-social-node:nth-child(44) {
    animation-delay: 0.88s;
}

.social-map-content .floating-social-node:nth-child(45) {
    animation-delay: 0.90s;
}

.social-map-content .floating-social-node:nth-child(46) {
    animation-delay: 0.92s;
}

.social-map-content .floating-social-node:nth-child(47) {
    animation-delay: 0.94s;
}

.social-map-content .floating-social-node:nth-child(48) {
    animation-delay: 0.96s;
}

.social-map-content .floating-social-node:nth-child(49) {
    animation-delay: 0.98s;
}

.social-map-content .floating-social-node:nth-child(50) {
    animation-delay: 1.00s;
}

@keyframes socialAppear {
    from {
        opacity: 0;
        transform: scale(0.3) rotate(180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}


/* ================================================================
   📌 MỤC 19: COLOR PALETTE
   ================================================================ */

.color-palette-dropdown {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

.palette-trigger {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.palette-trigger:hover {
    transform: scale(1.1) rotate(15deg);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 8px 40px rgba(124, 58, 237, 0.2);
}

.palette-menu {
    position: absolute;
    bottom: calc(100% + 16px);
    right: 0;
    width: 360px;
    max-height: 480px;
    overflow-y: auto;
    background: rgba(10, 10, 18, 0.92);
    backdrop-filter: blur(32px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 20px 18px 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: scale(0.92) translateY(12px);
    pointer-events: none;
    transition: all var(--transition);
}

.palette-menu.open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
}

.palette-header {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.palette-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.palette-item {
    border-radius: var(--radius-sm);
    height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    position: relative;
    gap: 2px;
}

.palette-item:hover {
    transform: scale(1.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.palette-item.active {
    border-color: #fff;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.25);
}

.palette-check {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 10px;
    color: #fff;
    opacity: 0;
    transition: all var(--transition);
}

.palette-item.active .palette-check {
    opacity: 1;
}

.palette-name {
    font-size: 8px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.palette-footer {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    gap: 6px;
}

.palette-custom {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-glass);
}

.palette-custom-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.palette-color-pickers {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.palette-color-pickers input[type="color"] {
    width: 32px;
    height: 32px;
    border: 2px solid var(--border-glass);
    border-radius: 50%;
    cursor: pointer;
    background: none;
    padding: 2px;
}

.palette-color-pickers input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.palette-color-pickers input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
}

.palette-custom-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.btn-apply-custom {
    padding: 6px 14px;
    border-radius: 20px;
    border: none;
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    color: #0f0c29;
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-apply-custom:hover {
    transform: scale(1.04);
}

.btn-save-custom {
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-save-custom:hover {
    color: var(--text-primary);
}


/* ================================================================
   📌 MỤC 20: CONTACT FLOAT & POPUP
   ================================================================ */

.contact-float-btn {
    position: fixed;
    bottom: 86px;
    right: 24px;
    z-index: 998;
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.08));
    border: 1px solid var(--border-glass);
    padding: 12px 20px 12px 16px;
    border-radius: 40px;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.contact-float-btn:hover {
    transform: scale(1.05);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 8px 40px rgba(124, 58, 237, 0.2);
}

.contact-badge {
    background: var(--red);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: badgePulse 2s infinite;
}

.contact-popup {
    position: fixed;
    bottom: 140px;
    right: 24px;
    width: 360px;
    max-width: calc(100vw - 40px);
    background: rgba(10, 10, 18, 0.94);
    backdrop-filter: blur(32px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 22px 24px 20px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    transform: scale(0.92) translateY(12px);
    pointer-events: none;
    transition: all var(--transition);
}

.contact-popup.open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.popup-header span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-header i {
    color: var(--accent-3);
}

.popup-close {
    background: var(--bg-card);
    border: none;
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.popup-close:hover {
    background: var(--bg-card-hover);
    color: #fff;
    transform: rotate(90deg);
}

.popup-field {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    margin-bottom: 12px;
    transition: all var(--transition);
}

.popup-field:focus-within {
    border-color: rgba(124, 58, 237, 0.3);
    background: var(--bg-card-hover);
}

.popup-field i {
    color: var(--text-muted);
    font-size: 14px;
}

.popup-field input,
.popup-field textarea {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-family);
    padding: 12px 0;
    width: 100%;
    resize: none;
}

.popup-field textarea {
    padding: 12px 0;
    min-height: 60px;
}

.popup-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.popup-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.3);
}

.popup-note {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 12px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}


/* ================================================================
   📌 MỤC 21: BACK TO TOP
   ================================================================ */

.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 998;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--accent-gold);
    background: var(--bg-card-hover);
    color: var(--accent-gold);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.2);
}

.back-to-top:active {
    transform: scale(0.9);
}


/* ================================================================
   📌 MỤC 22: CHATBOT AI
   ================================================================ */

.chatbot-float {
    position: fixed;
    bottom: 24px;
    left: 80px;
    z-index: 999;
}

.chatbot-toggle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chatbot-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 48px rgba(124, 58, 237, 0.5);
}

.chatbot-toggle .dot-indicator {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 12px;
    height: 12px;
    background: var(--accent-green);
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    animation: pulse-dot 2s infinite;
}

.chatbot-window {
    position: absolute;
    bottom: calc(100% + 16px);
    left: 0;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 440px;
    max-height: 60vh;
    min-height: 300px;
    background: rgba(10, 10, 18, 0.95);
    backdrop-filter: blur(32px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    opacity: 0;
    transform: scale(0.85) translateY(20px);
    pointer-events: none;
    transition: all var(--transition);
    transform-origin: bottom left;
}

.chatbot-window.open {
    opacity: 1 !important;
    transform: scale(1) translateY(0) !important;
    pointer-events: all !important;
}

.chatbot-header {
    padding: 16px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-glass);
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-shrink: 0;
    min-height: 54px;
}

.chatbot-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.chatbot-header-title i {
    color: var(--accent-3);
    font-size: 18px;
}

.chatbot-header-title span {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chatbot-close {
    background: var(--bg-card);
    border: none;
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-close:hover {
    background: var(--bg-card-hover);
    color: #fff;
    transform: rotate(90deg);
}

.chatbot-messages {
    flex: 1 !important;
    padding: 18px 20px;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px;
    scroll-behavior: smooth;
    min-height: 100px;
}

.chatbot-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.5;
    animation: msgIn 0.3s ease;
    word-break: break-word;
}

@keyframes msgIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chatbot-message.bot {
    align-self: flex-start;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
    border-bottom-left-radius: 4px;
}

.chatbot-message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.08));
    color: var(--text-primary);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-bottom-right-radius: 4px;
}

.chatbot-input-area {
    padding: 14px 18px 18px;
    border-top: 1px solid var(--border-glass);
    display: flex !important;
    gap: 12px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.15);
    min-height: 60px;
}

.chatbot-input-area input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font-family);
    outline: none;
    transition: all var(--transition);
}

.chatbot-input-area input:focus {
    border-color: rgba(124, 58, 237, 0.3);
    background: var(--bg-card-hover);
}

.chatbot-send-btn {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}

.chatbot-send-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}


/* ================================================================
   📌 MỤC 23: FOOTER
   ================================================================ */

.footer {
    position: relative;
    z-index: 1;
    margin-top: 32px;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    transition: background var(--transition);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer p {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 18px;
    transition: color var(--transition);
}

.footer-social a:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
}


/* ================================================================
   📌 MỤC 24: ANIMATION SCROLL
   ================================================================ */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ================================================================
   📌 MỤC 25: LIGHT MODE
   ================================================================ */

[data-theme="light"] .social-map-content .floating-social-inner {
    background: transparent !important;
}

[data-theme="light"] .glass-card:hover {
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .profile-info .name {
    background: radial-gradient(circle at 30% 30%, #1a1a2e, var(--accent-purple), var(--accent-1), var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
}

[data-theme="light"] .clock-box .time {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .calendar-grid .day.today {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.08));
}

[data-theme="light"] .btn-modern {
    background: rgba(255, 255, 255, 0.5);
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .btn-modern:hover {
    color: #000;
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .music-player-modern {
    background: rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .music-source-panel select {
    color: #1a1a2e;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='rgba(0,0,0,0.3)'/%3E%3C/svg%3E");
}

[data-theme="light"] .music-source-panel select option {
    background: #f0f0f5;
    color: #1a1a2e;
}

[data-theme="light"] .music-playlist-dropdown {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .music-tab.active {
    background: rgba(124, 58, 237, 0.08);
}

[data-theme="light"] .playlist-item.active {
    background: rgba(124, 58, 237, 0.06);
}

[data-theme="light"] .contact-popup {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .contact-popup .popup-field {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .contact-popup .popup-field input,
[data-theme="light"] .contact-popup .popup-field textarea {
    color: #1a1a2e;
}

[data-theme="light"] .chatbot-window {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .chatbot-message.bot {
    background: rgba(0, 0, 0, 0.04);
    color: #1a1a2e;
}

[data-theme="light"] .chatbot-message.user {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.05));
    color: #1a1a2e;
}

[data-theme="light"] .chatbot-input-area {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .chatbot-input-area input {
    color: #1a1a2e;
}

[data-theme="light"] .social-map-content .floating-social-inner {
    background: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .social-map-content .floating-social-node:hover .floating-social-inner {
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .tech-map-canvas {
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.05) 0%, transparent 70%), #f0f2f8;
}

[data-theme="light"] .tech-map-grid-bg {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

[data-theme="light"] .center-tech-inner {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border-color: #6366f1;
}

[data-theme="light"] .center-tech-inner i {
    color: #6366f1;
}

[data-theme="light"] .center-tech-inner span {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .floating-tech-inner {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .floating-tech-inner:hover {
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .tech-showcase-title {
    background: linear-gradient(135deg, #0284c7, #6366f1, #8b5cf6, #0284c7);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .youtube-search-results {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .youtube-search-results .search-header {
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .video-result-item {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .video-result-item:hover {
    border-color: rgba(255, 0, 0, 0.2);
}

[data-theme="light"] .video-result-title {
    color: #1a1a2e;
}

[data-theme="light"] .marquee-track .feature-card {
    background: rgba(255, 255, 255, 0.5);
}

[data-theme="light"] .marquee-track .feature-card:hover {
    background: rgba(255, 255, 255, 0.7);
}

[data-theme="light"] .palette-menu {
    background: rgba(255, 255, 255, 0.95);
}

[data-theme="light"] .palette-item {
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .palette-item.active {
    border-color: var(--accent-1);
}

[data-theme="light"] .palette-name {
    color: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .search-bar {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .search-bar input {
    color: #1a1a2e;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .search-bar input::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .toast-glass {
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a2e;
}

[data-theme="light"] .online-dot {
    border-color: #f0f2f8;
}


/* ================================================================
   📌 MỤC 26: RESPONSIVE
   ================================================================ */

@media (max-width: 768px) {
    .container {
        gap: 14px;
        padding: 0 12px 12px;
    }
    .glass-card {
        padding: 16px 18px;
        border-radius: var(--radius-md);
    }
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .profile-left {
        width: 100%;
    }
    .profile-info .name {
        font-size: 18px;
    }
    .main-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .button-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .weather-details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .weather-temp-big {
        font-size: 42px;
    }
    .palette-menu {
        width: 300px;
        right: -10px;
    }
    .contact-popup {
        width: 320px;
        right: 10px;
        bottom: 130px;
        padding: 18px 20px;
    }
    .chatbot-window {
        width: 320px;
        height: 380px;
        left: -10px;
    }
    .contact-float-btn {
        padding: 10px 16px 10px 14px;
        font-size: 12px;
        bottom: 76px;
        right: 16px;
    }
    .marquee-track .feature-card {
        flex: 0 0 240px;
        padding: 14px 16px;
    }
    .marquee-track .feature-card h3 {
        font-size: 14px;
    }
    .marquee-track .feature-card p {
        font-size: 12px;
    }
    .music-player-modern {
        padding: 20px 18px;
    }
    .music-avatar {
        width: 54px;
        height: 54px;
    }
    .music-avatar i {
        font-size: 24px;
    }
    .music-title {
        font-size: 18px;
    }
    .music-artist {
        font-size: 13px;
    }
    .music-btn {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
    .music-btn-play {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    .music-btn-playlist {
        width: 40px;
        height: 40px;
    }
    .music-control-buttons {
        gap: 12px;
    }
    .music-volume-slider {
        max-width: 90px;
    }
    .music-time {
        font-size: 13px;
        min-width: 40px;
    }
    .music-favorite {
        font-size: 20px;
    }
    .youtube-search-box {
        flex-direction: column;
    }
    .youtube-search-btn {
        justify-content: center;
        padding: 12px 18px;
        font-size: 14px;
    }
    .music-source-panel .music-controls {
        flex-direction: column;
    }
    .music-source-panel select {
        font-size: 14px;
        padding: 12px 16px;
    }
    .music-tab {
        font-size: 13px;
        padding: 8px 12px;
    }
    .music-tab i {
        font-size: 15px;
    }
    .playlist-count {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }
    .search-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 8px;
        padding: 8px;
        max-height: 300px;
    }
    .video-result-title {
        font-size: 12px;
    }
    .youtube-search-results .search-header span {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 8px 8px;
        gap: 12px;
    }
    .glass-card {
        padding: 14px 14px;
        border-radius: var(--radius-sm);
    }
    .avatar-sm {
        width: 50px;
        height: 50px;
    }
    .profile-info .name {
        font-size: 16px;
    }
    .clock-box .time {
        font-size: 18px;
    }
    .button-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .btn-modern {
        padding: 10px 8px;
        font-size: 11px;
    }
    .weather-temp-big {
        font-size: 34px;
    }
    .weather-details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .palette-menu {
        width: 280px;
        right: -20px;
        padding: 14px 12px;
    }
    .palette-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .contact-popup {
        width: 290px;
        right: 5px;
        bottom: 120px;
        padding: 14px 16px;
    }
    .chatbot-window {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        height: 360px;
        max-height: 50vh;
        min-height: 250px;
        left: -8px;
    }
    .share-btn {
        padding: 5px 10px;
        font-size: 10px;
    }
    .marquee-section-title {
        font-size: 18px;
    }
    .music-player-modern {
        padding: 16px 14px;
    }
    .music-player-header {
        gap: 12px;
    }
    .music-avatar {
        width: 44px;
        height: 44px;
    }
    .music-avatar i {
        font-size: 18px;
    }
    .music-title {
        font-size: 15px;
    }
    .music-artist {
        font-size: 12px;
    }
    .music-control-buttons {
        gap: 10px;
    }
    .music-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    .music-btn-play {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .music-btn-playlist {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .playlist-count {
        width: 16px;
        height: 16px;
        font-size: 8px;
        top: -2px;
        right: -2px;
    }
    .music-progress {
        gap: 12px;
    }
    .music-time {
        font-size: 12px;
        min-width: 36px;
    }
    .music-progress-bar-container {
        height: 4px;
    }
    .music-volume-slider {
        max-width: 60px;
    }
    .music-volume-group {
        gap: 8px;
    }
    .music-volume-group i {
        font-size: 15px;
        min-width: 18px;
    }
    .music-favorite {
        font-size: 18px;
        padding: 4px;
    }
    .music-source-tabs {
        padding: 3px;
        gap: 4px;
    }
    .music-tab {
        font-size: 12px;
        padding: 6px 10px;
    }
    .music-tab i {
        font-size: 13px;
    }
    .music-source-panel select {
        font-size: 13px;
        padding: 10px 14px;
    }
    .youtube-input {
        font-size: 14px;
        padding: 10px 14px;
    }
    .youtube-search-btn {
        font-size: 13px;
        padding: 10px 16px;
    }
    .youtube-placeholder p {
        font-size: 14px;
    }
    .youtube-placeholder span {
        font-size: 12px;
    }
    .youtube-now-playing {
        font-size: 13px;
        padding: 10px 12px;
    }
    .search-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 6px;
        padding: 6px;
        max-height: 250px;
    }
    .tech-showcase-section {
        --tech-canvas-w: 480px;
        --tech-canvas-h: 500px;
        --tech-canvas-scale: 0.8;
        margin-top: 20px;
        margin-bottom: 15px;
    }
    .tech-map-canvas {
        min-height: 300px;
    }
    .tech-map-content {
        min-height: 300px;
        padding: 10px 0;
    }
    .social-map-content {
        min-height: 300px;
        padding: 10px 0;
    }
}


/* ================================================================
   📌 MỤC 27: ZALO QR MODAL
   ================================================================ */

.qr-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    animation: qrFadeIn 0.5s ease;
}

.qr-modal-overlay.active {
    display: flex !important;
}

.qr-modal-box {
    background: linear-gradient(145deg, #1a1a2e, #16213e, #0f0f23);
    border-radius: 32px;
    padding: 36px 30px 28px;
    max-width: 440px;
    width: 92%;
    text-align: center;
    position: relative;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(1, 130, 240, 0.15);
    animation: qrScaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.qr-modal-box::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(1, 130, 240, 0.3), rgba(0, 180, 216, 0.1), rgba(1, 130, 240, 0.3));
    background-size: 300% 300%;
    animation: qrBorderGlow 3s ease-in-out infinite;
    z-index: -1;
    filter: blur(4px);
}

.qr-modal-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(1, 130, 240, 0.06), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.qr-modal-box>* {
    position: relative;
    z-index: 1;
}

.qr-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 20px;
    color: #888;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.qr-modal-close:hover {
    background: rgba(1, 130, 240, 0.15);
    color: #fff;
    transform: rotate(90deg) scale(1.1);
    border-color: rgba(1, 130, 240, 0.3);
    box-shadow: 0 0 30px rgba(1, 130, 240, 0.1);
}

.qr-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 4px;
}

.qr-icon {
    font-size: 52px;
    color: #0182F0;
    filter: drop-shadow(0 4px 30px rgba(1, 130, 240, 0.3));
    animation: qrIconPulse 2.5s ease-in-out infinite;
}

@keyframes qrIconPulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.qr-icon-badge {
    background: linear-gradient(135deg, #0182F0, #0066CC);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 15px rgba(1, 130, 240, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}

.qr-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 4px 0 2px;
    background: linear-gradient(135deg, #0182F0, #00B4D8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qr-sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}


/* ================================================================
   📌 MỤC 27.1: QR SCAN WRAPPER
   ================================================================ */

.qr-scan-wrapper {
    position: relative;
    margin: 6px auto 14px;
    display: inline-block;
    padding: 8px;
    background: linear-gradient(135deg, #0182F0, #00B4D8, #0182F0);
    border-radius: 24px;
    background-size: 300% 300%;
    animation: qrBorderGlow 3s ease-in-out infinite;
    box-shadow: 0 0 50px rgba(1, 130, 240, 0.15);
    transition: all 0.4s ease;
}

.qr-scan-wrapper:hover {
    transform: scale(1.02);
    box-shadow: 0 0 70px rgba(1, 130, 240, 0.25);
}

.qr-scan-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 26px;
    background: linear-gradient(135deg, #0182F0, #00B4D8, #48CAE4, #0182F0);
    background-size: 300% 300%;
    animation: qrBorderGlow 4s ease-in-out infinite;
    z-index: -1;
    filter: blur(12px);
    opacity: 0.4;
}

.qr-image-box {
    background: #fff;
    border-radius: 18px;
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.qr-scan-line {
    position: absolute;
    left: 10%;
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #0182F0, #00B4D8, #0182F0, transparent);
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(1, 130, 240, 0.6);
    animation: qrScanLine 2.8s ease-in-out infinite;
    z-index: 2;
}

@keyframes qrScanLine {
    0% {
        top: 5%;
        opacity: 0.3;
    }
    10% {
        opacity: 1;
    }
    45% {
        top: 85%;
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
    55% {
        top: 5%;
        opacity: 0.3;
    }
    60% {
        opacity: 1;
    }
    100% {
        top: 5%;
        opacity: 1;
    }
}

.qr-image-box img {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    object-fit: contain;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.qr-image-box img:hover {
    transform: scale(1.02);
}

.qr-corners {
    position: absolute;
    inset: 10px;
    pointer-events: none;
    z-index: 3;
}

.qr-corners::before,
.qr-corners::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: #0182F0;
    border-style: solid;
    border-width: 0;
    transition: all 0.3s ease;
}

.qr-corners::before {
    top: 0;
    left: 0;
    border-top-width: 3px;
    border-left-width: 3px;
    border-radius: 4px 0 0 0;
}

.qr-corners::after {
    bottom: 0;
    right: 0;
    border-bottom-width: 3px;
    border-right-width: 3px;
    border-radius: 0 0 4px 0;
}

.qr-corner-br {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    border-bottom: 3px solid #00B4D8;
    border-left: 3px solid #00B4D8;
    border-radius: 0 0 0 4px;
    z-index: 3;
    opacity: 0.5;
}

.qr-corner-tr {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-top: 3px solid #00B4D8;
    border-right: 3px solid #00B4D8;
    border-radius: 0 4px 0 0;
    z-index: 3;
    opacity: 0.5;
}


/* ================================================================
   📌 MỤC 27.2: QR TIMER - FIX PROGRESS BAR
   ================================================================ */

.qr-timer-box {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 4px 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: inline-flex;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(8px);
}

.qr-timer-box i {
    color: #0182F0;
    animation: qrIconPulse 2s ease-in-out infinite;
}

.qr-timer-box span {
    color: #0182F0;
    font-weight: 700;
    font-size: 16px;
    min-width: 24px;
}

.qr-timer-progress {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.qr-timer-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0182F0, #00B4D8);
    border-radius: 4px;
    width: 100%;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(1, 130, 240, 0.3);
}


/* Animation cho progress bar khi load lần đầu */

@keyframes qrTimerProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}


/* ================================================================
   📌 MỤC 27.3: QR ACTIONS
   ================================================================ */

.qr-actions-box {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 4px;
}

.qr-btn-primary {
    padding: 10px 24px;
    font-size: 13px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #0182F0, #0066CC);
    color: #fff;
    border: none;
    box-shadow: 0 4px 25px rgba(1, 130, 240, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.qr-btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
    animation: btnShine 2.5s ease-in-out infinite;
    pointer-events: none;
}

.qr-btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 40px rgba(1, 130, 240, 0.45);
}

.qr-btn-secondary {
    padding: 10px 24px;
    font-size: 13px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
}

.qr-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-3px);
    border-color: rgba(1, 130, 240, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.qr-note-box {
    margin-top: 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 14px;
    letter-spacing: 0.3px;
}

.qr-note-box i {
    color: #0182F0;
    opacity: 0.6;
}


/* ================================================================
   📌 MỤC 27.4: QR LIGHT THEME
   ================================================================ */

[data-theme="light"] .qr-modal-box {
    background: linear-gradient(145deg, #f0f2f8, #e8ecf5, #d5d9e6);
    border-color: rgba(1, 130, 240, 0.2);
}

[data-theme="light"] .qr-modal-box::before {
    background: linear-gradient(135deg, rgba(1, 130, 240, 0.2), rgba(0, 180, 216, 0.08), rgba(1, 130, 240, 0.2));
}

[data-theme="light"] .qr-title {
    background: linear-gradient(135deg, #0182F0, #0066CC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .qr-sub {
    color: #555;
}

[data-theme="light"] .qr-modal-close {
    color: #555;
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .qr-modal-close:hover {
    color: #000;
    background: rgba(1, 130, 240, 0.1);
}

[data-theme="light"] .qr-timer-box {
    color: #555;
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .qr-note-box {
    color: rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .qr-btn-secondary {
    color: #1a1a2e;
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .qr-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(1, 130, 240, 0.3);
}


/* ================================================================
   📌 MỤC 27.5: QR KEYFRAMES
   ================================================================ */

@keyframes qrFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes qrScaleIn {
    from {
        transform: scale(0.85) translateY(30px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

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


/* ================================================================
   📌 MỤC 27.6: QR RESPONSIVE
   ================================================================ */

@media (max-width: 480px) {
    .qr-modal-box {
        padding: 24px 16px 20px;
        max-width: 96%;
        border-radius: 24px;
    }
    .qr-image-box img {
        width: 160px;
        height: 160px;
    }
    .qr-icon {
        font-size: 42px;
    }
    .qr-title {
        font-size: 17px;
    }
    .qr-btn-primary,
    .qr-btn-secondary {
        padding: 8px 16px;
        font-size: 12px;
    }
    .qr-scan-wrapper {
        padding: 6px;
    }
    .qr-corners::before,
    .qr-corners::after {
        width: 18px;
        height: 18px;
    }
    .qr-corner-br,
    .qr-corner-tr {
        width: 18px;
        height: 18px;
    }
}


/* ================================================================
   📌 MỤC 28: KEYFRAMES TOÀN CỤC
   ================================================================ */

@keyframes badgePulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes shimmerLoading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateScale {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes glowPulse {
    0%,
    100% {
        box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(124, 58, 237, 0.4);
    }
}

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

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

@keyframes wave {
    0%,
    100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(15deg);
    }
    75% {
        transform: rotate(-15deg);
    }
}


/* ================================================================
   📌 MỤC 29: CUSTOM SCROLLBAR
   ================================================================ */

.dropdown-menu::-webkit-scrollbar,
.lang-dropdown-menu::-webkit-scrollbar,
.chatbot-messages::-webkit-scrollbar,
.music-playlist-dropdown::-webkit-scrollbar,
.palette-menu::-webkit-scrollbar {
    width: 4px;
}

.dropdown-menu::-webkit-scrollbar-track,
.lang-dropdown-menu::-webkit-scrollbar-track,
.chatbot-messages::-webkit-scrollbar-track,
.music-playlist-dropdown::-webkit-scrollbar-track,
.palette-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb,
.lang-dropdown-menu::-webkit-scrollbar-thumb,
.chatbot-messages::-webkit-scrollbar-thumb,
.music-playlist-dropdown::-webkit-scrollbar-thumb,
.palette-menu::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.3);
    border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover,
.lang-dropdown-menu::-webkit-scrollbar-thumb:hover,
.chatbot-messages::-webkit-scrollbar-thumb:hover,
.music-playlist-dropdown::-webkit-scrollbar-thumb:hover,
.palette-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.5);
}


/* ================================================================
   📌 MỤC 30: HIỆU ỨNG ĐẶC BIỆT
   ================================================================ */

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #fbbf24);
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderGlow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes borderGlow {
    0%,
    100% {
        background-position: 0% 50%;
        opacity: 0.5;
    }
    50% {
        background-position: 100% 50%;
        opacity: 1;
    }
}

.dd-badge.hot::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.2);
    animation: hotGlow 1s ease-in-out infinite;
    z-index: -1;
}

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


/* ================================================================
   📌 MỤC 31: UTILITIES
   ================================================================ */

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.flex-col {
    display: flex;
    flex-direction: column;
}

.gap-8 {
    gap: 8px;
}

.gap-12 {
    gap: 12px;
}

.gap-16 {
    gap: 16px;
}

.gap-20 {
    gap: 20px;
}

.gap-24 {
    gap: 24px;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}


/* ================================================================
   📌 MỤC 32: GLASS CARD BORDER ANIMATION
   ================================================================ */

.glass-card {
    position: relative;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0), rgba(6, 182, 212, 0), rgba(124, 58, 237, 0.05), rgba(6, 182, 212, 0));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.glass-card:hover::after {
    opacity: 1;
}


/* ================================================================
   📌 MỤC 33: HOVER ANIMATIONS
   ================================================================ */

.floating-social-node {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-social-node:hover .floating-social-inner {
    transform: scale(1.3) rotate(8deg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.floating-social-node:active .floating-social-inner {
    transform: scale(0.9);
    transition: transform 0.1s ease;
}

.floating-tech-node {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-tech-node:hover .floating-tech-inner {
    transform: scale(1.2) translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.floating-tech-node:active .floating-tech-inner {
    transform: scale(0.9);
    transition: transform 0.1s ease;
}


/* ================================================================
   📌 MỤC 34: HIDE/SHOW HELPERS
   ================================================================ */

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .show-mobile {
        display: none !important;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .hide-tablet {
        display: none !important;
    }
}


/* ================================================================
   📌 MỤC 35: PRINT STYLES
   ================================================================ */

@media print {
    .navbar,
    .chatbot-float,
    .contact-float-btn,
    .back-to-top,
    .color-palette-dropdown,
    .fps-counter,
    .blob-bg,
    .hero-blob,
    #loadingScreen {
        display: none !important;
    }
    body {
        background: #fff !important;
        color: #000 !important;
        padding-top: 0 !important;
    }
    .glass-card {
        background: #fff !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }
    .container {
        max-width: 100% !important;
        padding: 20px !important;
    }
}


/* ================================================================
   📌 MỤC 36: REDUCED MOTION
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ================================================================
   📌 MỤC 37: FOCUS & SELECTION
   ================================================================ */

:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

::selection {
    background: var(--accent-1);
    color: #fff;
}

::-moz-selection {
    background: var(--accent-1);
    color: #fff;
}


/* ================================================================
   📌 MỤC 38: TOAST VARIANTS
   ================================================================ */

.toast-glass.success {
    border-color: var(--accent-green) !important;
    border-left: 4px solid var(--accent-green) !important;
}

.toast-glass.error {
    border-color: var(--red) !important;
    border-left: 4px solid var(--red) !important;
}

.toast-glass.info {
    border-color: var(--accent-blue) !important;
    border-left: 4px solid var(--accent-blue) !important;
}

.toast-glass.warning {
    border-color: var(--accent-orange) !important;
    border-left: 4px solid var(--accent-orange) !important;
}


/* ================================================================
   📌 MỤC 39: SCROLLBAR FIREFOX
   ================================================================ */

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, 0.3) transparent;
}


/* ================================================================
   📌 MỤC 40: ANIMATION DELAY HELPERS
   ================================================================ */

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

.delay-600 {
    animation-delay: 600ms;
}

.delay-700 {
    animation-delay: 700ms;
}

.delay-800 {
    animation-delay: 800ms;
}

.delay-900 {
    animation-delay: 900ms;
}

.delay-1000 {
    animation-delay: 1000ms;
}


/* ================================================================
   📌 MỤC 41: HERO BADGE WAVE
   ================================================================ */

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.15);
    color: var(--accent-gold);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    width: fit-content;
    animation: badgePulse 3s ease-in-out infinite;
}

.hero-badge i {
    animation: wave 2s ease-in-out infinite;
    display: inline-block;
}


/* ================================================================
   📌 MỤC 42: GLOW TEXT
   ================================================================ */

.glow-text {
    text-shadow: 0 0 20px rgba(124, 58, 237, 0.3), 0 0 40px rgba(124, 58, 237, 0.1);
}

.glow-text-gold {
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3), 0 0 40px rgba(251, 191, 36, 0.1);
}


/* ================================================================
   📌 MỤC 43: CARD HOVER EFFECTS
   ================================================================ */

.hover-lift {
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.2);
}


/* ================================================================
   📌 MỤC 44: SKELETON
   ================================================================ */

.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmerLoading 1.5s ease-in-out infinite;
    border-radius: 8px;
}


/* ================================================================
   📌 MỤC 45: TOOLTIP
   ================================================================ */

[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}


/* ================================================================
   📌 MỤC 46: Z-INDEX HELPERS
   ================================================================ */

.overflow-hidden {
    overflow: hidden;
}

.overflow-auto {
    overflow: auto;
}

.overflow-y-auto {
    overflow-y: auto;
}

.overflow-x-auto {
    overflow-x: auto;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

.z-1 {
    z-index: 1;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

.z-100 {
    z-index: 100;
}

.z-999 {
    z-index: 999;
}

.z-9999 {
    z-index: 9999;
}


/* ================================================================
   📌 MỤC 47: FIX BẢNG MÀU - ÁP DỤNG THEME ĐÚNG
   ================================================================ */


/* Theme Dark - Mặc định */

[data-theme="dark"] {
    --bg-primary: #0a0a12;
    --bg-secondary: #12121e;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.06);
    --text-primary: #f0f0f5;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --accent: #7c3aed;
    --accent-1: #7c3aed;
    --accent-2: #4f46e5;
    --accent-3: #06b6d4;
    --accent-gold: #fbbf24;
    --accent-pink: #ec4899;
    --accent-green: #34d399;
    --accent-orange: #fb923c;
    --accent-blue: #60a5fa;
    --accent-purple: #a78bfa;
}


/* Theme Light */

[data-theme="light"] {
    --bg-primary: #f0f2f8;
    --bg-secondary: #e8ecf5;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-card-hover: rgba(0, 0, 0, 0.04);
    --border-glass: rgba(0, 0, 0, 0.06);
    --text-primary: #1a1a2e;
    --text-secondary: rgba(0, 0, 0, 0.7);
    --text-muted: rgba(0, 0, 0, 0.4);
    --accent: #7c3aed;
    --accent-1: #7c3aed;
    --accent-2: #4f46e5;
    --accent-3: #06b6d4;
    --accent-gold: #f59e0b;
    --accent-pink: #ec4899;
    --accent-green: #22c55e;
    --accent-orange: #fb923c;
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
}


/* Theme Purple */

[data-theme="purple"] {
    --bg-primary: #0f081a;
    --bg-secondary: #1a0a2e;
    --bg-card: rgba(124, 58, 237, 0.08);
    --bg-card-hover: rgba(124, 58, 237, 0.15);
    --border-glass: rgba(124, 58, 237, 0.15);
    --text-primary: #f0e6ff;
    --text-secondary: rgba(240, 230, 255, 0.7);
    --text-muted: rgba(240, 230, 255, 0.4);
    --accent: #8b5cf6;
    --accent-1: #7c3aed;
    --accent-2: #6d28d9;
    --accent-3: #a78bfa;
    --accent-gold: #fbbf24;
    --accent-pink: #ec4899;
    --accent-green: #34d399;
    --accent-orange: #fb923c;
    --accent-blue: #60a5fa;
    --accent-purple: #a78bfa;
}


/* Theme Ocean */

[data-theme="ocean"] {
    --bg-primary: #0a1628;
    --bg-secondary: #0f2847;
    --bg-card: rgba(0, 100, 200, 0.08);
    --bg-card-hover: rgba(0, 100, 200, 0.15);
    --border-glass: rgba(0, 150, 255, 0.12);
    --text-primary: #e0f0ff;
    --text-secondary: rgba(224, 240, 255, 0.7);
    --text-muted: rgba(224, 240, 255, 0.4);
    --accent: #3b82f6;
    --accent-1: #2563eb;
    --accent-2: #1d4ed8;
    --accent-3: #06b6d4;
    --accent-gold: #fbbf24;
    --accent-pink: #ec4899;
    --accent-green: #34d399;
    --accent-orange: #fb923c;
    --accent-blue: #60a5fa;
    --accent-purple: #a78bfa;
}


/* Theme Sunset */

[data-theme="sunset"] {
    --bg-primary: #1a0800;
    --bg-secondary: #2d1500;
    --bg-card: rgba(255, 100, 50, 0.08);
    --bg-card-hover: rgba(255, 100, 50, 0.15);
    --border-glass: rgba(255, 120, 50, 0.12);
    --text-primary: #ffebe0;
    --text-secondary: rgba(255, 235, 224, 0.7);
    --text-muted: rgba(255, 235, 224, 0.4);
    --accent: #fb923c;
    --accent-1: #f97316;
    --accent-2: #ea580c;
    --accent-3: #f59e0b;
    --accent-gold: #fbbf24;
    --accent-pink: #ec4899;
    --accent-green: #34d399;
    --accent-orange: #fb923c;
    --accent-blue: #60a5fa;
    --accent-purple: #a78bfa;
}


/* Theme Mint */

[data-theme="mint"] {
    --bg-primary: #0a1a12;
    --bg-secondary: #0f2a1e;
    --bg-card: rgba(16, 185, 129, 0.08);
    --bg-card-hover: rgba(16, 185, 129, 0.15);
    --border-glass: rgba(16, 185, 129, 0.12);
    --text-primary: #e0f5ee;
    --text-secondary: rgba(224, 245, 238, 0.7);
    --text-muted: rgba(224, 245, 238, 0.4);
    --accent: #34d399;
    --accent-1: #10b981;
    --accent-2: #059669;
    --accent-3: #06b6d4;
    --accent-gold: #fbbf24;
    --accent-pink: #ec4899;
    --accent-green: #34d399;
    --accent-orange: #fb923c;
    --accent-blue: #60a5fa;
    --accent-purple: #a78bfa;
}


/* Theme Gold */

[data-theme="gold"] {
    --bg-primary: #0f0a00;
    --bg-secondary: #1a1400;
    --bg-card: rgba(251, 191, 36, 0.08);
    --bg-card-hover: rgba(251, 191, 36, 0.15);
    --border-glass: rgba(251, 191, 36, 0.12);
    --text-primary: #fff5e0;
    --text-secondary: rgba(255, 245, 224, 0.7);
    --text-muted: rgba(255, 245, 224, 0.4);
    --accent: #fbbf24;
    --accent-1: #f59e0b;
    --accent-2: #d97706;
    --accent-3: #fcd34d;
    --accent-gold: #fbbf24;
    --accent-pink: #ec4899;
    --accent-green: #34d399;
    --accent-orange: #fb923c;
    --accent-blue: #60a5fa;
    --accent-purple: #a78bfa;
}


/* Theme Rose */

[data-theme="rose"] {
    --bg-primary: #1a080a;
    --bg-secondary: #2d0a14;
    --bg-card: rgba(244, 63, 94, 0.08);
    --bg-card-hover: rgba(244, 63, 94, 0.15);
    --border-glass: rgba(244, 63, 94, 0.12);
    --text-primary: #ffe0e6;
    --text-secondary: rgba(255, 224, 230, 0.7);
    --text-muted: rgba(255, 224, 230, 0.4);
    --accent: #f43f5e;
    --accent-1: #e11d48;
    --accent-2: #be123c;
    --accent-3: #fb7185;
    --accent-gold: #fbbf24;
    --accent-pink: #ec4899;
    --accent-green: #34d399;
    --accent-orange: #fb923c;
    --accent-blue: #60a5fa;
    --accent-purple: #a78bfa;
}


/* Theme Forest */

[data-theme="forest"] {
    --bg-primary: #080f08;
    --bg-secondary: #0f1f0f;
    --bg-card: rgba(74, 222, 128, 0.08);
    --bg-card-hover: rgba(74, 222, 128, 0.15);
    --border-glass: rgba(74, 222, 128, 0.10);
    --text-primary: #e0f5e0;
    --text-secondary: rgba(224, 245, 224, 0.7);
    --text-muted: rgba(224, 245, 224, 0.4);
    --accent: #4ade80;
    --accent-1: #22c55e;
    --accent-2: #16a34a;
    --accent-3: #86efac;
    --accent-gold: #fbbf24;
    --accent-pink: #ec4899;
    --accent-green: #34d399;
    --accent-orange: #fb923c;
    --accent-blue: #60a5fa;
    --accent-purple: #a78bfa;
}


/* Theme Galaxy */

[data-theme="galaxy"] {
    --bg-primary: #050510;
    --bg-secondary: #0f0820;
    --bg-card: rgba(139, 92, 246, 0.08);
    --bg-card-hover: rgba(139, 92, 246, 0.15);
    --border-glass: rgba(139, 92, 246, 0.12);
    --text-primary: #ede0ff;
    --text-secondary: rgba(237, 224, 255, 0.7);
    --text-muted: rgba(237, 224, 255, 0.4);
    --accent: #8b5cf6;
    --accent-1: #7c3aed;
    --accent-2: #6d28d9;
    --accent-3: #a78bfa;
    --accent-gold: #fbbf24;
    --accent-pink: #ec4899;
    --accent-green: #34d399;
    --accent-orange: #fb923c;
    --accent-blue: #60a5fa;
    --accent-purple: #a78bfa;
}


/* Theme Candy */

[data-theme="candy"] {
    --bg-primary: #1a0815;
    --bg-secondary: #2d0a22;
    --bg-card: rgba(236, 72, 153, 0.08);
    --bg-card-hover: rgba(236, 72, 153, 0.15);
    --border-glass: rgba(236, 72, 153, 0.12);
    --text-primary: #ffe0f0;
    --text-secondary: rgba(255, 224, 240, 0.7);
    --text-muted: rgba(255, 224, 240, 0.4);
    --accent: #ec4899;
    --accent-1: #db2777;
    --accent-2: #be185d;
    --accent-3: #f472b6;
    --accent-gold: #fbbf24;
    --accent-pink: #ec4899;
    --accent-green: #34d399;
    --accent-orange: #fb923c;
    --accent-blue: #60a5fa;
    --accent-purple: #a78bfa;
}


/* Theme Neon */

[data-theme="neon"] {
    --bg-primary: #0a0a1a;
    --bg-secondary: #0f0f2a;
    --bg-card: rgba(0, 255, 200, 0.06);
    --bg-card-hover: rgba(0, 255, 200, 0.12);
    --border-glass: rgba(0, 255, 200, 0.10);
    --text-primary: #e0fff8;
    --text-secondary: rgba(224, 255, 248, 0.7);
    --text-muted: rgba(224, 255, 248, 0.4);
    --accent: #00ffcc;
    --accent-1: #00ccaa;
    --accent-2: #009988;
    --accent-3: #66ffdd;
    --accent-gold: #fbbf24;
    --accent-pink: #ec4899;
    --accent-green: #34d399;
    --accent-orange: #fb923c;
    --accent-blue: #60a5fa;
    --accent-purple: #a78bfa;
}


/* ================================================================
   📌 MỤC 48: FIX RESPONSIVE UX/UI
   ================================================================ */


/* Fix container trên mobile */

@media (max-width: 768px) {
    .container {
        padding: 0 10px 10px;
        gap: 12px;
    }
    .glass-card {
        padding: 16px 14px;
        border-radius: 14px;
    }
    /* Fix Hero */
    .hero-banner {
        padding: 20px 12px 30px;
        min-height: auto;
    }
    .hero-banner-container {
        gap: 24px;
    }
    .hero-title {
        font-size: 24px;
    }
    .hero-visual-image {
        width: 180px;
        height: 180px;
    }
    .hero-stats {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero-stats strong {
        font-size: 16px;
    }
    .stat-item strong {
        font-size: 16px;
    }
    .stat-item {
        padding: 2px 8px;
    }
    /* Fix Buttons Grid */
    .button-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .btn-modern {
        padding: 10px 8px;
        font-size: 11px;
        border-radius: 10px;
    }
    /* Fix Weather */
    .weather-details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    .weather-detail-item {
        padding: 10px 6px;
    }
    .weather-temp-big {
        font-size: 36px;
    }
    .weather-glass.compact .weather-temp-big {
        font-size: 28px;
    }
    /* Fix Music Player */
    .music-player-modern {
        padding: 16px 14px;
    }
    .music-player-header {
        gap: 12px;
    }
    .music-avatar {
        width: 48px;
        height: 48px;
    }
    .music-avatar i {
        font-size: 20px;
    }
    .music-title {
        font-size: 16px;
    }
    .music-artist {
        font-size: 12px;
    }
    .music-control-buttons {
        gap: 10px;
    }
    .music-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .music-btn-play {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    .music-progress {
        gap: 10px;
    }
    .music-time {
        font-size: 12px;
        min-width: 36px;
    }
    .music-volume-slider {
        max-width: 60px;
    }
    /* Fix Calendar */
    .calendar-grid .day {
        padding: 4px 0;
        font-size: 12px;
    }
    .calendar-header .month-year {
        font-size: 14px;
    }
    /* Fix Tech Showcase */
    .tech-showcase-section {
        padding: 0 4px;
    }
    .tech-showcase-title {
        font-size: 18px;
    }
    .tech-showcase-sub {
        font-size: 12px;
        padding: 0 8px;
    }
    /* Fix Social Icons */
    .social-map-content {
        min-height: 350px;
        padding: 4px 0;
    }
    .social-map-content .floating-social-node {
        --social-size-mb: 32px;
    }
    .social-map-content .floating-social-node:hover {
        transform: scale(1.3) !important;
    }
    /* Fix Chatbot */
    .chatbot-window {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        height: 340px;
        left: -10px;
        bottom: calc(100% + 12px);
    }
    /* Fix Contact Popup */
    .contact-popup {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 120px;
        padding: 16px;
    }
    /* Fix Palette */
    .palette-menu {
        width: 280px;
        right: -10px;
        padding: 12px;
    }
    .palette-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .palette-item {
        height: 48px;
    }
    /* Fix Zalo QR */
    .qr-modal-box {
        padding: 20px 14px 16px;
        max-width: 94%;
    }
    .qr-image-box img {
        width: 150px;
        height: 150px;
    }
    .qr-title {
        font-size: 16px;
    }
    .qr-btn-primary,
    .qr-btn-secondary {
        padding: 8px 14px;
        font-size: 11px;
    }
    /* Fix Footer */
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .footer p {
        font-size: 12px;
    }
    /* Fix Share buttons */
    .share-buttons {
        gap: 6px;
    }
    .share-btn {
        padding: 4px 10px;
        font-size: 10px;
        border-radius: 8px;
    }
    /* Fix timer */
    .timer-modern {
        padding: 10px 14px;
        font-size: 13px;
    }
    .timer-modern #timer {
        font-size: 15px;
    }
}


/* Fix cho mobile rất nhỏ */

@media (max-width: 400px) {
    .button-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    .btn-modern {
        font-size: 10px;
        padding: 8px 4px;
        gap: 4px;
    }
    .btn-modern i {
        font-size: 12px;
    }
    .hero-title {
        font-size: 20px;
    }
    .hero-visual-image {
        width: 140px;
        height: 140px;
    }
    .hero-badge {
        font-size: 10px;
        padding: 4px 12px;
    }
    .hero-desc {
        font-size: 13px;
    }
    .btn-primary,
    .btn-secondary {
        padding: 10px 18px;
        font-size: 12px;
    }
    .weather-details-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }
    .weather-detail-item {
        padding: 8px 4px;
    }
    .detail-value {
        font-size: 16px;
    }
    .detail-label {
        font-size: 7px;
    }
    .music-player-modern {
        padding: 12px 10px;
    }
    .music-title {
        font-size: 14px;
    }
    .music-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    .music-btn-play {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .chatbot-window {
        height: 280px;
    }
    .qr-modal-box {
        padding: 16px 10px 12px;
    }
    .qr-image-box img {
        width: 120px;
        height: 120px;
    }
    .qr-actions-box {
        gap: 6px;
    }
    .qr-btn-primary,
    .qr-btn-secondary {
        padding: 6px 10px;
        font-size: 10px;
        border-radius: 10px;
    }
}


/* Fix Landscape mobile */

@media (max-height: 500px) and (orientation: landscape) {
    .hero-banner {
        min-height: auto;
        padding: 16px 12px 24px;
    }
    .hero-visual-image {
        width: 120px;
        height: 120px;
    }
    .hero-title {
        font-size: 20px;
    }
    .hero-desc {
        font-size: 12px;
        max-width: 100%;
    }
    .hero-stats {
        gap: 8px;
    }
    .hero-stats strong {
        font-size: 14px;
    }
    .stat-item strong {
        font-size: 14px;
    }
    .chatbot-window {
        height: 200px;
        max-height: 50vh;
    }
    .contact-popup {
        max-height: 70vh;
        overflow-y: auto;
    }
}


/* ================================================================
   📌 MỤC 49: FIX CHATBOT & CONTACT POPUP RESPONSIVE
   ================================================================ */


/* Chatbot responsive fix */

@media (max-width: 768px) {
    .chatbot-float {
        bottom: 16px;
        left: 16px;
        z-index: 999;
    }
    .chatbot-toggle {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    .chatbot-toggle .dot-indicator {
        width: 10px;
        height: 10px;
        top: 3px;
        right: 3px;
    }
    .chatbot-window {
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        height: 380px;
        max-height: 55vh;
        min-height: 250px;
        left: 0;
        bottom: calc(100% + 12px);
        transform-origin: bottom left;
    }
    /* Điều chỉnh vị trí khi có contact float và back to top */
    .chatbot-float {
        bottom: 16px;
        left: 16px;
    }
}

@media (max-width: 480px) {
    .chatbot-float {
        bottom: 12px;
        left: 12px;
    }
    .chatbot-toggle {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    .chatbot-toggle .dot-indicator {
        width: 8px;
        height: 8px;
        top: 2px;
        right: 2px;
    }
    .chatbot-window {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);
        height: 320px;
        max-height: 50vh;
        min-height: 200px;
        bottom: calc(100% + 10px);
    }
}


/* Điều chỉnh khi có nhiều button cùng bên trái */

@media (max-width: 768px) {
    .back-to-top {
        bottom: 16px;
        left: 72px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .chatbot-float {
        bottom: 16px;
        left: 16px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 12px;
        left: 62px;
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}


/* Contact float responsive fix */

@media (max-width: 768px) {
    .contact-float-btn {
        padding: 10px 16px 10px 14px;
        font-size: 12px;
        bottom: 76px;
        right: 16px;
    }
    .contact-popup {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 130px;
        padding: 18px 16px;
        max-height: 70vh;
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    .contact-float-btn {
        padding: 8px 12px 8px 10px;
        font-size: 11px;
        bottom: 68px;
        right: 12px;
    }
    .contact-float-btn .contact-badge {
        width: 16px;
        height: 16px;
        font-size: 8px;
    }
    .contact-popup {
        width: calc(100vw - 24px);
        right: 12px;
        bottom: 120px;
        padding: 14px 12px;
        max-height: 60vh;
    }
    .popup-header {
        font-size: 14px;
    }
    .popup-field {
        padding: 0 10px;
        margin-bottom: 8px;
    }
    .popup-field input,
    .popup-field textarea {
        font-size: 12px;
        padding: 10px 0;
    }
    .popup-submit {
        padding: 12px;
        font-size: 13px;
    }
}


/* Điều chỉnh z-index để tránh overlap */

@media (max-width: 768px) {
    .color-palette-dropdown {
        bottom: 16px;
        right: 16px;
        z-index: 997;
    }
    .palette-trigger {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }
    .palette-menu {
        bottom: calc(100% + 12px);
        right: 0;
        width: 280px;
        max-height: 400px;
        padding: 14px 12px;
    }
}


/* ================================================================
   📌 MỤC 50: FOOTER - CĂN GIỮA ĐẸP
   ================================================================ */

.footer {
    position: relative;
    z-index: 1;
    margin-top: 32px;
    padding: 24px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    transition: background var(--transition);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.footer p {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.footer p .highlight-text {
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.footer-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    border-radius: 2px;
    margin: 4px auto;
}

.footer-social {
    display: flex;
    gap: 18px;
    justify-content: center;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    text-decoration: none;
}

.footer-social a:hover {
    color: var(--accent-gold);
    transform: translateY(-3px) scale(1.1);
    border-color: var(--accent-gold);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.15);
}


/* Responsive footer */

@media (max-width: 768px) {
    .footer {
        padding: 18px 16px;
        margin-top: 20px;
    }
    .footer p {
        font-size: 13px;
    }
    .footer-social {
        gap: 12px;
    }
    .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 14px 12px;
        margin-top: 16px;
    }
    .footer p {
        font-size: 11px;
    }
    .footer-social {
        gap: 8px;
    }
    .footer-social a {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}


/* ================================================================
   📌 MỤC 51: MARQUEE CUỐI TRANG - CHẠY NGANG ĐẸP
   ================================================================ */

.marquee-wrapper {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    padding: 14px 0;
    overflow: hidden;
    box-shadow: var(--shadow-glow), var(--shadow-card);
    position: relative;
}


/* Hiệu ứng gradient 2 bên */

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 60px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-primary), transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-primary), transparent);
}

.marquee-wrapper marquee {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    padding: 4px 0;
    animation: marqueeGlow 2s ease-in-out infinite;
}

.marquee-wrapper marquee .highlight {
    color: var(--accent-gold);
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-gold), #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 1.5s ease-in-out infinite;
    background-size: 200% 200%;
}

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

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


/* Responsive marquee */

@media (max-width: 768px) {
    .marquee-wrapper {
        padding: 10px 0;
        border-radius: 10px;
    }
    .marquee-wrapper::before,
    .marquee-wrapper::after {
        width: 30px;
    }
    .marquee-wrapper marquee {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .marquee-wrapper {
        padding: 8px 0;
        border-radius: 8px;
    }
    .marquee-wrapper::before,
    .marquee-wrapper::after {
        width: 20px;
    }
    .marquee-wrapper marquee {
        font-size: 11px;
    }
}


/* ================================================================
   📌 MỤC 52: LOCATION PERMISSION POPUP
   ================================================================ */

.location-permission-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: locationFadeIn 0.5s ease;
}

.location-permission-popup.active {
    display: flex;
}

.location-permission-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.location-permission-box {
    position: relative;
    max-width: 460px;
    width: 92%;
    background: var(--bg-card);
    backdrop-filter: blur(32px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 40px 36px 32px;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    animation: locationScaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.location-permission-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.1));
    border: 2px solid var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: var(--accent-blue);
    animation: locationPulse 2s ease-in-out infinite;
}

@keyframes locationPulse {
    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.15);
    }
}

.location-permission-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.location-permission-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.location-permission-desc strong {
    color: var(--accent-gold);
}

.location-permission-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
    transition: all var(--transition);
}

.feature-item i {
    font-size: 22px;
    color: var(--accent-3);
}

.feature-item span {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.feature-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.1);
}

.location-permission-buttons {
    display: flex;
    gap: 12px;
}

.location-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.location-btn-allow {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.location-btn-allow:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

.location-btn-allow:active {
    transform: scale(0.95);
}

.location-btn-deny {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-glass);
}

.location-btn-deny:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.location-permission-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.location-permission-note i {
    color: var(--accent-3);
}


/* Animations */

@keyframes locationFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes locationScaleIn {
    from {
        transform: scale(0.85) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}


/* Responsive */

@media (max-width: 480px) {
    .location-permission-box {
        padding: 28px 20px 24px;
        border-radius: var(--radius-md);
    }
    .location-permission-icon {
        width: 64px;
        height: 64px;
        font-size: 28px;
    }
    .location-permission-title {
        font-size: 18px;
    }
    .location-permission-desc {
        font-size: 13px;
    }
    .location-permission-features {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .feature-item {
        flex-direction: row;
        padding: 10px 14px;
        gap: 12px;
    }
    .feature-item i {
        font-size: 18px;
    }
    .location-permission-buttons {
        flex-direction: column;
    }
    .location-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}