@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bg: #121212;
    --card: #1e1e1e;
    --primary: #ff2a2a;
    --text: #ffffff;
    --text-muted: #aaaaaa;
    --border: #333333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background-color: var(--bg); color: var(--text); padding: 70px 0 80px 0; }
a { text-decoration: none; color: inherit; }

/* --- Header --- */
.top-header { position: fixed; top: 0; left: 0; width: 100%; height: 60px; background: var(--card); display: flex; justify-content: space-between; align-items: center; padding: 0 20px; z-index: 1000; border-bottom: 1px solid var(--border); }
.logo { font-size: 20px; font-weight: 700; color: var(--primary); }
.header-right { display: flex; align-items: center; gap: 15px; }
.balance-badge { background: #2a2a2a; padding: 5px 12px; border-radius: 20px; font-size: 14px; font-weight: 600; color: #4CAF50; }
.bell-icon { position: relative; font-size: 20px; color: var(--text); }
.bell-badge { position: absolute; top: -5px; right: -5px; background: var(--primary); color: #fff; font-size: 10px; padding: 2px 5px; border-radius: 50%; }

/* --- Bottom Nav --- */
.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; height: 65px; background: var(--card); display: flex; justify-content: space-around; align-items: center; z-index: 1000; border-top: 1px solid var(--border); }
.nav-item { display: flex; flex-direction: column; align-items: center; color: var(--text-muted); font-size: 12px; }
.nav-item i { font-size: 20px; margin-bottom: 3px; }
.nav-item.active, .nav-item:hover { color: var(--primary); }

/* --- Containers & Cards --- */
.container { padding: 15px; }
.card { background: var(--card); border-radius: 10px; padding: 15px; margin-bottom: 15px; border: 1px solid var(--border); }

/* --- Buttons & Inputs --- */
.btn { display: inline-block; background: var(--primary); color: #fff; padding: 12px 20px; border-radius: 8px; text-align: center; border: none; cursor: pointer; font-weight: 600; width: 100%; font-size: 16px; }
.btn-sm { padding: 8px 15px; font-size: 14px; width: auto; }
.btn-success { background: #4CAF50; }
.btn-danger { background: #f44336; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-size: 14px; color: var(--text-muted); }
.form-control { width: 100%; padding: 12px; background: #2a2a2a; border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 15px; }
.form-control:focus { outline: none; border-color: var(--primary); }

/* --- Sliders --- */
.slider-container { width: 100%; height: 180px; position: relative; overflow: hidden; border-radius: 10px; margin-bottom: 20px; }
.slide { width: 100%; height: 100%; position: absolute; opacity: 0; transition: opacity 0.5s ease-in-out; object-fit: cover; }
.slide.active { opacity: 1; }

/* --- Grid Categories --- */
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.category-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; text-align: center; padding: 15px; cursor: pointer; transition: 0.3s; }
.category-card img { width: 60px; height: 60px; border-radius: 10px; margin-bottom: 10px; }
.category-card:hover { border-color: var(--primary); }

/* --- Offers Grid --- */
.offers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
.offer-label { cursor: pointer; }
.offer-label input[type="radio"] { display: none; }
.offer-card { background: #2a2a2a; padding: 15px; border-radius: 8px; text-align: center; border: 2px solid transparent; }
.offer-label input[type="radio"]:checked + .offer-card { border-color: var(--primary); background: rgba(255, 42, 42, 0.1); }
.price-text { color: var(--primary); font-weight: 700; margin-top: 5px; display: block; }

/* --- Popup Modals --- */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 0; pointer-events: none; transition: 0.3s; }
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal-content { background: var(--card); padding: 25px; border-radius: 12px; width: 90%; max-width: 400px; text-align: center; position: relative; }
.modal-close { position: absolute; top: 10px; right: 15px; font-size: 24px; cursor: pointer; color: var(--text-muted); }

/* --- Admin Tabs & Tables --- */
.admin-tabs { display: flex; overflow-x: auto; gap: 10px; margin-bottom: 20px; padding-bottom: 10px; }
.tab-btn { background: #2a2a2a; color: var(--text); border: none; padding: 10px 15px; border-radius: 20px; white-space: nowrap; cursor: pointer; }
.tab-btn.active { background: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
table th, table td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; }
.badge { padding: 4px 8px; border-radius: 4px; font-size: 12px; }
.badge-pending { background: #ff9800; color: #fff; }
.badge-completed, .badge-approved { background: #4CAF50; color: #fff; }
.badge-rejected { background: #f44336; color: #fff; }

/* --- Profile Updates & Social Links --- */
.profile-header { text-align: center; padding: 20px 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.profile-uid { font-size: 12px; background: #333; padding: 3px 10px; border-radius: 15px; display: inline-block; margin-top: 5px; color: var(--text-muted); }
.social-links { display: flex; justify-content: center; gap: 15px; margin: 20px 0; }
.social-btn { width: 45px; height: 45px; display: flex; justify-content: center; align-items: center; border-radius: 50%; font-size: 20px; color: #fff; transition: 0.3s; }
.btn-tg { background: #0088cc; } .btn-wa { background: #25D366; } .btn-yt { background: #FF0000; }
.social-btn:hover { transform: scale(1.1); }

/* --- Add Money Custom Modal & Grid --- */
.payment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.payment-card { background: #2a2a2a; border: 2px solid transparent; border-radius: 10px; padding: 15px; text-align: center; cursor: pointer; transition: 0.3s; }
.payment-card img { width: 50px; height: 50px; object-fit: contain; margin-bottom: 5px; }
.payment-card:hover { border-color: var(--primary); background: rgba(255,42,42,0.1); }
.custom-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); justify-content: center; align-items: center; z-index: 3000; }
.custom-modal.active { display: flex; }
.modal-box { background: var(--card); width: 90%; max-width: 400px; padding: 20px; border-radius: 12px; position: relative; max-height: 90vh; overflow-y: auto; }
.close-modal { position: absolute; top: 15px; right: 15px; font-size: 20px; cursor: pointer; color: var(--text-muted); }

/* --- TOURNAMENT CSS --- */
.tour-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 20px; overflow: hidden; position: relative; }
.tour-header { display: flex; align-items: center; padding: 15px; border-bottom: 1px solid var(--border); background: #222; }
.tour-header img { width: 50px; height: 50px; border-radius: 10px; object-fit: cover; margin-right: 15px; border: 2px solid var(--primary); }
.tour-body { padding: 15px; }
.tour-stats { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 13px; text-align: center; }
.stat-box { background: #2a2a2a; padding: 10px; border-radius: 8px; flex: 1; margin: 0 5px; border: 1px solid #333; }
.stat-box span { display: block; color: var(--text-muted); font-size: 11px; text-transform: uppercase; }
.stat-box strong { color: #fff; font-size: 14px; }
.tour-prizes { background: rgba(255, 42, 42, 0.05); padding: 10px; border-radius: 8px; font-size: 12px; margin-bottom: 15px; border-left: 3px solid var(--primary); }
.tour-footer { display: flex; gap: 10px; padding: 0 15px 15px 15px; }
.tour-footer .btn { flex: 1; font-size: 14px; padding: 10px; }