/* ─── Account gate modal + header widget ─────────────────── */

#account-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000; /* below the GDPR overlay, above everything else */
  padding: 16px;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

#account-card {
  background: var(--surface, #1e1e2e);
  border: 1px solid var(--border, #444);
  border-radius: 12px;
  padding: 28px 32px;
  max-width: 420px;
  width: min(92vw, 420px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  color: var(--text, #e0e0e0);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  text-align: center;
  font-family: inherit;
}

.account-title { margin: 0 0 10px; font-size: 1.4rem; }

.account-sub {
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 18px;
  opacity: 0.9;
}

.account-btn-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
  width: 100%;
}

.account-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.account-btn:disabled { opacity: 0.5; cursor: wait; transform: none; }

.account-btn-primary {
  background: var(--accent, #4fc3f7);
  color: #000;
}

.account-btn-ghost {
  background: transparent;
  border: 1px solid var(--border, #555);
  color: var(--text, #e0e0e0);
}

#account-card form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.account-input {
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--border, #555);
  background: var(--bg, #12121c);
  color: var(--text, #e0e0e0);
  font-family: inherit;
  font-size: 1rem;
}

.account-input:focus {
  outline: none;
  border-color: var(--accent, #4fc3f7);
}

.account-error {
  color: var(--danger, #e57373);
  font-size: 0.9rem;
  min-height: 1.1em;
}

.account-error.account-ok {
  color: var(--success, #81c784);
}

.account-forgot {
  background: none;
  border: none;
  padding: 2px;
  margin-top: 2px;
  color: var(--accent, #4fc3f7);
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  opacity: 0.8;
}

.account-forgot:hover { opacity: 1; }

/* Standalone account pages (reset.html / verify.html) reuse the card
   styling without the fullscreen overlay. */
.account-page-card {
  margin: 10vh auto 40px;
}

.account-fineprint {
  font-size: 0.78rem;
  opacity: 0.65;
  line-height: 1.5;
  margin: 14px 0 0;
}

/* Header widget */
.account-widget {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 0.95rem;
}

.account-name { font-weight: 700; }
.account-points { opacity: 0.9; }

.account-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(79, 195, 247, 0.14);
  background: color-mix(in srgb, var(--accent, #4fc3f7) 14%, transparent);
  border: 1px solid var(--accent, #4fc3f7);
  border-radius: 8px;
  padding: 8px 16px;
  color: var(--accent, #4fc3f7);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
}

.account-link:hover { opacity: 0.85; transform: translateY(-1px); }

@media (max-width: 480px) {
  #account-card { padding: 22px 18px; }
}
