:root {
    --bg-color: #08090d;
    --card-bg: rgba(18, 22, 33, 0.85);
    --primary-neon: #00f0ff;
    --secondary-neon: #7000ff;
    --accent-neon: #ff0055;
    --green-neon: #00e676;
    --text-color: #e0e6ed;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(112, 0, 255, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.12) 0%, transparent 40%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hidden { display: none !important; }

#auth-container {
    width: 340px;
    margin: 120px auto;
    padding: 35px;
    background: var(--card-bg);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
    backdrop-filter: blur(12px);
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

#auth-container h2 {
    color: var(--primary-neon);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    margin-bottom: 20px;
}

#auth-container input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: rgba(8, 9, 13, 0.9);
    border: 1px solid #2a2f45;
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: 0.3s;
}

#auth-container input:focus {
    border-color: var(--primary-neon);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

#auth-container button {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: linear-gradient(45deg, var(--secondary-neon), var(--primary-neon));
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#auth-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.toggle-link {
    font-size: 0.85rem;
    color: #8a99ad;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.2s;
}

.toggle-link:hover { color: var(--primary-neon); }

#shop-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(8, 9, 13, 0.95);
    padding: 15px 40px;
    border-bottom: 1px solid rgba(112, 0, 255, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(45deg, var(--primary-neon), var(--secondary-neon));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* EMOJI BOX PARA EL DAILY BONUS */
.inbox-btn {
    background: rgba(20, 25, 40, 0.9);
    border: 1px solid var(--primary-neon);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.inbox-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--primary-neon);
}

.balance-box {
    display: flex;
    align-items: center;
    background: rgba(20, 25, 40, 0.9);
    border: 1px solid var(--primary-neon);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.95rem;
    gap: 10px;
}

.balance-box strong {
    color: var(--primary-neon);
    font-size: 1.1rem;
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.btn-add-balance {
    background: var(--primary-neon);
    color: #000;
    border: none;
    border-radius: 4px;
    width: 22px;
    height: 22px;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-add-balance:hover {
    transform: scale(1.15);
    box-shadow: 0 0 8px var(--primary-neon);
}

.btn-logout {
    background: transparent;
    border: 1px solid var(--accent-neon);
    color: var(--accent-neon);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-logout:hover {
    background: var(--accent-neon);
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 0, 85, 0.5);
}

.products-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 260px));
    gap: 30px;
    padding: 60px 40px;
    justify-content: center;
    align-content: center;
}

.product-card {
    aspect-ratio: 1 / 1;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-neon);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.25);
}

.product-card h3 { margin: 0; font-size: 1.35rem; color: #fff; }
.product-card label { font-size: 0.8rem; color: #8a99ad; text-transform: uppercase; }
.select-wrapper { width: 100%; }

.product-card select {
    width: 100%;
    padding: 12px;
    background: #0a0c14;
    border: 1px solid #2a314a;
    border-radius: 10px;
    color: #fff;
    outline: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: center;
}

.product-card button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #00c853, var(--green-neon));
    color: #000;
    font-weight: 800;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.product-card button:hover {
    box-shadow: 0 0 18px rgba(0, 230, 118, 0.6);
}

footer {
    margin-top: auto;
    background: rgba(8, 9, 13, 0.95);
    border-top: 1px solid rgba(112, 0, 255, 0.2);
    padding: 20px 40px;
    text-align: center;
}

.footer-content p { margin: 0; color: #8a99ad; }
.footer-content span { color: var(--primary-neon); font-weight: bold; }

/* MODALES */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: #121621;
    border: 1px solid var(--primary-neon);
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.25);
    padding: 30px;
    border-radius: 16px;
    width: 340px;
    text-align: center;
}

.modal-content h3 { margin-top: 0; color: var(--primary-neon); }
.modal-content p { color: #a0aec0; font-size: 0.95rem; margin: 15px 0; }
.modal-content input {
    width: 100%; padding: 12px; margin-bottom: 20px;
    background: #08090d; border: 1px solid #2a314a;
    border-radius: 8px; color: white; outline: none;
}

.modal-buttons { display: flex; gap: 12px; justify-content: center; }

.btn-confirm {
    background: var(--primary-neon);
    color: #000; border: none; padding: 10px 20px;
    border-radius: 8px; font-weight: bold; cursor: pointer;
}

.btn-cancel {
    background: transparent; border: 1px solid #4a5568;
    color: #a0aec0; padding: 10px 20px; border-radius: 8px; cursor: pointer;
}

/* TIMER TEXT EN PANEL DAILY */
#daily-timer-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-neon);
    margin: 10px 0;
    font-family: monospace;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}