@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap');

:root {
    --primary-glow: #00e5ff;
    --accent-glow: #ffd700;
    --heart-color: #ff0050;
    --glass-bg: rgba(20, 20, 25, 0.45);
    --glass-border: rgba(255, 255, 255, 0.1);
    --music-bg: #1c1c24;
    --music-pink: #ff477e;
}

* { margin: 0; padding: 0; box-sizing: border-box; user-select: none; cursor: url('1.cur'), auto !important; }

body.loading { overflow: hidden; }
body { background: url('background.jpg') no-repeat center center fixed; background-size: cover; color: #fff; overflow-x: hidden; overflow-y: auto; font-family: 'Montserrat', sans-serif; padding-bottom: 80px; }

/* ================== PRELOADER ================== */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: url('bg.gif') no-repeat center center/cover; z-index: 99999; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.8s ease, visibility 0.8s ease; }
#preloader::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 15, 20, 0.8); z-index: -1; }
.loading-toast { position: absolute; top: 30px; background: #fff; color: #000; padding: 10px 25px; border-radius: 30px; font-family: 'Be Vietnam Pro', sans-serif; font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.loading-toast i.fa-spinner { color: #007bff; }
.loading-toast i.fa-check { color: #00e676; }
.loading-toast i.close-toast { color: #888; margin-left: 10px; font-size: 0.8rem; }
.loader-center { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.progress-container { position: relative; width: 300px; padding-top: 40px; }
.running-cat { position: absolute; bottom: 10px; left: 0; transform: translateX(-50%); width: 50px; transition: left 0.1s linear; z-index: 2; }
.progress-bar-bg { width: 100%; height: 6px; background: rgba(255,255,255,0.2); border-radius: 10px; overflow: hidden; position: relative; }
.progress-bar-fill { width: 0%; height: 100%; background: var(--primary-glow); border-radius: 10px; transition: width 0.1s linear; box-shadow: 0 0 10px var(--primary-glow); }
.progress-text { font-family: 'Be Vietnam Pro', sans-serif; font-weight: 600; font-size: 1.1rem; letter-spacing: 2px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

#main-interface { opacity: 0; visibility: hidden; transition: opacity 1s ease; }

/* ================== HEADER & LƯỢT XEM/TIM ================== */
.glass-panel { background: var(--glass-bg); backdrop-filter: blur(15px); border: 1px solid var(--glass-border); box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5); border-radius: 12px; padding: 10px 20px; }
header { display: flex; justify-content: space-between; padding: 40px 40px 20px; align-items: center; }
.header-left { font-weight: 700; letter-spacing: 2px; }
.header-actions { display: flex; gap: 20px; font-size: 1.1rem; align-items: center; }
.stat-badge { display: flex; align-items: center; gap: 8px; font-family: 'Be Vietnam Pro', sans-serif; font-weight: 600; font-size: 0.95rem; }
.view-count { color: #ccc; }
.like-count { color: #fff; cursor: url('1.cur'), pointer !important; transition: 0.3s; }
.like-count i { color: #fff; transition: 0.3s; }
.like-count:hover { transform: scale(1.05); }
.like-count.liked i { color: var(--heart-color); text-shadow: 0 0 15px var(--heart-color); animation: pound 0.5s ease; }
.like-count.liked span { color: var(--heart-color); }

.icon-hover { transition: 0.3s; color: rgba(255,255,255,0.7); cursor: url('1.cur'), pointer !important; font-size: 1.3rem;}
.icon-hover:hover { color: #fff; transform: translateY(-3px) scale(1.1); text-shadow: 0 0 10px #fff; }

/* ================== CÁC THÀNH PHẦN CHUNG ================== */
#particles-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.9) 100%); z-index: 1; pointer-events: none; }
.main-wrapper { position: relative; z-index: 10; display: flex; flex-direction: column; min-height: 100vh; }
.container { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 20px 0; }

/* Unified Profile Card */
.unified-profile-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; background: rgba(18, 18, 22, 0.85); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px; padding: 30px 40px; gap: 40px; box-shadow: 0 15px 40px rgba(0,0,0,0.8); margin-bottom: 20px; max-width: 900px; width: 95%; }

/* Avatar */
.avatar-wrapper { position: relative; width: 260px; height: 260px; display: flex; justify-content: center; align-items: center; perspective: 1000px; }
.avatar-core { position: absolute; width: 195px; height: 195px; border-radius: 50%; z-index: 1; overflow: hidden; box-shadow: 0 0 30px var(--primary-glow); background: #000; }
.avatar-core img { width: 100%; height: 100%; object-fit: cover; }
.frame-layer { position: absolute; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.vip-crown { z-index: 2; }
.mong-vuot { z-index: 3; }
.shifting-glow { animation: neonShift 3s alternate infinite; filter: drop-shadow(0 0 8px var(--accent-glow)); }
.pulsing-glow { animation: pulseSize 2s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(255,215,0,0.8)); }
.status-dot { position: absolute; bottom: 40px; right: 40px; width: 20px; height: 20px; background: #00ff00; border: 3px solid #111; border-radius: 50%; box-shadow: 0 0 12px #00ff00; z-index: 5; }
.ping { position: absolute; top: -3px; left: -3px; width: 100%; height: 100%; border-radius: 50%; background: #00ff00; animation: radarPing 2s ease-out infinite; }

/* Stats Card */
.stats-card { flex: 1; min-width: 300px; font-family: 'Be Vietnam Pro', sans-serif; }
.stats-header h2 { font-size: 1.6rem; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.verified-tick { color: #1da1f2; font-size: 1.2rem; filter: drop-shadow(0 0 5px #1da1f2); }
.stats-roles { color: #a0a0a0; font-size: 0.9rem; margin-bottom: 12px; }
.stats-meta { display: flex; gap: 15px; font-size: 0.85rem; color: #888; }
.stats-divider { border: 0; height: 1px; background: rgba(255,255,255,0.1); margin: 20px 0; }
.stats-numbers { display: flex; justify-content: space-between; text-align: center; }
.stat-item h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 5px; }
.stat-item p { font-size: 0.75rem; color: #888; letter-spacing: 1px; font-weight: 600; }
.stats-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }
.badge-tag { padding: 6px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.badge-tag.pro { background: #ffd700; color: #000; }
.badge-tag.verified { background: #1da1f2; color: #fff; }
.badge-tag.trust { background: #00e676; color: #000; }
.badge-tag.top-rated { background: #ff4757; color: #fff; }
.stats-buttons { display: flex; gap: 15px; }
.btn-action { flex: 1; padding: 12px 0; border-radius: 25px; font-size: 0.9rem; font-weight: 600; border: none; transition: 0.3s; display: flex; justify-content: center; align-items: center; gap: 8px; }
.btn-followed { background: rgba(255,255,255,0.1); color: #ccc; }
.btn-followed:hover { background: rgba(255,255,255,0.2); color: #fff; }
.btn-share { background: transparent; border: 1px solid #fff; color: #fff; }
.btn-share:hover { background: #fff; color: #000; box-shadow: 0 0 15px #fff; }

/* Intro Texts & Social */
.name-section h1 { font-size: 2.2rem; font-style: italic; font-weight: 700; text-shadow: 2px 2px 8px rgba(0,0,0,0.8); margin-top: 10px; text-align: center; }
.cursor { color: var(--primary-glow); animation: blink 0.8s infinite; }
.social-links { display: flex; gap: 20px; margin-top: 15px; margin-bottom: 40px; }
.social-btn { position: relative; width: 50px; height: 50px; background: var(--glass-bg); backdrop-filter: blur(5px); border: 1px solid var(--glass-border); border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; font-size: 1.5rem; text-decoration: none; transition: 0.3s; overflow: hidden; z-index: 1; }
.social-btn::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--clr); z-index: -1; transition: 0.4s; transform: scale(0); border-radius: 50%; }
.social-btn:hover::before { transform: scale(1); }
.social-btn:hover { box-shadow: 0 0 15px var(--clr); transform: translateY(-5px); }

/* ================== TAB GIỚI THIỆU (GIAO DIỆN MỚI) ================== */
.intro-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; width: 100%; max-width: 900px; }
.intro-column { display: flex; flex-direction: column; gap: 15px; flex: 1; min-width: 320px; }
.intro-tab { 
    font-family: 'Be Vietnam Pro', sans-serif; 
    background: #1c1c1e; /* Đen nhám như thiết kế */
    border-radius: 12px; 
    border: none;
    position: relative;
    padding: 16px 20px; 
    display: flex; align-items: center; gap: 15px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.4); 
    transition: 0.3s ease; width: 100%; 
}
/* Viền trái phát sáng tinh tế */
.intro-tab::before {
    content: ''; position: absolute; left: 0; top: 15%; height: 70%; width: 4px;
    background: var(--primary-glow); border-radius: 0 4px 4px 0;
    box-shadow: 0 0 8px var(--primary-glow);
    transition: 0.3s ease;
}
.intro-tab i { color: var(--primary-glow); font-size: 1.4rem; filter: drop-shadow(0 0 5px var(--primary-glow)); transition: 0.3s; }
.intro-tab span { color: #fff; font-size: 1rem; font-weight: 600; }
.intro-tab:hover { transform: translateX(8px); background: #252528; }
.intro-tab:hover::before { height: 100%; top: 0; border-radius: 12px 0 0 12px; }

/* ================== KHU VỰC DONATE ================== */
.donate-section { width: 100%; max-width: 900px; margin-top: 60px; font-family: 'Be Vietnam Pro', sans-serif; }
.donate-title { text-align: center; font-size: 1.5rem; font-weight: 700; margin-bottom: 25px; color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.4); }
.donate-title i { color: var(--primary-glow); margin-right: 10px; }
.donate-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.donate-card {
    background: rgba(25, 25, 30, 0.85); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 15px;
    padding: 20px; display: flex; align-items: center; gap: 15px;
    transition: 0.3s; position: relative; overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.donate-card:hover { transform: translateY(-5px); border-color: var(--primary-glow); box-shadow: 0 10px 25px rgba(0, 229, 255, 0.2); }
.bank-logo-wrap { width: 55px; height: 55px; background: #fff; border-radius: 12px; display: flex; justify-content: center; align-items: center; padding: 5px; flex-shrink: 0; }
.bank-logo-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.donate-info { flex: 1; overflow: hidden; }
.donate-info h4 { font-size: 1rem; color: #00e5ff; margin-bottom: 5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.donate-info p { font-size: 0.8rem; color: #ccc; margin-bottom: 3px; }
.stk-number { color: #fff; font-weight: bold; font-family: monospace; font-size: 1rem; letter-spacing: 1px; }
.copy-btn {
    background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; padding: 8px 15px; border-radius: 8px; font-size: 0.85rem; font-weight: 600;
    transition: 0.3s; flex-shrink: 0;
}
.copy-btn:hover { background: var(--primary-glow); color: #000; border-color: var(--primary-glow); box-shadow: 0 0 10px var(--primary-glow); }
.copy-btn:active { transform: scale(0.9); }

/* Toast Copy Thành Công */
.copy-toast {
    position: fixed; bottom: -50px; left: 50%; transform: translateX(-50%);
    background: #00e676; color: #000; padding: 10px 25px; border-radius: 30px;
    font-family: 'Be Vietnam Pro', sans-serif; font-weight: 600; font-size: 0.95rem;
    box-shadow: 0 5px 15px rgba(0,230,118,0.5); transition: 0.4s ease; z-index: 10000;
}
.copy-toast.show { bottom: 30px; }

/* ================== FIXED BOTTOM & MUSIC PLAYER ================== */
.fixed-bottom-left { position: fixed; bottom: 20px; left: 20px; z-index: 100; font-weight: bold; font-size: 1.1rem; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.fps-value { color: #ff0050; text-shadow: 0 0 8px rgba(255,0,80,0.8); margin: 0 5px; }
.fps-status { font-size: 0.8rem; color: #fff; font-weight: normal; }
.fixed-bottom-right { position: fixed; bottom: 20px; right: 20px; z-index: 100; font-weight: bold; font-size: 1.2rem; letter-spacing: 1px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.fixed-bottom-center { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; font-family: 'Be Vietnam Pro', sans-serif; }
.copyright-text { font-size: 0.95rem; color: #ccc; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.glow-text-cyan { color: #00e5ff; font-weight: 700; text-shadow: 0 0 5px #00e5ff, 0 0 10px #00e5ff, 0 0 20px #00e5ff; letter-spacing: 0.5px; }

/* Trình phát nhạc giữ nguyên nhưng tối ưu giao diện */
#music-widget { position: fixed; top: 50%; right: 20px; transform: translateY(-50%); z-index: 1000; font-family: 'Be Vietnam Pro', sans-serif; transition: 0.4s ease; }
#music-widget.collapsed .player-container { opacity: 0; visibility: hidden; transform: translateX(50px) scale(0.8); pointer-events: none; }
#music-widget.collapsed .music-toggle-btn { opacity: 1; visibility: visible; transform: scale(1); pointer-events: auto; }
.music-toggle-btn { position: absolute; right: 0; top: 50%; transform: translateY(-50%) scale(0); opacity: 0; width: 60px; height: 60px; border-radius: 50%; background: rgba(0,0,0,0.5); border: 2px solid var(--music-pink); display: flex; justify-content: center; align-items: center; box-shadow: 0 0 15px rgba(255, 71, 126, 0.5); transition: 0.4s ease; visibility: hidden; overflow: hidden; }
.spin-disc { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; animation: spin 4s linear infinite; opacity: 0.6; }
.music-note-icon { position: absolute; font-size: 1.5rem; color: #fff; text-shadow: 0 0 5px var(--music-pink); animation: pound 1s infinite; }
.player-container { width: 320px; height: 500px; background: var(--music-bg); border-radius: 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.8); border: 1px solid rgba(255,255,255,0.05); position: relative; overflow: hidden; transition: 0.4s ease; opacity: 1; visibility: visible; transform: translateX(0) scale(1); }
.player-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; color: #aaa; font-size: 0.9rem; font-weight: 500; }
.player-header i { font-size: 1.2rem; color: #fff; transition: 0.3s; }
.player-header i:hover { color: var(--music-pink); }
.view-now-playing, .view-playlist { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; transition: 0.4s; }
.view-now-playing { transform: translateX(-100%); opacity: 0; }
.view-now-playing.active { transform: translateX(0); opacity: 1; }
.view-playlist { transform: translateX(100%); opacity: 0; }
.view-playlist.active { transform: translateX(0); opacity: 1; }
.cover-wrapper { width: 100%; display: flex; justify-content: center; margin-bottom: 20px; }
.cover-wrapper img { width: 240px; height: 240px; border-radius: 20px; object-fit: cover; box-shadow: 0 10px 20px rgba(0,0,0,0.5); transition: 0.5s; }
#player-title { text-align: center; font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 5px; padding: 0 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#player-artist { text-align: center; font-size: 0.9rem; color: #aaa; margin-bottom: 20px; }
.progress-area { padding: 0 25px; margin-bottom: 20px; }
.time-texts { display: flex; justify-content: space-between; font-size: 0.75rem; color: #888; margin-bottom: 5px; font-weight: 600; }
.progress-bar-wrapper { width: 100%; height: 5px; background: #333; border-radius: 5px; position: relative; }
.progress-bar-played { height: 100%; width: 0%; background: #fff; border-radius: 5px; position: relative; }
.progress-bar-played::after { content: ''; position: absolute; right: -5px; top: 50%; transform: translateY(-50%); width: 10px; height: 10px; background: #fff; border-radius: 50%; opacity: 0; transition: 0.2s; }
.progress-bar-wrapper:hover .progress-bar-played::after { opacity: 1; }
.player-controls { display: flex; justify-content: space-evenly; align-items: center; padding: 0 20px; color: #ccc; font-size: 1.2rem; }
.player-controls i { transition: 0.3s; }
.player-controls i:hover { color: #fff; }
.play-pause-btn { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #ff477e, #ff7096); display: flex; justify-content: center; align-items: center; color: #fff; font-size: 1.5rem; box-shadow: 0 0 20px rgba(255, 71, 126, 0.6); position: relative; }
.play-pause-btn::before { content: ''; position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 2px solid rgba(255, 71, 126, 0.5); animation: pulsePlay 1.5s infinite; }
.playlist-scroll { list-style: none; overflow-y: auto; flex: 1; padding: 0 15px 15px; }
.playlist-scroll::-webkit-scrollbar { width: 5px; }
.playlist-scroll::-webkit-scrollbar-thumb { background: #444; border-radius: 5px; }
.playlist-item { display: flex; align-items: center; gap: 15px; padding: 12px 10px; border-bottom: 1px dashed #333; transition: 0.3s; border-radius: 8px; margin-bottom: 5px; }
.playlist-item:hover { background: rgba(255,255,255,0.05); }
.playlist-item.playing { background: rgba(0, 229, 255, 0.05); border-left: 3px solid #00e5ff; }
.playlist-item img { width: 45px; height: 45px; border-radius: 8px; object-fit: cover; }
.playlist-info { flex: 1; display: flex; flex-direction: column; }
.playlist-info h4 { font-size: 0.9rem; color: #fff; font-weight: 600; margin-bottom: 3px; }
.playlist-item.playing .playlist-info h4 { color: #00e5ff; }
.playlist-info p { font-size: 0.75rem; color: #888; }

/* KEYFRAMES */
@keyframes neonShift { 0% { filter: drop-shadow(0 0 2px var(--accent-glow)); } 100% { filter: drop-shadow(0 0 15px var(--primary-glow)); } }
@keyframes pulseSize { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(255,215,0,0.5)); } 50% { transform: scale(1.03); filter: drop-shadow(0 0 15px rgba(255,215,0,1)); } }
@keyframes radarPing { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.5); opacity: 0; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes pound { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes pulsePlay { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }