/* -- MFV Add-On Storefront -- */
:root {
  --mfv-as-purple: var(--mfv-secondary-alt, #7B35D8);
  --mfv-as-orange: #F5842A;
  --mfv-as-teal:   var(--mfv-primary, #0e7490);
  --mfv-as-bg:     var(--mfv-slate-50, #f8fafc);
  --mfv-as-card:   #ffffff;
  --mfv-as-border: var(--mfv-slate-200, #e2e8f0);
  --mfv-as-text:   var(--mfv-slate-800, #1e293b);
  --mfv-as-muted:  var(--mfv-slate-500, #64748b);
  --mfv-as-radius: 12px;
}

/* -- Boost panel (Surface 1) -- */
.mfv-boost-panel {
  background: var(--mfv-as-card);
  border: 1px solid var(--mfv-as-border);
  border-radius: var(--mfv-as-radius);
  padding: 18px 20px;
  margin: 16px 0;
}
.mfv-boost-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mfv-boost-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
.mfv-boost-card {
  border: 1.5px solid var(--mfv-as-border);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: border-color .15s;
}
.mfv-boost-card:hover { border-color: var(--mfv-as-purple); }
.mfv-boost-card--active { border-color: var(--mfv-as-teal); background: #f0fdfa; }
.mfv-boost-card-icon { font-size: 24px; }
.mfv-boost-card-name { font-size: 12px; font-weight: 600; color: var(--mfv-as-text); }
.mfv-boost-card-price { font-size: 16px; font-weight: 700; color: var(--mfv-as-purple); }
.mfv-boost-card-dur { font-size: 11px; color: var(--mfv-as-muted); }
.mfv-boost-card-status { font-size: 11px; font-weight: 700; color: var(--mfv-as-teal); }
.mfv-boost-card-btn {
  padding: 5px 14px;
  border-radius: 7px;
  background: var(--mfv-as-purple);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 4px;
  transition: opacity .12s;
}
.mfv-boost-card-btn:hover { opacity: .88; color: #fff; }
.mfv-boost-see-all {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--mfv-as-teal);
  text-decoration: none;
}

/* -- Full catalog (Surface 2 + 4) -- */
.mfv-addon-full-catalog h3 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.mfv-addon-section { margin-bottom: 24px; }
.mfv-addon-section h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.mfv-addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.mfv-addon-card {
  border: 1.5px solid var(--mfv-as-border);
  border-radius: var(--mfv-as-radius);
  padding: 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, box-shadow .15s;
}
.mfv-addon-card:hover { border-color: var(--mfv-as-purple); box-shadow: 0 4px 16px rgba(var(--mfv-secondary-alt-rgb, 123,53,216),.08); }
.mfv-addon-card--active { border-color: var(--mfv-as-teal); background: #f0fdfa; }
.mfv-addon-badge {
  position: absolute;
  top: -8px;
  right: 12px;
  background: var(--mfv-as-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
}
.mfv-addon-card-icon { font-size: 28px; margin-bottom: 8px; }
.mfv-addon-card-title { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.mfv-addon-card-desc { font-size: 12px; color: var(--mfv-as-muted); line-height: 1.5; flex: 1; margin: 0 0 12px; }
.mfv-addon-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mfv-addon-card-price { font-size: 16px; font-weight: 700; color: var(--mfv-as-purple); }
.mfv-addon-card-price small { font-size: 11px; color: var(--mfv-as-muted); font-weight: 400; display: block; }
.mfv-addon-card-btn {
  padding: 7px 16px;
  border-radius: 8px;
  background: var(--mfv-as-purple);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.mfv-addon-card-btn:hover { opacity: .88; color: #fff; }
.mfv-addon-card-active { font-size: 12px; font-weight: 700; color: var(--mfv-as-teal); }
.mfv-addon-card-locked { font-size: 11px; color: var(--mfv-as-muted); }
.mfv-addon-active-bar { background: #f0fdfa; border: 1px solid #99f6e4; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; }
.mfv-addon-active-chip { background: #ccfbf1; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; }

/* -- Pricing page section (Surface 3) -- */
.mfv-addon-pricing-section { max-width: 1100px; margin: 48px auto 0; padding: 0 16px; }
.mfv-addon-pricing-header { text-align: center; margin-bottom: 28px; }
.mfv-addon-pricing-header h2 { font-size: 24px; font-weight: 700; margin: 0 0 6px; }
.mfv-addon-pricing-header p { font-size: 14px; color: var(--mfv-as-muted); margin: 0; }
.mfv-addon-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.mfv-addon-pricing-card {
  text-align: center;
  padding: 24px 18px;
  border: 1.5px solid var(--mfv-as-border);
  border-radius: var(--mfv-as-radius);
  background: var(--mfv-as-card);
  position: relative;
}
.mfv-addon-pricing-card-icon { font-size: 32px; margin-bottom: 10px; }
.mfv-addon-pricing-card h4 { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.mfv-addon-pricing-card p { font-size: 12px; color: var(--mfv-as-muted); line-height: 1.5; margin: 0 0 12px; }
.mfv-addon-pricing-card-price { font-size: 22px; font-weight: 700; color: var(--mfv-as-purple); }
.mfv-addon-pricing-card-price small { font-size: 13px; color: var(--mfv-as-muted); font-weight: 400; }
.mfv-addon-boost-strip { background: var(--mfv-as-bg); border-radius: var(--mfv-as-radius); padding: 18px 20px; margin-bottom: 16px; }
.mfv-addon-boost-strip h4 { font-size: 13px; font-weight: 700; margin: 0 0 10px; }
.mfv-addon-boost-strip-items { display: flex; gap: 20px; flex-wrap: wrap; }
.mfv-addon-boost-strip-item { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.mfv-addon-pricing-cta { text-align: center; font-size: 13px; color: var(--mfv-as-muted); margin-top: 12px; }
.mfv-addon-pricing-cta a { color: var(--mfv-as-teal); font-weight: 600; text-decoration: none; }

/* -- My Account (Surface 4) -- */
.mfv-addon-account h2 { font-size: 20px; font-weight: 700; margin-bottom: 18px; }
.mfv-addon-account h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.mfv-addon-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 24px; }
.mfv-addon-table th, .mfv-addon-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--mfv-as-border); }
.mfv-addon-table th { font-size: 11px; text-transform: uppercase; color: var(--mfv-as-muted); font-weight: 600; }
.mfv-addon-expiring { color: var(--mfv-as-orange); font-weight: 600; font-size: 11px; }
.mfv-addon-empty { color: var(--mfv-as-muted); font-size: 14px; }
.mfv-addon-listing-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.mfv-addon-listing-chip {
  padding: 8px 14px;
  border: 1.5px solid var(--mfv-as-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mfv-as-text);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .12s;
}
.mfv-addon-listing-chip:hover { border-color: var(--mfv-as-purple); }
.mfv-addon-listing-chip small { display: block; font-size: 11px; color: var(--mfv-as-muted); font-weight: 400; }
.mfv-addon-listing-detail { margin-bottom: 16px; border: 1px solid var(--mfv-as-border); border-radius: var(--mfv-as-radius); }
.mfv-addon-listing-summary {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mfv-addon-listing-summary::-webkit-details-marker { display: none; }
.mfv-addon-listing-summary::after { content: '\25B8'; transition: transform .15s; }
details[open] > .mfv-addon-listing-summary::after { transform: rotate(90deg); }
details[open] > .mfv-addon-listing-summary { border-bottom: 1px solid var(--mfv-as-border); }
.mfv-addon-listing-detail .mfv-addon-full-catalog { padding: 16px 18px; }

/* -- Upsell prompts (Surface 5) -- */
.mfv-upsell-prompt {
  background: linear-gradient(135deg, #f5f3ff 0%, var(--mfv-warning-bg) 100%);
  border: 1px solid #e9d5ff;
  border-radius: 10px;
  padding: 12px 40px 12px 16px;
  margin: 12px 0;
  font-size: 13px;
  position: relative;
}
.mfv-upsell-prompt p { margin: 0; }
.mfv-upsell-prompt a { color: var(--mfv-as-purple); font-weight: 700; text-decoration: none; }
.mfv-upsell-prompt a:hover { text-decoration: underline; }
.mfv-upsell-dismiss {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--mfv-as-muted);
  cursor: pointer;
  line-height: 1;
}

/* -- Subscription Dashboard Cards -- */
.mfv-addon-subs {
  margin: 28px 0;
}
.mfv-addon-subs h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 16px;
}
.mfv-addon-subs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.mfv-addon-subs__card {
  background: #fff;
  border: 1px solid var(--mfv-as-border, #e2e8f0);
  border-radius: 12px;
  padding: 16px;
  transition: box-shadow 0.2s;
}
.mfv-addon-subs__card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* Card header */
.mfv-addon-subs__card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.mfv-addon-subs__card-icon {
  flex-shrink: 0;
  line-height: 1;
}
.mfv-addon-subs__card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--mfv-as-text, #1e293b);
  flex: 1;
}

/* Status badges */
.mfv-addon-subs__status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.mfv-addon-subs__status--active {
  background: #dcfce7;
  color: #15803d;
}
.mfv-addon-subs__status--hold {
  background: var(--mfv-warning-bg);
  color: #92400e;
}
.mfv-addon-subs__status--cancel {
  background: #fee2e2;
  color: #991b1b;
}
.mfv-addon-subs__status--expired {
  background: var(--mfv-slate-100);
  color: var(--mfv-slate-500);
}
.mfv-addon-subs__status--pending {
  background: #e0f2fe;
  color: #0369a1;
}

/* Linked listing */
.mfv-addon-subs__card-listing {
  font-size: 13px;
  color: var(--mfv-as-muted, #64748b);
  margin-bottom: 12px;
}
.mfv-addon-subs__card-listing a {
  color: var(--mfv-as-teal, #0e7490);
  text-decoration: none;
  font-weight: 500;
}
/* Listing type badge on plan cards */
.mfv-addon-subs__card-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--plan-color, #94a3b8);
  color: #fff;
  margin-bottom: 12px;
}
/* Badge SVGs use currentColor — the badge text color (#fff) flows through */
.mfv-addon-subs__card-type-badge svg {
  flex-shrink: 0;
  color: #fff;
}

/* Price + details */
.mfv-addon-subs__card-details {
  margin-bottom: 14px;
}
.mfv-addon-subs__card-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--mfv-as-teal, #0e7490);
  margin-bottom: 4px;
}
.mfv-addon-subs__card-price span {
  font-size: 13px;
  font-weight: 500;
  color: var(--mfv-as-muted, #64748b);
}
.mfv-addon-subs__card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--mfv-as-muted, #64748b);
}
.mfv-addon-subs__card-meta strong {
  color: var(--mfv-as-text, #1e293b);
}

/* Action buttons */
.mfv-addon-subs__card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--mfv-slate-100);
}
.mfv-addon-subs__btn {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.mfv-addon-subs__btn--cancel {
  background: #fef2f2;
  color: var(--mfv-error);
  border: 1px solid #fecaca;
}
.mfv-addon-subs__btn--cancel:hover {
  background: #fee2e2;
  color: #b91c1c;
}
.mfv-addon-subs__btn--reactivate {
  background: var(--mfv-primary);
  color: #fff;
}
.mfv-addon-subs__btn--reactivate:hover {
  background: #0c6580;
  color: #fff;
}
.mfv-addon-subs__btn--renew {
  background: var(--mfv-primary);
  color: #fff;
}
.mfv-addon-subs__btn--renew:hover {
  background: #0c6580;
  color: #fff;
}
.mfv-addon-subs__btn--order {
  background: var(--mfv-slate-50);
  color: var(--mfv-as-muted, #64748b);
  border: 1px solid var(--mfv-as-border, #e2e8f0);
}
.mfv-addon-subs__btn--order:hover {
  background: var(--mfv-slate-100);
  color: var(--mfv-as-text, #1e293b);
}

/* Policy footer */
.mfv-addon-subs__policy {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 13px;
  color: #1e40af;
  line-height: 1.5;
  margin-top: 24px;
}
.mfv-addon-subs__policy svg {
  color: #3b82f6;
}

/* -- Subscription Dashboard Tab -- */
.mfv-addon-subs-dashboard {
  max-width: 1200px;
}
.mfv-addon-subs-dashboard__header {
  margin-bottom: 24px;
}
.mfv-addon-subs-dashboard__header h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--mfv-as-text, #1e293b);
}
.mfv-addon-subs-dashboard__subtitle {
  font-size: 14px;
  color: var(--mfv-as-muted, #64748b);
  margin: 0;
}

/* Stats row */
.mfv-addon-subs-dashboard__stats {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.mfv-addon-subs-dashboard__stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  background: var(--mfv-as-card, #fff);
  border: 1px solid var(--mfv-as-border, #e2e8f0);
  border-radius: 12px;
}
.mfv-addon-subs-dashboard__stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--mfv-as-teal, #0e7490);
}
.mfv-addon-subs-dashboard__stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--mfv-as-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* Section groups */
.mfv-addon-subs-dashboard__section {
  margin-bottom: 28px;
}
.mfv-addon-subs-dashboard__section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--mfv-as-text, #1e293b);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mfv-as-border, #e2e8f0);
}

/* Empty state */
.mfv-addon-subs-dashboard__empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--mfv-as-card, #fff);
  border: 2px dashed var(--mfv-as-border, #e2e8f0);
  border-radius: 16px;
  margin-bottom: 24px;
}
.mfv-addon-subs-dashboard__empty-icon {
  display: inline-flex;
  color: var(--mfv-as-muted, #64748b);
  margin-bottom: 12px;
}
.mfv-addon-subs-dashboard__empty h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--mfv-as-text, #1e293b);
  margin: 0 0 8px;
}
.mfv-addon-subs-dashboard__empty p {
  font-size: 14px;
  color: var(--mfv-as-muted, #64748b);
  margin: 0 0 20px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Browse link section */
.mfv-addon-subs-dashboard__browse {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--mfv-as-border, #e2e8f0);
}
.mfv-addon-subs-dashboard__browse h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--mfv-as-text, #1e293b);
  margin: 0 0 6px;
}
.mfv-addon-subs-dashboard__browse p {
  font-size: 14px;
  color: var(--mfv-as-muted, #64748b);
  margin: 0;
}
.mfv-addon-subs-dashboard__browse a {
  color: var(--mfv-as-teal, #0e7490);
  font-weight: 600;
}

/* -- Listing Plan Cards -- */
.mfv-addon-subs__card--plan {
  border-left: 3px solid var(--plan-color, #94a3b8);
}

/* Tier status badges */
.mfv-addon-subs__status--tier-free {
  background: var(--mfv-slate-100); color: var(--mfv-slate-600);
}
.mfv-addon-subs__status--tier-mid {
  background: #ecfdf5; color: var(--mfv-primary);
}
.mfv-addon-subs__status--tier-elite {
  background: #fff7ed; color: #c2410c;
}

/* Usage progress bar */
.mfv-addon-subs__plan-usage {
  margin: 6px 0 10px;
}
.mfv-addon-subs__plan-usage-bar {
  height: 6px;
  background: var(--mfv-slate-200);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 5px;
}
.mfv-addon-subs__plan-usage-fill {
  height: 100%;
  background: var(--mfv-as-teal, #0e7490);
  border-radius: 3px;
  transition: width 0.3s;
}
.mfv-addon-subs__plan-usage-fill--full {
  background: var(--mfv-error-light);
}
.mfv-addon-subs__plan-usage-text {
  font-size: 12px;
  color: var(--mfv-as-muted, #64748b);
}

/* Feature list */
.mfv-addon-subs__plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.mfv-addon-subs__plan-features li {
  font-size: 12px;
  color: var(--mfv-as-muted, #64748b);
  padding: 2px 0 2px 18px;
  position: relative;
}
.mfv-addon-subs__plan-features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--mfv-as-teal, #0e7490);
  font-weight: 700;
}
.mfv-addon-subs__plan-features li.mfv-addon-subs__plan-inherit {
  padding-left: 0;
  font-style: italic;
  color: var(--mfv-as-teal, #0e7490);
  font-weight: 600;
}
.mfv-addon-subs__plan-features li.mfv-addon-subs__plan-inherit::before {
  content: none;
}

/* Upgrade button */
.mfv-addon-subs__btn--upgrade {
  background: #F5842A;
  color: #fff;
}
.mfv-addon-subs__btn--upgrade:hover {
  background: #e07422;
  color: #fff;
}

/* Add Listing button */
.mfv-addon-subs__btn--add-listing {
  background: #f0fdfa;
  color: var(--mfv-as-teal, #0e7490);
  border: 1px solid #99f6e4;
}
.mfv-addon-subs__btn--add-listing:hover {
  background: #ccfbf1;
}

/* Pending cancellation notice */
.mfv-addon-subs__plan-pending-cancel {
  font-size: 12px;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
}

/* Small text subscription links (cancel, reactivate) */
.mfv-addon-subs__plan-sub-links {
  display: flex;
  gap: 16px;
  padding-top: 8px;
}
.mfv-addon-subs__plan-cancel-link {
  font-size: 12px;
  color: var(--mfv-slate-400);
  text-decoration: none;
  transition: color 0.15s;
}
.mfv-addon-subs__plan-cancel-link:hover {
  color: var(--mfv-error);
  text-decoration: underline;
}
.mfv-addon-subs__plan-reactivate-link {
  font-size: 12px;
  color: var(--mfv-as-teal, #0e7490);
  text-decoration: none;
  font-weight: 600;
}
.mfv-addon-subs__plan-reactivate-link:hover {
  text-decoration: underline;
}
.mfv-addon-subs__plan-resubscribe-link {
  font-size: 12px;
  color: var(--mfv-as-teal, #0e7490);
  text-decoration: none;
  font-weight: 600;
}
.mfv-addon-subs__plan-resubscribe-link:hover {
  text-decoration: underline;
}
.mfv-addon-subs__plan-downgrade-link {
  font-size: 12px;
  color: #f59e0b;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}
.mfv-addon-subs__plan-downgrade-link:hover {
  color: var(--mfv-accent-dark);
  text-decoration: underline;
}

/* No-plan empty state */
.mfv-addon-subs__no-plan {
  text-align: center;
  padding: 36px 24px;
  background: linear-gradient(135deg, #f0fdfa 0%, #f0f9ff 100%);
  border: 2px dashed #99f6e4;
  border-radius: 16px;
  margin-bottom: 24px;
}

/* Collapsible accordions: chevron rotation */
details[open] > summary .mfv-plan-overlimit__chevron,
details[open] > summary .mfv-feat-chevron {
  transform: rotate(180deg);
}
details > summary::-webkit-details-marker { display: none; }
details > summary::marker { display: none; content: ''; }

/* Features list collapsible wrapper */
.mfv-addon-subs__plan-features-wrap {
  margin: 0 0 8px;
}

/* Over-limit listing picker */
.mfv-plan-overlimit {
  margin-top: 14px;
  padding: 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
}
.mfv-plan-overlimit__header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 0;
}
.mfv-plan-overlimit[open] > .mfv-plan-overlimit__header {
  margin-bottom: 6px;
}
.mfv-plan-overlimit__hint {
  font-size: 12px;
  color: #a16207;
  margin: 0 0 10px;
}
.mfv-plan-overlimit__list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mfv-plan-overlimit__item label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  transition: border-color 0.15s;
}
.mfv-plan-overlimit__item label:hover {
  border-color: #f59e0b;
}
.mfv-plan-overlimit__item input[type="checkbox"]:checked + .mfv-plan-overlimit__thumb,
.mfv-plan-overlimit__item input[type="checkbox"]:checked ~ .mfv-plan-overlimit__title {
  opacity: 0.5;
}
.mfv-plan-overlimit__thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.mfv-plan-overlimit__title {
  flex: 1;
  font-weight: 500;
  color: var(--mfv-slate-800);
}
.mfv-addon-subs__btn--hide-selected {
  background: #f59e0b;
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.mfv-addon-subs__btn--hide-selected:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.mfv-addon-subs__btn--hide-selected:hover:not(:disabled) {
  background: var(--mfv-accent-dark);
}

/* Hidden listings section */
.mfv-plan-hidden {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--mfv-slate-50);
  border: 1px solid var(--mfv-slate-200);
  border-radius: 10px;
}
.mfv-plan-hidden__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--mfv-slate-600);
  margin: 0 0 4px;
}
.mfv-plan-hidden__hint {
  font-size: 12px;
  color: var(--mfv-slate-400);
  margin: 0 0 10px;
}
.mfv-plan-hidden__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mfv-plan-hidden__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid var(--mfv-slate-200);
  border-radius: 6px;
  font-size: 13px;
  color: var(--mfv-slate-500);
}
.mfv-plan-hidden__restore {
  background: none;
  border: none;
  color: var(--mfv-as-teal, #0e7490);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
}
.mfv-plan-hidden__restore:hover {
  text-decoration: underline;
}

/* Order history cards */
.mfv-oh-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  border-color: var(--mfv-slate-300);
}
@media (max-width: 640px) {
  .mfv-oh-card > div { flex-direction: column; }
  .mfv-oh-card > div > div:last-child { width: 100%; justify-content: flex-end; }
}

/* Add-on discovery (Power Up style) */
.mfv-addon-discover {
  background: linear-gradient(135deg, #f0fdfa 0%, #f0f9ff 100%);
  border: 1px solid #e0f2fe;
  border-radius: 16px;
  padding: 28px 24px;
}
.mfv-addon-discover__head h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--mfv-slate-800);
  margin: 0 0 6px;
}
.mfv-addon-discover__head p {
  font-size: 14px;
  color: var(--mfv-slate-500);
  margin: 0 0 20px;
}
.mfv-addon-discover__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mfv-as-teal, #0e7490);
  margin-bottom: 10px;
}
.mfv-addon-discover__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.mfv-addon-discover__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid var(--mfv-slate-200);
  border-radius: 12px;
  padding: 20px 14px 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
  height: 100%;
}
/* Pin the last child (button/badge) to the bottom of the card */
.mfv-addon-discover__card > :last-child {
  margin-top: auto;
}
/* Add spacing above the pinned button so desc doesn't crowd it */
.mfv-addon-discover__card .mfv-addon-discover__add-btn,
.mfv-addon-discover__card > span:last-child {
  margin-top: auto;
}
.mfv-addon-discover__card:hover {
  border-color: var(--mfv-as-teal, #0e7490);
  box-shadow: 0 2px 8px rgba(var(--mfv-primary-rgb, 14, 116, 144), 0.08);
}
/* Featured Spotlight card — premium visual treatment */
.mfv-addon-discover__card--featured {
  background: linear-gradient(160deg, #fffbeb 0%, #fff3d6 50%, #fffbeb 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  animation: mfv-featured-glow 3s ease-in-out infinite;
}
/* ::before not needed — gradient border handled by border+animation above */
.mfv-addon-discover__card--featured::before {
  display: none;
}
/* Shimmer sweep — left-to-right diagonal shine that repeats */
.mfv-addon-discover__card--featured::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255,255,255,0.50) 50%,
    transparent 80%
  );
  animation: mfv-shimmer 3.5s ease-in-out infinite 0.8s;
  pointer-events: none;
  z-index: 1;
}
.mfv-addon-discover__card--featured:hover {
  box-shadow: 0 6px 28px rgba(245,158,11,0.38), 0 0 0 1px rgba(245,158,11,0.22);
  border-color: var(--mfv-accent);
}
.mfv-addon-discover__card--featured .mfv-addon-discover__name {
  color: #92400e;
  position: relative;
  z-index: 2;
}
.mfv-addon-discover__card--featured .mfv-addon-discover__price {
  color: #b45309;
  position: relative;
  z-index: 2;
}
.mfv-addon-discover__card--featured .mfv-addon-discover__icon {
  filter: drop-shadow(0 2px 6px rgba(245,158,11,0.45));
  position: relative;
  z-index: 2;
}
.mfv-addon-discover__card--featured .mfv-addon-discover__desc {
  position: relative;
  z-index: 2;
}
.mfv-addon-discover__card--featured .mfv-addon-discover__add-btn {
  position: relative;
  z-index: 2;
}
.mfv-addon-discover__card--featured .mfv-addon-discover__badge {
  top: 8px;
  z-index: 2;
}
@keyframes mfv-featured-glow {
  0%, 100% {
    box-shadow: 0 2px 10px rgba(245,158,11,0.18), 0 0 0 0 rgba(245,158,11,0.08);
    border-color: #f59e0b;
  }
  50% {
    box-shadow: 0 4px 24px rgba(245,158,11,0.34), 0 0 0 3px rgba(245,158,11,0.10);
    border-color: var(--mfv-accent);
  }
}
@keyframes mfv-shimmer {
  0% { left: -80%; }
  100% { left: 130%; }
}

.mfv-addon-discover__card--locked {
  opacity: 0.6;
}
.mfv-addon-discover__badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: var(--mfv-accent);
  color: #fff;
}
.mfv-addon-discover__badge--rec {
  background: var(--mfv-as-teal, #0e7490);
}
.mfv-addon-discover__icon {
  font-size: 24px;
  margin-bottom: 8px;
}
.mfv-addon-discover__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--mfv-slate-800);
  margin-bottom: 4px;
}
.mfv-addon-discover__desc {
  font-size: 12px;
  color: var(--mfv-slate-500);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  flex: 1 1 auto;
}
.mfv-addon-discover__desc.mfv-desc-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.mfv-addon-discover__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--mfv-as-teal, #0e7490);
  margin-bottom: 8px;
}
/* Ensure consistent spacing between price and the bottom action */
.mfv-addon-discover__price + .mfv-addon-discover__add-btn,
.mfv-addon-discover__price + span,
.mfv-addon-discover__price + a {
  margin-top: auto;
  padding-top: 4px;
}
.mfv-addon-discover__duration {
  font-size: 12px;
  font-weight: 500;
  color: var(--mfv-slate-400);
}
.mfv-addon-discover__add-btn {
  display: block;
  width: 100%;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--mfv-as-teal, #0e7490);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s;
}
.mfv-addon-discover__add-btn:hover {
  background: #0c6377;
  color: #fff;
}
.mfv-addon-discover__locked {
  font-size: 11px;
  color: var(--mfv-slate-400);
  font-weight: 600;
}
.mfv-addon-discover__more {
  margin-top: 14px;
}
.mfv-addon-discover__more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid var(--mfv-slate-200);
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--mfv-slate-600);
  cursor: pointer;
  list-style: none;
}
.mfv-addon-discover__more-toggle::-webkit-details-marker { display: none; }
.mfv-addon-discover__more-toggle svg {
  transition: transform 0.2s;
}
details[open] > .mfv-addon-discover__more-toggle svg {
  transform: rotate(180deg);
}

/* -- Responsive -- */
@media (max-width: 640px) {
  .mfv-boost-cards { grid-template-columns: 1fr 1fr; }
  .mfv-addon-grid { grid-template-columns: 1fr; }
  .mfv-addon-pricing-grid { grid-template-columns: 1fr 1fr; }
  .mfv-addon-subs__grid { grid-template-columns: 1fr; }
  .mfv-addon-discover__grid { grid-template-columns: 1fr 1fr; }
  .mfv-addon-subs__card-meta { flex-direction: column; gap: 4px; }
  .mfv-addon-subs-dashboard__stats { flex-direction: column; gap: 10px; }
  .mfv-addon-subs-dashboard__stat { flex-direction: row; justify-content: center; gap: 8px; padding: 12px; }
  .mfv-addon-subs-dashboard__empty { padding: 32px 16px; }
}

/* ── Pricing table inside dashboard ─────────── */
.mfv-addon-subs-dashboard .mfv-pricing {
    margin: 0;
    max-width: 100%;
}
.mfv-addon-subs-dashboard .mfv-pricing__types {
    display: none; /* type picker hidden — dashboard tabs handle switching */
}
.mfv-addon-subs-dashboard .mfv-pricing__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.mfv-addon-subs-dashboard .mfv-pricing__card {
    padding: 28px 22px 22px;
}
.mfv-addon-subs-dashboard .mfv-pricing__plan-name {
    font-size: 18px;
}
.mfv-addon-subs-dashboard .mfv-pricing__amount {
    font-size: 36px;
}
.mfv-addon-subs-dashboard .mfv-pricing__features li {
    font-size: 14px;
}
.mfv-addon-subs-dashboard .mfv-billing-toggle {
    margin-bottom: 20px;
}
/* ── Listing type badge above pricing table ── */
.mfv-addon-subs__type-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--mfv-primary), #0c6577);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.mfv-addon-subs__type-badge svg {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}
@media (max-width: 768px) {
    .mfv-addon-subs-dashboard .mfv-pricing__grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto;
    }
}

/* ── Change Plan Button ─────────────────────────────────────────────────── */

.mfv-addon-subs__btn--change-plan {
    background: linear-gradient(135deg, var(--mfv-secondary) 0%, var(--mfv-secondary-dark) 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}
.mfv-addon-subs__btn--change-plan:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ── Plan Status Indicator ──────────────────────────────────────────────── */

.mfv-plan-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin: 8px 0 12px;
}
.mfv-plan-status__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.mfv-plan-status__label {
    font-weight: 600;
    color: #334155;
}
.mfv-plan-status__billing {
    color: var(--mfv-slate-500);
    font-size: 12px;
    margin-left: auto;
}

/* ── Change Plan Panel ──────────────────────────────────────────────────── */

.mfv-change-plan-panel {
    margin-top: 16px;
    border-top: 1px solid var(--mfv-slate-200);
    padding-top: 16px;
    animation: mfvSlideDown 0.25s ease-out;
}
@keyframes mfvSlideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 800px; }
}
.mfv-change-plan-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.mfv-change-plan-panel__header h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--mfv-slate-800);
}
.mfv-change-plan-panel__close {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--mfv-slate-400);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.mfv-change-plan-panel__close:hover {
    color: var(--mfv-slate-600);
}

/* Billing toggle */
.mfv-change-plan-panel__toggle {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    background: var(--mfv-slate-100);
    border-radius: 8px;
    padding: 3px;
    width: fit-content;
}
.mfv-billing-toggle {
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--mfv-slate-500);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}
.mfv-billing-toggle--active {
    background: #fff;
    color: var(--mfv-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.mfv-billing-toggle__save {
    font-size: 11px;
    color: var(--mfv-success);
    font-weight: 700;
}

/* Tier card grid */
.mfv-change-plan-panel__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 768px) {
    .mfv-change-plan-panel__grid {
        grid-template-columns: 1fr;
        max-width: 340px;
    }
}

/* Tier cards */
.mfv-tier-card {
    background: #fff;
    border: 2px solid var(--mfv-slate-200);
    border-radius: 12px;
    padding: 18px;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.mfv-tier-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.mfv-tier-card--current {
    border-color: var(--mfv-secondary);
    background: #faf5ff;
}
.mfv-tier-card--upgrade:hover {
    border-color: #22c55e;
}
.mfv-tier-card--downgrade:hover {
    border-color: #f59e0b;
}
.mfv-tier-card__popular {
    position: absolute;
    top: -10px;
    right: 14px;
    background: var(--mfv-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
}
.mfv-tier-card__tier {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--mfv-secondary);
    margin-bottom: 6px;
}
.mfv-tier-card__price {
    margin-bottom: 8px;
}
.mfv-tier-card__amount {
    font-size: 26px;
    font-weight: 800;
    color: var(--mfv-primary);
}
.mfv-tier-card__period {
    font-size: 13px;
    color: var(--mfv-slate-500);
    font-weight: 500;
}
.mfv-tier-card__limit {
    font-size: 13px;
    color: var(--mfv-slate-600);
    font-weight: 600;
    margin-bottom: 12px;
}
.mfv-tier-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    font-size: 12px;
    color: var(--mfv-slate-500);
}
.mfv-tier-card__features li {
    padding: 3px 0 3px 18px;
    position: relative;
}
.mfv-tier-card__features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: 700;
}
.mfv-tier-card__action {
    margin-top: auto;
}
.mfv-tier-card__current-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
.mfv-tier-card__btn {
    display: block;
    width: 100%;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.2s;
}
.mfv-tier-card__btn:hover {
    opacity: 0.9;
}
.mfv-tier-card__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.mfv-tier-card__btn--upgrade {
    background: #22c55e;
    color: #fff;
}
.mfv-tier-card__btn--downgrade {
    background: #f59e0b;
    color: #fff;
}
.mfv-tier-card__downgrade-warn {
    font-size: 11px;
    color: #92400e;
    margin: 6px 0 0;
    text-align: center;
}

/* Proration preview */
.mfv-proration-preview {
    font-size: 12px;
    color: var(--mfv-success);
    margin-top: 8px;
    text-align: center;
    min-height: 16px;
}
.mfv-proration-preview--loading {
    color: var(--mfv-slate-400);
}

/* Downgrade listing picker modal (inline) */
.mfv-downgrade-picker {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 16px;
    margin-top: 12px;
}
.mfv-downgrade-picker__title {
    font-size: 14px;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 8px;
}
.mfv-downgrade-picker__list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}
.mfv-downgrade-picker__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
}
.mfv-downgrade-picker__item label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.mfv-downgrade-picker__confirm {
    padding: 8px 20px;
    background: #f59e0b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.mfv-downgrade-picker__confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
