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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0a0b0f;
    --bg2: #11131a;
    --bg3: #181b25;
    --card: #1a1d28;
    --border: #252836;
    --gold: #f0b232;
    --gold2: #ffd166;
    --gold-dark: #c8891a;
    --blue: #4e8fff;
    --green: #2ecc71;
    --purple: #9b59b6;
    --red: #e74c3c;
    --text: #e8eaf0;
    --text-muted: #7b7f94;
    --sidebar-w: 240px;
    --radius: 14px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }

/* AUTH PAGES */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh;
    background: radial-gradient(ellipse at top, #1a1428 0%, #0a0b0f 60%); }
.auth-container { width: 100%; max-width: 420px; padding: 20px; }
.auth-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 40px 36px; box-shadow: var(--shadow); }
.auth-logo { text-align: center; margin-bottom: 30px; }
.logo-icon { font-size: 48px; display: block; margin-bottom: 10px; animation: float 3s ease-in-out infinite; }
.auth-logo h1 { font-family: 'Orbitron', sans-serif; font-size: 24px; color: var(--gold);
    letter-spacing: 2px; }
.auth-logo p { color: var(--text-muted); font-size: 14px; margin-top: 4px; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* FORMS */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted);
    margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; background: var(--bg2); border: 1px solid var(--border);
    border-radius: 10px; padding: 12px 16px; color: var(--text); font-size: 14px;
    font-family: 'Inter', sans-serif; transition: border-color 0.2s; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--gold); }
.form-group small { color: var(--text-muted); font-size: 12px; margin-top: 4px; display: block; }

.btn-primary { width: 100%; padding: 14px; background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000; font-weight: 700; font-size: 15px; border: none; border-radius: 10px;
    cursor: pointer; letter-spacing: 0.5px; transition: all 0.2s; margin-top: 8px; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(240,178,50,0.3); }

.auth-link { text-align: center; margin-top: 20px; color: var(--text-muted); font-size: 14px; }
.auth-link a { color: var(--gold); text-decoration: none; font-weight: 600; }

/* ALERTS */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.alert-error { background: rgba(231,76,60,0.15); border: 1px solid rgba(231,76,60,0.3); color: #ff6b6b; }
.alert-success { background: rgba(46,204,113,0.15); border: 1px solid rgba(46,204,113,0.3); color: #2ecc71; }

/* DASHBOARD LAYOUT */
.dashboard-page { display: flex; min-height: 100vh; }

/* SIDEBAR */
.sidebar { width: var(--sidebar-w); background: var(--bg2); border-right: 1px solid var(--border);
    position: fixed; top: 0; left: 0; height: 100vh; display: flex; flex-direction: column;
    z-index: 100; transition: transform 0.3s; }
.sidebar-logo { padding: 24px 20px; font-family: 'Orbitron', sans-serif; font-size: 16px;
    color: var(--gold); font-weight: 700; letter-spacing: 1px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px; }
.sidebar-logo .logo-icon { font-size: 24px; animation: none; }
.sidebar-nav { padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    border-radius: 10px; color: var(--text-muted); text-decoration: none;
    font-size: 14px; font-weight: 500; transition: all 0.2s; }
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: rgba(240,178,50,0.12); color: var(--gold); border: 1px solid rgba(240,178,50,0.2); }
.nav-icon { font-size: 18px; }
.nav-logout { margin-top: auto; color: var(--red); }
.nav-logout:hover { background: rgba(231,76,60,0.1); }

/* MAIN CONTENT */
.main-content { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.topbar { background: var(--bg2); border-bottom: 1px solid var(--border); padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; }
.menu-btn { background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; display: none; }
.user-badge { background: rgba(240,178,50,0.1); border: 1px solid rgba(240,178,50,0.2);
    padding: 6px 14px; border-radius: 20px; font-size: 13px; color: var(--gold); }
.page-content { padding: 28px 24px; flex: 1; }
.page-title { font-size: 22px; font-weight: 700; margin-bottom: 24px; color: var(--text); }

/* STATS GRID */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; display: flex; align-items: center; gap: 16px; }
.stat-card.gold { border-color: rgba(240,178,50,0.2); }
.stat-card.blue { border-color: rgba(78,143,255,0.2); }
.stat-card.green { border-color: rgba(46,204,113,0.2); }
.stat-card.purple { border-color: rgba(155,89,182,0.2); }
.stat-icon { font-size: 32px; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; }
.stat-value { font-size: 20px; font-weight: 700; color: var(--gold); font-family: 'Orbitron', sans-serif; margin-top: 2px; }

/* MINING BOX */
.mining-box { background: linear-gradient(135deg, #1a1428, #1a2040);
    border: 1px solid rgba(240,178,50,0.3); border-radius: var(--radius);
    padding: 24px; display: flex; align-items: center; justify-content: space-between;
    gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.mining-box h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.mining-counter { font-size: 14px; margin: 10px 0; color: var(--text-muted); }
.mining-counter strong { color: var(--gold); font-size: 18px; font-family: 'Orbitron', sans-serif; }
.mining-rate-text { font-size: 12px; color: var(--text-muted); }
.btn-claim { background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000; font-weight: 700; padding: 14px 28px; border-radius: 10px;
    text-decoration: none; white-space: nowrap; transition: all 0.2s; display: inline-block; }
.btn-claim:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(240,178,50,0.4); }

/* MINING MAIN CARD */
.mining-main-card { background: var(--card); border: 1px solid rgba(240,178,50,0.2);
    border-radius: var(--radius); padding: 40px; text-align: center; margin-bottom: 24px; }
.mining-animation { margin-bottom: 20px; }
.mine-glow { font-size: 72px; animation: float 2s ease-in-out infinite, glow 2s ease-in-out infinite; display: inline-block; }
@keyframes glow { 0%,100%{filter:drop-shadow(0 0 10px gold)} 50%{filter:drop-shadow(0 0 30px gold)} }
.mine-particles { font-size: 20px; animation: float 1.5s ease-in-out infinite; margin-top: -10px; }
.big-counter { font-family: 'Orbitron', sans-serif; font-size: 42px; font-weight: 900;
    color: var(--gold); margin: 16px 0 4px; text-shadow: 0 0 20px rgba(240,178,50,0.5); }
.counter-label { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.mining-stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px;
    margin-bottom: 28px; padding: 20px; background: var(--bg2); border-radius: 12px; }
.m-stat { text-align: center; }
.m-stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
.m-stat-val { font-size: 16px; font-weight: 700; color: var(--gold); margin-top: 4px; }
.btn-claim-big { background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000; font-weight: 800; padding: 18px 48px; border: none; border-radius: 12px;
    cursor: pointer; font-size: 16px; letter-spacing: 0.5px; transition: all 0.2s; }
.btn-claim-big:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(240,178,50,0.5); }
.claim-note { margin-top: 14px; color: var(--text-muted); font-size: 13px; }

/* INFO CARDS */
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; }
.info-card h4 { margin-bottom: 12px; font-size: 15px; color: var(--gold); }
.info-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.info-card ul li { font-size: 13px; color: var(--text-muted); padding-left: 14px; position: relative; }
.info-card ul li::before { content: '→'; position: absolute; left: 0; color: var(--gold); }

/* SECTION CARD */
.section-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; margin-bottom: 20px; }
.section-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 18px; }

/* TRANSACTIONS */
.tx-list { display: flex; flex-direction: column; gap: 10px; }
.tx-item { display: flex; align-items: center; gap: 14px; padding: 14px;
    background: var(--bg2); border-radius: 10px; }
.tx-icon { font-size: 24px; }
.tx-info { flex: 1; }
.tx-desc { font-size: 14px; font-weight: 500; }
.tx-date { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.tx-amount { font-weight: 700; font-size: 16px; font-family: 'Orbitron', sans-serif; }
.tx-amount.pos { color: var(--green); }
.tx-amount.neg { color: var(--red); }

/* MILESTONE */
.milestone-alert { background: rgba(240,178,50,0.08); border: 1px solid rgba(240,178,50,0.3);
    border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.milestone-alert h3 { margin-bottom: 12px; color: var(--gold); }
.milestone-item { display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0; border-bottom: 1px solid var(--border); }
.milestone-item:last-child { border-bottom: none; }
.milestone-progress { background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.milestone-progress h3 { margin-bottom: 12px; font-size: 15px; }
.progress-bar { background: var(--bg2); border-radius: 10px; height: 10px; margin: 10px 0; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold2));
    border-radius: 10px; transition: width 0.5s; }
.milestone-progress p { font-size: 13px; color: var(--text-muted); }

/* MILESTONE TABLE */
.milestone-table { display: flex; flex-direction: column; gap: 8px; }
.ms-row { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center;
    padding: 14px 16px; background: var(--bg2); border-radius: 10px; border: 1px solid var(--border); }
.ms-row.achieved { border-color: rgba(240,178,50,0.3); background: rgba(240,178,50,0.05); }
.ms-inv { font-weight: 600; }
.ms-bonus { color: var(--gold); font-weight: 700; }

/* BADGE */
.badge-claimed { background: rgba(46,204,113,0.15); color: var(--green);
    padding: 4px 10px; border-radius: 20px; font-size: 12px; }
.badge-locked { color: var(--text-muted); font-size: 12px; }
.badge-status { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge-status.pending { background: rgba(240,178,50,0.15); color: var(--gold); }
.badge-status.approved, .badge-status.active, .badge-status.completed {
    background: rgba(46,204,113,0.15); color: var(--green); }
.badge-status.rejected, .badge-status.banned {
    background: rgba(231,76,60,0.15); color: var(--red); }

/* REFER */
.refer-card { background: linear-gradient(135deg, #1a2040, #1a1428);
    border: 1px solid rgba(240,178,50,0.3); border-radius: var(--radius);
    padding: 24px; margin-bottom: 20px; }
.refer-card h3 { font-size: 14px; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 10px; }
.ref-code-box { display: flex; align-items: center; gap: 10px;
    background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
    padding: 12px 16px; margin-bottom: 16px; }
.ref-code-box span { flex: 1; font-family: 'Orbitron', sans-serif; font-size: 15px; color: var(--gold); }
.refer-stats { display: flex; gap: 30px; margin-top: 10px; }
.rs { text-align: center; }
.rs-val { font-size: 28px; font-weight: 800; color: var(--gold); font-family: 'Orbitron', sans-serif; }
.rs-label { font-size: 12px; color: var(--text-muted); }
.earning-info { display: flex; flex-direction: column; gap: 8px; padding: 14px;
    background: var(--bg2); border-radius: 10px; }
.earning-info p { font-size: 14px; }
.ref-user-list { display: flex; flex-direction: column; gap: 8px; }
.ref-user-item { display: flex; justify-content: space-between; padding: 10px 14px;
    background: var(--bg2); border-radius: 8px; font-size: 13px; }

/* WITHDRAW */
.market-notice { background: rgba(78,143,255,0.08); border: 1px solid rgba(78,143,255,0.3);
    border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px;
    display: flex; gap: 14px; align-items: flex-start; }
.notice-icon { font-size: 24px; }
.balance-card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.bal-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px;
    padding: 18px; text-align: center; }
.bal-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.bal-val { font-size: 16px; font-weight: 700; color: var(--gold); font-family: 'Orbitron', sans-serif; }
.w-list { display: flex; flex-direction: column; gap: 10px; }
.w-item { display: flex; align-items: center; justify-content: space-between;
    padding: 14px; background: var(--bg2); border-radius: 10px; }
.w-amount { font-weight: 700; font-size: 15px; color: var(--text); }
.w-wallet, .w-date { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* DEPOSIT */
.deposit-info-card { background: var(--card); border: 1px solid rgba(78,143,255,0.2);
    border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.deposit-info-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 16px; color: var(--blue); }
.steps { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.step { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.step-num { background: var(--gold); color: #000; width: 26px; height: 26px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px; flex-shrink: 0; }
.wallet-address { background: var(--bg2); border-radius: 10px; padding: 16px; }
.addr-box { display: flex; align-items: center; gap: 10px; margin: 10px 0;
    word-break: break-all; }

/* WITHDRAW BANNER */
.withdraw-banner { background: linear-gradient(135deg, rgba(46,204,113,0.08), rgba(78,143,255,0.08));
    border: 1px solid rgba(46,204,113,0.2); border-radius: var(--radius);
    padding: 24px; margin-bottom: 20px; display: flex; align-items: center;
    justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.withdraw-banner h3 { font-size: 18px; margin-bottom: 4px; }
.withdraw-banner p { color: var(--text-muted); font-size: 14px; }
.withdraw-banner small { color: var(--text-muted); font-size: 12px; }
.btn-withdraw { background: linear-gradient(135deg, var(--green), #27ae60);
    color: #fff; font-weight: 700; padding: 14px 28px; border-radius: 10px;
    text-decoration: none; white-space: nowrap; transition: all 0.2s; display: inline-block; }
.btn-withdraw:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(46,204,113,0.3); }

/* BUTTONS */
.btn-copy { background: rgba(240,178,50,0.1); border: 1px solid rgba(240,178,50,0.3);
    color: var(--gold); padding: 6px 14px; border-radius: 8px; cursor: pointer;
    font-size: 12px; font-weight: 600; white-space: nowrap; }
.btn-copy:hover { background: rgba(240,178,50,0.2); }
.btn-sm-gold { background: rgba(240,178,50,0.1); border: 1px solid rgba(240,178,50,0.3);
    color: var(--gold); padding: 6px 14px; border-radius: 8px; cursor: pointer;
    font-size: 12px; font-weight: 600; }
.btn-sm-danger { background: rgba(231,76,60,0.1); border: 1px solid rgba(231,76,60,0.3);
    color: var(--red); padding: 6px 14px; border-radius: 8px; cursor: pointer;
    font-size: 12px; font-weight: 600; text-decoration: none; }

/* PAGINATION */
.pagination { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.pagination a { padding: 8px 14px; background: var(--bg2); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text-muted); text-decoration: none; font-size: 13px; }
.pagination a.active { background: var(--gold); color: #000; border-color: var(--gold); }

.empty-msg { color: var(--text-muted); text-align: center; padding: 30px; font-size: 14px; }

/* MOBILE */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .menu-btn { display: block; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .mining-stats-row { grid-template-columns: 1fr 1fr; }
    .info-cards { grid-template-columns: 1fr; }
    .balance-card { grid-template-columns: 1fr; }
    .ms-row { grid-template-columns: 1fr 1fr; gap: 8px; }
    .ms-status { grid-column: 1/-1; }
    .big-counter { font-size: 28px; }
    .mining-box { flex-direction: column; text-align: center; }
}
