/* ---------------------------------------------------------------
   Member pages — ARMember forms on the studio theme.
   Loaded on login, register, forgot/change password, edit profile,
   guest, cancel, thank-you, giveaway and AI-Talk.
   --------------------------------------------------------------- */

/* ARMember hides setup forms until its script runs. If Rocket delays
   that script, the page would otherwise be blank. Show the form; the
   script still enhances it when it loads. */
.arm-member-page .arm_setup_form_container { display: block !important; }

.arm-member-page .arm_form,
.arm-member-page .arm-df__form,
.arm-member-page .arm_setup_form_1 {
  font-family: var(--font-ui) !important;
}

/* Headings inside the form */
.arm-member-page .arm-df__heading-text,
.arm-member-page .arm-df__heading,
.arm-member-page .arm_form_title,
.arm-member-page .arm_setup_form_title {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em;
  color: var(--heading) !important;
}

/* Fields */
.arm-member-page .arm-df__form-control,
.arm-member-page .arm_form input[type="text"],
.arm-member-page .arm_form input[type="email"],
.arm-member-page .arm_form input[type="password"],
.arm-member-page .arm_form input[type="number"],
.arm-member-page .arm_form input[type="url"],
.arm-member-page .arm_form select,
.arm-member-page .arm_form textarea {
  border: 1px solid var(--rule) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--ink) !important;
  font-family: var(--font-ui) !important;
  box-shadow: none !important;
}
.arm-member-page .arm-df__form-control:focus,
.arm-member-page .arm_form input:focus,
.arm-member-page .arm_form select:focus,
.arm-member-page .arm_form textarea:focus {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 4px rgba(255, 94, 41, 0.14) !important;
}

/* Submit buttons and Elementor buttons inside member pages */
.arm-member-page .arm-df__form-control-submit-btn,
.arm-member-page .arm_form input[type="submit"],
.arm-member-page .arm_form button[type="submit"],
.arm-member-page .elementor-button {
  background: var(--orange-deep) !important;
  background-image: none !important;
  border: 1px solid var(--orange-deep) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-family: var(--font-ui) !important;
  font-weight: 500 !important;
  min-height: 48px;
  box-shadow: none !important;
}
.arm-member-page .arm-df__form-control-submit-btn:hover,
.arm-member-page .arm_form input[type="submit"]:hover,
.arm-member-page .arm_form button[type="submit"]:hover,
.arm-member-page .elementor-button:hover {
  background: var(--orange-hover) !important;
  border-color: var(--orange-hover) !important;
  color: #fff !important;
}

/* Links, "lost password", "sign up", Google login */
body.arm-member-page .arm_form a,
body.arm-member-page .arm_form .arm_login_popup_form_links,
body.arm-member-page .arm_form .arm_form_popup_link,
body.arm-member-page .arm_form .arm_login_form_other_links a,
body.arm-member-page .arm_form .arm_forgotpassword_link a,
body.arm-member-page .arm_form .arm_social_link {
  color: var(--orange-deep) !important;
}
.arm-member-page .arm_form a:hover,
.arm-member-page .arm_login_popup_form_links:hover,
.arm-member-page .arm_form_popup_link:hover {
  color: var(--orange-deeper, #8f3000) !important;
}
.arm-member-page .arm_social_link_google,
body.arm-member-page .arm_form .arm_social_link_google,
body.arm-member-page .arm_form .arm_social_link_google * {
  border-color: var(--rule) !important;
  color: var(--ink) !important;
}
.arm-member-page .arm_social_link_google {
  border: 1px solid var(--rule) !important;
  border-radius: 10px !important;
  background: #fff !important;
}
.arm-member-page .arm_social_link_google:hover {
  border-color: var(--orange-deep) !important;
  color: var(--orange-deep) !important;
}

/* Password visibility icon, checkboxes, validation text */
.arm-member-page .arm-df__fc-icon { color: var(--faint) !important; }
.arm-member-page input[type="checkbox"] { accent-color: var(--orange-deep); }
.arm-member-page .arm_pass_strength,
.arm-member-page .arm-df__fc--validation {
  font-family: var(--font-ui) !important;
  color: var(--muted) !important;
}

/* Cards / panels ARMember wraps around forms */
.arm-member-page .arm_form,
.arm-member-page .arm-form-container .arm_form,
.arm-member-page .arm_login_form_container {
  border-radius: 16px;
}
.arm-member-page .arm_form .arm-df__form-group { margin-bottom: 14px; }

/* The register plan grid already has its own register.css; keep its
   heights intrinsic so descriptions are never clipped. */
.arm-member-page .arm_module_plans_ul > li,
.arm-member-page .arm_module_plan_option { height: auto !important; }


/* Member-page illustrations: the page content embeds huge inline SVGs.
   Keep them as small icons instead of 360px blocks. */
.page-id-115182 .page-head p { display: none; }
.page-id-115182 .entry-content p:has(> a[role="button"] > svg),
.page-id-112785 .entry-content p:has(> a[role="button"] > svg),
.page-id-115187 .entry-content p:has(> a[role="button"] > svg) {
  text-align: center;
  line-height: 0;
  margin: 0 auto 24px;
}
.page-id-115182 .entry-content p a[role="button"] svg {
  width: 72px;
  height: 72px;
  display: block;
  margin: 0 auto;
}
.page-id-112785 .entry-content p a[role="button"] svg,
.page-id-115187 .entry-content p a[role="button"] svg {
  width: 120px;
  height: 120px;
  display: block;
  margin: 0 auto;
}


/* Status pages (/guest/, /cancel_payment/) get a next step. */
.arm-member-page .member-actions {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.arm-member-page .member-actions p {
  margin: 0 0 14px;
  font-family: var(--font-ui);
  color: var(--muted);
}
.arm-member-page .member-actions .btn {
  margin: 0 8px 8px 0;
}


/* Profile / edit / change pages carry their own duplicate H1s and
   oversized inline SVGs. Keep one heading and small icons. */
.page-id-115183 .entry-content > h1,
.page-id-115184 .entry-content > h1,
.page-id-115182 .entry-content > h3:first-of-type { display: none; }
.page-id-115183 .entry-content p a[role="button"] svg,
.page-id-115184 .entry-content p a[role="button"] svg,
.page-id-115224 .entry-content p a[role="button"] svg {
  width: 72px;
  height: 72px;
  display: block;
  margin: 0 auto 24px;
}
.page-id-115183 .entry-content p:has(> a[role="button"] > svg),
.page-id-115184 .entry-content p:has(> a[role="button"] > svg),
.page-id-115224 .entry-content p:has(> a[role="button"] > svg) {
  text-align: center;
  line-height: 0;
}

/* The profile dashboard embeds 512px tool artwork inline. Cap it so the
   account page reads as a page, not a poster wall. */
.page-id-115224 .entry-content img { max-width: 180px; height: auto; }
.page-id-115224 .entry-content h2,
.page-id-115224 .entry-content h3 { margin-top: 1.6em; }


/* Thank-you / cancel use a bare SVG directly inside a paragraph. */
.page-id-112785 .entry-content p > svg,
.page-id-115187 .entry-content p > svg {
  width: 120px;
  height: 120px;
  display: block;
  margin: 0 auto 24px;
}
.page-id-112785 .entry-content p:has(> svg),
.page-id-115187 .entry-content p:has(> svg) {
  line-height: 0;
  text-align: center;
}

/* ---------------------------------------------------------------
   Insider license upgrade request
   Inline replacement for the Elementor popup that opened at 25%
   scroll on the profile page.
   --------------------------------------------------------------- */
.license-request {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.license-request h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--heading);
}
.license-request-intro {
  max-width: 58ch;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}
.license-notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.license-notice--success {
  border: 1px solid #b7e0c0;
  background: #f1fbf3;
  color: #1f6b33;
}
.license-notice--error {
  border: 1px solid #f0c2bc;
  background: #fff5f3;
  color: #9b2c1f;
}
.license-request fieldset {
  margin: 0 0 16px;
  padding: 16px 18px 18px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #fff;
}
.license-request legend {
  padding: 0 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--heading);
}
.license-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}
.license-tool {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.93rem;
  color: var(--ink);
  cursor: pointer;
}
.license-tool input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--orange-deep);
}
.license-field {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
}
.license-field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--heading);
}
.license-field input[type="email"] {
  width: 100%;
  max-width: 420px;
  padding: 10px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.license-field input[type="email"]:focus {
  border-color: var(--orange);
  outline: 2px solid rgba(255, 94, 41, 0.25);
  outline-offset: 1px;
}
.license-hint {
  color: var(--faint);
  font-size: 0.82rem;
}
.license-actions { margin: 0; }
.license-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--orange-deep);
  border-radius: 10px;
  background: var(--orange-deep);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}
.license-submit:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
}
.license-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 620px) {
  .license-tools { grid-template-columns: minmax(0, 1fr); }
  .license-request fieldset { padding: 14px; }
  .license-field input[type="email"] { max-width: none; }
}

/* ---------------------------------------------------------------
   Account page
   Rebuilt around the ARMember shortcodes after the Elementor
   migration left a linear, centred HTML dump.
   --------------------------------------------------------------- */
.account-intro {
  max-width: 58ch;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}
.account-section { margin-top: clamp(34px, 4vw, 52px); }
.account-section > h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--heading);
}
.account-section > p {
  max-width: 64ch;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.55;
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.account-card {
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.account-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--heading);
}
.account-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}
.account-points {
  display: inline-block;
  margin-left: 4px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--heading);
}
.account-tools-title {
  margin: 24px 0 0;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--heading);
}
.account-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.account-tool {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}
.account-tool:hover {
  border-color: var(--tint-strong);
  background: var(--tint);
}
.account-tool img {
  flex: 0 0 auto;
  width: auto;
  max-width: 100px;
  max-height: 34px;
  object-fit: contain;
}
.account-tool span {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--heading);
}
.account-logout { margin: 18px 0 0; }
.account-section .arm_front_grid {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
.account-profile { margin-bottom: 8px; }
@media (max-width: 620px) {
  .account-grid { grid-template-columns: minmax(0, 1fr); }
  .account-tools { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------
   Insider Vault, IRP and AI Talk
   The gated pages were still carrying Elementor-era dumps; these
   styles support the rebuilt markup.
   --------------------------------------------------------------- */
.page-id-122533 .prose { max-width: 1100px; }
.vault-section-title {
  margin: 32px 0 16px;
  color: #8D99AE;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.vault-dash-header h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #FFFFFF, #1E90FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-id-8185 .prose { max-width: 920px; }
.irp-intro {
  max-width: 64ch;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}
.irp-balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 28px;
  padding: 22px 24px;
  border: 1px solid var(--tint-strong);
  border-radius: var(--radius-card);
  background: var(--tint);
}
.irp-balance-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.irp-balance {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--heading);
}
.irp-balance span {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--orange-deep);
}
.irp-balance-card p {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}
.irp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin: 14px 0 8px;
}
.irp-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #fff;
}
.irp-item span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}
.irp-points {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--orange-deep);
  white-space: nowrap;
}
.irp-points--negative { color: #9b2c1f; }
.irp-note {
  max-width: 64ch;
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}
.irp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.page-id-7790 .prose { max-width: 900px; }
.ai-talk-intro {
  max-width: 62ch;
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}
.ai-talk-tool {
  margin: 0 0 28px;
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-card);
}
.ai-talk-label {
  display: block;
  margin-bottom: 7px;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: 0.93rem;
  font-weight: 600;
}
.ai-talk-text {
  width: 100%;
  min-height: 190px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.55;
  resize: vertical;
}
.ai-talk-text:focus,
.ai-talk-controls select:focus,
.ai-talk-controls input:focus {
  border-color: var(--orange);
  outline: 2px solid rgba(255, 94, 41, 0.25);
  outline-offset: 1px;
}
.ai-talk-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.ai-talk-controls label {
  display: grid;
  gap: 6px;
  color: var(--heading);
  font-family: var(--font-display);
  font-size: 0.83rem;
  font-weight: 600;
}
.ai-talk-controls select,
.ai-talk-controls input[type="range"] {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--rule-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.ai-talk-controls input[type="range"] { padding: 0; accent-color: var(--orange-deep); }
.ai-talk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.ai-talk-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--orange-deep);
  border-radius: 10px;
  background: var(--orange-deep);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
}
.ai-talk-actions button:hover { background: var(--orange-hover); border-color: var(--orange-hover); }
.ai-talk-actions button:disabled { opacity: 0.55; cursor: default; }
.ai-talk-actions button + button {
  border-color: var(--rule-strong);
  background: #fff;
  color: var(--heading);
}
.ai-talk-actions button + button:hover { background: var(--tint); border-color: var(--tint-strong); }
.ai-talk-status {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: var(--faint);
  font-size: 0.86rem;
}
@media (max-width: 700px) {
  .irp-balance-card { flex-direction: column; align-items: flex-start; }
  .irp-balance-card p { max-width: none; }
  .ai-talk-controls { grid-template-columns: minmax(0, 1fr); }
}

/* Solid buttons inside prose: keep the white label even when the article
   link colour has higher specificity. */
.prose a.btn:not(.btn-ghost),
.prose a.btn:not(.btn-ghost):hover { color: #fff !important; }
.prose a.btn.btn-ghost,
.prose a.btn.btn-ghost:hover { color: var(--heading) !important; }

/* The vault is a dark dashboard. Keep the theme's prose colours out of it. */
.vault-dash-header p,
.asset-card p { color: #8D99AE !important; }
.asset-card h3 { color: #FFFFFF !important; }
.vault-section-title { color: #8D99AE !important; }
.vault-status { color: #00E0A0 !important; }
.asset-meta,
.asset-meta span { color: #5C6B8A !important; }
.download-btn { color: #1E90FF !important; }
.download-btn:hover { color: #FFFFFF !important; }

/* Higher-specificity guards for the dark vault dashboard. */
.site-main .prose .vault-section-title { color: #8D99AE !important; }
.site-main .prose a.download-btn { color: #1E90FF !important; }
.site-main .prose a.download-btn:hover { color: #FFFFFF !important; }

.account-tools-more {
  margin: 14px 0 0;
  font-size: 0.9rem;
}
.account-tools-more a { color: var(--orange-deep); }
