/* --- 1. Global Styles & Reset --- */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600&family=Playfair+Display:wght@700&display=swap');

:root {
    --bg-color: #050505;
    --card-bg: #121212;
    --gold: #D4AF37;
    --gold-dark: #B38F2D;
    --red-live: #E50914;
    --text-main: #ffffff;
    --text-muted: #9CA3AF;
    --menu-height: 80px;
    
    /* Popup Theme Colors */
    --popup-bg: #1a1e29;
    --popup-border: #334155;
    --popup-input-bg: #0f172a;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Kanit', sans-serif; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    padding-bottom: var(--menu-height);
    min-height: 100vh;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- 2. Header & Logo --- */
.top-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px; background: #000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    position: sticky; top: 0; z-index: 1000;
}
.logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: bold; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; }

.credit-badge { 
    background: #000; border: 1px solid #ffffff; color: #ffffff; 
    padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; font-weight: bold; 
    display: flex; align-items: center; gap: 8px; 
}
.credit-badge i { color: var(--gold); font-size: 1rem; }

/* --- 3. Components (Buttons, Inputs) --- */
.container { max-width: 1400px; margin: 0 auto; padding: 20px; }
.btn-gold { background: var(--gold); border: none; padding: 8px 20px; border-radius: 5px; color: #000; font-weight: bold; cursor: pointer; transition: 0.2s; }
.btn-gold:hover { transform: scale(1.05); }

.input-box { background: #222; border: 1px solid #444; color: #fff; padding: 10px; border-radius: 8px; width: 100%; }
.text-gold { color: var(--gold); }

.btn-disabled { background: #334155 !important; color: #64748b !important; cursor: not-allowed !important; opacity: 0.7; pointer-events: none; }
.btn-confirm { width: 100%; padding: 14px; border-radius: 10px; border: none; font-weight: 600; cursor: pointer; font-size: 1rem; background: #475569; color: #fff; transition: 0.2s; }
.btn-confirm:hover { background: #586b85; }

/* Toggle Switch */
.switch { position: relative; display: inline-block; width: 50px; height: 24px; vertical-align: middle; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #333; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--gold); }
input:checked + .slider:before { transform: translateX(26px); }

/* --- 4. Hero Banner & Search --- */
.hero-banner {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8)), url('https://images.unsplash.com/photo-1599596634707-16063467f566?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    background-size: cover; background-position: center;
    border: 1px solid #333; border-radius: 12px; padding: 25px 20px; text-align: center; margin-bottom: 20px; cursor: pointer; transition: transform 0.2s, border-color 0.2s;
}
.hero-banner:hover { transform: scale(1.01); border-color: var(--gold); }
.hero-banner h2 { color: #fff; font-size: 1.5rem; margin-bottom: 5px; font-family: 'Playfair Display'; text-shadow: 0 2px 4px black; }

.search-bar-container { position: relative; margin-bottom: 20px; }
.search-input { width: 100%; background: #0f0f0f; border: 1px solid #333; color: #fff; padding: 15px 20px 15px 45px; border-radius: 10px; font-size: 1rem; }
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--gold); }

.filter-group { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.filter-pill { padding: 8px 20px; border-radius: 50px; font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.3s; border: 1px solid #333; background: #111; color: #aaa; }
.filter-pill.active { background: var(--gold); color: #000; font-weight: bold; border-color: var(--gold); }
.filter-pill.live-active { border-color: var(--red-live); color: #fff; }
.filter-pill.live-active .dot { width: 8px; height: 8px; background: var(--red-live); border-radius: 50%; box-shadow: 0 0 5px var(--red-live); }

/* --- 5. Grid Cards (Shop/Auction) --- */
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
@media (max-width: 1200px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .grid-5 { grid-template-columns: 1fr; } }

.sian-card { background: #151515; border-radius: 10px; overflow: hidden; position: relative; border: 1px solid #222; transition: 0.3s; }
.sian-card.premium { border: 1px solid var(--gold); box-shadow: 0 0 15px rgba(212, 175, 55, 0.1); }

.card-top { position: relative; height: 180px; cursor: pointer; }
.card-video-thumb { width: 100%; height: 100%; object-fit: cover; }
.live-badge { position: absolute; top: 10px; right: 10px; background: var(--red-live); color: white; font-size: 0.7rem; padding: 2px 8px; border-radius: 4px; font-weight: bold; display: flex; align-items: center; gap: 4px; z-index: 2; }
.live-badge .dot { width: 6px; height: 6px; background: white; border-radius: 50%; animation: pulse 1s infinite; }

.card-profile { 
    position: absolute; bottom: -36px; left: 15px; width: 72px; height: 72px; 
    border-radius: 50%; border: 3px solid var(--card-bg); z-index: 10; 
    background: #000; object-fit: cover; 
}

.card-body { padding: 15px; padding-top: 40px; position: relative; }
.card-rating-box { 
    position: absolute; top: 15px; right: 15px; 
    display: flex; align-items: center; gap: 8px; z-index: 10; 
}
.rating-score { font-size: 0.95rem; font-weight: bold; color: #fff; display: flex; align-items: center; gap: 4px; }
.rating-score i { color: var(--gold); }
.credit-cost { font-size: 0.95rem; font-weight: bold; color: #fff; }

.sian-name { font-size: 1rem; color: #fff; font-weight: 500; display: flex; align-items: center; gap: 5px; margin-bottom: 5px; }
.verified-tag { background: #333; color: #ccc; font-size: 0.6rem; padding: 2px 6px; border-radius: 3px; }
.verified-tag.gold { background: var(--gold); color: #000; font-weight: bold; }
.sian-desc { font-size: 0.9rem; color: #b0b0b0; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.card-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; }
.tag-pill { background: #222; color: #aaa; font-size: 0.7rem; padding: 2px 8px; border-radius: 10px; }

.card-footer-btn { width: 100%; border: none; padding: 10px; font-size: 0.9rem; cursor: pointer; font-weight: bold; display: flex; align-items: center; justify-content: center; gap: 5px; }
.btn-live { background: linear-gradient(to bottom, #b20a0a, #800000); color: white; }
.btn-offline { background: #1f2937; color: #6b7280; }

/* --- 6. Live Room (Viewer View) --- */
.modal { 
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; 
    width: 100%; height: 100%; background: rgba(0,0,0,0.95); 
    justify-content: center; align-items: center; 
}

/* User View Wrapper */
.live-wrapper-desktop {
    display: flex; width: auto; height: 90vh; max-width: 1200px; 
    background: #000; border: 1px solid #333; border-radius: 15px; 
    overflow: hidden; box-shadow: 0 0 50px rgba(0,0,0,0.8); position: relative;
    margin: auto;
}

.video-container { 
    width: 45vh; /* Ratio base for User View */
    min-width: 320px;
    background: #000; 
    position: relative; border-right: 1px solid #222; 
    display: flex; align-items: center; justify-content: center;
    flex: 1; 
}
.video-player { width: 100%; height: 100%; object-fit: cover; }

/* Chat Container (Shared Base) */
.chat-container { width: 380px; background: #111; display: flex; flex-direction: column; z-index: 20; }
.chat-head { padding: 15px; border-bottom: 1px solid #222; display: flex; justify-content: center; align-items: center; color: #fff; font-weight: bold; }
.chat-body { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { font-size: 0.9rem; color: #ddd; background: rgba(255,255,255,0.05); padding: 5px 10px; border-radius: 8px; align-self: flex-start; max-width: 90%; word-wrap: break-word; }
.chat-msg strong { color: var(--gold); margin-right: 5px; }
.chat-footer { padding: 15px; background: #151515; border-top: 1px solid #222; position: relative; }

.input-group { display: flex; gap: 10px; align-items: center; background: #222; padding: 5px 10px; border-radius: 30px; border: 1px solid #444; }
.chat-input { background: transparent; border: none; color: white; flex: 1; outline: none; padding: 5px; font-size: 0.95rem; }

/* Mobile Overlay Elements */
.mobile-overlay-elements { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; 
    z-index: 10;
}
.top-bar { padding: 15px; display: flex; gap: 10px; align-items: center; pointer-events: auto; }
.streamer-pill { background: rgba(0,0,0,0.5); padding: 5px 15px 5px 5px; border-radius: 30px; display: flex; align-items: center; gap: 10px; color: white; font-size: 0.9rem; }
.live-tag { background: var(--red-live); padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: bold; }
.close-btn-circle { width: 35px; height: 35px; background: rgba(0,0,0,0.5); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; cursor: pointer; border: 1px solid #555; margin-left: auto; }

.bottom-area { 
    padding: 15px; 
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 60%, transparent 100%); 
    pointer-events: auto; 
    padding-bottom: calc(15px + env(safe-area-inset-bottom)); 
}
.queue-bar { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; align-items: flex-end; }
.queue-item { position: relative; width: 50px; height: 50px; flex-shrink: 0; }
.queue-img { width: 100%; height: 100%; border-radius: 8px; border: 2px solid var(--gold); object-fit: cover; }
.queue-price { position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); background: var(--red-live); color: white; font-size: 0.6rem; padding: 0 5px; border-radius: 10px; white-space: nowrap; }
.action-row { display: flex; align-items: flex-end; gap: 10px; margin-top: 5px; }
.send-check-btn { background: linear-gradient(135deg, #FFD700, #DAA520); color: #000; width: 60px; height: 60px; border-radius: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: bold; border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.5); cursor: pointer; margin-left: auto; }

.mobile-input-bar { display: none; }
.mobile-only-overlay { display: none; }
.desktop-chat-panel { display: flex; }

/* Desktop Queue Slider (Viewer) */
.desktop-queue-container { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 10px; padding-bottom: 5px; scrollbar-width: thin; scrollbar-color: #333 #111; }
.desktop-queue-container::-webkit-scrollbar { height: 4px; }
.desktop-queue-container::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }
.desktop-queue-item { width: 60px; height: 60px; flex-shrink: 0; border: 1px solid var(--gold); border-radius: 8px; overflow: hidden; position: relative; cursor: pointer; }
.desktop-queue-item:hover { border-color: #fff; }
.desktop-queue-item img { width: 100%; height: 100%; object-fit: cover; }
.desktop-queue-seq { position: absolute; bottom: 0; right: 0; background: var(--red-live); color: white; font-size: 0.6rem; padding: 2px 6px; border-radius: 6px 0 0 0; font-weight: bold; }


@media (max-width: 768px) {
    .live-wrapper-desktop { width: 100vw; height: 100dvh; max-width: none; border-radius: 0; border: none; position: fixed; top: 0; left: 0; background: #000; z-index: 2001; display: flex; flex-direction: column; }
    .video-container { width: 100%; height: 100%; border: none; aspect-ratio: auto; position: absolute; top: 0; left: 0; }
    .desktop-chat-panel { display: none; }
    .mobile-only-overlay { display: flex; }
    .mobile-input-bar { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
    .mic-icon { color: white; font-size: 1.2rem; }
    .send-icon-circle { width: 40px; height: 40px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: black; }
    .modal { align-items: center; }
    .custom-popup { max-height: 80vh; width: 90%; }
}

/* --- Member & Shop Styles (Dashboard) --- */
.member-card { background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%); border: 1px solid var(--gold); border-radius: 20px; padding: 25px; margin-bottom: 30px; position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15); }
.member-card::before { content: ''; position: absolute; top: -50px; right: -50px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.card-header-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 25px; }
.member-avatar { width: 70px; height: 70px; border-radius: 50%; border: 2px solid var(--gold); object-fit: cover; }
.member-info { text-align: right; }
.member-name { font-size: 1.3rem; color: var(--gold); font-family: 'Playfair Display', serif; font-weight: bold; margin-bottom: 5px; }
.member-level { background: rgba(255, 255, 255, 0.1); color: #ccc; padding: 4px 12px; border-radius: 20px; font-size: 0.8rem; display: inline-block; border: 1px solid #444; }
.card-details { display: flex; justify-content: space-between; align-items: flex-end; }
.card-label { font-size: 0.7rem; color: #666; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
.card-value { font-size: 1rem; color: #fff; font-family: monospace; letter-spacing: 1px; }
.balance-label { text-align: right; font-size: 0.8rem; color: #aaa; margin-bottom: 0; }
.current-balance { font-size: 2.2rem; color: var(--gold); font-weight: bold; font-family: 'Playfair Display', serif; line-height: 1; text-align: right; }
.tab-container { margin-bottom: 20px; }
.tab-header { display: flex; background: #111; border-radius: 12px; padding: 5px; margin-bottom: 20px; border: 1px solid #333; }
.tab-btn { flex: 1; text-align: center; padding: 12px; cursor: pointer; border-radius: 8px; color: #888; font-weight: 500; transition: 0.3s; font-size: 0.95rem; }
.tab-btn.active { background: var(--gold); color: #000; font-weight: bold; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.tab-content { display: none; animation: fadeIn 0.3s; }
.tab-content.active { display: block; }

/* History Items */
.history-list { display: flex; flex-direction: column; gap: 12px; }
.history-card { background: linear-gradient(90deg, #151515 0%, #1a1a1a 100%); padding: 15px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; border-left: 4px solid #333; border-bottom: 1px solid #222; transition: 0.2s; }
.history-card:hover { transform: translateX(5px); }
.history-card.in { border-left-color: #10b981; }
.history-card.out { border-left-color: #ef4444; }
.h-left { display: flex; align-items: center; gap: 15px; }
.h-icon { width: 45px; height: 45px; background: #222; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #888; }
.history-card.in .h-icon { color: #10b981; background: rgba(16, 185, 129, 0.1); }
.history-card.out .h-icon { color: #ef4444; background: rgba(239, 68, 68, 0.1); }
.h-info h4 { font-size: 0.95rem; color: #fff; margin-bottom: 3px; }
.h-info p { font-size: 0.75rem; color: #666; }
.h-amount { font-weight: bold; font-family: monospace; font-size: 1.1rem; }
.h-amount.plus { color: #10b981; }
.h-amount.minus { color: #ef4444; }

/* Mode & Shop Control */
.mode-switcher { display: flex; background: #222; padding: 5px; border-radius: 50px; margin-bottom: 25px; border: 1px solid #333; position: relative; overflow: hidden; }
.mode-btn { flex: 1; text-align: center; padding: 10px; cursor: pointer; border-radius: 40px; font-size: 0.95rem; color: #888; transition: 0.3s; font-weight: 500; z-index: 2; }
.mode-btn.active { color: #000; background: var(--gold); font-weight: bold; box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.shop-dashboard { display: none; animation: fadeIn 0.3s; }
.shop-dashboard.active { display: block; }
.shop-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; }
.shop-stat-card { background: #1a1a1a; border: 1px solid #333; border-radius: 15px; padding: 20px; text-align: center; }
.stat-val { font-size: 1.8rem; color: var(--gold); font-weight: bold; margin-bottom: 5px; font-family: 'Playfair Display'; }
.stat-label { font-size: 0.8rem; color: #aaa; }
.shop-control-card { background: #1a1a1a; border: 1px solid #333; border-radius: 15px; padding: 20px; margin-bottom: 20px; }
.control-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid #333; padding-bottom: 10px; }
.control-title { color: #fff; font-size: 1.1rem; font-weight: bold; }
.price-setter { display: flex; align-items: center; gap: 10px; background: #000; padding: 10px; border-radius: 10px; border: 1px solid #444; }
.price-input { background: transparent; border: none; color: var(--gold); font-size: 1.2rem; width: 60px; text-align: center; font-weight: bold; }
.shop-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 10px; }
.shop-action-btn { background: #222; border: 1px solid #444; border-radius: 12px; padding: 20px; text-align: center; cursor: pointer; transition: 0.3s; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.shop-action-btn:hover { border-color: var(--gold); background: rgba(255, 193, 7, 0.05); }
.shop-action-btn i { font-size: 1.5rem; color: var(--gold); }
.shop-action-btn span { color: #fff; font-size: 0.9rem; }
.shop-banner-regis { background: linear-gradient(45deg, #111, #222); border: 1px dashed var(--gold); border-radius: 15px; padding: 30px; text-align: center; margin-top: 30px; cursor: pointer; transition: 0.3s; }
.shop-banner-regis:hover { background: #1a1a1a; transform: translateY(-3px); }

/* Custom Popup */
.custom-popup { background: var(--popup-bg); border: 1px solid var(--popup-border); border-radius: 16px; padding: 25px; width: 100%; max-width: 420px; color: #fff; font-family: 'Kanit', sans-serif; position: relative; box-shadow: 0 10px 40px rgba(0,0,0,0.8); max-height: 85vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #334155 transparent; }
.custom-popup::-webkit-scrollbar { width: 6px; }
.custom-popup::-webkit-scrollbar-thumb { background-color: #334155; border-radius: 3px; }
.popup-close { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; color: #94a3b8; z-index: 10; }
.popup-title { text-align: center; color: var(--gold); font-size: 1.3rem; margin-bottom: 5px; font-family: 'Playfair Display'; letter-spacing: 1px; }
.popup-subtitle { text-align: center; color: #94a3b8; font-size: 0.85rem; margin-bottom: 25px; }
.package-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.pkg-btn { border: 1px solid #333; background: #1e293b; border-radius: 8px; padding: 15px 5px; text-align: center; cursor: pointer; transition: all 0.2s; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pkg-btn:hover { background: #334155; transform: translateY(-2px); }
.pkg-btn.selected { border-color: var(--gold); background: rgba(212, 175, 55, 0.15); box-shadow: 0 0 10px rgba(212, 175, 55, 0.2); }
.pkg-btn .amt { font-size: 1.1rem; font-weight: bold; color: #fff; }
.pkg-btn .price { font-size: 0.8rem; color: #94a3b8; }
.pkg-btn.selected .amt { color: var(--gold); }
.bank-info { background: var(--popup-input-bg); border-radius: 10px; padding: 12px; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; border: 1px solid var(--popup-border); }
.bank-icon { width: 40px; height: 40px; background: #00cc00; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 0.9rem; flex-shrink: 0; }
.bank-name { font-size: 0.85rem; color: #cbd5e1; }
.bank-acc { font-size: 1.1rem; color: var(--gold); font-weight: bold; letter-spacing: 1px; }
.upload-box { border: 2px dashed var(--popup-border); border-radius: 12px; padding: 30px; text-align: center; background: rgba(255,255,255,0.02); cursor: pointer; margin-bottom: 20px; transition: 0.3s; }
.upload-box:hover { border-color: var(--gold); background: rgba(255, 193, 7, 0.05); }
.package-section-title { font-size: 0.9rem; color: #cbd5e1; margin-bottom: 10px; }
.slip-btn { background: transparent; border: 1px solid var(--popup-border); color: #cbd5e1; width: 100%; padding: 12px; border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: 0.2s; }
.slip-btn:hover { border-color: #64748b; background: rgba(255,255,255,0.02); }
.tag-select-container { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.tag-select-btn { background: #222; border: 1px solid #444; color: #aaa; padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; cursor: pointer; transition: 0.2s; }
.tag-select-btn.selected { background: var(--gold); color: #000; border-color: var(--gold); font-weight: bold; }

/* Slide Panel */
.slide-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 2999; display: none; backdrop-filter: blur(2px); }
.slide-panel { position: fixed; bottom: -800px; left: 0; width: 100%; height: 80vh; background: #1a1a1a; border-radius: 20px 20px 0 0; border-top: 1px solid var(--gold); z-index: 3000; transition: bottom 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: 0 -10px 30px rgba(0,0,0,0.8); display: flex; flex-direction: column; }
.slide-panel.open { bottom: 0; }
.slide-header { padding: 20px; border-bottom: 1px solid #333; display: flex; justify-content: space-between; align-items: center; background: #111; border-radius: 20px 20px 0 0; }
.slide-body { padding: 20px; overflow-y: auto; flex: 1; }
@media (min-width: 768px) { .slide-panel { width: 500px; height: 100%; right: -500px; left: auto; top: 0; bottom: auto; border-radius: 0; border-top: none; border-left: 1px solid var(--gold); transition: right 0.4s; } .slide-panel.open { right: 0; bottom: auto; } }

/* --- Bottom Nav --- */
.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; height: var(--menu-height); background: #080808; border-top: 1px solid #222; display: flex; justify-content: space-around; align-items: center; z-index: 1000; }
.nav-item { flex: 1; text-align: center; color: #555; font-size: 0.7rem; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: 0.2s; }
.nav-item.active { color: #fff; }
.nav-item i { font-size: 1.8rem; margin-bottom: 4px; }
.nav-item.active i { color: var(--gold); }
.nav-logo-btn { width: 55px; height: 55px; object-fit: contain; transition: 0.2s; }
.nav-logo-btn:hover { transform: scale(1.1); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } }