/* ═══════════════════════════════════════════
   FORMS, INPUTS, AUTH, PROFILE, ACCOUNT
═══════════════════════════════════════════ */

.mc-input {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  background: #1A1A1A;
  color: var(--mc-text);
  border: 3px solid #5A5A5A;
  padding: 0.6rem 0.8rem;
  width: 100%;
  outline: none;
  caret-color: var(--mc-grass);
}
.mc-input:focus { border-color: var(--mc-grass); }
.mc-input:focus-visible { outline: 2px solid var(--mc-gold); outline-offset: 1px; }

.mc-label {
  display: block;
  font-size: 0.5rem;
  margin-bottom: 0.4rem;
  color: var(--mc-text-dim);
}

.mc-select {
  appearance: none;
  cursor: pointer;
}

/* Support modal: readable topic dropdown (VT323 matches textarea) */
#fb-type.fb-type-select,
select.fb-type-select {
  font-family: "VT323", monospace;
  font-size: 1.05rem;
  line-height: 1.35;
  padding: 0.5rem 0.75rem;
}

.guest-stats-hint {
  font-family: "VT323", monospace;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--mc-text-dim);
  text-align: center;
  margin: 0.35rem 0 0;
  padding: 0 0.35rem;
}
.guest-stats-hint.hidden {
  display: none;
}

.guest-mode-hint {
  margin-top: 0.45rem;
  margin-bottom: 0;
}
.mc-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  line-height: 1.4;
}

/* ─── AUTH SCREEN ─────────────────────────── */
.auth-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem 1rem;
  gap: 1rem;
}
.auth-panel {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.2rem 1.4rem;
}
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0.8rem;
  border-bottom: 2px solid #333;
}
.auth-tab {
  flex: 1;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  padding: 0.5rem;
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.auth-tab.active { color: #4CAF50; border-bottom-color: #4CAF50; }

.auth-forgot-btn {
  margin-top: 0.65rem;
  width: 100%;
  font-family: 'VT323', monospace;
  font-size: 0.85rem;
  color: #8bc34a;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.25rem 0;
  line-height: 1.3;
}
.auth-forgot-btn:hover { color: #9ccc65; }
.auth-forgot-btn:focus-visible {
  outline: 2px solid var(--mc-gold);
  outline-offset: 2px;
  border-radius: 2px;
}
.auth-forgot-btn:disabled {
  color: #666;
  cursor: not-allowed;
  text-decoration: none;
}

.auth-error {
  font-family: 'VT323', monospace;
  font-size: 0.85rem;
  color: #ff6e6e;
  background: #2a0a0a;
  border-radius: 3px;
  padding: 0.3rem 0.5rem;
  margin-top: 0.3rem;
}
.auth-error.auth-success {
  color: #8eff8e;
  background: #1a3a1a;
}

/* Privacy / Terms / Support links (auth, profile, account, about) */
.legal-footer {
  font-family: 'VT323', monospace;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 0.65rem;
  line-height: 1.55;
  color: #888;
}
.legal-footer a {
  color: var(--mc-grass);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-footer a:hover { filter: brightness(1.15); }
.legal-footer a:focus-visible {
  outline: 2px solid var(--mc-gold);
  outline-offset: 2px;
}
.legal-footer--account { margin-top: 1.25rem; }

/* ─── PROFILE SETUP ───────────────────────── */
.profile-fieldset { border: none; padding: 0; margin: 0; }
.profile-fieldset legend { padding: 0; }
.profile-subjects {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.3rem;
}
.subject-check {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.subject-check input { accent-color: #4CAF50; width: 14px; height: 14px; }

/* Same typography and tone as .mc-label (e.g. Password) */
.signup-age-check {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--mc-text-dim);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  line-height: 1.5;
}
.signup-age-check__copy {
  flex: 1;
  min-width: 0;
}
.signup-age-check input {
  accent-color: #4CAF50;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.verify-email-sent {
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
  color: #c8e6c9;
  text-align: center;
  margin: 0 0 0.75rem;
  line-height: 1.4;
  word-break: break-all;
}
.verify-email-hint {
  font-family: 'VT323', monospace;
  font-size: 0.85rem;
  color: #888;
  text-align: center;
  margin: 0 0 1rem;
  line-height: 1.5;
}

/* ─── ACCOUNT SCREEN ──────────────────────── */
/* Tabs live inside the main account card (not between header and body). */
.account-screen-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0.65rem 0.85rem 1rem;
  flex: 1;
  min-height: 0;
}
.account-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-width: 28rem;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}
.account-tabs-nav {
  display: flex;
  flex-shrink: 0;
  background: #252525;
  border-bottom: 3px solid var(--mc-border);
}
.account-tab {
  flex: 1;
  font-family: 'VT323', monospace;
  font-size: 1.15rem;
  line-height: 1.2;
  min-height: 2.75rem;
  padding: 0.5rem 0.65rem;
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color 0.15s, background 0.15s;
}
.account-tab.active {
  color: var(--mc-gold);
  border-bottom-color: var(--mc-gold);
  background: rgba(255, 170, 0, 0.06);
}
.account-tab:hover:not(.active) { color: #bbb; }
.account-tab:focus-visible {
  outline: 2px solid var(--mc-gold);
  outline-offset: -2px;
}
.account-tab-panels {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.account-tab-panel {
  padding: 0.65rem 0.85rem 1rem;
}
.account-tab-panel.hidden { display: none !important; }

.account-info-panel { padding: 0.15rem 0 0.25rem; }
.account-child-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: #4CAF50;
}
.account-meta, .account-email {
  font-family: 'VT323', monospace;
  font-size: 1rem;
  color: #aaa;
  margin-top: 0.2rem;
}

.account-password-title {
  margin-top: 1rem !important;
}
.account-password-intro,
.account-password-skip {
  font-family: 'VT323', monospace;
  font-size: 0.95rem;
  color: #999;
  line-height: 1.4;
  margin: 0.35rem 0 0.5rem;
}
.account-password-skip { margin-top: 0.75rem; }

.account-delete-zone {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.account-delete-zone--skip { border-top-color: rgba(255, 255, 255, 0.08); }
.account-delete-title { margin-bottom: 0.35rem; }
.account-delete-intro {
  font-family: VT323, monospace;
  font-size: 1.05rem;
  color: #bbb;
  line-height: 1.35;
  margin: 0 0 0.65rem;
}
.account-delete-intro a { color: #8ecae6; }
.account-delete-ack {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-family: VT323, monospace;
  font-size: 1.05rem;
  color: #ccc;
  cursor: pointer;
}
.account-delete-ack input { margin-top: 0.2rem; flex-shrink: 0; }

.account-child-edit {
  margin-top: 0.5rem;
}
.account-child-edit .mc-label {
  margin-top: 0.35rem;
}
#account-profile-msg {
  margin-top: 0.5rem;
}

/* Password rules (sign-up + Account) — readable like common app “requirements” lists */
.pass-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.4rem 0 0.5rem;
}
.pass-chip {
  font-family: 'VT323', monospace;
  font-size: 1rem;
  padding: 1px 8px;
  border: 1px solid #444;
  border-radius: 3px;
  color: #777;
  background: #1a1a1a;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.pass-chip.met {
  color: #69f0ae;
  border-color: #2e7d4e;
  background: #0d2b1a;
}

.account-grade-hint {
  font-family: var(--font-vt);
  font-size: 1rem;
  color: #aaa;
  margin: 0.35rem 0 0;
  line-height: 1.4;
  max-width: 100%;
}
.account-subject-card {
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
}
.account-subject-title {
  font-family: 'VT323', monospace;
  font-size: 1.2rem;
  font-weight: bold;
  color: #7cb342;
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}
.account-subject-stats {
  font-family: 'VT323', monospace;
  font-size: 1.15rem;
  color: #ccc;
}
.account-weak {
  font-family: 'VT323', monospace;
  font-size: 0.95rem;
  color: #ffb74d;
  margin-top: 0.3rem;
}
.account-strong {
  font-family: 'VT323', monospace;
  font-size: 0.95rem;
  color: #81c784;
  margin-top: 0.3rem;
}

.domain-assign {
  margin-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 0.5rem;
}
.domain-assign-label {
  font-family: 'VT323', monospace;
  font-size: 1.12rem;
  color: #ffd54f;
  margin-bottom: 0.45rem;
  line-height: 1.35;
}
.domain-checks {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.domain-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-family: 'VT323', monospace;
  font-size: 1.08rem;
  line-height: 1.45;
  color: #ececec;
  cursor: pointer;
  min-height: 2.75rem;
  padding: 0.2rem 0;
}
.domain-check input[type="checkbox"] {
  accent-color: #ffd54f;
  width: 1.35rem;
  height: 1.35rem;
  min-width: 1.35rem;
  min-height: 1.35rem;
  margin-top: 0.12rem;
  cursor: pointer;
  flex-shrink: 0;
}
.domain-hint {
  font-family: 'VT323', monospace;
  font-size: 0.98rem;
  color: #9e9e9e;
  margin-top: 0.35rem;
  line-height: 1.45;
  font-style: italic;
}

.account-topics-intro {
  font-family: 'VT323', monospace;
  font-size: 1.05rem;
  color: #aaa;
  margin: 0 0 0.85rem;
  line-height: 1.45;
}

/* ─── FEEDBACK MODAL ──────────────────────── */
.feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.feedback-modal.hidden { display: none; }
.feedback-modal-box {
  width: 100%;
  max-width: 380px;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.feedback-modal-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: #4CAF50;
  margin: 0 0 0.2rem;
}
.feedback-modal-sub {
  font-family: 'VT323', monospace;
  font-size: 1rem;
  color: #aaa;
  margin: 0 0 0.5rem;
}
.feedback-modal-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.8rem;
}
.feedback-modal-actions .mc-btn { flex: 1; }

.quit-confirm-modal {
  z-index: 1100;
}
.quit-confirm-modal .quit-confirm-title {
  color: var(--mc-gold);
}
.quit-confirm-modal .feedback-modal-sub {
  color: #c8c8c8;
}
.fb-status {
  font-family: 'VT323', monospace;
  font-size: 1rem;
  text-align: center;
  padding: 0.4rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}
.fb-status.success { background: #1a4a1a; color: #6eff6e; }
.fb-status.error   { background: #4a1a1a; color: #ff6e6e; }

#feedback-fab {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  z-index: 900;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 3px solid #555;
  background: #222;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.15s;
}
#feedback-fab:hover { transform: scale(1.12); background: #4CAF50; }
