/* ══════════════════════════════════════════════════════════
   KARVIVA AFFILIATE PORTAL — COMPLETE CSS
   File: karviva-affiliate-portal.css
   
   PART 1 — Page Sections (Hero, Benefits, How It Works, FAQ, CTA)
   PART 2 — FluentAffiliate Login/Register Form Overrides
   PART 3 — FluentAffiliate Portal Dashboard Overrides
   PART 4 — Portal Active: Hide Marketing Sections
   ══════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════
   PART 1 — PAGE SECTIONS
   ══════════════════════════════════════════════════════════ */

/* ── Reset & Base ────────────────────────────────────────── */
.bmg *, .bmg *::before, .bmg *::after { box-sizing: border-box; margin: 0; padding: 0; }
.bmg { font-family: 'Montserrat', sans-serif; color: #1A1A1A; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.bmg img { max-width: 100%; height: auto; display: block; }
.bmg a { text-decoration: none; color: inherit; transition: color 0.2s; }
.bmg a:hover { color: #f59301; }

/* ── Custom Header ───────────────────────────────────────── */
.bmg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.bmg-header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bmg-header-logo img {
  height: 32px;
  width: auto;
}
.bmg-header-logo-img {
  height: 36px;
  width: auto;
}
.bmg-header-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3bb3bc;
  background: rgba(59,179,188,0.08);
  padding: 4px 10px;
  border-radius: 20px;
  margin-left: 12px;
}
.bmg-header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bmg-header-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1A1A1A;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.bmg-header-link:hover {
  background: #f5f5f5;
  color: #1A1A1A;
}
.bmg-header-link--login {
  color: #3bb3bc;
  border: 1.5px solid #3bb3bc;
}
.bmg-header-link--login:hover {
  background: rgba(59,179,188,0.06);
  color: #3bb3bc;
}
.bmg-header-link--register {
  background: #f59301;
  color: #fff;
  border: none;
}
.bmg-header-link--register:hover {
  background: #e08600;
  color: #fff;
}
.bmg-header-back {
  font-size: 12px;
  font-weight: 500;
  color: #888;
  transition: color 0.2s;
}
.bmg-header-back:hover { color: #1A1A1A; }

/* ── Custom Footer ───────────────────────────────────────── */
.bmg-footer {
  text-align: center;
  padding: 24px 24px;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}
.bmg-footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: #888;
}
.bmg-footer-inner a {
  color: #1A1A1A;
  font-weight: 500;
  transition: color 0.2s;
}
.bmg-footer-inner a:hover { color: #f59301; }
.bmg-footer-sep {
  color: #ddd;
  margin: 0 4px;
}

/* ── Header/Footer Responsive ────────────────────────────── */
@media (max-width: 640px) {
  .bmg-header {
    padding: 12px 16px;
  }
  .bmg-header-badge { display: none; }
  .bmg-header-back { display: none; }
  .bmg-header-link {
    font-size: 12px;
    padding: 7px 12px;
  }
  .bmg-footer-inner {
    flex-direction: column;
    gap: 4px;
  }
  .bmg-footer-sep { display: none; }
}

/* ── Hero Section ────────────────────────────────────────── */
.bmg-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  overflow: hidden;
}
.bmg-hero-bg {
  position: absolute; inset: 0;
  background: url('https://d2xsxph8kpxj0f.cloudfront.net/102875151/goo87cQfQ4HXvMTgP5joPE/karviva-affiliate-hero-c7Yu2WAUSUn8tv6aTkBYP4.webp') center/cover no-repeat;
}
.bmg-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,252,247,0.88) 100%);
}
.bmg-hero-content { position: relative; z-index: 2; max-width: 680px; }
.bmg-hero-badge {
  display: inline-block;
  background: rgba(245,147,1,0.12);
  color: #f59301;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 20px;
}
.bmg-hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  color: #1A1A1A;
  line-height: 1.1;
  margin-bottom: 8px;
}
.bmg-hero-title span { color: #f59301; }
.bmg-hero-subtitle {
  font-size: 18px;
  color: #1A1A1A;
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 28px;
}
.bmg-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.bmg-hero-stat { text-align: center; }
.bmg-hero-stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #3bb3bc;
}
.bmg-hero-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: #1A1A1A;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Benefits Section ────────────────────────────────────── */
.bmg-benefits {
  background: #fff;
  padding: 72px 24px;
}
.bmg-benefits-inner { max-width: 1000px; margin: 0 auto; }
.bmg-benefits-header { text-align: center; margin-bottom: 48px; }
.bmg-benefits-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: #3bb3bc; margin-bottom: 10px;
}
.bmg-benefits-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: #1A1A1A;
}
.bmg-benefits-title span { color: #f59301; }
.bmg-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.bmg-benefit-card {
  background: #fffcf7;
  border: 1px solid rgba(245,147,1,0.12);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.bmg-benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.bmg-benefit-icon {
  width: 52px; height: 52px;
  background: rgba(59,179,188,0.1);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.bmg-benefit-icon svg { width: 24px; height: 24px; color: #3bb3bc; }
.bmg-benefit-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 8px;
}
.bmg-benefit-desc {
  font-size: 15px;
  color: #1A1A1A;
  line-height: 1.7;
}

/* ── How It Works Section ────────────────────────────────── */
.bmg-how {
  background: #1A1A1A;
  padding: 72px 24px;
}
.bmg-how-inner { max-width: 900px; margin: 0 auto; }
.bmg-how-header { text-align: center; margin-bottom: 48px; }
.bmg-how-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: #f59301; margin-bottom: 10px;
}
.bmg-how-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: #fff;
}
.bmg-how-title span { color: #f59301; }
.bmg-how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.bmg-how-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: rgba(255,255,255,0.1);
}
.bmg-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.bmg-step-num {
  width: 48px; height: 48px;
  background: rgba(245,147,1,0.15);
  border: 2px solid #f59301;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #f59301;
}
.bmg-step-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.bmg-step-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
}

/* ── Form Section Wrapper ────────────────────────────────── */
.bmg-form-section {
  background: linear-gradient(180deg, #fffcf7 0%, #fff 100%);
  padding: 80px 24px;
}
.bmg-form-inner { max-width: 1100px; margin: 0 auto; }
.bmg-form-header { text-align: center; margin-bottom: 48px; }
.bmg-form-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: #3bb3bc; margin-bottom: 10px;
}
.bmg-form-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: #1A1A1A;
  margin-bottom: 8px;
}
.bmg-form-title span { color: #f59301; }
.bmg-form-subtitle {
  font-size: 16px;
  color: #1A1A1A;
  max-width: 520px;
  margin: 0 auto;
}

/* Form + Sidebar Layout */
.bmg-form-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}
.bmg-form-card-wrap {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}

/* ── Sidebar ─────────────────────────────────────────────── */
.bmg-sidebar { display: flex; flex-direction: column; gap: 24px; }
.bmg-sidebar-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.04);
}
.bmg-sidebar-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bmg-sidebar-title svg { width: 18px; height: 18px; color: #f59301; }
.bmg-sidebar-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.bmg-sidebar-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #1A1A1A;
  line-height: 1.6;
}
.bmg-sidebar-list li svg { width: 16px; height: 16px; color: #3bb3bc; flex-shrink: 0; margin-top: 3px; }
.bmg-sidebar-highlight {
  background: linear-gradient(135deg, rgba(59,179,188,0.08) 0%, rgba(245,147,1,0.08) 100%);
  border: 1px solid rgba(59,179,188,0.15);
}
.bmg-sidebar-quote {
  font-size: 14px;
  font-style: italic;
  color: #1A1A1A;
  line-height: 1.7;
  margin-bottom: 12px;
}
.bmg-sidebar-author {
  font-size: 12px;
  font-weight: 600;
  color: #3bb3bc;
}

/* ── FAQ Section ─────────────────────────────────────────── */
.bmg-faq {
  background: #fff;
  padding: 72px 24px;
}
.bmg-faq-inner { max-width: 760px; margin: 0 auto; }
.bmg-faq-header { text-align: center; margin-bottom: 40px; }
.bmg-faq-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: #f59301; margin-bottom: 10px;
}
.bmg-faq-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: #1A1A1A;
}
.bmg-faq-title span { color: #3bb3bc; }
.bmg-faq-list { display: flex; flex-direction: column; gap: 12px; }
.bmg-faq-item {
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.bmg-faq-item.open { border-color: rgba(59,179,188,0.3); }
.bmg-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1A1A1A;
  background: #fafafa;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.2s;
}
.bmg-faq-question:hover { background: #f5f5f5; }
.bmg-faq-icon {
  width: 20px; height: 20px;
  transition: transform 0.3s;
  color: #3bb3bc;
  flex-shrink: 0;
}
.bmg-faq-item.open .bmg-faq-icon { transform: rotate(180deg); }
.bmg-faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.bmg-faq-item.open .bmg-faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}
.bmg-faq-answer p {
  font-size: 15px;
  color: #1A1A1A;
  line-height: 1.7;
}

/* ── CTA Section ─────────────────────────────────────────── */
.bmg-cta {
  background: #1A1A1A;
  padding: 64px 24px;
  text-align: center;
}
.bmg-cta-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.bmg-cta-title span { color: #f59301; }
.bmg-cta-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.bmg-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f59301;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 10px;
  transition: background 0.2s, transform 0.1s;
}
.bmg-cta-btn:hover { background: #e08600; color: #fff; transform: translateY(-2px); }

/* ── Responsive: Tablet ──────────────────────────────────── */
@media (max-width: 960px) {
  .bmg-benefits-grid { grid-template-columns: 1fr 1fr; }
  .bmg-how-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .bmg-how-steps::before { display: none; }
  .bmg-form-layout { grid-template-columns: 1fr; }
  .bmg-sidebar { order: -1; }
}
@media (max-width: 640px) {
  .bmg-hero { min-height: 400px; padding: 60px 20px; }
  .bmg-hero-stats { gap: 20px; }
  .bmg-hero-stat-num { font-size: 22px; }
  .bmg-benefits-grid { grid-template-columns: 1fr; }
  .bmg-how-steps { grid-template-columns: 1fr; gap: 28px; }
  .bmg-form-card-wrap { padding: 28px 20px; }
}


/* ══════════════════════════════════════════════════════════
   PART 2 — FLUENTAFFILIATE PLUGIN CSS OVERRIDES
   These target the actual class names rendered by [fluent_affiliate_portal]
   ══════════════════════════════════════════════════════════ */

/* ── Wrapper Override ────────────────────────────────────── */
.fa_auth_warp {
  max-width: 100% !important;
  margin: 0 !important;
  font-family: 'Montserrat', sans-serif !important;
}

/* ── Header Styling ──────────────────────────────────────── */
.fa_auth_warp .fa_auth_form_header {
  margin-bottom: 28px !important;
}
.fa_auth_warp .fa_auth_form_header h3 {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #1A1A1A !important;
  margin-bottom: 6px !important;
}
.fa_auth_warp .fa_auth_form_header p {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 15px !important;
  color: #1A1A1A !important;
  line-height: 1.6 !important;
}

/* ── "About Yourself" Sub-heading ────────────────────────── */
.fa_auth_warp .fa_raw_html .fa_about h3 {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1A1A1A !important;
  margin-top: 12px !important;
  margin-bottom: 4px !important;
  padding-top: 20px !important;
  border-top: 1px solid #eee !important;
}

/* ── Form Groups ─────────────────────────────────────────── */
.fa_auth_warp .fa_form-group,
.fa_auth_warp .fcom_form-group {
  margin-bottom: 18px !important;
}

/* ── Labels ──────────────────────────────────────────────── */
.fa_auth_warp .fa_form_label label,
.fa_auth_warp .fcom_form-group > label,
.fa_auth_warp .login-username > label,
.fa_auth_warp .login-password > label {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1A1A1A !important;
  display: block !important;
  margin-bottom: 6px !important;
}

/* ── Text Inputs, Email, URL, Password ───────────────────── */
.fa_auth_warp input[type="text"],
.fa_auth_warp input[type="email"],
.fa_auth_warp input[type="url"],
.fa_auth_warp input[type="password"],
.fa_auth_warp textarea,
.fa_auth_warp select,
.fa_auth_warp .input,
.fa_auth_warp .fa_form_input input,
.fa_auth_warp .fa_form_input textarea,
.fa_auth_warp .fa_form_input select {
  width: 100% !important;
  padding: 12px 16px !important;
  border: 1.5px solid #e0e0e0 !important;
  border-radius: 10px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px !important;
  color: #1A1A1A !important;
  background: #fafafa !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  outline: none !important;
}
.fa_auth_warp input:focus,
.fa_auth_warp textarea:focus,
.fa_auth_warp .input:focus,
.fa_auth_warp .fa_form_input input:focus,
.fa_auth_warp .fa_form_input textarea:focus {
  border-color: #3bb3bc !important;
  box-shadow: 0 0 0 3px rgba(59,179,188,0.1) !important;
  background: #fff !important;
}
.fa_auth_warp input::placeholder,
.fa_auth_warp textarea::placeholder {
  color: #999 !important;
  font-size: 13px !important;
}

/* ── Textarea ────────────────────────────────────────────── */
.fa_auth_warp textarea,
.fa_auth_warp .fa_form_input textarea {
  resize: vertical !important;
  min-height: 100px !important;
}

/* ── Help Text ───────────────────────────────────────────── */
.fa_auth_warp .fa_help_text {
  font-size: 12px !important;
  color: #888 !important;
  margin-top: 6px !important;
  line-height: 1.5 !important;
}

/* ── Checkbox ────────────────────────────────────────────── */
.fa_auth_warp .fa_inline_checkbox,
.fa_auth_warp .login-remember label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  font-size: 13px !important;
  color: #1A1A1A !important;
  line-height: 1.6 !important;
  cursor: pointer !important;
}
.fa_auth_warp .fa_inline_checkbox input[type="checkbox"],
.fa_auth_warp .login-remember input[type="checkbox"],
.fa_auth_warp input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 4px !important;
  flex-shrink: 0 !important;
  margin-top: 2px !important;
  accent-color: #f59301 !important;
  padding: 0 !important;
  -webkit-appearance: auto !important;
  appearance: auto !important;
}
.fa_auth_warp .fa_inline_checkbox label {
  font-size: 13px !important;
  color: #1A1A1A !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
}

/* ── Primary Button (Register / Submit) ──────────────────── */
.fa_auth_warp .fa_btn_primary,
.fa_auth_warp .fa_btn.fa_btn_primary,
.fa_auth_warp button.fa_btn_submit {
  width: 100% !important;
  padding: 14px 32px !important;
  background: #f59301 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.2s, transform 0.1s !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}
.fa_auth_warp .fa_btn_primary:hover,
.fa_auth_warp button.fa_btn_submit:hover {
  background: #e08600 !important;
  transform: translateY(-1px) !important;
}
.fa_auth_warp .fa_btn_primary:active,
.fa_auth_warp button.fa_btn_submit:active {
  transform: translateY(0) !important;
}

/* ── Login Submit Button ─────────────────────────────────── */
.fa_auth_warp .login-submit input[type="submit"],
.fa_auth_warp input.button.button-primary,
.fa_auth_warp #wp-submit {
  width: 100% !important;
  padding: 14px 32px !important;
  background: #f59301 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.2s, transform 0.1s !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}
.fa_auth_warp .login-submit input[type="submit"]:hover,
.fa_auth_warp #wp-submit:hover {
  background: #e08600 !important;
  transform: translateY(-1px) !important;
}

/* ── Secondary Button ────────────────────────────────────── */
.fa_auth_warp .fa_btn_secondary,
.fa_auth_warp .fa_btn.fa_btn_secondary {
  color: #3bb3bc !important;
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}
.fa_auth_warp .fa_btn_secondary:hover {
  color: #f59301 !important;
}

/* ── Footer ──────────────────────────────────────────────── */
.fa_auth_warp .fa_auth_footer {
  text-align: center !important;
  margin-top: 24px !important;
  padding-top: 20px !important;
  border-top: 1px solid #f0f0f0 !important;
}
.fa_auth_warp .fa_auth_footer p {
  font-size: 14px !important;
  color: #1A1A1A !important;
  font-family: 'Montserrat', sans-serif !important;
}

/* ── Loading SVG ─────────────────────────────────────────── */
.fa_auth_warp .fa_loading_svg {
  display: none;
}

/* ── Login Form Specific ─────────────────────────────────── */
.fa_auth_warp .login-remember {
  margin: 16px 0 24px !important;
}
.fa_auth_warp .login-submit {
  margin-top: 8px !important;
}

/* ── Responsive overrides for plugin forms ───────────────── */
@media (max-width: 640px) {
  .fa_auth_warp {
    padding: 0 !important;
  }
  .fa_auth_warp input[type="text"],
  .fa_auth_warp input[type="email"],
  .fa_auth_warp input[type="url"],
  .fa_auth_warp input[type="password"],
  .fa_auth_warp textarea {
    padding: 11px 14px !important;
    font-size: 14px !important;
  }
}


/* ══════════════════════════════════════════════════════════
   PART 3 — FLUENTAFFILIATE PORTAL DASHBOARD CSS OVERRIDES
   ══════════════════════════════════════════════════════════ */

/* ── Portal Wrapper ──────────────────────────────────────── */
#fa-customer-portal,
.fla_portal {
  font-family: 'Montserrat', sans-serif !important;
  color: #1A1A1A !important;
  -webkit-font-smoothing: antialiased !important;
}
.fla_layout {
  max-width: 100% !important;
  padding: 0 !important;
}

/* ── Portal Navigation ───────────────────────────────────── */
.fla_header {
  background: #fafafa !important;
  border-bottom: 1px solid #f0f0f0 !important;
  padding: 0 !important;
  margin-bottom: 32px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}
.fla_header_nav {
  display: flex !important;
  align-items: center !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  flex-wrap: wrap !important;
}
.fla_header_nav .nav_item {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.fla_header_nav .nav_item a {
  display: block !important;
  padding: 14px 20px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1A1A1A !important;
  text-decoration: none !important;
  transition: background 0.2s, color 0.2s !important;
  border-bottom: 2px solid transparent !important;
}
.fla_header_nav .nav_item a:hover {
  background: rgba(59,179,188,0.04) !important;
  color: #3bb3bc !important;
}
.fla_header_nav .nav_item a.router-link-active,
.fla_header_nav .nav_item a.router-link-exact-active {
  color: #f59301 !important;
  border-bottom-color: #f59301 !important;
  background: rgba(245,147,1,0.04) !important;
}

/* ── Section Headers ─────────────────────────────────────── */
.fla_route_body .fa_section {
  margin-bottom: 28px !important;
}
.fa_section_header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 16px !important;
}
.fa_section_title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1A1A1A !important;
}
.fa_section_header .fa_actions a {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #3bb3bc !important;
  text-decoration: none !important;
  transition: color 0.2s !important;
}
.fa_section_header .fa_actions a:hover {
  color: #f59301 !important;
}

/* ── Stats Cards ─────────────────────────────────────────── */
.fa_cards {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
}
.fa_card_wrap {
  background: #fff !important;
  border: 1px solid #f0f0f0 !important;
  border-radius: 14px !important;
  padding: 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  transition: box-shadow 0.2s, transform 0.2s !important;
}
.fa_card_wrap:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.05) !important;
  transform: translateY(-2px) !important;
}
.fa_card_icon {
  flex-shrink: 0 !important;
}
.fa_card_icon svg {
  width: 40px !important;
  height: 40px !important;
  border-radius: 10px !important;
}
.fa_card_icon svg path:first-child {
  fill: rgba(59,179,188,0.1) !important;
}
.fa_card_icon svg path:last-child {
  fill: #3bb3bc !important;
}
.fa_card_title {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #888 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 4px !important;
}
.fa_card_value {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #1A1A1A !important;
}

/* ── Boxed Sections ──────────────────────────────────────── */
.fa_boxed_section {
  background: #fff !important;
  border: 1px solid #f0f0f0 !important;
  border-radius: 14px !important;
  padding: 24px !important;
}

/* ── Affiliate Link Input ────────────────────────────────── */
.fa_text_copier .el-input__wrapper {
  background: #fafafa !important;
  border: 1.5px solid #e0e0e0 !important;
  border-radius: 10px 0 0 10px !important;
  padding: 10px 14px !important;
  box-shadow: none !important;
}
.fa_text_copier .el-input__inner {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 13px !important;
  color: #1A1A1A !important;
}
.fa_text_copier .el-input-group__append {
  background: #f59301 !important;
  border: none !important;
  border-radius: 0 10px 10px 0 !important;
  padding: 10px 16px !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}
.fa_text_copier .el-input-group__append:hover {
  background: #e08600 !important;
}
.fa_text_copier .fa_copy_icon,
.fa_text_copier .el-input-group__append svg {
  color: #fff !important;
  fill: #fff !important;
  width: 18px !important;
  height: 18px !important;
}
.fa_text_copier .fa_help_text,
.fa_links .fa_help_text {
  margin-top: 10px !important;
}
.fa_links .fa_help_text p {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 13px !important;
  color: #888 !important;
}

/* ── QR Code Widget ──────────────────────────────────────── */
.fa_qr_code_widget {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  margin-top: 20px !important;
  padding-top: 20px !important;
  border-top: 1px solid #f0f0f0 !important;
}
.fa_qr_code_preview canvas {
  border-radius: 10px !important;
  border: 1px solid #f0f0f0 !important;
}
.fa_qr_code_info p {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 13px !important;
  color: #1A1A1A !important;
  margin-bottom: 12px !important;
}
.fa_download_button,
.fa_primary_button {
  background: #3bb3bc !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 18px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}
.fa_download_button:hover,
.fa_primary_button:hover {
  background: #2f9da5 !important;
}
.fa_download_button .el-icon,
.fa_download_button svg {
  color: #fff !important;
  fill: #fff !important;
  width: 14px !important;
  height: 14px !important;
}

/* ── Recent Referrals Empty State ────────────────────────── */
.fa_boxed_section p {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px !important;
  color: #888 !important;
  padding: 16px 20px !important;
}

/* ── Portal Responsive: Tablet ───────────────────────────── */
@media (max-width: 960px) {
  .fa_cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ── Portal Responsive: Mobile ───────────────────────────── */
@media (max-width: 640px) {
  .fa_cards {
    grid-template-columns: 1fr !important;
  }
  .fla_header_nav {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex-wrap: nowrap !important;
    padding-bottom: 2px !important;
  }
  .fla_header_nav .nav_item a {
    padding: 12px 14px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }
  .fa_qr_code_widget {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .fa_card_value {
    font-size: 18px !important;
  }
}


/* ══════════════════════════════════════════════════════════
   PART 4 — HIDE PAGE SECTIONS WHEN PORTAL IS ACTIVE
   JS adds .bmg-portal-active to <body> when #fa-customer-portal
   is detected. Only hides specific bmg- sections, NOT their
   Elementor parent containers.
   ══════════════════════════════════════════════════════════ */

/* ── Hide marketing sections ─────────────────────────────── */
body.bmg-portal-active .bmg-hero,
body.bmg-portal-active .bmg-benefits,
body.bmg-portal-active .bmg-how,
body.bmg-portal-active .bmg-form-header,
body.bmg-portal-active .bmg-sidebar,
body.bmg-portal-active .bmg-faq,
body.bmg-portal-active .bmg-cta {
  display: none !important;
}

/* ── Hide header Login/Register buttons ──────────────────── */
body.bmg-portal-active .bmg-header-link--login,
body.bmg-portal-active .bmg-header-link--register {
  display: none !important;
}

/* ── Make the form/portal section full-width ─────────────── */
body.bmg-portal-active .bmg-form-section {
  display: block !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 40px 24px !important;
}
body.bmg-portal-active .bmg-form-layout {
  display: block !important;
}
body.bmg-portal-active .bmg-form-card-wrap {
  max-width: 100% !important;
  width: 100% !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
}
