:root { --primary: #ff7eb3; --secondary: #ff758c; --text-main: #d81b60; --neon-pink: #ff367d; --neon-glow: rgba(255, 54, 125, 0.6); --bg-top: #ffd3e0; --bg-bottom: #ffb1c2; }
body { margin: 0; font-family: 'Baloo 2', cursive; color: #333; min-height: 100vh; background-color: var(--bg-top); background-size: cover; background-position: center bottom; background-attachment: fixed; background-repeat: no-repeat; overflow-x: hidden;}
* { box-sizing: border-box; }

.header { background: rgb(255 255 255 / 1%); box-shadow: 0 4px 15px rgba(255, 117, 140, 0.2); padding: 10px 40px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(8px); }
.header-logo { font-size: 24px; font-weight: 800; color: var(--text-main); text-shadow: 1px 1px 0px #fff; }
.header-actions { display: flex; align-items: center; gap: 15px; }

.megaphone { background: rgba(255, 255, 255, 0.7); border-bottom: 2px solid #ffd1dc; padding: 6px 20px; font-size: 15px; font-weight: 600; color: #d81b60; display: flex; align-items: center; gap: 10px; overflow: hidden; white-space: nowrap; backdrop-filter: blur(5px); box-shadow: 0 2px 10px rgba(255, 117, 140, 0.1);}
.megaphone marquee { flex: 1; text-shadow: 0 1px 0 #fff; }
.megaphone i { color: #ff367d; animation: pulse 1s infinite; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes popIn { 0% { transform: scale(0.5); opacity: 0; } 70% { transform: scale(1.2); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
@keyframes flipCoin { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(360deg); } }

.user-greeting { font-weight: 700; color: var(--text-main); display: none; }
@media(min-width: 600px) { .user-greeting { display: inline; } }

.container { max-width: 1200px; margin: 20px auto 40px; padding: 20px; position: relative; z-index: 10; }
.main-layout { display: flex; gap: 30px; align-items: flex-start; flex-wrap: wrap; }

.info-sidebar { width: 320px; background: rgba(30, 5, 20, 0.65); border: 3px solid var(--neon-pink); border-radius: 20px; padding: 25px 20px; color: #fff; box-shadow: 0 0 15px var(--neon-glow), inset 0 0 15px var(--neon-glow); backdrop-filter: blur(8px); flex-shrink: 0; position: sticky; top: 90px; }
.fam-info-title { text-align: center; font-size: 26px; font-weight: 800; color: #fff; text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink); margin-top: 0; margin-bottom: 25px; letter-spacing: 2px; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { margin-bottom: 18px; font-size: 17px; display: flex; align-items: flex-start; }
.info-list i { color: #ff85b3; text-shadow: 0 0 5px var(--neon-pink); width: 25px; margin-top: 4px; }
.info-label { font-weight: 700; color: #ffb6c1; margin-right: 5px; white-space: nowrap;}
.info-value { font-weight: 600; color: #fff; text-shadow: 1px 1px 2px rgba(0,0,0,0.5); }
.fam-hearts { color: #ff367d; text-shadow: 0 0 5px #ff367d; font-size: 14px; letter-spacing: 2px; }

.member-content { flex: 1; min-width: 300px; }
.tab-nav { display: flex; justify-content: center; gap: 15px; margin-bottom: 25px; }
.tab-btn { background: rgba(255, 255, 255, 0.5); color: #555; border: 2px solid #fff; padding: 10px 25px; border-radius: 30px; font-size: 16px; font-weight: 800; cursor: pointer; transition: 0.3s; font-family: inherit; position: relative;}
.tab-btn.active { background: linear-gradient(45deg, #ff758c, #ff7eb3); color: #fff; border-color: transparent; box-shadow: 0 5px 15px rgba(255, 117, 140, 0.4); }
.tab-badge { position: absolute; top: -5px; right: -5px; background: red; color: #fff; border-radius: 50%; padding: 2px 6px; font-size: 11px; display: none; box-shadow: 0 2px 5px rgba(0,0,0,0.2);}

.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.btn { border: none; padding: 10px 24px; border-radius: 30px; font-size: 15px; font-weight: 700; cursor: pointer; transition: 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.btn-add-mem { background: linear-gradient(45deg, #4facfe, #00f2fe); color: #fff; box-shadow: 0 4px 15px rgba(0,242,254,0.4); }
.btn-bg { background: linear-gradient(45deg, #a18cd1, #fbc2eb); color: #fff; box-shadow: 0 4px 15px rgba(161,140,209,0.4); }
.btn-outline { background: #fff; color: var(--text-main); border: 2px solid var(--text-main); padding: 8px 16px; }
.admin-controls { display: flex; gap: 15px; justify-content: center; margin-bottom: 20px; flex-wrap: wrap; }

.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 30px; text-align: center; margin-top: 15px; transition: 0.3s ease; }
.member-card { background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 25px; padding: 35px 15px 20px; box-shadow: 0 8px 32px rgba(255, 117, 140, 0.3); transition: 0.3s; position: relative; border: 2px solid rgba(255, 255, 255, 0.3); }
.member-role { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); color: #fff; padding: 5px 18px; border-radius: 20px; font-size: 13px; font-weight: 800; white-space: nowrap; z-index: 10; border: 1px solid rgba(255,255,255,0.5); }
.role-admin { background: linear-gradient(45deg, #ff0844, #ffb199); box-shadow: 0 0 10px #ff0844; }
.role-vice { background: linear-gradient(45deg, #00c6ff, #0072ff); box-shadow: 0 0 10px #00c6ff; }
.role-member { background: linear-gradient(45deg, #11998e, #38ef7d); box-shadow: 0 4px 10px rgba(17,153,142,0.4); }

.btn-edit-member { position: absolute; top: 12px; right: 12px; background: rgba(255, 255, 255, 0.85); color: #888; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid #eee; }
.avatar-wrap { width: 90px; height: 90px; margin: 0 auto 15px; border-radius: 50%; padding: 4px; background: linear-gradient(135deg, var(--primary), var(--secondary)); position: relative; }
.avatar-wrap img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; background: #fff; }
.btn-edit-avatar { position: absolute; bottom: -5px; right: -5px; background: #fff; color: var(--text-main); border: 2px solid var(--primary); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.member-name { font-size: 18px; font-weight: 800; color: #fff; text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6), 0 0 10px #ff367d; margin: 0; line-height: 1.2; }
.member-ingame { font-size: 13px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); font-weight: 600; margin-top: 5px; }

@keyframes sparkleVip {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 2px currentColor); }
    50% { filter: brightness(1.5) drop-shadow(0 0 8px currentColor); transform: scale(1.02); }
}
.sparkle-vip-text { animation: sparkleVip 1.5s infinite ease-in-out; font-weight: 900 !important; letter-spacing: 0.5px; }

@keyframes rainbowText {
    0% { color: #ff0000; text-shadow: 0 0 5px #ff0000; }
    15% { color: #ff7f00; text-shadow: 0 0 5px #ff7f00; }
    30% { color: #ffff00; text-shadow: 0 0 5px #ffff00; }
    45% { color: #00ff00; text-shadow: 0 0 5px #00ff00; }
    60% { color: #0000ff; text-shadow: 0 0 5px #0000ff; }
    75% { color: #4b0082; text-shadow: 0 0 5px #4b0082; }
    90% { color: #9400d3; text-shadow: 0 0 5px #9400d3; }
    100% { color: #ff0000; text-shadow: 0 0 5px #ff0000; }
}
.rainbow-vip-text { animation: rainbowText 3s infinite linear; font-weight: 900 !important; letter-spacing: 0.5px; }

@keyframes ringPulse {
    0% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 5px gold) hue-rotate(0deg); }
    50% { transform: translateY(-3px) scale(1.1); filter: drop-shadow(0 0 15px gold) hue-rotate(45deg) brightness(1.2); }
    100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 5px gold) hue-rotate(0deg); }
}
.sparkle-ring { animation: ringPulse 1.5s infinite ease-in-out; color: #ffeb3b; display: inline-block; filter: drop-shadow(0 0 5px #ffeb3b); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.page-btn { background: rgba(255, 255, 255, 0.8); color: var(--text-main); border: 2px solid var(--primary); padding: 5px 15px; border-radius: 20px; font-weight: 800; cursor: pointer; transition: 0.3s; font-family: inherit; }
.page-btn.active { background: var(--primary); color: #fff; }

.news-card { background: rgba(255,255,255,0.95); border-radius: 20px; padding: 25px; margin-bottom: 20px; box-shadow: 0 5px 20px rgba(255,117,140,0.2); position: relative; border-left: 5px solid var(--primary); overflow: hidden; }
.news-poster { width: 100%; object-fit: cover; border-radius: 12px; margin-bottom: 15px; border: 1px solid #eee; }
.news-time { font-size: 13px; color: #888; font-weight: 600; margin-bottom: 15px; }
.news-content { font-size: 16px; color: #333; line-height: 1.6; }
.news-content img { max-width: 100%; height: auto; border-radius: 8px; }
.btn-del-news { position: absolute; top: 15px; right: 15px; background: #ffebee; color: #c62828; border: none; border-radius: 8px; padding: 5px 10px; cursor: pointer; font-size: 12px; font-weight: 700; z-index: 10; }

.news-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 20px; padding-bottom: 10px; scroll-behavior: smooth; }
.news-slider::-webkit-scrollbar { height: 8px; }
.news-slider::-webkit-scrollbar-thumb { background: rgba(255,117,140,0.8); border-radius: 10px; }
.news-slider::-webkit-scrollbar-track { background: rgba(255,255,255,0.3); border-radius: 10px; }
.news-slide-item { min-width: 100%; scroll-snap-align: start; margin-bottom: 0 !important; }

.couple-card { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); border-radius: 20px; padding: 20px; box-shadow: 0 8px 25px rgba(255, 117, 140, 0.3); display: flex; align-items: center; justify-content: space-between; border: 2px solid #ffd1dc; width: 100%; max-width: 450px; margin: 0 auto; }
.cp-person { text-align: center; flex: 1; }
.cp-person img { width: 70px; height: 70px; border-radius: 50%; border: 3px solid #ff758c; object-fit: cover; }
.cp-name { font-weight: 800; color: #d81b60; font-size: 16px; margin-top: 5px; }
.cp-ig { font-size: 12px; color: #666; font-weight: bold; }
.cp-ring { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 15px; }

.chat-container { background: rgba(255,255,255,0.9); border-radius: 20px; height: 500px; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(255,117,140,0.2); border: 3px solid #fff; position: relative; }
.chat-box { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.chat-msg { display: flex; gap: 10px; align-items: flex-end; }
.chat-msg.my-msg { flex-direction: row-reverse; }
.chat-ava { width: 35px; height: 35px; border-radius: 50%; border: 2px solid var(--primary); object-fit: cover; }
.chat-bubble { max-width: 70%; background: #f1f1f1; padding: 10px 15px; border-radius: 20px; border-bottom-left-radius: 0; }
.my-msg .chat-bubble { background: linear-gradient(135deg, #ff758c, #ff7eb3); color: #fff; border-bottom-left-radius: 20px; border-bottom-right-radius: 0; }
.chat-name { font-size: 12px; font-weight: 800; margin-bottom: 3px; display: inline-block; }
.my-msg .chat-name { display: none; }
.chat-text { font-size: 15px; font-weight: 600; word-wrap: break-word; line-height: 1.5; }
.chat-sticker-img { max-width: 120px; max-height: 120px; border-radius: 10px; background: transparent; display: block; margin-top: 5px; }
.chat-upload-img { max-width: 200px; max-height: 250px; border-radius: 10px; cursor: pointer; border: 1px solid #eee; display: block; margin-top: 5px; }
.btn-del-chat { font-size:11px; color:rgba(255,0,0,0.5); cursor:pointer; margin-left:8px; transition:0.2s; }
.btn-del-chat:hover { color:red; transform:scale(1.2); }
.mention { color: #fff; font-weight: 800; background: linear-gradient(45deg, #ff0844, #ffb199); padding: 2px 6px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.5); font-size: 14px; box-shadow: 0 2px 5px rgba(255,8,68,0.3); }
.sys-msg { color: #d81b60; font-style: italic; font-weight: 800; background: #ffe4eb; padding: 6px 12px; border-radius: 12px; display: inline-block; border: 2px dashed #ff758c; font-size: 14px; line-height:1.6;}
.my-msg .sys-msg { color: #fff; background: rgba(255,255,255,0.2); border-color: #fff; }
.btn-lixi { display: block; width: 100%; background: linear-gradient(45deg, #f44336, #ff1744); color: #fff; font-weight: bold; border: 2px solid #ffcdd2; padding: 10px; border-radius: 12px; margin-top: 10px; cursor: pointer; font-family: inherit; font-size: 16px; box-shadow: 0 4px 10px rgba(244,67,54,0.4); animation: shake 1s infinite; }
.btn-lixi:hover { transform: scale(1.05); }

.chat-input-area { display: flex; padding: 15px; background: rgba(255,255,255,0.5); border-top: 1px solid #eee; gap: 8px; position: relative; align-items:center; }
.chat-input { flex: 1; border: 2px solid #ffd1dc; border-radius: 25px; padding: 10px 15px; font-family: inherit; outline: none; font-size: 15px; min-width: 0;}
.btn-chat-tool { background: #fff; border: 2px solid #ffd1dc; border-radius: 50%; width: 40px; height: 40px; cursor: pointer; color: #ff758c; font-size: 18px; transition: 0.2s; display:flex; align-items:center; justify-content:center; flex-shrink: 0;}
.btn-chat-tool:hover { background: #ffe4eb; border-color: #ff758c; }
.btn-send { background: var(--primary); color: #fff; border: none; border-radius: 50%; width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; font-size: 18px; flex-shrink: 0;}

.emoji-panel { display: none; position: absolute; bottom: 70px; left: 15px; width: 320px; height: 250px; background: #fff; border-radius: 15px; box-shadow: 0 5px 25px rgba(0,0,0,0.2); border: 2px solid var(--primary); flex-direction: column; z-index: 100; overflow: hidden; }
.emoji-tabs { display: flex; background: #ffe4eb; }
.emoji-tab { flex: 1; text-align: center; padding: 10px; cursor: pointer; font-weight: 800; color: #ff758c; border-bottom: 2px solid transparent; }
.emoji-tab.active { border-bottom-color: var(--text-main); color: var(--text-main); background: #fff; }
.emoji-content { flex: 1; padding: 10px; overflow-y: auto; display: none; }
.emoji-content.active { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.emoji-item { font-size: 24px; cursor: pointer; padding: 5px; transition: 0.2s; border-radius: 5px; }
.emoji-item:hover { background: #eee; transform: scale(1.2); }
.sticker-item { width: 60px; height: 60px; object-fit: contain; cursor: pointer; border-radius: 10px; padding: 5px; transition: 0.2s; }
.sticker-item:hover { background: #f1f1f1; transform: scale(1.1); }

.cmd-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 1px solid #ffd1dc; background: #fff; border-radius: 10px; color: #d81b60; font-weight: bold; cursor: pointer; font-family: inherit; transition: 0.2s; margin-bottom: 5px;}
.cmd-btn:hover { background: #ffe4eb; transform: translateX(5px); }

.mention-box { position: absolute; bottom: 70px; left: 110px; background: #fff; border: 2px solid var(--primary); border-radius: 10px; max-height: 150px; overflow-y: auto; z-index: 101; display: none; box-shadow: 0 5px 15px rgba(0,0,0,0.1); min-width: 150px;}
.mention-item { padding: 8px 12px; cursor: pointer; font-weight: bold; color: #d81b60; border-bottom: 1px solid #eee; }
.mention-item:hover { background: #ffe4eb; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; margin-top: 15px; }
.shop-item { background: #fff; border: 2px solid #ffd1dc; border-radius: 15px; padding: 15px 10px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: 0.2s; position:relative;}
.shop-item:hover { transform: translateY(-5px); border-color: #ff758c; }
.shop-item-icon { font-size: 35px; margin-bottom: 5px; }
.shop-item-name { font-weight: 800; color: #d81b60; font-size: 14px; margin-bottom: 5px; }
.shop-item-desc { font-size: 11px; color: #666; margin-bottom: 10px; height: 32px; overflow: hidden; }
.shop-item-price { font-weight: bold; color: #ff9a9e; font-size: 14px; margin-bottom: 10px; }
.btn-buy { background: linear-gradient(45deg, #ff758c, #ff7eb3); border: none; color: #fff; padding: 5px 15px; border-radius: 20px; cursor: pointer; font-weight: bold; font-family: inherit; width: 100%; transition: 0.2s;}
.btn-buy:hover { opacity: 0.8; }

.leaderboard-list { margin-top: 15px; }
.lb-item { display: flex; align-items: center; justify-content: space-between; padding: 10px; border-bottom: 1px solid #eee; }
.lb-item:nth-child(1) .lb-rank { color: gold; font-size: 20px; }
.lb-item:nth-child(2) .lb-rank { color: silver; font-size: 18px; }
.lb-item:nth-child(3) .lb-rank { color: #cd7f32; font-size: 18px; }
.lb-rank { font-weight: 900; width: 30px; text-align: center; }
.lb-name { flex: 1; font-weight: bold; color: #333; }
.lb-score { font-weight: 800; color: #d81b60; }

.mini-radio { position: fixed; bottom: 20px; left: 20px; background: rgba(30, 5, 20, 0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 2px solid rgba(255,255,255,0.3); border-radius: 35px; width: 280px; max-width: calc(100vw - 40px); box-shadow: 0 5px 20px rgba(255,54,125,0.4); z-index: 1000; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); overflow: hidden; padding: 6px; }
.radio-disc-wrapper { cursor: pointer; padding: 0; margin: 0; display: inline-block;}
.mini-radio.collapsed { width: 57px; height: 57px; border-radius: 50%; padding: 4px; }
.mini-radio.collapsed .radio-info-wrapper { display: none; }
.radio-header { display: flex; align-items: center; gap: 12px; }
.radio-disc { width: 45px; height: 45px; background: linear-gradient(45deg, #ff0844, #ffb199); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; border: 2px solid #fff; box-shadow: 0 0 10px rgba(255,8,68,0.5); animation: spinDisc 3s linear infinite; animation-play-state: paused; font-size: 18px; flex-shrink: 0;}
.radio-disc.playing { animation-play-state: running; }
.radio-info-wrapper { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.radio-top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; border-bottom: 1px dashed rgba(255,255,255,0.2); padding-bottom: 5px;}
.radio-title { font-size: 13px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 1px 1px 2px #000; flex: 1;}
.btn-close-radio { background: none; border: none; color: #fff; cursor: pointer; font-size: 18px; opacity: 0.7; padding: 0 5px; }
.btn-close-radio:hover { opacity: 1; transform: scale(1.1); }
.radio-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.radio-progress .time { font-size: 10px; color: rgba(255,255,255,0.8); min-width: 30px; font-weight: 600; text-shadow: 1px 1px 1px #000; }
.radio-progress .bar { flex: 1; height: 5px; background: rgba(255,255,255,0.2); border-radius: 5px; cursor: pointer; position: relative; overflow: hidden; }
.radio-progress .fill { height: 100%; width: 0%; background: linear-gradient(45deg, #ff758c, #ff7eb3); border-radius: 5px; transition: width 0.1s linear; }
.radio-controls { display: flex; gap: 15px; align-items: center; justify-content: flex-start;}
.radio-controls button { background: none; border: none; color: #fff; cursor: pointer; font-size: 16px; transition: 0.2s; text-shadow: 1px 1px 2px #000; padding: 0; }
.radio-controls button:hover { color: #ffebf0; transform: scale(1.2); }
.radio-playlist { max-height: 150px; overflow-y: auto; padding-right: 5px; margin-top: 10px; }
.radio-playlist::-webkit-scrollbar { width: 4px; }
.radio-playlist::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.5); border-radius: 4px;}
.playlist-item { color: #fff; font-size: 13px; padding: 6px 10px; cursor: pointer; transition: 0.2s; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom:2px;}
.playlist-item:hover { background: rgba(255,255,255,0.1); }
.playlist-item.active { color: #ffebf0; background: linear-gradient(45deg, #ff758c, #ff7eb3); font-weight: bold; }
@keyframes spinDisc { 100% { transform: rotate(360deg); } }
.song-list-admin { max-height: 200px; overflow-y: auto; margin-top: 15px; }

.falling-flake { position: fixed; top: -10vh; z-index: 5; pointer-events: none; animation: fall linear forwards; opacity: 0.8; filter: drop-shadow(0 0 5px rgba(255,255,255,0.6)); }
@keyframes fall { to { transform: translateY(110vh) rotate(360deg); } }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 9999; backdrop-filter: blur(3px); }
.modal-box { background: #fff; padding: 30px 40px; border-radius: 25px; width: 90%; max-width: 420px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); position: relative; max-height: 90vh; overflow-y: auto;}
.modal-title { margin-top: 0; color: #d81b60; font-size: 26px; text-align: center; font-weight: 800; margin-bottom: 25px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; color: #555; margin-bottom: 8px; font-size: 15px; }
.form-control { width: 100%; padding: 12px 15px; border: 2px solid #ffd1dc; border-radius: 12px; font-family: inherit; font-size: 15px; outline: none; }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 24px; color: #ccc; cursor: pointer; border: none; background: none; }
.btn-submit-modal { background: #ff758c; color: #fff; width: 100%; padding: 14px; border-radius: 30px; font-size: 16px; font-weight: 800; border: none; cursor: pointer; margin-top: 10px; }
.alert { padding: 10px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; text-align: center; }
.alert-error { background: #ffebee; color: #c62828; }
.alert-success { background: #e8f5e9; color: #2e7d32; }

.ql-toolbar { border-radius: 12px 12px 0 0; border: 2px solid #ffd1dc !important; border-bottom: none !important; background: #fff; }
.ql-container { border-radius: 0 0 12px 12px; border: 2px solid #ffd1dc !important; font-family: 'Baloo 2', cursive; font-size: 16px; height: 180px; }

.anim-box { display: inline-flex; width: 60px; height: 60px; background: #fff; border: 3px solid #ff7eb3; border-radius: 15px; align-items: center; justify-content: center; font-size: 35px; box-shadow: 0 5px 15px rgba(255,126,179,0.5); transition: 0.1s; }
.racing-track { width: 100%; height: 40px; border-bottom: 2px dashed #ff7eb3; position: relative; margin-bottom: 10px; }
.racing-animal { position: absolute; left: 0; bottom: 5px; font-size: 30px; transition: left 3s cubic-bezier(0.25, 0.1, 0.25, 1); }
.racing-finish { position: absolute; right: 0; top: 0; height: 100%; border-right: 4px solid red; z-index: 10; }
@keyframes fistShake { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-15px) rotate(-15deg); } 75% { transform: translateY(-15px) rotate(15deg); } }
.fist-shake { animation: fistShake 0.3s infinite; }
@keyframes shake { 0% { transform: translateX(0); } 25% { transform: translateX(-5px) rotate(-5deg); } 50% { transform: translateX(5px) rotate(5deg); } 75% { transform: translateX(-5px) rotate(-5deg); } 100% { transform: translateX(0); } }

@media (max-width: 850px) {
    .main-layout { flex-direction: column; align-items: stretch; gap: 20px; }
    .info-sidebar { width: 100%; max-width: 100%; position: static; display: flex; flex-direction: column; align-items: center; margin-bottom: 10px; }
    .info-list { width: 100%; max-width: 400px; }
}

@media (max-width: 600px) {
    .header { padding: 10px 15px; flex-direction: column; gap: 10px; text-align: center; }
    .header-actions { width: 100%; justify-content: center; flex-wrap: wrap; }
    .header-logo { font-size: 22px; }
    .container { margin: 10px auto; padding: 15px; }
    .tab-nav { flex-wrap: wrap; gap: 8px; }
    .tab-btn { flex: 1; min-width: calc(33% - 10px); padding: 8px 5px; font-size: 14px; text-align: center; }
    .member-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
    .member-card { padding: 30px 10px 15px; border-radius: 15px; }
    .avatar-wrap { width: 75px; height: 75px; }
    .member-name { font-size: 16px; }
    .member-role { font-size: 11px; padding: 4px 12px; top: -14px; }
    .chat-container { height: 60vh; max-height: 500px; }
    .chat-bubble { max-width: 85%; }
    .chat-upload-img { max-width: 150px; max-height: 200px; }
    .emoji-panel { width: 90%; left: 5%; bottom: 65px; height: 230px; }
    .mention-box { left: 5%; bottom: 65px; width: 60%; }
    .chat-input-area { padding: 10px 5px; gap: 5px; }
    .btn-chat-tool { width: 35px; height: 35px; font-size: 15px; }
    .btn-send { width: 35px; height: 35px; font-size: 15px; }
    .chat-input { padding: 8px 10px; font-size: 13px; }
    .modal-box { padding: 25px 20px; width: 95%; border-radius: 20px; }
    .modal-title { font-size: 22px; margin-bottom: 15px; }
    .news-card { padding: 15px; border-radius: 15px; }
    .news-content { font-size: 15px; }
    .admin-controls { flex-direction: row; flex-wrap: wrap; }
    .btn { padding: 8px 16px; font-size: 14px; }
    .mini-radio { bottom: 100px; left: 15px; }
}
/* GIAO DIỆN TAB CỬA HÀNG */
.shop-nav { display: flex; gap: 10px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 10px; }
.shop-nav::-webkit-scrollbar { height: 5px; }
.shop-nav::-webkit-scrollbar-thumb { background: #ff758c; border-radius: 5px; }
.shop-tab-btn { background: #ffe4eb; color: #d81b60; border: 2px solid #ffd1dc; padding: 8px 15px; border-radius: 20px; font-weight: bold; cursor: pointer; white-space: nowrap; transition: 0.3s; font-family: inherit;}
.shop-tab-btn:hover { background: #ffd1dc; }
.shop-tab-btn.active { background: linear-gradient(45deg, #ff758c, #ff7eb3); color: white; border-color: transparent; box-shadow: 0 4px 10px rgba(255,117,140,0.3); }
.shop-item-power { font-size: 11px; color: #f44336; font-weight: bold; margin-bottom: 5px; }
/* --- GIAO DIỆN TỦ ĐỒ --- */
.inv-item { background: #fff; border: 2px solid #ffd1dc; border-radius: 15px; padding: 15px 10px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05); position:relative; transition: 0.2s; }
.inv-item.equipped { border-color: #00e676; background: #e8f5e9; box-shadow: 0 0 15px rgba(0,230,118,0.3); }
.inv-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #00e676; color: white; padding: 4px 12px; border-radius: 15px; font-size: 11px; font-weight: 900; letter-spacing: 1px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); white-space: nowrap;}
.btn-equip { background: linear-gradient(45deg, #00c6ff, #0072ff); color: white; width: 100%; border: none; padding: 6px; border-radius: 15px; font-weight: bold; cursor: pointer; transition: 0.2s;}
.btn-equip.unequip { background: linear-gradient(45deg, #ff512f, #dd2476); }
.btn-equip:hover { transform: scale(1.05); }

/* --- GIAO DIỆN REPLY & THẢ TIM CHAT --- */
.chat-bubble { position: relative; }
.chat-bubble:hover .chat-action-bar { display: flex; }
.chat-action-bar { display: none; position: absolute; top: -15px; right: 10px; background: #fff; border: 1px solid #ffd1dc; border-radius: 20px; padding: 2px 8px; gap: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.15); z-index: 10; }
.my-msg .chat-action-bar { right: auto; left: 10px; }
.chat-action-bar button { background: none; border: none; font-size: 16px; cursor: pointer; transition: 0.2s; padding: 0; display: flex; align-items: center;}
.chat-action-bar button:hover { transform: scale(1.3); }

.chat-reply-bubble { font-size: 12px; background: rgba(0,0,0,0.05); padding: 5px 10px; border-radius: 8px; margin-bottom: 5px; border-left: 3px solid rgba(0,0,0,0.2); color: #666; font-style: italic;}
.my-msg .chat-reply-bubble { background: rgba(255,255,255,0.25); border-left-color: #fff; color: #fff;}

.chat-reactions-summary { display: flex; gap: 4px; position: absolute; bottom: -12px; right: 15px; background: #fff; padding: 3px 8px; border-radius: 12px; font-size: 12px; font-weight: bold; box-shadow: 0 2px 5px rgba(0,0,0,0.2); border: 1px solid #ffd1dc; z-index: 5; color: #d81b60;}
.my-msg .chat-reactions-summary { right: auto; left: 15px; }

#reply-preview-box { display: none; background: #ffe4eb; padding: 10px 15px; border-left: 4px solid #ff758c; margin-bottom: 5px; border-radius: 10px; font-size: 13px; position: relative; width: 100%; box-sizing: border-box;}
/* FIX THANH CÔNG CỤ CHAT LUÔN HIỆN TRÊN ĐIỆN THOẠI */
@media (max-width: 850px) {
    .chat-action-bar { 
        display: flex !important; 
        opacity: 0.9; 
        top: -12px; 
        right: 0; 
        transform: scale(0.85); 
        background: rgba(255,255,255,0.95); 
    }
    .my-msg .chat-action-bar { 
        right: auto; 
        left: 0; 
    }
}
/* Viền chữ và bóng đổ cơ bản giúp tương phản tốt, đọc rõ trên mọi phông nền */
.name-basic-tier {
    font-weight: 800 !important;
    -webkit-text-stroke: 0.5px rgba(0,0,0,0.5); /* Viền đen mờ */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* --------------------------------------------------- */
/* CẤP CAO (Ví dụ: > 30,000 EXP) - HIỆU ỨNG LẤP LÁNH NHẸ */
/* --------------------------------------------------- */
@keyframes sparkleName {
    0%, 100% { filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.5)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 6px rgba(255, 215, 0, 1)); transform: scale(1.02); }
}
.name-master-tier {
    font-weight: 900 !important;
    -webkit-text-stroke: 0.7px rgba(0,0,0,0.6);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    animation: sparkleName 2s ease-in-out infinite;
}

/* --------------------------------------------------- */
/* SIÊU CẤP (Ví dụ: > 100,000 EXP) - NHẤP NHÁY ĐỔI MÀU GALAXY */
/* --------------------------------------------------- */
@keyframes godTierBlink {
    0% { background-position: 0% 50%; filter: hue-rotate(0deg) drop-shadow(0 0 5px rgba(255,0,0,0.6)); }
    50% { background-position: 100% 50%; filter: hue-rotate(180deg) drop-shadow(0 0 8px rgba(0,255,255,0.8)); }
    100% { background-position: 0% 50%; filter: hue-rotate(360deg) drop-shadow(0 0 5px rgba(255,0,0,0.6)); }
}
.name-god-tier {
    font-weight: 900 !important;
    /* Gradient 7 màu ảo lòi */
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3, #ff0000);
    background-size: 200% auto;
    -webkit-background-clip: text;
    color: transparent !important; /* Phải trong suốt để thấy gradient */
    -webkit-text-stroke: 1px rgba(0,0,0,0.8); /* Viền đen dày để cực kỳ tương phản, không đau mắt */
    animation: godTierBlink 3s linear infinite;
}
/* TEXT THÔNG TIN NGƯỜI CHƠI SÁNG RÕ RÀNG */
    .pf-real-name { margin: 0; color: #ff367d; font-size: 24px; font-weight: 900; text-transform: uppercase; text-shadow: 0 0 8px rgba(255,54,125,0.6); }
    .pf-ig-name { color: #ffffff; font-size: 14px; font-weight: 800; margin-top: 4px; text-shadow: 0 0 5px rgba(255,255,255,0.4); }
    .pf-slogan { color: #cccccc; font-size: 14px; font-style: italic; margin: 10px 0 15px 0; }

    /* HUY HIỆU BO TRÒN LẤP LÁNH HÀO QUANG (GIỐNG AVATAR) */
    .pf-badge-animated {
        display: inline-block;
        padding: 8px 25px;
        border-radius: 30px;
        font-weight: 900;
        font-size: 15px;
        color: #ffffff !important;
        text-transform: uppercase;
        text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
        box-shadow: 0 5px 15px rgba(0,0,0,0.4);
        border: 2px solid rgba(255,255,255,0.6);
        margin: 0 5px 15px 5px;
        /* Animation nền lấp lánh đa sắc */
        background: linear-gradient(45deg, #ff0844, #ffb199, #4facfe, #00f2fe, #ff0844);
        background-size: 400%;
        animation: glowAvatar 3s linear infinite;
    }
    
    /* Huy hiệu cảnh giới mang dải màu vàng lửa */
    .pf-badge-animated.realm {
        background: linear-gradient(45deg, #f6d365, #fda085, #ff0844, #f6d365);
    }

    .pf-stats-row { display: flex; justify-content: center; gap: 15px; margin-bottom: 25px; }
    .pf-stat-pill { padding: 6px 18px; border-radius: 20px; font-weight: 900; font-size: 14px; box-shadow: 0 2px 5px rgba(0,0,0,0.3); }
    .pf-coin { background: #fff5cc; color: #fbc02d; }
    .pf-fire { background: #ffebee; color: #ff1744; }

    /* TIÊU ĐỀ TRANG BỊ & ĐƯỜNG KẺ NGANG */
    .pf-equip-title {
        color: #ff0055; font-size: 12px; font-weight: 900; text-transform: uppercase;
        margin-bottom: 8px; text-shadow: 0 0 5px rgba(255,0,85,0.4);
    }
    .pf-divider {
        border-top: 2px dashed rgba(255,255,255,0.3); margin-bottom: 15px; width: 90%; margin-left: auto; margin-right: auto;
    }

    /* LƯỚI TRANG BỊ GỌN GÀNG */
    .pf-equip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 0 5px; }
    .pf-eq-item {
        background: #fff; border-radius: 12px; padding: 15px 5px; text-align: center;
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1); transition: 0.3s;
    }
    .pf-eq-item:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3); }
    .pf-eq-icon { font-size: 28px; margin-bottom: 10px; height: 35px; display: flex; align-items: center; justify-content: center; }
    .pf-eq-name { color: #ff0055; font-size: 11px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
    .pf-eq-pwr { color: #ff1744; font-size: 11px; font-weight: 900; margin-top: 4px; }
    /* TEXT THÔNG TIN NGƯỜI CHƠI SÁNG RỰC LẤP LÁNH */
    .pf-real-name { 
        margin: 0; 
        font-size: 26px; 
        font-weight: 900; 
        text-transform: uppercase; 
        font-family: 'Baloo 2', sans-serif;
        /* Dải màu gradient lấp lánh */
        background: linear-gradient(to right, #ff758c, #ff7eb3, #ffffff, #ff7eb3, #ff758c);
        background-size: 200% auto;
        color: #fff;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: shineText 3s linear infinite;
        filter: drop-shadow(0 0 8px rgba(255, 117, 140, 0.8));
    }

    @keyframes shineText {
        to { background-position: 200% center; }
    }

    .pf-ig-name { 
        color: #00f2fe; /* Màu xanh lơ phát sáng */
        font-size: 15px; 
        font-weight: 900; 
        margin-top: 5px; 
        letter-spacing: 1.5px;
        text-shadow: 0 0 5px #00f2fe, 0 0 15px rgba(0, 242, 254, 0.8); 
    }

    .pf-slogan { 
        color: #ffe082; /* Màu vàng nhạt lấp lánh */
        font-size: 14px; 
        font-style: italic; 
        font-weight: 800;
        margin: 10px 0 15px 0; 
        text-shadow: 0 0 8px rgba(255, 224, 130, 0.8);
    }
    /* KHUNG MODAL PROFILE CHÍNH - HIỆU ỨNG KÍNH MỜ */
    .au-pf-modal { 
        /* Lấy màu đen nhưng độ trong suốt là 70% */
        background: rgba(15, 16, 33, 0.7) !important; 
        
        /* Hiệu ứng làm mờ cảnh đằng sau kính */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);

        border: 2px solid #ff0055 !important; 
        border-radius: 15px !important; 
        box-shadow: 0 0 30px rgba(255, 0, 85, 0.3) !important; 
        padding: 10px !important; 
        max-width: 380px !important; 
        position: relative; 
        overflow: visible !important; 
    }
    
    /* Xóa màu nền cứng ở Avatar để nó trong suốt theo */
    .pf-avatar-wrap img { 
        width: 100%; height: 100%; border-radius: 50%; object-fit: cover; 
        border: 2px solid transparent; 
        background: transparent; 
    }

    /* Đổi viền của cục Lực chiến thành trong suốt */
    .pf-eq-pwr {
        border: 2px solid transparent !important; 
        /* Giữ nguyên các thuộc tính cũ khác của bạn... */
    }
   