/*
 * auth.css — shared styles for the auth pages (register / login / verify).
 */
.wg-auth {
  max-width: 380px;
  margin: 24px auto;
}
/* Wide variant for big forms (e.g. post-a-job) that reuse the auth wrapper but
   need far more room than the narrow login/register column. (.wg-field-row
   already flows its fields two-up, so the extra width is used automatically.) */
.wg-auth-wide { max-width: 900px; }
.wg-auth h1 {
  font-size: 1.5rem;
  margin: 0 0 6px;
  text-align: center;
}
.wg-auth .wg-auth-sub {
  text-align: center;
  color: var(--wg-muted);
  margin: 0 0 20px;
}

/* Verification status + note */
.wg-vstatus {
  border: 1px solid var(--wg-border);
  border-radius: var(--wg-radius);
  padding: 12px 14px;
  margin-bottom: 16px;
}
.wg-vstatus p { margin: 4px 0; }
/* Verify-to-sell nudge (shown when a basic user picks a gated post type) */
.wg-verify-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 4px;
  padding: 14px;
  background: var(--wg-tint);
  border: 1px solid var(--wg-border-soft);
  border-radius: var(--wg-radius-card);
}
.wg-verify-cta[hidden] { display: none; }
.wg-verify-cta-ico { font-size: 1.6rem; line-height: 1; flex: 0 0 auto; }
.wg-verify-cta-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wg-verify-cta-txt strong { font-size: 0.98rem; }
.wg-verify-cta-txt span { font-size: 0.86rem; color: var(--wg-muted); }
.wg-verify-cta-btn { flex: 0 0 auto; margin-left: auto; white-space: nowrap; }
.wg-req-star { color: var(--wg-accent-red, #e5484d); font-weight: 700; }
/* "Needs attention" count badge on the profile My Posts button */
.wg-myposts-btn { position: relative; overflow: visible; }
.wg-myposts-btn.has-attn { border-color: var(--wg-accent-red, #e5484d); }
.wg-attn-badge { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  background: var(--wg-accent-red, #e5484d); color: #fff; font-size: 0.7rem; font-weight: 800; line-height: 1;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3); animation: wg-attn-pulse 1.8s ease-in-out infinite; }
@keyframes wg-attn-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .wg-attn-badge { animation: none; } }
/* Edit-mode banner naming what a flagged post still needs */
.wg-needs-banner { display: block; margin: 0 0 14px; padding: 11px 14px; border-radius: 12px;
  background: #fff5ea; border: 1px solid #ffd9a8; color: #9a4a12; font-size: 0.88rem; font-weight: 600; line-height: 1.4; }
.wg-needs-banner[hidden] { display: none; }
@media (max-width: 460px) {
  .wg-verify-cta { flex-wrap: wrap; }
  .wg-verify-cta-btn { margin-left: 0; width: 100%; }
}

.wg-verify-note {
  background: #fff8e1;
  border: 1px solid #ffe9a8;
  color: #8a6d00;
  padding: 10px 12px;
  border-radius: var(--wg-radius);
  font-size: 0.9rem;
  margin: 0 0 16px;
}

/* Register: privacy consent box */
.wg-consent-box {
  max-height: 160px; overflow-y: auto;
  border: 1px solid var(--wg-border); border-radius: var(--wg-radius);
  padding: 10px 12px; background: #fafafa;
  font-size: 0.8rem; line-height: 1.5; color: var(--wg-text); white-space: normal;
  margin-bottom: 8px;
}
.wg-consent-agree { display: flex; gap: 8px; align-items: flex-start; font-size: 0.9rem; }
.wg-consent-agree input { margin-top: 3px; accent-color: var(--wg-color); }

/* Create: section (marketplace / community) toggle */
.wg-section-toggle { display: flex; gap: 8px; margin: 4px 0; }
.wg-section-opt {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 12px; border: 1px solid var(--wg-border); border-radius: var(--wg-radius);
  font-weight: 600; cursor: pointer; font-size: 0.9rem;
}
.wg-section-opt:has(input:checked) {
  border-color: var(--wg-color); background: #eafaf0; color: var(--wg-color-dark);
}
.wg-section-opt input { accent-color: var(--wg-color); }

/* Profile: logout button — subtle red so it reads as "leaving". */
.wg-logout-btn { color: var(--wg-accent-red); border-color: #f3b6b6; }
.wg-logout-btn:hover { background: #fff4f4; border-color: var(--wg-accent-red); }
.wg-logout-btn .wg-ico { color: var(--wg-accent-red); }

/* Profile: danger zone (deactivate account) */
.wg-danger-zone { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--wg-border); }
.wg-deactivate-btn { color: var(--wg-accent-red); font-weight: 600; }
.wg-deactivate-btn:hover { text-decoration: underline; }

/* Profile: prominent links near the top (My posts / Saved / View public) */
.wg-profile-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.wg-profile-links .wg-btn { width: auto; display: inline-flex; gap: 7px; padding: 9px 14px; font-size: 0.9rem; }
.wg-profile-links .wg-ico { width: 18px; height: 18px; }

/* Profile: per-level verification status */
.wg-verif-levels {
  border: 1px solid var(--wg-border);
  border-radius: var(--wg-radius);
  margin: 0 0 16px;
  overflow: hidden;
}
.wg-verif-level {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
}
.wg-verif-level + .wg-verif-level { border-top: 1px solid var(--wg-border); }
.wg-verif-name { font-weight: 600; font-size: 0.9rem; flex: 1; min-width: 140px; }
.wg-verif-ok { color: var(--wg-color-dark); font-weight: 700; font-size: 0.85rem; }
.wg-verif-ok::before { content: "\2713\00a0"; } /* leading check mark */
.wg-verif-no { color: var(--wg-muted); font-size: 0.85rem; }
.wg-verif-act { width: auto; padding: 7px 16px; font-size: 0.85rem; }

.wg-field {
  margin-bottom: 14px;
}
.wg-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.wg-field input,
.wg-field select {
  width: 100%;
  padding: 11px 12px;
  font-size: 1rem;
  border: 1px solid var(--wg-border);
  border-radius: var(--wg-radius);
  background: #fff;
}
/* The full-width/padded styling above is for text inputs; checkboxes and radios
   must stay their natural size so they align with their labels (.wg-check etc.). */
.wg-field input[type="checkbox"],
.wg-field input[type="radio"] {
  width: auto;
  padding: 0;
  accent-color: var(--wg-color);
}
.wg-field input:focus,
.wg-field select:focus {
  outline: none;
  border-color: var(--wg-color);
  box-shadow: 0 0 0 3px rgba(14, 175, 76, 0.15);
}
/* Multi-column field row (2–3 fields side by side; wraps on narrow screens). */
.wg-field-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.wg-field-row > div { flex: 1 1 150px; min-width: 0; }
.wg-field-row > div > label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 4px; }
.wg-field-row input, .wg-field-row select, .wg-field-row textarea { width: 100%; }

/* Section sub-heading inside a form (groups related fields). */
.wg-form-h2 { font-size: 1.05rem; font-weight: 700; margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--wg-border); }

/* Post-a-job format tabs (structured vs plain text) */
.wg-jobtabs { display: flex; gap: 6px; margin: 4px 0 14px; border-bottom: 1px solid var(--wg-border); }
.wg-jobtab-btn { appearance: none; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 9px 14px; font: inherit; font-weight: 600; color: var(--wg-muted); cursor: pointer; }
.wg-jobtab-btn:hover { color: var(--wg-text); }
.wg-jobtab-btn.is-on { color: var(--wg-color-dark); border-bottom-color: var(--wg-color); }

.wg-field .wg-hint {
  font-size: 0.75rem;
  color: var(--wg-muted);
  margin-top: 4px;
}

/* .wg-btn base + .wg-badge now live in main.css (global). */

.wg-auth-alt {
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--wg-muted);
}

/* Feedback message (used by the page JS) */
.wg-msg {
  display: none;
  padding: 10px 12px;
  border-radius: var(--wg-radius);
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.wg-msg.is-error   { display: block; background: #fdecec; color: #b3261e; }
.wg-msg.is-success { display: block; background: #e7f7ee; color: #0b8f3e; }

/* Verification code input */
.wg-code-input {
  letter-spacing: 8px;
  text-align: center;
  font-size: 1.5rem;
}

/* "Didn't get the code? check spam…" hint under the code field */
.wg-code-hint {
  font-size: 0.8rem;
  color: var(--wg-muted);
  text-align: center;
  margin: 14px 0 0;
  line-height: 1.5;
}

/* Field label (non-input) + checkbox group (create form) */
.wg-field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.wg-checks { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.wg-check { font-size: 0.9rem; display: inline-flex; align-items: center; gap: 4px; }
.wg-stay { display: flex; margin: 4px 0 14px; cursor: pointer; }
.wg-anon-warn { margin-top: 6px; color: #8a6d10; background: #fff6e5; border: 1px solid #f0dcae; padding: 8px 10px; border-radius: var(--wg-radius); }

/* Feedback: the user's own past messages + team replies */
.wg-myfb { margin-top: 28px; border-top: 1px solid var(--wg-border); padding-top: 16px; }
.wg-myfb-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 12px; }
.wg-myfb-item { border: 1px solid var(--wg-border); border-radius: var(--wg-radius); padding: 12px 14px; margin-bottom: 12px; background: #fff; }
.wg-myfb-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.wg-myfb-when { color: var(--wg-muted); font-size: 0.75rem; margin-left: auto; }
.wg-myfb-subject { font-weight: 600; margin-bottom: 2px; }
.wg-myfb-msg { font-size: 0.92rem; line-height: 1.5; white-space: pre-wrap; }
.wg-myfb-reply { margin-top: 10px; padding: 10px 12px; background: #f4f7f5; border-left: 3px solid var(--wg-color); border-radius: 6px; }
.wg-myfb-reply-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--wg-color-dark, #1c7c4a); margin-bottom: 3px; }
.wg-myfb-reply-body { font-size: 0.9rem; line-height: 1.5; white-space: pre-wrap; }
.wg-fb-cat { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--wg-muted); }
.wg-fb-status { font-size: 0.7rem; font-weight: 700; padding: 1px 8px; border-radius: 9px; background: #eee; color: #555; }
.wg-fb-status--new { background: #eafaf0; color: var(--wg-color-dark, #1c7c4a); }
.wg-fb-status--resolved { background: #eef1f4; color: #888; }

/* Location picker (create form) */
.wg-loc-search { display: flex; gap: 8px; margin-bottom: 8px; }
.wg-loc-search input {
  flex: 1; padding: 10px 12px; font: inherit;
  border: 1px solid var(--wg-border); border-radius: var(--wg-radius);
}
.wg-loc-search .wg-btn { width: auto; padding: 10px 16px; }
.wg-loc-results { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.wg-loc-result {
  text-align: left; background: #fff; border: 1px solid var(--wg-border);
  border-radius: var(--wg-radius); padding: 8px 10px; cursor: pointer; font-size: 0.88rem;
}
.wg-loc-result:hover { background: #f6f6f6; }
.wg-loc-map {
  width: 100%; height: 300px;
  border: 1px solid var(--wg-border); border-radius: var(--wg-radius); margin-bottom: 12px;
}
.wg-loc-mine {
  width: auto; padding: 8px 14px; margin-bottom: 10px;
  background: #fff; color: var(--wg-text); border: 1px solid var(--wg-border);
}
.wg-loc-mine:hover { background: #f6f6f6; }

/* Image preview thumbnails (create form) */
.wg-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.wg-thumb { position: relative; width: 72px; height: 72px; }
.wg-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--wg-radius);
  border: 1px solid var(--wg-border);
}
.wg-thumb-x {
  position: absolute;
  top: -7px; right: -7px;
  width: 20px; height: 20px;
  line-height: 18px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.wg-thumb-x:hover { background: var(--wg-accent-red); }

/* Event form: the cover-banner preview is a single wide 16:9 image with a
   remove (×) button (the flyer previews below keep the default square .wg-thumb). */
.wg-banner-prev { position: relative; width: 100%; max-width: 360px; }
.wg-banner-prev img {
  display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--wg-radius); border: 1px solid var(--wg-border);
}

/* Profile header */
.wg-profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.wg-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--wg-border);
}
/* Avatar with a "change photo" affordance + the editor sheet */
.wg-avatar-wrap { position: relative; display: inline-block; flex: 0 0 auto; line-height: 0; }
.wg-avatar-initial {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--wg-color); color: #fff; font-weight: 700; font-size: 1.7rem; line-height: 1;
}
.wg-avatar-edit {
  position: absolute; right: -3px; bottom: -3px;
  width: 26px; height: 26px; padding: 0; border-radius: 50%;
  background: #fff; border: 1px solid var(--wg-border); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}
.wg-avatar-edit:hover { background: #f3fbf6; }
.wg-avatar-edit .wg-ico { width: 14px; height: 14px; color: var(--wg-color-dark); }

.wg-avatar-sheet { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.wg-avatar-card { position: relative; background: #fff; border-radius: 14px; max-width: 380px; width: 100%; padding: 22px 20px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); }
.wg-avatar-x { position: absolute; top: 6px; right: 10px; background: none; border: none; font-size: 24px; line-height: 1; color: var(--wg-muted); cursor: pointer; }
.wg-avatar-title { font-size: 1.15rem; margin: 0 0 12px; }
.wg-avatar-buttons { display: flex; gap: 8px; }
.wg-avatar-buttons .wg-btn { width: auto; flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; margin: 0; }
.wg-avatar-buttons .wg-ico { width: 16px; height: 16px; }
.wg-avatar-hint { font-size: 0.78rem; color: var(--wg-muted); margin: 8px 0 0; text-align: center; }
.wg-avatar-or { text-align: center; font-size: 0.82rem; font-weight: 600; color: var(--wg-muted); margin: 16px 0 10px; }
.wg-avatar-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.wg-avatar-opt { padding: 0; border: 2px solid transparent; border-radius: 50%; background: none; cursor: pointer; line-height: 0; }
.wg-avatar-opt:hover { border-color: var(--wg-color); }
.wg-avatar-opt img { width: 100%; border-radius: 50%; display: block; }

/* Community join picker (grouped checkboxes) */
#wg-comm-picker .wg-checkall-btn { margin: 0 0 8px; }
.wg-comm-group { margin-bottom: 6px; }
.wg-comm-opt { display: flex; align-items: center; gap: 8px; padding: 6px 4px; cursor: pointer; }
.wg-comm-opt input { width: 18px; height: 18px; flex: 0 0 auto; }
.wg-comm-parent { font-weight: 700; }
.wg-comm-kids { margin: 2px 0 8px 26px; border-left: 2px solid var(--wg-border); padding-left: 8px; }
.wg-comm-kids .wg-comm-opt { font-weight: 400; }
#wg-comm-picker .wg-btn { width: auto; margin-top: 10px; }

.wg-profile-nick { font-size: 1.1rem; font-weight: 700; }
.wg-profile-email { color: var(--wg-muted); font-size: 0.875rem; }
.wg-profile-comm { font-size: 0.9rem; color: var(--wg-muted); margin: 0 0 16px; }
.wg-profile-h2 { font-size: 1rem; margin: 8px 0 12px; border-top: 1px solid var(--wg-border); padding-top: 16px; }
.wg-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--wg-border);
}
.wg-profile-actions .wg-btn {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.wg-profile-actions .wg-ico { width: 18px; height: 18px; }
.wg-field textarea {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  border: 1px solid var(--wg-border);
  border-radius: var(--wg-radius);
  resize: vertical;
}
.wg-field textarea:focus {
  outline: none;
  border-color: var(--wg-color);
  box-shadow: 0 0 0 3px rgba(14, 175, 76, 0.15);
}

/* "or" divider */
.wg-or {
  text-align: center;
  color: var(--wg-muted);
  font-size: 0.8rem;
  margin: 16px 0;
}

/* Continue-with-Google button */
.wg-btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: var(--wg-text);
  border: 1px solid var(--wg-border);
  text-decoration: none;
}
.wg-btn-google:hover { background: #f6f6f6; text-decoration: none; }
.wg-btn-google .wg-g {
  font-weight: 700;
  color: #4285F4;
}

/* Continue-with-Kakao button */
.wg-btn-kakao {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  background: #FEE500;
  color: #191600;
  border: 1px solid #FEE500;
  text-decoration: none;
}
.wg-btn-kakao:hover { background: #f2d900; text-decoration: none; }

/* Continue-with-Apple button (Apple HIG: black, white text/logo) */
.wg-btn-apple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  text-decoration: none;
}
.wg-btn-apple:hover { background: #1a1a1a; text-decoration: none; color: #fff; }

/* Link-styled button (e.g. resend code) */
.wg-linkbtn {
  background: none;
  border: none;
  color: var(--wg-color);
  font: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

/* Warning-post moderation notice on the create form */
.wg-warn-notice { margin-top: 6px; font-size: 0.82rem; line-height: 1.5; color: #8a1f1f; background: #fff4f4; border: 1px solid #f3b6b6; border-radius: var(--wg-radius); padding: 8px 10px; }

/* Food-listing review notice (top of #c-food-block on the create/edit form) */
.wg-food-notice {
  display: flex; flex-direction: column; gap: 4px;
  margin-bottom: 12px; padding: 10px 12px;
  font-size: 0.85rem; line-height: 1.5;
  color: #7a4d00; background: #fff8ec; border: 1px solid #f0d9a8;
  border-radius: var(--wg-radius);
}
.wg-food-notice strong { font-size: 0.92rem; }

/* Set-password: code input + send button row */
.wg-code-row { display: flex; gap: 8px; }
.wg-code-row input { flex: 1; min-width: 0; letter-spacing: 4px; }
.wg-code-row .wg-btn { width: auto; white-space: nowrap; padding: 0 14px; }

/* Profile settings — collapsible accordion menus */
.wg-acc-group { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.wg-acc { border: 1px solid var(--wg-border); border-radius: 12px; background: #fff; overflow: hidden; }
.wg-acc > summary {
  list-style: none; cursor: pointer; padding: 14px 16px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
}
.wg-acc > summary::-webkit-details-marker { display: none; }
.wg-acc > summary::after { content: '▾'; color: var(--wg-muted); transition: transform 0.15s ease; }
.wg-acc[open] > summary::after { transform: rotate(180deg); }
.wg-acc > summary:hover { background: #fafafa; }
.wg-acc-body { padding: 8px 16px 16px; border-top: 1px solid var(--wg-border); }

/* "Boost to top" bar (edit mode, marketplace listings) */
.wg-boost-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 18px; padding: 14px 16px;
  border: 1px solid var(--wg-accent-yellow, #fcc00c); border-radius: 12px;
  background: #fffbeb;
}
.wg-boost-text { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.wg-boost-text strong { font-size: 0.95rem; }
.wg-boost-text span { font-size: 0.82rem; color: var(--wg-muted); }
.wg-boost-bar .wg-btn { width: auto; white-space: nowrap; }
.wg-boost-bar .wg-btn:disabled { opacity: 0.6; cursor: default; }

/* Posting / image-upload progress overlay */
.wg-uploading {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.45);
}
.wg-uploading[hidden] { display: none; }
.wg-uploading-card {
  background: #fff; border-radius: 14px; padding: 26px 30px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  max-width: 80vw; text-align: center; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.wg-uploading-spin {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--wg-border); border-top-color: var(--wg-color, #16a34a);
  animation: wg-spin 0.8s linear infinite;
}
.wg-uploading-msg { font-weight: 600; color: var(--wg-text); }
@keyframes wg-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wg-uploading-spin { animation-duration: 2s; } }

/* ── Points & Referrals (profile) ───────────────────────────────────────── */
.wg-points-card { margin: 18px 0; padding: 16px; border: 1px solid var(--wg-border, #e5e7eb); border-radius: 14px; background: #fff; }
.wg-points-h { margin: 0 0 12px; font-size: 1.05rem; }
.wg-points-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
.wg-points-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px; border-radius: 12px; background: #f6f8f7; text-align: center; }
.wg-points-stat.is-available { background: #e8f7ee; }
.wg-points-stat.is-flagged { background: #fdf2e8; }
.wg-points-stat-val { font-size: 1.3rem; font-weight: 800; color: var(--wg-text); }
.wg-points-stat.is-available .wg-points-stat-val { color: var(--wg-color, #0eaf4c); }
.wg-points-stat-label { font-size: 0.74rem; color: var(--wg-muted, #6b7280); }
.wg-points-subh { margin: 16px 0 6px; font-size: 0.95rem; }
.wg-points-locked { margin: 6px 0; padding: 12px; border-radius: 10px; background: #f3f4f6; color: var(--wg-muted, #6b7280); font-size: 0.9rem; }
.wg-points-codewrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0; }
.wg-points-coderow { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px dashed var(--wg-color, #0eaf4c); border-radius: 10px; background: #f3fbf6; }
.wg-points-codelabel { font-size: 0.78rem; color: var(--wg-muted, #6b7280); }
.wg-points-code { font-size: 1.05rem; letter-spacing: 0.06em; }
.wg-points-refstats { margin: 4px 0 0; }
.wg-points-history-acc { margin-top: 14px; }
.wg-points-txn { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 2px; border-bottom: 1px solid #f0f1f2; }
.wg-points-txn-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wg-points-txn-title { font-size: 0.9rem; }
.wg-points-txn-status { font-size: 0.72rem; color: var(--wg-muted, #6b7280); }
.wg-points-st-flagged { color: #c2700a; }
.wg-points-st-rejected, .wg-points-st-reversed { color: #b3261e; }
.wg-points-txn-amt { font-weight: 800; color: var(--wg-color, #0eaf4c); white-space: nowrap; }
.wg-points-txn-amt.is-neg { color: #b3261e; }
.wg-points-disclaimer { margin-top: 12px; }

/* Points claim-eligibility note + anchor offset */
.wg-anchor { display: block; position: relative; top: -70px; visibility: hidden; }
.wg-points-claim { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: #eef2f7; color: #475569; font-size: 0.85rem; }
.wg-points-claim.is-ready { background: #e8f7ee; color: #0a7d37; font-weight: 600; }

/* Points history row meta (status + date) */
.wg-points-txn-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.wg-points-txn-date { font-size: 0.72rem; color: var(--wg-muted, #6b7280); }
/* Manual team-award reason ("why you got these points") */
.wg-points-txn-note { font-size: 0.78rem; color: var(--wg-color-dark, #0b8f3e); margin-top: 2px; }

/* Persistent "collect daily points" button in the profile Points card */
.wg-points-daily { width: 100%; margin: 12px 0 0; background: var(--wg-accent-yellow, #fcc00c); border-color: var(--wg-accent-yellow, #fcc00c); color: #1a1a1a; font-weight: 800; }
.wg-points-daily:hover { background: #e6ad00; border-color: #e6ad00; color: #1a1a1a; }

/* Point-history button + scrollable paginated modal */
.wg-points-history-open { width: 100%; margin-top: 12px; }
.wg-points-history-open .wg-ico { width: 18px; height: 18px; }
.wg-points-hist-modal .wg-modal-card { max-width: 460px; max-height: 80vh; display: flex; flex-direction: column; }
.wg-points-hist-modal .wg-modal-title { flex: none; }
.wg-points-hist-modal .wg-points-history { overflow-y: auto; flex: 1 1 auto; margin: 4px 0 12px; -webkit-overflow-scrolling: touch; }
.wg-points-hist-modal .wg-btn { flex: none; }

/* "Learn how points work" link in the profile points card */
.wg-points-learn { display: inline-block; margin-top: 8px; font-size: 0.86rem; font-weight: 600; }

/* Application-questions editor (job_form). */
.wg-jq-list { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 10px; }
.wg-jq-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wg-jq-row .wg-jq-text { flex: 2 1 180px; }
.wg-jq-row .wg-jq-opts { flex: 1 1 130px; }
.wg-jq-row .wg-jq-type { flex: 0 0 auto; }
.wg-jq-row .wg-check { white-space: nowrap; }

/* ---- Category picker: trigger button + modal grid with icons ---- */
.wg-catpick-store { display: none; }
.wg-catpick-btn {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border: 1px solid var(--wg-border); border-radius: var(--wg-radius);
  background: #fff; font: inherit; color: var(--wg-muted); cursor: pointer; text-align: left;
}
.wg-catpick-btn:hover { border-color: var(--wg-color); }
.wg-catpick-btn.has-val { color: var(--wg-text); font-weight: 600; }
.wg-catpick-ico { display: inline-flex; color: var(--wg-color); }
.wg-catpick-ico:empty { display: none; }
.wg-catpick-label { flex: 1; min-width: 0; }
.wg-catpick-caret { color: var(--wg-muted); font-size: 0.8rem; }

.wg-catmodal { position: fixed; inset: 0; z-index: 1300; background: rgba(0,0,0,0.45); display: flex; align-items: flex-end; justify-content: center; }
.wg-catmodal[hidden] { display: none; }
@media (min-width: 600px) { .wg-catmodal { align-items: center; padding: 20px; } }
.wg-catmodal-card { background: #fff; width: 100%; max-width: 560px; max-height: 85vh; border-radius: 16px 16px 0 0; display: flex; flex-direction: column; overflow: hidden; }
@media (min-width: 600px) { .wg-catmodal-card { border-radius: 16px; } }
.wg-catmodal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--wg-border); }
.wg-catmodal-head h3 { margin: 0; font-size: 1.05rem; }
.wg-catmodal-x { background: none; border: none; font-size: 1.6rem; line-height: 1; color: var(--wg-muted); cursor: pointer; padding: 0 6px; }
.wg-catgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px; overflow-y: auto; }
@media (min-width: 600px) { .wg-catgrid { grid-template-columns: repeat(4, 1fr); } }
.wg-catgrid-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px; border: 1px solid var(--wg-border); border-radius: 12px;
  background: #fff; cursor: pointer; font: inherit; color: var(--wg-text); text-align: center;
  transition: border-color .12s, background .12s;
}
.wg-catgrid-item:hover { border-color: var(--wg-color); background: #f5faf7; }
.wg-catgrid-item.is-on { border-color: var(--wg-color); background: #eafaf0; box-shadow: 0 0 0 1px var(--wg-color) inset; }
.wg-catgrid-ico { color: var(--wg-color); display: inline-flex; }
.wg-catgrid-name { font-size: 0.78rem; line-height: 1.2; }

/* Phone (SMS OTP) verification modal */
.wg-otp-num { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.5px; text-align: center;
  margin: 4px 0 14px; padding: 10px; border-radius: var(--wg-radius-card);
  background: var(--wg-tint); border: 1px solid var(--wg-border-soft); }
.wg-otp-sentto { font-size: 0.9rem; color: var(--wg-muted); margin: 0 0 10px; }
#wg-otp-resend { display: block; margin: 10px auto 0; }
.wg-otp-alt { text-align: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--wg-border-soft); }

/* ── AI assistant (writing improve modal + job auto-fill) ─────────────────── */
.wg-ai-improve-btn { margin-top: 8px; }
.wg-ai-disclose { font-size: 0.82rem; color: var(--wg-muted); background: var(--wg-tint); border-radius: var(--wg-radius); padding: 8px 10px; margin: 6px 0; }

/* Writing improve modal */
.wg-aim-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 14px; }
.wg-aim-card { background: var(--wg-bg); border-radius: var(--wg-radius-card); box-shadow: var(--wg-shadow-card); width: 100%; max-width: 640px; max-height: 90vh; overflow-y: auto; }
.wg-aim-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 0; }
.wg-aim-head h3 { margin: 0; font-size: 1.1rem; }
.wg-aim-x { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--wg-muted); }
.wg-aim-tag { display: inline-block; margin: 6px 16px 0; font-size: 0.75rem; font-weight: 600; color: #3a4bd0; background: #eef2ff; padding: 2px 8px; border-radius: 999px; }
.wg-aim-body { padding: 12px 16px; }
.wg-aim-foot { padding: 0 16px 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.wg-aim-loading { text-align: center; color: var(--wg-muted); padding: 28px 0; }
.wg-aim-err { color: #b02a2a; background: #fdecec; border-radius: var(--wg-radius); padding: 10px 12px; }
.wg-aim-verify { font-size: 0.85rem; color: #8a6d00; background: #fff8e1; border-radius: var(--wg-radius); padding: 8px 10px; margin-bottom: 10px; }
.wg-aim-cols { display: grid; grid-template-columns: 1fr; gap: 10px; }
.wg-aim-col { border: 1px solid var(--wg-border-soft); border-radius: var(--wg-radius); padding: 10px; }
.wg-aim-col.is-suggestion { border-color: #bfe5cc; background: #f6fbf8; }
.wg-aim-collabel { font-size: 0.75rem; font-weight: 600; color: var(--wg-muted); margin-bottom: 4px; }
.wg-aim-t { font-weight: 600; margin-bottom: 6px; }
.wg-aim-b { white-space: pre-wrap; font-size: 0.92rem; }
.wg-aim-warns { margin-top: 10px; font-size: 0.88rem; }
.wg-aim-warns ul { margin: 4px 0 0; padding-left: 18px; }
@media (min-width: 560px) { .wg-aim-cols { grid-template-columns: 1fr 1fr; } }

/* Job auto-fill */
.wg-ai-jobfill { border: 1px dashed var(--wg-border); border-radius: var(--wg-radius); padding: 10px 12px; margin: 4px 0 14px; }
.wg-ai-jobfill-panel { margin-top: 10px; }
.wg-ai-jobfill-panel textarea { width: 100%; }
.wg-ai-jobfill-actions { display: flex; gap: 8px; margin-top: 8px; }
.wg-ai-jobfill-result { margin-top: 12px; }
.wg-jfx-summary { border: 1px solid var(--wg-border-soft); border-radius: var(--wg-radius); overflow: hidden; margin-bottom: 10px; }
.wg-jfx-kv { display: flex; gap: 10px; padding: 6px 10px; border-bottom: 1px solid var(--wg-border-soft); font-size: 0.9rem; }
.wg-jfx-kv:last-child { border-bottom: 0; }
.wg-jfx-kv > span { flex: 0 0 96px; color: var(--wg-muted); font-weight: 600; }
.wg-jfx-kv > div { flex: 1 1 auto; min-width: 0; word-break: break-word; }
.wg-jfx-sec { margin: 10px 0; }
.wg-jfx-sec h4 { margin: 0 0 4px; font-size: 0.9rem; }
.wg-jfx-sec ul { margin: 4px 0 0; padding-left: 18px; font-size: 0.9rem; }
.wg-jfx-warn { font-size: 0.9rem; padding: 6px 8px; border-radius: var(--wg-radius); margin-bottom: 5px; }
.wg-jfx-warn-serious { background: #fdecec; color: #b02a2a; }
.wg-jfx-warn-warning { background: #fff8e1; color: #8a6d00; }
.wg-jfx-warn-info { background: #eef2ff; color: #3a4bd0; }
.wg-jfx-orig { display: block; font-style: italic; opacity: 0.85; margin-top: 2px; }
.wg-jfx-note { font-size: 0.88rem; color: var(--wg-muted); margin: 8px 0; }
.wg-jfx-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Verify screen: Yahoo/AOL advisory + phone-verification fallback */
.wg-verify-tip { background: #fff8e6; border: 1px solid #ffe2a8; color: #7a5300; border-radius: 12px; padding: 12px 14px; font-size: 0.9rem; line-height: 1.45; margin: 18px 0 0; }
.wg-phone-fallback { border: 1px solid var(--wg-border); border-radius: 12px; margin-top: 16px; overflow: hidden; }
.wg-phone-fallback > summary { padding: 13px 14px; font-weight: 600; cursor: pointer; font-size: 0.92rem; list-style: none; display: flex; align-items: center; }
.wg-phone-fallback > summary::-webkit-details-marker { display: none; }
.wg-phone-fallback > summary::after { content: "\203A"; margin-left: auto; color: var(--wg-muted); font-size: 1.3rem; line-height: 1; transition: transform .18s; }
.wg-phone-fallback[open] > summary::after { transform: rotate(90deg); }
.wg-phone-fallback-body { padding: 0 14px 16px; }
.wg-phone-fallback-body .wg-btn { width: 100%; }
