:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --primary: #ff4500;
    --primary-hover: #e03e00;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --success: #00e676;
    --pending: #ffea00;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); height: 100vh; overflow: hidden; }

.screen { display: none; height: 100%; width: 100%; position: absolute; top: 0; left: 0; flex-direction: column; }
.screen.active { display: flex; }

.auth-container { width: 100%; max-width: 400px; margin: auto; padding: 40px 20px; text-align: center; }
.logo { font-size: 32px; margin-bottom: 40px; color: var(--text-main); }
.fire { color: var(--primary); }
.input-field { width: 100%; padding: 15px; margin-bottom: 15px; background: var(--card-bg); border: 1px solid #333; border-radius: 8px; color: white; font-size: 16px; outline: none; }
.input-field:focus { border-color: var(--primary); }
.btn-primary { width: 100%; padding: 15px; background: var(--primary); color: white; border: none; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.btn-primary:disabled { background: #555; cursor: not-allowed; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.switch-text { margin-top: 20px; color: var(--text-muted); font-size: 14px; }
.switch-text span { color: var(--primary); cursor: pointer; font-weight: bold; }
.switch-text span:hover { text-decoration: underline; }
.message { margin-top: 15px; font-size: 14px; min-height: 20px; }

.app-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; background: var(--card-bg); border-bottom: 1px solid #333; }
.logo-small { font-size: 20px; font-weight: bold; }
.btn-logout { background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; }

.view { display: none; flex: 1; overflow-y: auto; padding: 20px; padding-bottom: 80px; }
.view.active { display: block; }
.view-title { font-size: 20px; margin-bottom: 20px; border-bottom: 1px solid #333; padding-bottom: 10px; }

.balance-card { background: linear-gradient(135deg, var(--primary), #ff8c00); padding: 30px; border-radius: 15px; text-align: center; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3); }
.balance-card .label { font-size: 14px; opacity: 0.9; }
.balance-card h1 { font-size: 48px; margin: 10px 0; font-weight: 900; }
.balance-card .sub-label { font-size: 16px; font-weight: bold; }
.ad-card { background: var(--card-bg); padding: 20px; border-radius: 12px; display: flex; align-items: center; gap: 15px; border: 1px solid #333; }
.ad-card i { font-size: 40px; color: var(--primary); }
.ad-info { flex: 1; text-align: left; }
.ad-info h3 { font-size: 16px; margin-bottom: 5px; }
.ad-info p { font-size: 12px; color: var(--text-muted); }
.btn-action { background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 20px; font-weight: bold; cursor: pointer; }

.list-container { display: flex; flex-direction: column; gap: 10px; }
.transaction-item { background: var(--card-bg); padding: 15px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; border: 1px solid #333; }
.trans-left h4 { font-size: 14px; margin-bottom: 4px; }
.trans-left p { font-size: 11px; color: var(--text-muted); }
.trans-right { text-align: right; }
.trans-right .amount { font-weight: bold; font-size: 14px; display: block; }
.trans-right .amount.plus { color: var(--success); }
.trans-right .amount.minus { color: var(--primary); }
.trans-right .status { font-size: 10px; text-transform: uppercase; }
.status.success { color: var(--success); }
.status.pending { color: var(--pending); }

.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--text-muted); }
.section-subtitle { font-size: 16px; margin: 20px 0 10px 0; color: var(--text-muted); }
.packages-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; }
.package-card { background: var(--card-bg); border: 2px solid #333; border-radius: 10px; padding: 15px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: 0.2s; }
.package-card.selected { border-color: var(--primary); background: rgba(255, 69, 0, 0.1); }
.pkg-diamonds { font-size: 18px; font-weight: bold; color: #00e5ff; }
.pkg-cost { font-size: 14px; color: var(--text-muted); }
.full-width { width: 100%; margin-top: 10px; }
.status-box { margin-top: 20px; padding: 15px; border-radius: 8px; text-align: center; font-weight: bold; }
.status-box.pending { background: rgba(255, 234, 0, 0.1); color: var(--pending); border: 1px solid var(--pending); }
.status-box.success { background: rgba(0, 230, 118, 0.1); color: var(--success); border: 1px solid var(--success); }

.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; background: var(--card-bg); border-top: 1px solid #333; display: flex; justify-content: space-around; padding: 10px 0; z-index: 100; }
.nav-item { display: flex; flex-direction: column; align-items: center; color: var(--text-muted); cursor: pointer; font-size: 12px; gap: 5px; flex: 1; }
.nav-item i { font-size: 20px; }
.nav-item.active { color: var(--primary); }/* Referral Card Styles */
.referral-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
    margin-bottom: 20px;
    text-align: center;
}
.referral-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 16px;
}
.referral-card p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
}
.code-box {
    display: flex;
    background: #121212;
    border-radius: 8px;
    overflow: hidden;
    border: 1px dashed var(--primary);
}
#my-referral-code {
    flex: 1;
    padding: 12px;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    color: white;
}
.btn-copy {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0 20px;
    cursor: pointer;
    font-size: 16px;
}