:root {
    --bg-dark: #0a0a12;
    --bg-card: #14141f;
    --primary: #00ffcc;
    --secondary: #7a00ff;
    --danger: #ff0055;
    --text: #ffffff;
    --text-dim: #8888aa;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; }
body { background: var(--bg-dark); color: var(--text); overflow-x: hidden; }

/* Stilizare Erori Formulare */
.input-group {
    position: relative;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
}

.error-msg {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 5px;
    margin-bottom: 10px;
    min-height: 15px;
    font-weight: 500;
}

.input-error {
    border: 1px solid var(--danger) !important;
    box-shadow: 0 0 5px rgba(255, 0, 85, 0.3);
}

/* Background Particles Effect */
body::before {
    content: ''; position: fixed; top:0; left:0; width:100%; height:100%;
    background: radial-gradient(circle at 50% 50%, rgba(122, 0, 255, 0.1) 0%, transparent 60%);
    z-index: -1; animation: pulse 10s infinite;
}
@keyframes pulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

#app { max-width: 1000px; margin: 0 auto; padding: 20px; }

nav { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid #333; margin-bottom: 30px; }
nav span { font-weight: bold; color: var(--primary); font-size: 1.5rem; margin-right: auto; text-transform: uppercase; letter-spacing: 2px; }
nav a { color: var(--text-dim); text-decoration: none; font-weight: bold; transition: 0.3s; }
nav a:hover { color: var(--primary); }

/* Form Clean Fix */
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-form input { margin-bottom: 0; }

.btn-primary { background: var(--secondary); color: #fff; padding: 12px; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; transition: 0.3s; text-transform: uppercase; }
.btn-primary:hover { background: var(--primary); color: #000; }
.auth-switch { display: block; text-align: center; margin-top: 20px; color: var(--text-dim); text-decoration: none; font-size: 0.9rem; }
.danger { background: var(--danger); color: #fff; padding: 10px 20px; margin-left: 10px; border: none; border-radius: 5px; cursor: pointer; }

.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-form input { margin-bottom: 0; }
.checkbox-container { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9rem; color: var(--text); text-align: left; background: rgba(255, 255, 255, 0.03); padding: 12px; border-radius: 8px; border: 1px solid #333; cursor: pointer; user-select: none; margin-bottom: 5px; }
.checkbox-container input[type="checkbox"] { width: 20px; height: 20px; min-width: 20px; margin: 0; margin-top: 2px; cursor: pointer; accent-color: var(--primary); background: #000; }
.checkbox-container span { line-height: 1.5; }
.checkbox-container a { color: var(--primary); text-decoration: underline; font-weight: bold; }
.btn-primary { background: var(--secondary); color: #fff; padding: 12px; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; transition: 0.3s; text-transform: uppercase; }
.btn-primary:hover { background: var(--primary); color: #000; }
.auth-switch { display: block; text-align: center; margin-top: 20px; color: var(--text-dim); text-decoration: none; font-size: 0.9rem; }
.danger { background: var(--danger); color: #fff; padding: 10px 20px; margin-left: 10px; border: none; border-radius: 5px; cursor: pointer; }

/* Auth Box */
.auth-box { background: var(--bg-card); padding: 40px; border-radius: 10px; max-width: 400px; margin: 50px auto; border-top: 3px solid var(--primary); box-shadow: 0 0 30px rgba(0,255,204,0.1); }
.auth-box h1 { text-align: center; margin-bottom: 20px; font-size: 1.5rem; color: var(--primary); text-transform: uppercase; }
.auth-box input { width: 100%; padding: 12px; margin-bottom: 15px; background: #000; border: 1px solid #333; color: #fff; border-radius: 5px; }
.auth-box button { width: 100%; padding: 12px; background: var(--secondary); color: #fff; border: none; border-radius: 5px; font-weight: bold; cursor: pointer; transition: 0.3s; text-transform: uppercase; }
.auth-box button:hover { background: var(--primary); color: #000; }
.auth-box a { display: block; text-align: center; margin-top: 15px; color: var(--text-dim); text-decoration: none; font-size: 0.9rem; }

/* Stilizare casută de bifat (Checkbox) */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text);
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #333;
    cursor: pointer;
    user-select: none;
    margin-bottom: 5px;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 0;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary);
    background: #000;
}

.checkbox-container span {
    line-height: 1.5;
}

.checkbox-container a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: bold;
}

/* Home */
.hero { text-align: center; padding: 40px 0; }
.countdown { font-size: 1.2rem; color: var(--primary); margin: 20px 0; font-family: monospace; }
.game-tags { display: flex; justify-content: center; gap: 20px; align-items: center; margin: 20px 0; }
.game-tags span { background: var(--secondary); padding: 10px 20px; border-radius: 5px; font-weight: bold; }
.btn-play { background: var(--primary); color: #000; padding: 15px 30px; text-decoration: none; font-weight: bold; border-radius: 5px; display: inline-block; margin-top: 20px; animation: glow 2s infinite; }
@keyframes glow { 0%,100% { box-shadow: 0 0 10px var(--primary); } 50% { box-shadow: 0 0 30px var(--primary); } }

.prizes { margin-top: 50px; }
.prize-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; }
.prize { background: var(--bg-card); padding: 20px; border-radius: 10px; border-left: 4px solid var(--primary); }
.prize h3 { color: var(--primary); margin-bottom: 10px; }
.note { color: var(--text-dim); font-style: italic; margin-top: 20px; text-align: center; }

/* Games */
.game-arena { background: var(--bg-card); padding: 30px; border-radius: 10px; text-align: center; }
#gameInfo { font-size: 1.2rem; color: var(--primary); margin: 20px 0; font-family: monospace; }
#gameContainer { min-height: 300px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
#gameContainer input { font-size: 1.5rem; padding: 10px; text-align: center; width: 100px; background: #000; color: #fff; border: 2px solid var(--primary); border-radius: 5px; }

/* Leaderboard */
.lb-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.lb-table th, .lb-table td { padding: 15px; border-bottom: 1px solid #333; text-align: left; }
.lb-table th { color: var(--primary); }
.lb-table tr:hover { background: rgba(255,255,255,0.05); }

/* Legal & Profile */
.legal-container, .profile-box { background: var(--bg-card); padding: 40px; border-radius: 10px; line-height: 1.6; }
.legal-container h1 { color: var(--primary); margin-top: 30px; margin-bottom: 10px; border-bottom: 1px solid #333; padding-bottom: 10px; }
.profile-box h1 { color: var(--primary); }
.gdpr-section { margin-top: 30px; border-top: 1px solid #333; padding-top: 20px; }
.gdpr-section button { padding: 10px 20px; margin-right: 10px; background: #333; color: #fff; border: none; border-radius: 5px; cursor: pointer; }
.gdpr-section .danger { background: var(--danger); }