/* ============================================================
   Word Lab — accounts / admin styling
   Matches the playful Comic Neue card aesthetic (game.css vars).
   ============================================================ */

/* ---- auth card (login / subscribe gate) ---- */
.wl-auth-card {
  max-width: 420px; margin: 24px auto; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 22px; text-align: center;
}
.wl-auth-card h2 { color: var(--blue-dark); margin: 0 0 14px; font-size: 1.9rem; }
.wl-auth-sub { color: var(--purple-dark); font-weight: 700; margin: 6px 0 14px; }
.wl-auth-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.wl-auth-tab {
  flex: 1; border: 3px solid #dfe9f7; background: #f4f9ff; color: var(--ink);
  font-family: inherit; font-weight: 700; font-size: 1rem; padding: 10px;
  border-radius: 16px; cursor: pointer; transition: all .15s;
}
.wl-auth-tab.active { border-color: var(--blue); background: #e3f0ff; color: var(--blue-dark); }
.wl-auth-switch { font-size: .9rem; color: var(--ink); margin-top: 12px; }
.wl-auth-switch a { color: var(--purple-dark); font-weight: 700; }
.wl-auth-err { color: var(--red-dark); font-weight: 700; min-height: 1.2em; margin-top: 10px; }

.wl-gate { max-width: 460px; }
.wl-gate p { color: var(--ink); font-size: 1.05rem; line-height: 1.5; }

/* marketing pay form */
.wl-sell { max-width: 500px; }
.wl-sell-tag { font-weight: 700; color: var(--purple-dark); margin: 2px 0 16px; }
.wl-sell-list { text-align: left; list-style: none; padding: 0; margin: 0 0 18px; }
.wl-sell-list li {
  background: #f4f9ff; border-radius: 14px; padding: 11px 14px; margin: 9px 0;
  font-size: 0.97rem; line-height: 1.42; color: var(--ink);
}
.wl-sell-list strong { color: var(--blue-dark); }

/* ---- plan picker (monthly vs yearly) ---- */
.wl-plan-grid { display: flex; gap: 12px; flex-wrap: wrap; margin: 4px 0 4px; }
.wl-plan-opt {
  flex: 1; min-width: 150px; position: relative; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 18px 14px 16px; border: 2px solid #e2e8f5; border-radius: 18px;
  background: #fff; transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.wl-plan-opt:hover { transform: translateY(-2px); border-color: var(--blue); box-shadow: 0 8px 20px rgba(60,110,200,.16); }
.wl-plan-best { border-color: var(--purple); background: linear-gradient(170deg, #fbf7ff, #fff); }
.wl-plan-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--purple); color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.wl-plan-name { font-weight: 800; color: var(--purple-dark); font-size: 1.05rem; }
.wl-plan-price { font-size: 1.7rem; font-weight: 800; color: var(--ink); line-height: 1; }
.wl-plan-price small { font-size: 0.85rem; font-weight: 600; color: var(--muted, #889); }
.wl-plan-note { font-size: 0.82rem; color: var(--muted, #778); text-align: center; line-height: 1.35; }

/* ---- inputs / buttons ---- */
.wl-input {
  width: 100%; box-sizing: border-box; margin: 7px 0;
  padding: 13px 15px; border: 3px solid #dfe9f7; border-radius: 16px;
  font-family: inherit; font-size: 1.05rem; color: var(--ink); background: #fbfdff;
}
.wl-input:focus { outline: none; border-color: var(--blue); }
.wl-block { width: 100%; box-sizing: border-box; margin-top: 10px; }
.wl-mini { font-size: .85rem; padding: 7px 11px; margin: 0; width: auto; }
select.wl-input { -webkit-appearance: none; appearance: none; }

/* ---- creator account search ---- */
.wl-admin-tools { margin: 14px 0 4px; }
.wl-admin-tools #wl-acct-search { width: 100%; box-sizing: border-box; }
.wl-admin-tools .xp-label { margin: 6px 2px 0; }

/* ---- social sign-in (Google / Facebook) ---- */
.wl-oauth-sep { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; color: var(--ink); opacity: .6; font-size: .85rem; }
.wl-oauth-sep::before, .wl-oauth-sep::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: .4; }
.wl-oauth-btn { width: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 9px; padding: 11px 14px; border: 1.5px solid #dadce0; border-radius: 12px; background: #fff; color: #3c4043;
  font-family: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; transition: filter .12s, box-shadow .12s; }
.wl-oauth-btn:hover { box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.wl-oauth-btn:disabled { opacity: .55; cursor: default; }
.wl-oauth-ic { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border-radius: 50%; font-weight: 900; font-size: .95rem; color: #fff; }
.wl-oauth-btn.c-google .wl-oauth-ic { background: #4285f4; }
.wl-oauth-btn.c-facebook { border-color: #1877f2; color: #1877f2; }
.wl-oauth-btn.c-facebook .wl-oauth-ic { background: #1877f2; }

/* ---- admin layout ---- */
.wl-admin { max-width: 760px; margin: 14px auto; padding: 0 6px 40px; }
.wl-admin > h1 { color: var(--blue-dark); text-align: center; }
.wl-admin-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wl-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 18px 20px; margin: 16px 0;
}
.wl-card h2 { color: var(--purple-dark); margin: 0 0 12px; }
.wl-subcard { background: #f4f9ff; border-radius: 16px; padding: 14px; margin-top: 12px; }
.wl-subcard h3 { margin: 0 0 8px; color: var(--blue-dark); }

/* subscription card */
.wl-sub.ok { border: 3px solid var(--green); }
.wl-sub.lapsed { border: 3px solid var(--orange); }
.wl-sub-status { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 4px 0 8px; }
.wl-pay-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.wl-pay-row .go-btn { flex: 1; min-width: 130px; }

/* student rows */
.wl-kid {
  display: flex; align-items: center; gap: 10px; padding: 10px 8px;
  border-bottom: 2px dashed #e6eef9;
}
.wl-kid:last-child { border-bottom: none; }
.wl-kid-avatar { font-size: 1.8rem; }
.wl-kid-meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.wl-kid-meta small { color: #6b7799; }
.wl-aurar-in { margin: 0; }

.wl-danger { background: #ffecec; border-color: var(--red); color: var(--red-dark); }
.go-btn.wl-danger { background: linear-gradient(160deg, #ff7a7a, var(--red)); box-shadow: 0 7px 0 var(--red-dark); color: #fff; }

/* free (Creator-owned) vs paid (parent-owned) separation */
.wl-acct-free { border: 3px solid var(--green); }
.wl-acct-pay { border: 3px solid var(--blue); }
.wl-tag-free { background: #e5f9ec; border-color: var(--green); color: var(--green-dark); }
.wl-pill-free, .wl-pill-pay { font-size: .65rem; font-weight: 700; padding: 1px 7px; border-radius: 10px; vertical-align: middle; }
.wl-pill-free { background: #e5f9ec; color: var(--green-dark); }
.wl-pill-pay { background: #e3f0ff; color: var(--blue-dark); }

/* parent report viewer */
.wl-report { text-align: left; max-height: 70vh; overflow-y: auto; }
.wl-report-list { display: flex; flex-direction: column; gap: 8px; margin: 6px 0; }
.wl-rec { border-radius: 12px; padding: 9px 12px; border-left: 5px solid #ccc; background: #f7faff; }
.wl-rec.ok { border-left-color: var(--green); background: #eefbf2; }
.wl-rec.no { border-left-color: var(--red); background: #fff0f0; }
.wl-rec-q { font-weight: 700; color: var(--ink); font-size: 0.92rem; }
.wl-rec-a { margin-top: 3px; color: #333; font-size: 0.95rem; word-break: break-word; }
.wl-rec-badge { font-weight: 700; }
.wl-rec.ok .wl-rec-badge { color: var(--green-dark); }
.wl-rec.no .wl-rec-badge { color: var(--red-dark); }
.wl-rec-correct { margin-top: 2px; font-size: 0.85rem; color: var(--green-dark); }
