/* style.css - (Final Full Version) */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@300;500;700&display=swap');

:root {
    --neon-blue: #00f3ff;
    --neon-purple: #bc13fe;
    --glass-bg: rgba(18, 18, 24, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-sec: #a0a0a0;
    --success: #00ff9d;
    --danger: #ff4d4d;
    --gold: #ffd700;
}

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

body {
    background: radial-gradient(circle at top left, #0d0d12, #000000, #0f0518);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    padding: 20px 0;
}

body::before {
    content: ''; position: fixed; width: 200%; height: 200%;
    background-image: radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 2px);
    background-size: 550px 550px;
    animation: starMove 100s linear infinite; z-index: -1;
}
@keyframes starMove { from { transform: translateY(0); } to { transform: translateY(-1000px); } }

.container { width: 100%; max-width: 450px; padding: 10px; margin: 0 auto; }

.glass-card {
    background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(188, 19, 254, 0.3); border-radius: 25px; padding: 30px 25px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6); margin-bottom: 20px;
}

.brand-title { font-family: 'Orbitron', sans-serif; font-size: 26px; text-align: center; margin-bottom: 30px; color: var(--neon-blue); text-shadow: 0 0 10px rgba(0, 243, 255, 0.3); }

.input-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; color: var(--neon-blue); font-size: 14px; font-weight: 600; }
input, select { width: 100%; padding: 14px; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--neon-purple); border-radius: 10px; color: white; font-size: 16px; outline: none; transition: 0.3s; }
input:focus { box-shadow: 0 0 15px rgba(188, 19, 254, 0.3); border-color: var(--neon-blue); }

.btn-main {
    width: 100%; padding: 14px; background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    border: none; border-radius: 10px; color: white; font-weight: bold; font-size: 18px;
    cursor: pointer; text-transform: uppercase; letter-spacing: 1px; font-family: 'Orbitron', sans-serif;
    transition: transform 0.2s; margin-top: 10px;
}
.btn-main:active { transform: scale(0.97); }
.error-msg { color: var(--text-sec); text-align: center; margin-top: 15px; font-size: 14px; display: none; }

/* REWARDS SHOWCASE */
.rewards-showcase { margin-top: 5px; }
.rewards-header { text-align: center; font-family: 'Orbitron', sans-serif; color: var(--gold); margin-bottom: 15px; letter-spacing: 1px; font-size: 18px; text-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }

/* Grid Updated for 3 items */
.rewards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* Make the 3rd item span full width */
.reward-box:nth-child(3) { grid-column: span 2; }

.reward-box { 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 15px; 
    padding: 15px 10px; 
    text-align: center; 
    transition: 0.3s; 
    cursor: pointer;
}
.reward-box:hover { border-color: var(--neon-blue); background: rgba(0, 243, 255, 0.05); transform: translateY(-3px); }
.reward-icon { font-size: 24px; margin-bottom: 8px; color: var(--neon-blue); }
.reward-text { font-size: 12px; color: var(--text-sec); line-height: 1.4; }
.highlight { color: white; font-weight: bold; font-size: 14px; display: block; margin-top: 3px; }

/* ABOUT SECTION */
.about-section {
    max-width: 450px; text-align: center; padding: 20px; margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.about-section h3 { color: var(--neon-purple); font-family: 'Orbitron', sans-serif; margin-bottom: 10px; font-size: 16px; letter-spacing: 1px; }
.about-section p { color: var(--text-sec); font-size: 13px; line-height: 1.6; }

/* MODALS & DASHBOARD (Shared) */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); backdrop-filter: blur(5px); z-index: 2000; display: none; align-items: center; justify-content: center; }
.modal-content { background: #121218; border: 1px solid var(--neon-blue); width: 85%; max-width: 380px; padding: 25px; border-radius: 20px; text-align: center; position: relative; animation: popIn 0.3s ease; }
@keyframes popIn { from{transform: scale(0.8); opacity: 0;} to{transform: scale(1); opacity: 1;} }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 24px; cursor: pointer; color: var(--text-sec); }

/* Dashboard specifics */
.offer-banner { background: linear-gradient(90deg, rgba(188, 19, 254, 0.15), rgba(0, 243, 255, 0.15)); border: 1px solid var(--neon-blue); padding: 15px; border-radius: 12px; text-align: center; font-size: 14px; margin-bottom: 20px; box-shadow: 0 0 15px rgba(0, 243, 255, 0.1); }
.balance-card { text-align: center; border: 1px solid var(--neon-purple); padding: 30px; }
.balance-amount { font-size: 42px; font-weight: bold; margin-top: 5px; text-shadow: 0 0 15px rgba(0,243,255,0.4); transition: color 0.5s; }
.action-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 25px; }
.action-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 15px; padding: 18px 0; color: white; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: 0.3s; }
.action-btn:hover { background: rgba(0, 243, 255, 0.1); border-color: var(--neon-blue); }
.asset-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; background: rgba(255,255,255,0.04); border-radius: 12px; margin-bottom: 10px; }
.coin-icon { width: 32px; height: 32px; border-radius: 50%; margin-right: 10px; display: inline-block; }
.profile-menu { position: absolute; top: 45px; right: 0; background: #0f0518; border: 1px solid var(--glass-border); padding: 10px; border-radius: 8px; width: 140px; display: none; z-index: 50; box-shadow: 0 5px 15px rgba(0,0,0,0.8); }
.menu-item { color: var(--text-sec); font-weight: bold; cursor: pointer; padding: 8px; display: flex; align-items: center; gap: 10px; font-size: 14px; transition: 0.2s; }
.menu-item:hover { color: white; background: rgba(255,255,255,0.1); border-radius: 5px; }
.menu-danger { color: var(--danger); }

@media (min-width: 768px) { .container { max-width: 480px; } .glass-card { padding: 40px; } }

/* LOADING OVERLAY */
.loader-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000000;
    z-index: 3000;
    display: none; /* Hidden by default */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 60px; height: 60px;
    border: 3px solid rgba(0, 243, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--neon-blue);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-blue);
    letter-spacing: 2px;
    animation: blink 1.5s infinite;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
