@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&display=swap');
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background: #090e17; color: #ffffff; min-height: 100vh; background-image: radial-gradient(circle at top right, #102a43, #090e17); }

.main-header { background: rgba(0, 180, 216, 0.1); padding: 25px; text-align: center; border-bottom: 2px solid #00b4d8; backdrop-filter: blur(10px); }
.main-header h1 { font-size: 2.5em; color: #00b4d8; letter-spacing: 2px; text-shadow: 0 0 15px rgba(0, 180, 216, 0.5); }
.main-header p { color: #94a3b8; }

.login-container { max-width: 500px; margin: 80px auto; background: rgba(30, 41, 59, 0.6); padding: 40px; border-radius: 20px; text-align: center; border: 1px solid rgba(255,255,255,0.05); }
.login-container h2 { margin-bottom: 25px; color: #f8fafc; }
input[type="text"], input[type="password"] { width: 100%; padding: 15px; border-radius: 12px; border: 2px solid #334155; background: rgba(15, 23, 42, 0.8); color: #00b4d8; margin-bottom: 20px; outline: none; }
input[type="text"]:focus, input[type="password"]:focus { border-color: #00b4d8; }
button { background: linear-gradient(45deg, #00b4d8, #0096c7); color: white; border: none; padding: 15px; font-size: 1.1em; border-radius: 12px; cursor: pointer; width: 100%; font-weight: bold; }
button:hover { box-shadow: 0 4px 15px rgba(0, 180, 216, 0.4); }
button:disabled { background: #475569; cursor: not-allowed; }
.error { color: #ef4444; margin-top: 15px; display: none; }

.store-container { max-width: 1200px; margin: 30px auto; padding: 0 20px; }
.wallet-bar { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 15px; background: rgba(30,41,59,0.5); padding: 15px; border-radius: 15px; margin-bottom: 25px; border: 1px solid #334155; }
.wallet-item { display: flex; flex-direction: column; align-items: center; background: #1e293b; padding: 10px; border-radius: 10px; border: 1px solid #475569; }
.wallet-item .label { font-size: 0.75em; color: #94a3b8; text-transform: uppercase; margin-bottom: 5px; }
.wallet-item .value { font-size: 1.2em; font-weight: bold; }
#valDiamond { color: #00b4d8; } #valGold { color: #fbbf24; } #valTopup { color: #00b4d8; font-size: 0.9em; }

.store-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #1e293b; padding-bottom: 15px; margin-bottom: 20px; }
.store-header h3 { color: #f8fafc; font-size: 1.5em; }
#giftsSent { background: #1e293b; padding: 8px 15px; border-radius: 8px; color: #00b4d8; border: 1px solid #334155; }

.category-bar { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 15px; margin-bottom: 20px; scrollbar-width: none; }
.category-bar::-webkit-scrollbar { display: none; }
.cat-btn { background: #1e293b; border: 1px solid #334155; color: #94a3b8; padding: 8px 20px; border-radius: 20px; cursor: pointer; white-space: nowrap; width: auto;}
.cat-btn.active, .cat-btn:hover { background: #00b4d8; color: white; border-color: #00b4d8; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: linear-gradient(180deg, #1e293b, #0f172a); border-radius: 16px; padding: 20px; text-align: center; border: 1px solid #334155; position: relative; }
.card:hover { transform: translateY(-5px); border-color: #00b4d8; }
.sort-badge { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.5); font-size: 0.7em; padding: 4px 8px; border-radius: 6px; color: #64748b; }
.card-img-container { height: 130px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.card-img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5)); }
.price { font-size: 1.2em; font-weight: 800; margin: 15px 0; background: rgba(0,0,0,0.3); padding: 10px; border-radius: 10px; }
.expire { font-size: 0.75em; color: #94a3b8; margin-bottom: 15px; font-family: monospace; }
.btn-send { background: #00b4d8; box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3); }

/* Multi-auth buttons */
.auth-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.auth-method-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #94a3b8;
    padding: 8px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    width: auto;
}
.auth-method-btn.active {
    background: #00b4d8;
    border-color: #00b4d8;
    color: white;
}
.auth-method-btn:hover {
    background: #0f2c3f;
    border-color: #00b4d8;
}

/* Modal */
.modal { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.8); align-items:center; justify-content:center; z-index:9999; backdrop-filter: blur(5px); }
.modal-content { background:#1e293b; padding:30px; border-radius:20px; width:90%; max-width:400px; text-align:center; border: 1px solid #00b4d8; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.modal-btns { display:grid; grid-template-columns: 1fr 1fr; gap:15px; margin-top: 20px; }
.btn-cancel { background:#475569; box-shadow: none; }
.btn-cancel:hover { background:#334155; }

@media (max-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } .wallet-bar { grid-template-columns: 1fr 1fr; } .wallet-item.full { grid-column: span 2; } .store-header { flex-direction: column; gap: 15px; } }