:root{
  --bg:#0b0f14;
  --panel:#0f1620cc;
  --glass:#0f1620aa;
  --card:#141c27dd;
  --card-hover:#172332ee;
  --text:#e8f0ff;
  --muted:#9fb3c8;
  --accent: #7bd9ff;
  --accent2:#9b7bff;
  --won:#36d399;
  --lost:#ff6b6b;
  --shadow: 0 10px 30px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.06);
  --glow: 0 0 18px rgba(123,217,255,0.35), 0 0 8px rgba(155,123,255,0.25);
  --radius:14px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:
    radial-gradient(1200px 800px at 10% -10%, #142032 0%, transparent 60%),
    radial-gradient(1200px 800px at 110% 10%, #1a1232 0%, transparent 60%),
    linear-gradient(180deg, #0b0f14 0%, #0a0d12 100%);
  color:var(--text);
  font:14px/1.35 Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  overflow:hidden;
}
header{
  position:sticky; top:0; z-index:3;
  padding:16px 22px;
  display:flex; align-items:center; gap:14px; justify-content:space-between;
  background:linear-gradient(180deg, rgba(11,15,20,0.8), rgba(11,15,20,0));
  backdrop-filter: blur(10px);
}
.brand{display:flex;align-items:center;gap:10px}
.logo{
  width:34px;height:34px;border-radius:10px;
  background: conic-gradient(from 210deg, var(--accent2), var(--accent), #36d399, var(--accent2));
  box-shadow: var(--glow);
  position:relative; overflow:hidden;
}
.logo::after{
  content:""; position:absolute; inset:2px; border-radius:8px;
  background:rgba(0,0,0,0.55); backdrop-filter: blur(2px);
}
h1{font-size:18px; margin:0; letter-spacing:0.4px; color:#eaf3ff}
.toolbar{
  display:flex; gap:10px; align-items:center;
}
.btn{
  background:linear-gradient(180deg, #192434, #121b28);
  color:var(--text); border:1px solid rgba(255,255,255,0.08);
  padding:10px 14px; border-radius:12px; cursor:pointer;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover{transform:translateY(-1px); box-shadow: var(--shadow), 0 0 20px rgba(123,217,255,0.15); border-color: rgba(123,217,255,0.35)}
.btn.primary{background:linear-gradient(180deg, #1d2b40, #142033); border-color:#25415b; box-shadow: var(--shadow), 0 0 24px rgba(123,217,255,0.18)}

/* Auth styles */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.auth-card {
  background: linear-gradient(180deg, rgba(24,33,46,0.85), rgba(18,26,38,0.85));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 30px;
  width: 400px;
  box-shadow: var(--shadow);
}

.auth-card h2 {
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
}

.form-group input {
  width: 100%;
  padding: 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
  border-radius: 10px;
  outline: none;
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.error-message {
  background: rgba(255,107,107,0.1);
  border: 1px solid rgba(255,107,107,0.3);
  color: #ffd0d0;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20,28,39,0.6);
  border: 1px solid rgba(255,255,255,0.08);
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #224a66, #1a2740);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #cfe9ff;
}
