/*
 * Settings (user_edit.php) and PRO membership (remove_ads.php).
 *
 * Builds on home.css (panels, buttons, chips) and entry.css (form fields and
 * the phone layout, through body#pv-entry): this file adds the settings rows,
 * their save messages, and the plan cards.
 */

/* ---- Settings --------------------------------------------------------- */
.pve-form .acc-row input[type="text"] { font-size: 15px; font-weight: 400; }
.acc-section { display: flex; flex-direction: column; gap: 18px; }
.acc-section > p { font-size: 13px; color: #dcdcdc; }
.acc-row { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.acc-row__line { display: flex; gap: 8px; align-items: stretch; }
.acc-row__line input[type="text"] { flex: 1 1 auto; min-width: 0; }
.pvh .acc-row .pvh-btn { flex: none; height: 48px; padding: 0 18px; border-top: 0; border-right: 0; border-bottom: 0; font-family: inherit; cursor: pointer; }
.acc-row .pvh-btn:hover { background: var(--pvh-gold-bright); }
.acc-row .pvh-btn:focus-visible { outline: 2px solid var(--pvh-gold-bright); outline-offset: 1px; }
.acc-row .pvh-btn[disabled] { opacity: 0.6; cursor: default; }
.acc-label { display: flex; align-items: center; gap: 8px; }
.acc-label img { width: 18px; height: 18px; border-radius: 3px; }
.acc-hint { font-size: 12px; color: var(--pvh-muted); }
.acc-status { font-size: 13px; font-weight: 700; }
.acc-status:empty { display: none; }
.acc-status--ok { color: #b5e48c; }
.acc-status--bad { color: #ff9b9b; }
.acc-signin[hidden] { display: none; }
.pvh a.acc-signin { align-self: flex-start; }

/* ---- PRO membership --------------------------------------------------- */
.pro-hero { display: grid; grid-template-columns: 1fr 200px; gap: 18px; align-items: center; }
.pro-hero h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.15; color: #fff; }
.pro-hero p { font-size: 14px; color: #dcdcdc; }
.pro-hero img { display: block; width: 100%; border-radius: 6px; }
.pro-plans { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 12px; }
.pro-plan { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 18px; border: 1px solid var(--pvh-line); border-radius: 8px; background: #111; }
.pro-plan__name { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--pvh-gold-button); }
.pro-plan__price { font-size: 30px; font-weight: 700; line-height: 1.1; color: #fff; }
.pro-plan__price span { font-size: 14px; font-weight: 400; color: var(--pvh-muted); }
.pro-paypal { width: 100%; max-width: 420px; min-height: 45px; }
.pvh .pro-note { margin-top: 12px; }
.pro-notice { margin-top: 12px !important; padding: 12px 14px; border-radius: 6px; background: #1c1c1c; font-size: 13px; color: #e6e6e6; }
.pvh .pro-perks { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.pro-perks li { position: relative; padding-left: 26px; font-size: 14px; color: #e6e6e6; }
.pro-perks li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid var(--pvh-gold-bright);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.pro-perks strong { color: #fff; }

/* ---- Phones ----------------------------------------------------------- */
@media (max-width: 760px) {
  .acc-row__line { flex-direction: column; }
  .pvh .acc-row .pvh-btn { width: 100%; }
  .pro-hero, .pro-plans { grid-template-columns: 1fr; }
  .pro-hero img { max-width: 240px; }
}

/* ---- Forgot password --------------------------------------------------
 * The ad unit is a fixed 468px wide. Let it scroll inside its own box on a
 * phone rather than push the whole page sideways. */
.pve #adsense_flat { max-width: 100%; margin-top: 14px; overflow-x: auto; }

/* ---- Choose a new password (reset_password.php) -----------------------
 * No side bar here: the page holds a secret link, so it loads no ads. */
#left-col.pwr-solo { float: none; margin: 0 auto; }
.pve-form input[type="password"] {
  flex: 1 1 auto;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #474747;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
}
.pve-form input[type="password"]:focus-visible { outline: 2px solid var(--pvh-gold-bright); outline-offset: 1px; }
.pvh .acc-row button.pvh-btn--ghost { border: 1px solid var(--pvh-gold-deep); color: #fff; }
.pvh a.pwr-action { align-self: flex-start; }
/* For password managers: they save the new password against this name. */
.pve-form input.pwr-username { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
