@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap');

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

body {
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    animation: float 10s infinite ease-in-out alternate;
}
.blob-1 { width: 400px; height: 400px; background: rgba(0, 255, 136, 0.15); top: -100px; left: -100px; }
.blob-2 { width: 300px; height: 300px; background: rgba(0, 195, 255, 0.15); bottom: -50px; right: -50px; animation-delay: -5s; }

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.1); }
}

.container { width: 100%; max-width: 1100px; z-index: 1; }
.hidden { display: none !important; }

.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

h1, h2, h3, h4 { color: #00ffcc; margin-bottom: 15px; text-shadow: 0 2px 10px rgba(0, 255, 204, 0.3); }

.auth-container { padding: 40px; text-align: center; max-width: 400px; margin: 10vh auto; }

header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 30px;
    margin-bottom: 25px;
}
header h2 { margin: 0; }

.customization-bar {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #a0aec0;
}
input[type="color"] {
    -webkit-appearance: none;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    background: none;
    padding: 0;
}
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 2px solid rgba(255,255,255,0.2); border-radius: 50%; }

hr { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 20px 0; }

.input-group { display: flex; flex-direction: column; gap: 15px; margin-bottom: 10px; }

input[type="text"], input[type="password"], input[type="number"] {
    width: 100%; padding: 15px; background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1); color: white;
    border-radius: 10px; outline: none; font-size: 16px; transition: border 0.3s;
}
input:focus { border: 1px solid #00ffcc; box-shadow: 0 0 10px rgba(0, 255, 204, 0.2); }

.btn-3d {
    padding: 15px 20px; border: none; border-radius: 12px; font-size: 16px; font-weight: 600;
    cursor: pointer; text-transform: uppercase; letter-spacing: 1px; color: white;
    transition: all 0.1s ease; width: 100%; display: block; text-align: center;
}

.btn-primary { background: linear-gradient(to bottom, #00b4db, #0083b0); box-shadow: 0 6px 0 #005a7a, 0 10px 10px rgba(0,0,0,0.3); }
.btn-success { background: linear-gradient(to bottom, #11998e, #38ef7d); box-shadow: 0 6px 0 #0d7a70, 0 10px 10px rgba(0,0,0,0.3); }
.btn-danger { background: linear-gradient(to bottom, #ff416c, #ff4b2b); box-shadow: 0 6px 0 #b32a48, 0 10px 10px rgba(0,0,0,0.3); width: auto; }
.btn-warning { background: linear-gradient(to bottom, #f7971e, #ffd200); box-shadow: 0 6px 0 #b56c12, 0 10px 10px rgba(0,0,0,0.3); }
.btn-3d:active { transform: translateY(6px); box-shadow: 0 0px 0 transparent, 0 4px 6px rgba(0,0,0,0.4); }

.upload-label { margin-bottom: 0; }

.stats-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 25px; }
.stat-box { padding: 20px; text-align: center; }
.stat-box p { font-size: 32px; font-weight: 800; margin-top: 10px; }

.token-generator { padding: 40px; margin-bottom: 25px; background: linear-gradient(135deg, #f12711, #f5af19); box-shadow: 0 8px 0 #b51c0a, 0 15px 20px rgba(0,0,0,0.4); user-select: none; }
.token-generator h2 { color: white; text-shadow: none; margin: 0; text-align: center; }
.token-generator:active { transform: translateY(8px); box-shadow: 0 0px 0 transparent, 0 5px 10px rgba(0,0,0,0.5); }

.grid-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 25px; }
.action-panel { padding: 25px; }

.small-text { font-size: 13px; color: #a0aec0; margin-top: 5px; margin-bottom: 15px; }
.highlight-text { color: #00ffcc; }

/* Leaderboard & Online Presence Dot */
ul { list-style-type: none; }
li {
    background: rgba(0, 0, 0, 0.2); margin-bottom: 10px; padding: 15px 20px;
    border-radius: 10px; display: flex; justify-content: space-between; align-items: center;
    border-left: 5px solid #00ffcc; font-weight: 600; transition: transform 0.2s;
}
li:hover { transform: translateX(5px); }

.user-info { display: flex; align-items: center; gap: 10px; }
.online-dot {
    width: 10px;
    height: 10px;
    background-color: #38ef7d;
    border-radius: 50%;
    box-shadow: 0 0 8px #38ef7d;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(56, 239, 125, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(56, 239, 125, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 239, 125, 0); }
}

@keyframes flashUpdate {
    0% { transform: scale(1); color: inherit; }
    50% { transform: scale(1.1); color: #00ffcc; }
    100% { transform: scale(1); color: inherit; }
}
.value-updated { animation: flashUpdate 0.5s ease; }

/* Toast Notifications */
#toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { min-width: 250px; padding: 15px 25px; border-radius: 8px; color: white; font-weight: 600; box-shadow: 0 4px 15px rgba(0,0,0,0.3); animation: slideIn 0.3s ease forwards; backdrop-filter: blur(10px); }
.toast.info { background: rgba(0, 195, 255, 0.9); }
.toast.success { background: rgba(0, 255, 136, 0.9); }
.toast.error { background: rgba(255, 65, 108, 0.9); }
.toast.fade-out { animation: slideOut 0.3s ease forwards; }

@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

@media (max-width: 768px) { .grid-layout { grid-template-columns: 1fr; } header { flex-direction: column; gap: 15px; } }

