/* style.css - MASTER X GLOBAL STYLES */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@900&display=swap'); 

:root { --bg-start: #020202; --bg-end: #121212; --card: #1a1a1a; --border: #333333; --accent: #ff2a2a; --danger: #ff4757; --success: #00ff88; --gold: #ffd700; --gold-dark: #bf953f; --picker-bg: #222226; }

/* Light Theme Variables */
body.light-theme { --bg-start: #f8f9fa; --bg-end: #e2e8f0; --card: #ffffff; --border: #cbd5e1; color: #0f172a; --picker-bg: #ffffff; }
body.light-theme .header, body.light-theme .bottom-nav { background: #ffffff; border-color: #cbd5e1; box-shadow: 0 0 15px rgba(0,0,0,0.05); }
body.light-theme .nav-item { color: #64748b; } 
body.light-theme .nav-item.active { color: var(--accent); text-shadow: none; }
body.light-theme .page-title-text-premium, body.light-theme .inner-mx { text-shadow: none; }
body.light-theme .custom-modal-box { background: #ffffff; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-color: #cbd5e1; } 
body.light-theme .custom-modal-text { color: #0f172a; }

/* Global Base */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: 'Segoe UI', sans-serif; background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%); background-attachment: fixed; color: #fff; font-size: 14px; overflow-x: hidden; min-height: 100vh; transition: background 0.3s, color 0.3s; }
.container { padding: 15px; max-width: 500px; margin: 0 auto; padding-bottom: 100px; } 

/* Premium Header */
.header { display: flex; justify-content: space-between; align-items: center; padding: 15px 15px; background: rgba(10, 10, 10, 0.95); border-bottom: 2px solid var(--gold-dark); position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 15px rgba(0,0,0,0.8); transition: 0.3s; }
.master-x-brand-block { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-shield { position: relative; width: 42px; height: 42px; background: linear-gradient(135deg, var(--gold-dark), var(--gold)); display: flex; justify-content: center; align-items: center; border-radius: 8px; box-shadow: inset 1px 1px 2px rgba(255,255,255,0.4), 0 0 10px rgba(255,215,0,0.3); }
.logo-shield::after { content: ''; position: absolute; inset: 3px; background: var(--card); border-radius: 6px; }
.inner-mx { position: relative; z-index: 2; font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 900; color: var(--gold); letter-spacing: -2px; text-shadow: 0 0 5px rgba(255,215,0,0.8); }
.x-sub { color: var(--accent); } 
.page-title-text-premium { font-family: 'Montserrat', 'Arial Black', sans-serif; font-size: 22px; font-weight: 900; margin: 0; text-transform: uppercase; letter-spacing: 2px; color: var(--gold); text-shadow: 1px 1px 0px #b39700, 2px 2px 0px #998100, 3px 3px 0px #806c00, 4px 4px 0px #665600, 5px 5px 10px rgba(0,0,0,0.9); transition: 0.3s;}
.x-premium-highlight { color: var(--accent); font-style: italic; margin-left: 2px; text-shadow: 1px 1px 0px #cc0000, 2px 2px 0px #990000, 3px 3px 0px #660000, 4px 4px 0px #330000, 5px 5px 10px rgba(0,0,0,0.9); }
.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.wallet-badge { background: rgba(255, 215, 0, 0.1); border: 1px solid var(--gold); color: var(--gold); padding: 5px 12px; border-radius: 20px; font-weight: 900; font-size: 14px; display: flex; align-items: center; gap: 6px; white-space: nowrap; box-shadow: 0 0 8px rgba(255, 215, 0, 0.2); }
.download-btn { background: linear-gradient(135deg, #00ff88, #00b35f); color: #000; padding: 6px 12px; border-radius: 6px; font-size: 11px; font-weight: 900; text-decoration: none; display: flex; align-items: center; justify-content: center; width: 100%; gap: 5px; box-shadow: 0 0 8px rgba(0,255,136,0.4); text-transform: uppercase; transition: 0.2s; }
.download-btn:active { transform: scale(0.95); }

/* Bottom Navigation */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(10, 10, 10, 0.95); border-top: 1px solid var(--border); display: flex; justify-content: space-around; padding: 10px 0; z-index: 1000; border-radius: 20px 20px 0 0; transition: 0.3s; } 
.nav-item { text-decoration: none; display: flex; flex-direction: column; align-items: center; color: #8b949e; font-size: 10px; font-weight: bold; width: 20%; transition: 0.3s; } 
.nav-item i { font-size: 18px; margin-bottom: 4px; } 
.nav-item.active { color: var(--accent); text-shadow: 0 0 5px rgba(255,42,42,0.5); }

/* Custom Modal / Alert */
.custom-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.8); z-index: 9999; display: none; align-items: center; justify-content: center; }
.custom-modal-box { background: var(--card); border: 2px solid var(--border); border-radius: 15px; padding: 20px; width: 85%; max-width: 320px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.9); animation: popIn 0.3s ease-out; transition: 0.3s;}
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.custom-modal-title { margin: 0 0 10px 0; font-size: 18px; text-transform: uppercase; font-weight: 900; letter-spacing: 1px; }
.custom-modal-text { margin: 0 0 20px 0; color: #fff; font-size: 14px; line-height: 1.5; white-space: pre-wrap; font-weight: bold; transition: 0.3s;}
.custom-modal-buttons { display: flex; gap: 10px; justify-content: center; }
.custom-modal-btn { flex: 1; padding: 12px; border: none; border-radius: 8px; font-weight: 900; font-size: 14px; cursor: pointer; text-transform: uppercase; transition: 0.2s; }
.btn-modal-ok { background: var(--success); color: #000; box-shadow: 0 0 10px rgba(0,255,136,0.3); }
.btn-modal-cancel { background: #333; color: #fff; border: 1px solid #555; }

/* Floating Action Button (FAB) - Upward Opening */
.fab-container { position: fixed; bottom: 80px; right: 20px; display: flex; flex-direction: column; align-items: center; gap: 15px; z-index: 9999; touch-action: none; }
.fab-main { width: 55px; height: 55px; background-color: #fbbc05; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #000; font-size: 24px; box-shadow: 0 4px 10px rgba(0,0,0,0.5); cursor: move; transition: transform 0.1s; border: 2px solid rgba(255,255,255,0.2); }
.fab-main:active { transform: scale(0.95); }
.fab-main i { transition: transform 0.3s; }
.fab-item { width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #fff; font-size: 20px; text-decoration: none; box-shadow: 0 4px 10px rgba(0,0,0,0.5); opacity: 0; transform: translateY(20px) scale(0); pointer-events: none; transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); }
.fab-telegram { background-color: #0088cc; }
.fab-whatsapp { background-color: #25d366; }
.fab-container.active .fab-item { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.fab-container.active .fab-main i { transform: rotate(45deg); }
