
body.locked main,
body.locked .nav .links,
body.locked .lang-switch {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}
.auth-gate.hidden { display: none !important; }

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--card, #0f0f0f);
  border: 1px solid var(--line, rgba(255,255,255,0.08));
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
}
.auth-logo {
  margin: 0 auto 14px;
  border-radius: 14px;
}
.auth-card h1 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.auth-tabs {
  display: flex;
  gap: 6px;
  margin: 20px 0 16px;
  background: rgba(255,255,255,0.04);
  padding: 4px;
  border-radius: 12px;
}
.auth-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted, #a3a3a3);
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}
.auth-tab.active {
  background: rgba(255,255,255,0.1);
  color: var(--text, #f5f5f5);
}
.auth-card form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auth-card label {
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}
.auth-card input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong, rgba(255,255,255,0.14));
  background: rgba(0,0,0,0.45);
  color: inherit;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}
.auth-card input:focus {
  border-color: var(--accent, #7c9cff);
}
.auth-card .btn { margin-top: 12px; }

/* User bar */
.user-bar {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  background: rgba(15,15,15,0.92);
  border: 1px solid var(--line, rgba(255,255,255,0.08));
  border-radius: 999px;
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 600;
}
.badge-admin {
  margin-left: 6px;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(124, 156, 255, 0.2);
  color: var(--accent, #7c9cff);
  vertical-align: middle;
}
.btn.sm { padding: 6px 12px; font-size: 12px; }

/* Live admin on main page */
.live-admin-box {
  max-width: 560px;
  margin: 0 auto 28px;
  background: var(--card, #0f0f0f);
  border: 1px solid rgba(124, 156, 255, 0.25);
  border-radius: 16px;
  padding: 22px;
}
.live-admin-box h3 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
}
.live-update-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.live-update-form label {
  font-size: 12px;
  font-weight: 600;
}
.live-update-form input,
.live-update-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong, rgba(255,255,255,0.14));
  background: rgba(0,0,0,0.4);
  color: inherit;
  font-family: inherit;
  font-size: 14px;
}
.live-update-form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.upd-del {
  margin-top: 10px;
  background: none;
  border: none;
  color: #f87171;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
