:root {
    --bg-color: #0f172a;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(56, 189, 248, 0.15);
    --primary: #0ea5e9;
    --text-main: #f0f9ff;
    --text-sub: #bae6fd;
    --gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --accent-cyan: #06b6d4;
    --rainbow: linear-gradient(to right, #ef5350, #f48fb1, #7e57c2, #2196f3, #26c6da, #43a047, #eeff41, #f9a825, #ff5722);
}
* { margin:0; padding:0; box-sizing:border-box; scroll-behavior:smooth }
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(at 0% 0%, rgba(6,182,212,0.15) 0, transparent 50%), radial-gradient(at 50% 0%, rgba(59,130,246,0.15) 0, transparent 50%), radial-gradient(at 100% 0%, rgba(15,23,42,1) 0, transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    overflow-x: hidden;
    display: block !important;
    height: auto !important;
    padding-top: 0
}
.hero-landing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 40px !important;
    gap: 20px;
    min-height: 400px;
}
.hero-content { flex: 1.5; text-align: left; }
.greeting { font-size: 1.5rem; color: var(--text-sub); font-weight: 500; display: block; margin-bottom: 5px; }
.typing-container { font-size: 3.5rem; font-weight: 700; margin-bottom: 15px; min-height: 70px; }
.txt-type {
    background: var(--rainbow); -webkit-background-clip: text; background-clip: text;
    color: transparent; background-size: 200% auto; animation: rainbow-anim 4s linear infinite;
    border-right: 0.1em solid var(--accent-cyan); padding-right: 5px;
}
@keyframes rainbow-anim { to { background-position: 200% center; } }
.original-bio { font-size: 1.2rem; color: var(--text-sub); margin-bottom: 30px; }
.social-links-hero { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-image-box { flex: 1; display: flex; justify-content: center; align-items: center; }

/* Avatar Glow - Đồng bộ giao diện (Vòng tròn gradient) */
.avatar-glow {
    width: 280px; height: 280px; 
    padding: 5px; /* Tạo khoảng cách cho vòng viền gradient */
    border-radius: 50%;
    background: var(--gradient); /* Viền Gradient như ảnh */
    box-shadow: 0 0 30px rgba(6,182,212,0.4);
    animation: pulse-avatar 3s infinite;
}
.avatar-img { 
    width: 100%; height: 100%; 
    border-radius: 50%; 
    object-fit: cover; 
    border: 4px solid var(--bg-color); /* Tạo khoảng hở giữa ảnh và viền gradient */
}

@keyframes pulse-avatar {
    0% { box-shadow: 0 0 0 0 rgba(6,182,212,0.4); }
    70% { box-shadow: 0 0 0 20px rgba(6,182,212,0); }
    100% { box-shadow: 0 0 0 0 rgba(6,182,212,0); }
}

/* RESPONSIVE MOBILE - Đồng bộ bố cục như ảnh Mobile */
@media (max-width: 768px) {
    .hero-landing { 
        flex-direction: column-reverse; /* Đảo ngược: Ảnh lên trên, Chữ xuống dưới */
        text-align: center; 
        padding: 40px 20px !important; 
    }
    .hero-content { text-align: center; }
    .social-links-hero { justify-content: center; }
    .typing-container { font-size: 2.2rem; min-height: auto; }
    .avatar-glow { 
        width: 200px; height: 200px; 
        margin-bottom: 20px; 
    }
}
#snowCanvas { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    z-index: 9999; /* Đẩy lên lớp trên cùng */
    pointer-events: none; /* Cho phép click xuyên qua tuyết */
}
#toast-msg {
    position: fixed; top: -100px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #ef4444, #b91c1c); color: white; padding: 12px 30px;
    border-radius: 50px; box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4); z-index: 99999;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2); white-space: nowrap; font-size: 0.95rem;
    pointer-events: none; text-align: center
}
#toast-msg.success { background: linear-gradient(135deg, #22c55e, #15803d)!important; box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4)!important }
#toast-msg.show { top: 30px }
.fixed-menu { position: fixed; top: 20px; right: 25px; z-index: 2000 }
.hamburger-btn {
    font-size: 1.5rem; color: var(--text-main); cursor: pointer; padding: 10px 14px;
    transition: 0.3s; border-radius: 12px; background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.1)
}
.hamburger-btn:hover { background: rgba(56, 189, 248, 0.3); color: var(--accent-cyan); border-color: var(--accent-cyan) }
.nav-dropdown {
    position: absolute; top: 100%; right: 0; margin-top: 15px; background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: 15px;
    padding: 15px; min-width: 180px; display: none; flex-direction: column; gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); transform-origin: top right; animation: menuFadeIn 0.3s ease
}
.nav-dropdown.active { display: flex }
.nav-dropdown a {
    color: var(--text-sub); text-decoration: none; font-size: 0.95rem; padding: 10px 15px;
    border-radius: 10px; transition: 0.3s; text-align: right; display: block
}
.nav-dropdown a:hover { background: var(--gradient); color: white; transform: translateX(-5px) }
@keyframes menuFadeIn { from { opacity: 0; transform: scale(0.9) } to { opacity: 1; transform: scale(1) } }
.container { max-width: 850px; margin: 0 auto; padding: 100px 20px 50px }
section { margin-bottom: 60px; opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out }
section.visible { opacity: 1; transform: translateY(0) }
.glass-card {
    background: var(--glass-bg); backdrop-filter: blur(16px); border: 1px solid var(--glass-border);
    border-radius: 20px; padding: 30px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6)
}
.social-btn {
    width: 45px; height: 45px; border-radius: 12px; background: rgba(56, 189, 248, 0.1);
    display: flex; align-items: center; justify-content: center; color: var(--text-sub);
    text-decoration: none; transition: 0.3s; font-size: 1.2rem; position: relative; overflow: hidden
}
.social-btn:hover {
    background: var(--gradient); color: #fff; transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4)
}
.section-title {
    font-size: 1.5rem; margin-bottom: 20px; border-left: 4px solid var(--accent-cyan);
    padding-left: 15px; color: #fff
}
.install-btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 12px 28px;
    background: var(--gradient); color: #fff!important; text-decoration: none;
    border-radius: 12px; font-weight: 600; font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3); border: none; outline: none; cursor: pointer
}
.install-btn:hover {
    transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
    filter: brightness(1.1)
}
.install-btn.sm {
    padding: 8px 20px; font-size: 0.85rem; margin-top: 15px;
    background: rgba(56, 189, 248, 0.1); border: 1px solid var(--glass-border)
}
.install-btn.sm:hover { background: var(--gradient) }
@keyframes pulse-cyan {
    0% { box-shadow: 0 0 0 0 rgba(0, 211, 222, 0.7) }
    70% { box-shadow: 0 0 0 10px rgba(0, 211, 222, 0) }
    100% { box-shadow: 0 0 0 0 rgba(0, 211, 222, 0) }
}
@keyframes float-up {
    0%, 100% { transform: translateY(0) }
    50% { transform: translateY(-6px) }
}
.btn-effect {
    position: relative; overflow: hidden; transition: all 0.5s ease;
    animation: float-up 3s ease-in-out infinite, pulse-cyan 2s infinite
}
.btn-effect:hover {
    transform: scale(1.05); animation-play-state: paused;
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.5); filter: brightness(1.2) hue-rotate(15deg)
}
.btn-effect::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    opacity: 0; transform: scale(0.5); transition: all 0.5s ease
}
.btn-effect:hover::before { opacity: 1; transform: scale(1) }
.btn-effect i { text-shadow: 0 0 5px rgba(255, 255, 255, 0.6); transition: all 0.5s }
.btn-effect:hover i { text-shadow: 0 0 15px white }
#donateArea { display: none; margin-top: 20px; animation: fadeInUp 0.5s forwards }
.qr-card {
    background: rgba(255, 255, 255, 0.05); border-radius: 15px; padding: 20px;
    border: 1px solid var(--glass-border); display: inline-block; width: 100%; max-width: 320px
}
.qr-img { width: 100%; border-radius: 10px; margin-bottom: 15px; transition: 0.3s }
.bank-info { text-align: left; background: rgba(14, 165, 233, 0.1); padding: 15px; border-radius: 10px }
.bank-item { font-size: 0.85rem; margin-bottom: 5px; color: var(--text-sub) }
.bank-item b { color: var(--accent-cyan) }
.skills-grid { display: flex; flex-wrap: wrap; gap: 10px }
.skill-tag {
    padding: 8px 16px; background: rgba(56, 189, 248, 0.05); border-radius: 30px;
    font-size: 0.9rem; border: 1px solid var(--glass-border); cursor: default;
    transition: 0.3s; color: var(--text-sub)
}
.skill-tag:hover {
    background: rgba(6, 182, 212, 0.2); border-color: var(--accent-cyan);
    color: #fff; box-shadow: 0 0 10px rgba(6, 182, 212, 0.2)
}
#dnsVideoStage, #addConfigStage, #srVideoStage, #usernameFlow {
    display: none; width: 100%; animation: fadeInUp 0.5s forwards; text-align: center
}
.video-wrapper {
    width: 100%; margin-top: 20px; border-radius: 15px; overflow: hidden;
    border: 1px solid var(--glass-border); display: block; background: #000
}
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); display: none;
    align-items: center; justify-content: center; z-index: 1000; transition: 0.3s
}
.modal-content { width: 90%; max-width: 350px; text-align: center; padding: 40px 20px; position: relative }
.modal-content h3 { margin-bottom: 25px; margin-top: 10px; font-size: 1.2rem }
.key-input {
    width: 100%; padding: 12px; margin-bottom: 15px; border-radius: 10px;
    border: 1px solid var(--glass-border); background: rgba(255, 255, 255, 0.05);
    color: #fff; font-family: monospace; text-align: center; outline: none
}
.key-input:focus { border-color: var(--accent-cyan) }
.modal-btn-group { display: flex; gap: 10px; justify-content: center }
.modal-btn {
    padding: 10px 20px; border-radius: 8px; border: none; cursor: pointer;
    font-weight: 600; transition: 0.3s; font-size: 0.85rem
}
.btn-confirm { background: var(--gradient); color: white }
.btn-cancel { background: rgba(255, 255, 255, 0.1); color: var(--text-sub) }
.music-player { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center }
.disk {
    width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
    background: url('https://avatar-ex-swe.nixcdn.com/song/2021/05/13/2/5/f/3/1620894286595_640.jpg') center/cover;
    border: 3px solid rgba(255, 255, 255, 0.1); animation: spin 6s linear infinite paused;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3); transition: transform 0.5s
}
.player-info { flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 200px }
.song-info h3 {
    font-size: 1.1rem; margin-bottom: 2px; color: #fff; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis
}
.song-info p { color: var(--text-sub); font-size: 0.85rem; margin-bottom: 10px }
.progress-container {
    width: 100%; height: 5px; background: rgba(255, 255, 255, 0.1);
    border-radius: 5px; cursor: pointer; margin-bottom: 5px; position: relative
}
.progress-bar {
    width: 0%; height: 100%; background: var(--gradient); border-radius: 5px;
    position: relative; box-shadow: 0 0 10px var(--accent-cyan); transition: width 0.1s linear
}
.time-box {
    display: flex; justify-content: space-between; font-size: 0.75rem;
    color: var(--text-sub); font-family: monospace
}
.controls { display: flex; gap: 10px; align-items: center }
.control-btn {
    width: 45px; height: 45px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--gradient); color: white; font-size: 1.1rem; display: flex;
    align-items: center; justify-content: center; transition: 0.2s;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.4); flex-shrink: 0
}
.control-btn:active { transform: scale(0.9) }
.control-btn.secondary { width: 35px; height: 35px; background: rgba(255, 255, 255, 0.1); font-size: 0.9rem }
footer { text-align: center; padding: 40px; color: var(--text-sub); font-size: 0.9rem }
@media(max-width:600px) { .container { padding: 80px 15px 30px } .glass-card { padding: 20px } }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0) } }
@keyframes spin { 100% { transform: rotate(360deg) } }
.back-btn {
    cursor: pointer; color: var(--text-sub); font-size: 0.85rem; margin-bottom: 15px;
    display: inline-block; transition: 0.3s; opacity: 0.7
}
.back-btn:hover { opacity: 1; color: var(--accent-cyan); transform: translateX(-3px) }
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #0f172a;
    z-index: 99999; display: flex; flex-direction: column; justify-content: center;
    align-items: center; transition: 0.5s
}
.loader-text {
    color: #38bdf8; font-size: 1.2rem; letter-spacing: 3px; font-weight: bold;
    animation: fade 1.5s infinite; margin-bottom: 10px; text-transform: uppercase
}
.loader-sub { color: #bae6fd; font-size: 0.8rem; opacity: 0.7 }
@keyframes fade { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
