@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Rajdhani:wght@500;600;700&display=swap');

:root { --primary-red: #da0000; --dark-red: #5a0000; --bg-dark: #070707; --glass-bg: rgba(15, 15, 15, 0.7); --glass-border: rgba(255, 0, 0, 0.2); --text-main: #e0e0e0; }
body { font-family: 'Rajdhani', sans-serif; background-color: var(--bg-dark); color: var(--text-main); margin: 0; height: 100dvh; overflow: hidden; background-image: radial-gradient(circle at 50% 50%, rgba(150, 0, 0, 0.1) 0%, var(--bg-dark) 80%), url('https://www.transparenttextures.com/patterns/dark-matter.png'); }

.glass-panel { background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--glass-border); box-shadow: 0 8px 32px 0 rgba(150, 0, 0, 0.3); border-radius: 16px; }
input, select, textarea { width: 100%; padding: 14px; margin: 10px 0; background: rgba(0, 0, 0, 0.6); border: 1px solid var(--dark-red); color: #fff; border-radius: 8px; box-sizing: border-box; font-family: 'Rajdhani', sans-serif; font-size: 16px; transition: 0.3s; }
input[type="file"] { padding: 10px; background: rgba(200,0,0,0.1); border: 1px dashed var(--primary-red); cursor: pointer; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary-red); box-shadow: 0 0 10px rgba(255,0,0,0.5); }
select option { background: var(--bg-dark); color: #fff; }
.btn-primary { width: 100%; padding: 15px; margin-top: 10px; background: linear-gradient(90deg, #8a0000, var(--primary-red), #8a0000); background-size: 200% auto; color: #fff; border: none; border-radius: 8px; cursor: pointer; font-weight: bold; font-size: 18px; text-transform: uppercase; letter-spacing: 2px; transition: 0.5s; font-family: 'Cinzel', serif; box-shadow: 0 4px 15px rgba(200, 0, 0, 0.4); }
.btn-primary:hover { background-position: right center; box-shadow: 0 0 20px var(--primary-red); transform: translateY(-2px);}
.btn-success { background: linear-gradient(90deg, #005500, #00aa00); box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3); border: 1px solid #00ff00; }
.btn-danger { background: linear-gradient(90deg, #5a0000, #ff0000, #5a0000); box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4); border: 1px solid #ff0000;}

/* TOAST NOTIFICATION STYLES */
#toastContainer { position: fixed; bottom: 30px; right: 30px; z-index: 99999; display: flex; flex-direction: column; gap: 10px; pointer-events: none;}
.game-toast { background: rgba(10, 0, 0, 0.9); border-left: 5px solid var(--primary-red); border-right: 1px solid var(--primary-red); border-top: 1px solid var(--primary-red); border-bottom: 1px solid var(--primary-red); color: #fff; padding: 15px 25px; border-radius: 4px; font-weight: bold; font-size: 16px; box-shadow: 0 0 20px rgba(255,0,0,0.5); transform: translateX(120%); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; align-items: center; gap: 15px; backdrop-filter: blur(5px);}
.game-toast.show { transform: translateX(0); }
.toast-icon { font-size: 24px; animation: pulse 1s infinite alternate;}

#loginWrapper { display: flex; justify-content: center; align-items: center; height: 100dvh; width: 100vw; position: absolute; top: 0; left: 0; z-index: 20; background: var(--bg-dark); }
.login-box { padding: 40px; width: 360px; text-align: center; }
.login-box img { width: 110px; border-radius: 50%; box-shadow: 0 0 20px var(--primary-red); margin-bottom: 20px; border: 2px solid var(--primary-red); }
.login-box h2 { font-family: 'Cinzel', serif; color: #ff3333; margin-top: 0; text-shadow: 0 0 10px #ff0000; letter-spacing: 3px; font-size: 28px;}
#message { color: #ff4d4d; font-size: 15px; margin-top: 15px; font-weight: bold; }

#dashboardWrapper { display: none; width: 100vw; height: 100dvh; flex-direction: row; }

.sidebar { width: 310px; background: rgba(5, 5, 5, 0.9); backdrop-filter: blur(10px); border-right: 1px solid var(--glass-border); display: flex; flex-direction: column; padding: 25px 0; z-index: 5; overflow-y: auto; }
.sidebar-brand { text-align: center; margin-bottom: 25px; }
.sidebar-brand img { width: 90px; border-radius: 50%; border: 2px solid var(--primary-red); box-shadow: 0 0 15px var(--primary-red); }
.sidebar-brand h2 { font-family: 'Cinzel', serif; color: #ff3333; margin: 15px 0 0 0; font-size: 22px; text-shadow: 0 0 5px #ff0000;}
.sidebar-nav { flex: 1; list-style: none; padding: 0; margin: 0; }
.sidebar-nav li { padding: 0 15px; margin-bottom: 5px; }
.sidebar-nav a { display: flex; align-items: center; padding: 12px 18px; color: #aaa; text-decoration: none; font-size: 16px; font-weight: 600; border-radius: 8px; transition: 0.3s; border: 1px solid transparent; letter-spacing: 1px; cursor: pointer;}
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(218, 0, 0, 0.15); border-color: rgba(218, 0, 0, 0.5); color: #fff; text-shadow: 0 0 8px var(--primary-red); }
.nav-category { font-size: 12px; color: #ff9999; text-transform: uppercase; letter-spacing: 2px; font-weight: bold; padding: 15px 25px 8px 25px; border-top: 1px solid #222; margin-top: 10px; }
.sidebar-footer { padding: 20px; }
.btn-logout { width: 100%; padding: 12px; background: transparent; color: #ff4d4d; border: 1px solid #ff4d4d; border-radius: 8px; cursor: pointer; font-weight: bold; font-family: 'Rajdhani', sans-serif; font-size: 15px; transition: 0.3s; }
.btn-logout:hover { background: #ff4d4d; color: #000; box-shadow: 0 0 15px #ff4d4d; }

.main-content { flex: 1; display: flex; flex-direction: column; background: transparent; }
.top-header { height: 80px; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(5px); border-bottom: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; padding: 0 40px; }
.header-title { font-family: 'Cinzel', serif; font-size: 24px; color: #fff; margin: 0; text-shadow: 0 0 8px var(--primary-red);}
.header-badges .badge { display: inline-block; padding: 8px 18px; margin-left: 12px; background: linear-gradient(45deg, #3a0000, #8a0000); border: 1px solid #ff3333; color: #fff; border-radius: 30px; font-weight: bold; font-size: 15px; box-shadow: 0 0 10px rgba(255,0,0,0.3); }

.title-badge { background: linear-gradient(45deg, #ffd700, #b8860b) !important; border: 1px solid #fff !important; color: #000 !important; text-shadow: none !important; box-shadow: 0 0 15px gold !important; font-size: 13px; padding: 4px 12px; border-radius: 20px; font-weight: 900; text-transform: uppercase;}
.lb-title { display: block; font-size: 11px; color: #ffaa00; font-weight: bold; letter-spacing: 1px; margin-top: 2px; }

.content-body { padding: 30px; overflow-y: auto; flex: 1; position: relative; }
.tab-panel { display: none; animation: fadeIn 0.5s; }
.tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.notice-board { background: rgba(0,0,0,0.5); border: 1px dashed var(--primary-red); padding: 15px; border-radius: 8px; margin-bottom: 25px; color: #ffd700; }
.cursed-alert { display: none; background: #5a0000; border: 2px solid #ff0000; color: #fff; padding: 15px; border-radius: 8px; margin-bottom: 20px; text-align: center; font-weight: bold; font-size: 18px; box-shadow: 0 0 20px rgba(255,0,0,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 10px #ff0000; } 50% { box-shadow: 0 0 30px #ff0000; } 100% { box-shadow: 0 0 10px #ff0000; } }
.promo-alert { display: none; background: linear-gradient(90deg, #b8860b, #ffd700, #b8860b); background-size: 200% auto; color: #000; padding: 15px; border-radius: 8px; margin-bottom: 20px; text-align: center; font-weight: bold; font-size: 18px; box-shadow: 0 0 20px rgba(255, 215, 0, 0.6); animation: promoPulse 2s infinite, shineBG 3s linear infinite; border: 2px solid #fff; }
@keyframes promoPulse { 0% { box-shadow: 0 0 10px gold; transform: scale(1); } 50% { box-shadow: 0 0 30px gold; transform: scale(1.02); } 100% { box-shadow: 0 0 10px gold; transform: scale(1); } }
@keyframes shineBG { to { background-position: 200% center; } }

.panel-box { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 25px; margin-bottom: 25px; }
.panel-box h3 { font-family: 'Cinzel', serif; color: var(--primary-red); margin-top: 0; border-bottom: 1px solid #333; padding-bottom: 10px; font-size: 18px;}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 25px;}
.stat-card { background: var(--glass-bg); padding: 15px; border-radius: 12px; border: 1px solid var(--glass-border); position: relative; overflow: hidden; backdrop-filter: blur(8px); transition: 0.3s; }
.stat-card:hover { border-color: var(--primary-red); }
.stat-title { color: #aaa; font-size: 13px; text-transform: uppercase; font-weight: bold; letter-spacing: 1px; margin-bottom: 8px; display: flex; justify-content: space-between;}
.stat-value { color: #fff; font-size: 28px; font-weight: bold; font-family: 'Cinzel', serif; text-shadow: 0 0 10px rgba(255,0,0,0.6); }
.progress-container { width: 100%; background: #222; border-radius: 10px; height: 8px; margin-top: 12px; overflow: hidden; border: 1px solid #444;}
.progress-fill { height: 100%; background: linear-gradient(90deg, #ff3333, #ff9999); width: 0%; border-radius: 10px; transition: width 1.5s ease-in-out; }

.leaderboard-list { list-style: none; padding: 0; margin: 0;}
.leaderboard-list li { background: rgba(20,0,0,0.5); margin-bottom: 8px; padding: 12px; border-radius: 8px; display: flex; justify-content: space-between; border-left: 4px solid var(--primary-red); }
.leaderboard-list li:nth-child(1) { border-left-color: gold; } .leaderboard-list li:nth-child(2) { border-left-color: silver; } .leaderboard-list li:nth-child(3) { border-left-color: #cd7f32; }
.scrim-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; }
.scrim-card { background: rgba(0,0,0,0.3); border: 1px solid #333; padding: 15px; border-radius: 8px; border-left: 5px solid transparent; }
.scrim-card.W { border-left-color: #00ff00; box-shadow: 0 0 10px rgba(0,255,0,0.1); }
.scrim-card.L { border-left-color: #ff0000; box-shadow: 0 0 10px rgba(255,0,0,0.1); }

.inventory-item { background: rgba(0,20,40,0.6); border: 1px solid #0055aa; padding: 15px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; }
.inventory-item.PENDING { border-color: gold; border-left: 5px solid gold; }
.inventory-item.TERKIRIM { border-color: #00ff00; border-left: 5px solid #00ff00; }

.bar-container-riv { width: 100%; background: #222; border-radius: 5px; height: 20px; margin: 5px 0 15px 0; position: relative;}
.bar-fill-riv { height: 100%; background: var(--primary-red); border-radius: 5px; transition: 1s; }
.bar-text-riv { position: absolute; right: 10px; top: 0; line-height: 20px; font-size: 12px; font-weight: bold;}
#rouletteResult { font-size: 35px; font-family: 'Cinzel', serif; color: #ff0000; text-shadow: 0 0 15px #ff0000; font-weight: bold; text-align: center; height: 50px; margin: 20px 0; }

/* COMMAND CENTER (ADMIN) CSS */
.admin-form-container { background: rgba(20, 0, 0, 0.6); padding: 20px; border-radius: 12px; border: 1px solid var(--primary-red); box-shadow: 0 0 20px rgba(255,0,0,0.1); margin-bottom: 25px;}
.admin-form-container h3 { font-family: 'Cinzel', serif; color: #fff; margin-top: 0; text-align: center; text-shadow: 0 0 8px var(--primary-red); font-size: 18px; padding: 0; border: none;}
.input-group { display: flex; gap: 12px; } .input-group div { flex: 1; }
.admin-nav-pills { display: flex; gap: 10px; margin-bottom: 25px; flex-wrap: wrap; justify-content: center; }
.admin-pill { background: rgba(0,0,0,0.6); border: 1px solid var(--dark-red); color: #aaa; padding: 10px 20px; border-radius: 30px; cursor: pointer; font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: bold; letter-spacing: 1px; transition: 0.3s; }
.admin-pill:hover { border-color: var(--primary-red); color: #fff; }
.admin-pill.active { background: linear-gradient(90deg, #8a0000, var(--primary-red)); border-color: #ff3333; color: #fff; box-shadow: 0 0 15px rgba(255,0,0,0.5); }
.admin-sub-panel { display: none; animation: fadeIn 0.4s; }
.admin-sub-panel.active { display: block; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.gallery-item { background: #111; border: 1px solid #222; border-radius: 12px; overflow: hidden; cursor: pointer; }
.gallery-item:hover { border-color: var(--primary-red); }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; }
.gallery-desc { padding: 10px; color: #ccc; font-size: 14px; text-align: center; }

.tier-card { border-left: 5px solid transparent; margin-bottom: 15px; }
.tier-card.S { border-left-color: #ff00ff; } .tier-card.A { border-left-color: #ffd700; } .tier-card.B { border-left-color: #c0c0c0; }
.hero-chip { display: inline-block; padding: 5px 10px; background: rgba(255,255,255,0.1); border-radius: 30px; margin: 3px; font-size: 13px; color: #fff; border: 1px solid #444;}

.modal { display: none; position: fixed; z-index: 99; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); padding: 50px; box-sizing: border-box; }
.modal-content { max-width: 90%; max-height: 90%; margin: auto; display: block; border: 2px solid var(--primary-red); border-radius: 8px; position: relative; background: var(--bg-dark); padding: 30px;}
.modal-desc { text-align: center; color: #ccc; margin-top: 15px; font-size: 18px; }
.close-modal { position: absolute; top: 15px; right: 25px; color: #f1f1f1; font-size: 35px; font-weight: bold; cursor: pointer; transition: 0.3s;}
.close-modal:hover { color: var(--primary-red); }

/* Music Room Demonic Altar */
.demonic-altar { background: linear-gradient(145deg, #1a1414, #0a0808); border: 2px solid #3a1c1c; border-radius: 16px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), inset 0 0 30px rgba(255, 69, 0, 0.1); padding: 30px; margin-top: 20px; position: relative; overflow: hidden; }
.demonic-altar::before { content: ''; position: absolute; top: 0; left: 10%; width: 80%; height: 3px; background: linear-gradient(90deg, transparent, #ff4500, #ffaa00, #ff4500, transparent); box-shadow: 0 0 15px #ff4500; }
.altar-header { text-align: center; border-bottom: 1px solid #331111; padding-bottom: 15px; margin-bottom: 25px; }
.altar-header h3 { color: #ffaa00; font-family: 'Cinzel', serif; margin: 0 0 5px 0; font-size: 24px; text-shadow: 0 0 10px rgba(255, 170, 0, 0.5); }
.altar-core-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: center; }
.altar-left { flex: 1; min-width: 300px; display: flex; flex-direction: column; align-items: center; }
.rune-pedestal { position: relative; width: 280px; height: 280px; display: flex; justify-content: center; align-items: center; border-radius: 50%; background: radial-gradient(circle, #110000, #000); box-shadow: inset 0 0 20px #ff0000; }
.rune-ring { position: absolute; border-radius: 50%; opacity: 0.8; }
.rune-ring.outer { width: 100%; height: 100%; border: 3px dashed #ff4500; animation: spinRecord 20s linear infinite; }
.rune-ring.inner { width: 80%; height: 80%; border: 2px dotted #ffaa00; animation: spinReverse 15s linear infinite; }
.vinyl-core { width: 150px; height: 150px; background: repeating-radial-gradient(#050505, #050505 4px, #111 5px, #111 8px); border-radius: 50%; border: 3px solid #333; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,0.9); transition: 0.5s ease-in-out; z-index: 5; }
.vinyl-core.playing { animation: spinRecord 3s linear infinite; border-color: #ffaa00; box-shadow: 0 0 30px rgba(255, 170, 0, 0.5); }
.core-label { width: 60px; height: 60px; background: radial-gradient(circle, #ff4500, #5a0000); border-radius: 50%; border: 2px solid #000; display: flex; align-items: center; justify-content: center; text-align: center; }
.core-text { color: #fff; font-size: 10px; font-weight: bold; font-family: 'Cinzel', serif; }
.altar-controls { text-align: center; margin-top: 25px; }
.btn-stop-altar { background: #0a0000; border: 1px solid #ff0000; color: #ff0000; padding: 10px 25px; border-radius: 4px; font-weight: bold; cursor: pointer; transition: 0.3s; font-family: 'Cinzel', serif; }
.altar-right { flex: 1.2; min-width: 320px; background: rgba(0, 0, 0, 0.4); border: 1px solid #331111; border-radius: 8px; padding: 15px; }
.playlist-wrapper { max-height: 250px; overflow-y: auto; padding-right: 5px; }
.track-item { display: flex; align-items: center; gap: 15px; padding: 12px; margin-bottom: 8px; background: rgba(20, 10, 10, 0.6); border: 1px solid #221111; border-radius: 6px; cursor: pointer; transition: all 0.2s ease; }
.track-item.active { background: linear-gradient(90deg, rgba(255,69,0,0.2), transparent); border-color: #ffaa00; border-left: 4px solid #ffaa00; }
.track-icon { font-size: 20px; background: #000; border: 1px solid #444; width: 36px; height: 36px; border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.track-title { color: #eee; font-size: 14px; font-weight: bold; margin: 0 0 3px 0; }
.track-desc { color: #666; font-size: 11px; margin: 0; }

@keyframes spinRecord { 100% { transform: rotate(360deg); } }
@keyframes spinReverse { 100% { transform: rotate(-360deg); } }
@keyframes bassThump { 0%, 100% { transform: scale(1); box-shadow: 0 0 25px #ff0000, inset 0 0 15px #ff0000; } 50% { transform: scale(1.08); box-shadow: 0 0 50px #ff4500, inset 0 0 30px #ffaa00; } }
.rune-ring.outer.bass-active { animation: spinRecord 20s linear infinite, bassThump 0.5s ease-in-out infinite alternate; }

.dj-equalizer { display: none; justify-content: center; align-items: flex-end; gap: 6px; height: 40px; margin: 10px auto 20px auto; }
.dj-equalizer.playing { display: flex; }
.eq-bar { width: 8px; height: 100%; background: linear-gradient(to top, #ff0000, #ffaa00); border-radius: 4px 4px 0 0; box-shadow: 0 0 10px #ff4500; transform-origin: bottom; animation: eqPulse 0.5s infinite alternate ease-in-out; }
.eq-bar:nth-child(1) { animation-duration: 0.4s; } .eq-bar:nth-child(2) { animation-duration: 0.7s; } .eq-bar:nth-child(3) { animation-duration: 0.5s; } .eq-bar:nth-child(4) { animation-duration: 0.6s; } .eq-bar:nth-child(5) { animation-duration: 0.45s; } .eq-bar:nth-child(6) { animation-duration: 0.55s; }
@keyframes eqPulse { 0% { transform: scaleY(0.2); opacity: 0.7; } 100% { transform: scaleY(1.1); opacity: 1; } }

.search-ritual-box { display: flex; gap: 10px; margin-bottom: 15px; position: relative; }
.search-input { flex: 1; background: rgba(10, 5, 5, 0.8); border: 1px solid #441111; border-radius: 4px; padding: 10px 15px; color: #ffaa00; font-family: 'Rajdhani', sans-serif; font-size: 15px; transition: 0.3s; outline: none; box-shadow: inset 0 0 10px rgba(0,0,0,0.8); }
.search-input::placeholder { color: #663333; font-style: italic; }
.search-input:focus { border-color: #ff4500; box-shadow: 0 0 15px rgba(255, 69, 0, 0.4), inset 0 0 10px rgba(255, 69, 0, 0.1); }
.search-btn { background: #110000; border: 1px solid #ff0000; color: #ff0000; padding: 0 15px; border-radius: 4px; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.search-btn:hover { background: #ff0000; color: #fff; box-shadow: 0 0 15px #ff0000; transform: scale(1.05); }

#loadingOverlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #000; z-index: 9999; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: 0.5s; }
.demon-eye { width: 60px; height: 60px; background: var(--primary-red); border-radius: 50% 0; transform: rotate(45deg); box-shadow: 0 0 20px var(--primary-red); animation: blink 1.5s infinite; }
@keyframes blink { 0%, 100% { opacity: 0.3; transform: rotate(45deg) scale(0.9); } 50% { opacity: 1; transform: rotate(45deg) scale(1.1); } }

/* TAVERN CHAT STYLES */
.chat-container { display: flex; flex-direction: column; height: 65vh; background: rgba(10,5,5,0.8); border: 1px solid var(--primary-red); border-radius: 8px; overflow: hidden; box-shadow: 0 0 20px rgba(255,0,0,0.2); }
.chat-box { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.chat-msg { background: rgba(30,10,10,0.8); padding: 10px 15px; border-radius: 8px; border-left: 4px solid var(--primary-red); width: fit-content; max-width: 80%; animation: fadeIn 0.3s ease; }
.chat-msg.me { border-left: none; border-right: 4px solid #00ff00; background: rgba(0,40,0,0.6); align-self: flex-end; }
.chat-sender { font-size: 11px; color: #ffaa00; margin-bottom: 4px; font-weight: bold; letter-spacing: 1px; }
.chat-msg.me .chat-sender { color: #00ff00; text-align: right; }
.chat-text { color: #fff; font-size: 15px; margin: 0; word-break: break-word; font-family: 'Rajdhani', sans-serif; font-weight: 600; }
.chat-input-area { display: flex; background: rgba(0,0,0,0.9); padding: 10px; border-top: 1px solid var(--primary-red); gap: 10px; }
.chat-input-area input { margin: 0; flex: 1; }
.chat-input-area button { margin: 0; width: auto; padding: 0 25px; }

/* ==========================================
   📱 MOBILE RESPONSIVE (HP) - V2 (OPTIMIZED)
   ========================================== */
.mobile-menu-btn { display: none; background: transparent; border: none; color: var(--primary-red); font-size: 30px; cursor: pointer; text-shadow: 0 0 10px #ff0000; z-index: 100;}

@media (max-width: 768px) {
    /* Meringankan render grafis di HP */
    .glass-panel, .sidebar, .top-header, .stat-card { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

    /* 1. Sidebar Drawer & Overlay */
    .sidebar { position: fixed; left: -320px; top: 0; height: 100vh; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 5px 0 20px rgba(0,0,0,0.9); z-index: 999; }
    .sidebar.show { left: 0; }
    #sidebarOverlay { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.7); z-index: 998; backdrop-filter: blur(3px); }
    #sidebarOverlay.show { display: block; }

    /* 2. Header Adjustments */
    .mobile-menu-btn { display: block; margin-right: 15px; }
    .top-header { padding: 10px 15px; height: auto; min-height: 70px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
    .header-title { font-size: 18px; flex: 1; margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .header-badges { width: 100%; display: flex; flex-wrap: wrap; justify-content: flex-start; margin-top: 12px; gap: 8px; margin-left: 45px;}
    .header-badges .badge { margin: 0; font-size: 11px; padding: 4px 10px; }

    /* 3. Main Content & Panel Box */
    .content-body { padding: 10px; }
    .panel-box { padding: 15px; margin-bottom: 15px; border-radius: 10px; }
    .panel-box h3 { font-size: 15px; padding-bottom: 8px; }
    
    /* 4. Grid System & Stats */
    .grid-2 { grid-template-columns: 1fr; gap: 15px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 15px;}
    .stat-card { padding: 12px; }
    .stat-title { font-size: 11px; flex-direction: column; align-items: flex-start; gap: 4px; }
    .stat-value { font-size: 20px; }
    
    /* 5. Admin Navigation (Horizontal Scroll) */
    .admin-nav-pills { 
        flex-direction: row; 
        flex-wrap: nowrap; 
        overflow-x: auto; 
        justify-content: flex-start; 
        padding-bottom: 10px; 
        gap: 10px;
        -webkit-overflow-scrolling: touch; 
    }
    .admin-nav-pills::-webkit-scrollbar { height: 4px; }
    .admin-nav-pills::-webkit-scrollbar-thumb { background: var(--primary-red); border-radius: 4px; }
    .admin-pill { flex: 0 0 auto; font-size: 13px; padding: 8px 15px; white-space: nowrap; }

    /* 6. Forms & Inputs */
    .input-group { flex-direction: column; gap: 0; }
    .admin-form-container { padding: 15px; }
    .btn-primary { font-size: 15px; padding: 12px; }
    input, select, textarea { padding: 10px; font-size: 14px; margin: 6px 0; }

    /* 7. Lists (Leaderboard, Inventory, Scrim) */
    .leaderboard-list li { flex-direction: column; gap: 6px; align-items: flex-start; }
    .leaderboard-list li div { text-align: left !important; width: 100%; display: flex; justify-content: space-between; align-items: center; }
    .inventory-item { flex-direction: column; text-align: center; gap: 12px; padding: 12px; }
    .inventory-item div { width: 100%; }

    /* 8. Tavern Chat */
    .chat-container { height: 70vh; }
    .chat-msg { max-width: 90%; padding: 8px 12px; }
    .chat-text { font-size: 14px; }
    .chat-input-area button { padding: 0 15px; font-size: 13px; }

    /* 9. Music Room & Altar */
    .altar-core-layout { flex-direction: column; gap: 20px; }
    .rune-pedestal { width: 220px; height: 220px; }
    .vinyl-core { width: 120px; height: 120px; }
    .search-btn { padding: 0 10px; }

    /* 10. Modals & Alerts */
    .modal-content { padding: 20px 15px; width: 95%; max-height: 85vh; overflow-y: auto; }
    .close-modal { top: 10px; right: 15px; font-size: 30px; }
    .cursed-alert, .promo-alert { font-size: 14px; padding: 12px; }
    
    /* Login Screen Mobile Fix */
    .login-box { width: 90%; padding: 30px 20px; }
    .login-box h2 { font-size: 22px; }
}