/* ============================================================
   MARKETPLACE FEE CALCULATOR – PREMIUM LIGHT THEME CSS
   Version: 3.0.0 | Updated: June 2026
   Brand: SellerCalc Pro by Technovita Solution
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

/* ── CSS Variables ── */
.mfc-wrap {
  --mfc-bg:            #f5f7fa;
  --mfc-bg-card:       #ffffff;
  --mfc-bg-input:      #f8fafc;
  --mfc-bg-hover:      #f0f4ff;
  --mfc-border:        #e4e9f0;
  --mfc-border-focus:  #4f46e5;
  --mfc-text:          #0f172a;
  --mfc-text-muted:    #475569;
  --mfc-text-dim:      #94a3b8;

  /* Brand palette */
  --mfc-brand:         #4f46e5;
  --mfc-brand-dark:    #3730a3;
  --mfc-brand-light:   #818cf8;
  --mfc-brand-bg:      rgba(79,70,229,.07);
  --mfc-accent:        #4f46e5;
  --mfc-accent-light:  #818cf8;

  /* Semantic colours */
  --mfc-green:         #059669;
  --mfc-green-bg:      rgba(5,150,105,.08);
  --mfc-red:           #dc2626;
  --mfc-red-bg:        rgba(220,38,38,.08);
  --mfc-amber:         #d97706;
  --mfc-amber-bg:      rgba(217,119,6,.08);
  --mfc-purple:        #7c3aed;
  --mfc-gold:          #d97706;

  /* Header gradient */
  --mfc-header-from:   #1e1b4b;
  --mfc-header-to:     #312e81;

  /* Shape & motion */
  --mfc-radius:        16px;
  --mfc-radius-sm:     10px;
  --mfc-radius-xs:     6px;
  --mfc-shadow-xs:     0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --mfc-shadow:        0 4px 16px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.05);
  --mfc-shadow-lg:     0 12px 40px rgba(15,23,42,.12), 0 4px 12px rgba(15,23,42,.07);
  --mfc-shadow-brand:  0 6px 24px rgba(79,70,229,.3);
  --mfc-font:          'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --mfc-font-mono:     'DM Mono', 'JetBrains Mono', monospace;
  --mfc-transition:    0.2s cubic-bezier(.4,0,.2,1);
}

/* ── Base Reset ── */
.mfc-wrap *,
.mfc-wrap *::before,
.mfc-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.mfc-wrap {
  font-family: var(--mfc-font);
  background: var(--mfc-bg);
  color: var(--mfc-text);
  border-radius: var(--mfc-radius);
  overflow: hidden;
  max-width: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
.mfc-header {
  background: linear-gradient(135deg, var(--mfc-header-from) 0%, var(--mfc-header-to) 50%, #4338ca 100%);
  padding: 2.75rem 2.5rem 2.25rem;
  position: relative;
  overflow: hidden;
}

/* Decorative orbs */
.mfc-header::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(129,140,248,.18) 0%, transparent 70%);
  pointer-events: none;
}
.mfc-header::after {
  content: '';
  position: absolute;
  bottom: -60px; left: 30%;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(167,139,250,.12) 0%, transparent 70%);
  pointer-events: none;
}

.mfc-header-inner { position: relative; z-index: 1; max-width: 900px; }

/* ── LOGO BADGE ── */
.mfc-logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 1.25rem;
}

.mfc-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mfc-logo-text {
  font-size: .8rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 100px;
  padding: 4px 12px 4px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.mfc-logo-text::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 6px #34d399;
}

.mfc-main-title {
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
  letter-spacing: -.02em;
}

.mfc-title-badge {
  font-size: .72rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  padding: 4px 12px;
  border-radius: 100px;
  vertical-align: middle;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mfc-subtitle {
  font-size: .97rem;
  color: rgba(255,255,255,.72);
  max-width: 620px;
  margin-bottom: 1.4rem;
  line-height: 1.7;
  font-weight: 400;
}

.mfc-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.mfc-trust-item {
  font-size: .72rem;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.1);
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,.15);
  font-weight: 600;
  backdrop-filter: blur(4px);
}

/* ── SECTION TITLE ── */
.mfc-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--mfc-text);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  letter-spacing: -.01em;
}

.mfc-step-num {
  width: 30px; height: 30px;
  background: linear-gradient(135deg, var(--mfc-brand), var(--mfc-brand-dark));
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(79,70,229,.35);
}

/* ── INPUTS SECTION ── */
.mfc-inputs-section {
  padding: 2.25rem 2.5rem;
  background: var(--mfc-bg);
}

.mfc-inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}

.mfc-field-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.mfc-label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--mfc-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  gap: .35rem;
}

.mfc-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px; height: 15px;
  background: var(--mfc-border);
  border: 1px solid var(--mfc-border);
  border-radius: 50%;
  font-size: .6rem;
  color: var(--mfc-text-dim);
  cursor: help;
  position: relative;
  font-weight: 700;
}

.mfc-tooltip:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #e2e8f0;
  font-size: .7rem;
  font-weight: 400;
  padding: 7px 11px;
  border-radius: var(--mfc-radius-xs);
  white-space: nowrap;
  z-index: 100;
  pointer-events: none;
  box-shadow: var(--mfc-shadow-lg);
  max-width: 220px;
  white-space: normal;
  text-align: center;
  min-width: 160px;
}

.mfc-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.mfc-input-currency .mfc-currency-symbol {
  position: absolute;
  left: 13px;
  color: var(--mfc-brand);
  font-size: .9rem;
  font-weight: 700;
  pointer-events: none;
}

.mfc-input-suffix {
  position: absolute;
  right: 13px;
  color: var(--mfc-text-dim);
  font-size: .78rem;
  pointer-events: none;
  font-weight: 600;
}

.mfc-input, .mfc-select {
  width: 100%;
  background: var(--mfc-bg-card);
  border: 1.5px solid var(--mfc-border);
  border-radius: var(--mfc-radius-sm);
  color: var(--mfc-text);
  font-family: var(--mfc-font);
  font-size: .93rem;
  padding: .68rem 1rem;
  transition: border-color var(--mfc-transition), box-shadow var(--mfc-transition), background var(--mfc-transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: var(--mfc-shadow-xs);
  font-weight: 500;
}

.mfc-input-currency .mfc-input { padding-left: 2.3rem; }
.mfc-input-wrap .mfc-input:not(.mfc-input-currency .mfc-input) { padding-right: 2.5rem; }

.mfc-input:focus, .mfc-select:focus {
  border-color: var(--mfc-border-focus);
  box-shadow: 0 0 0 3px rgba(79,70,229,.15), var(--mfc-shadow-xs);
  background: #fff;
}

.mfc-input::placeholder { color: var(--mfc-text-dim); }

.mfc-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.mfc-field-hint {
  font-size: .7rem;
  color: var(--mfc-text-dim);
  font-weight: 500;
}

/* ── MARKETPLACE CHIPS ── */
.mfc-marketplace-selector {
  background: var(--mfc-bg-card);
  border: 1.5px solid var(--mfc-border);
  border-radius: var(--mfc-radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--mfc-shadow-xs);
}

.mfc-selector-heading {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--mfc-text-muted);
  margin-bottom: 1rem;
}

.mfc-marketplace-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.mfc-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem 1rem;
  border-radius: 10px;
  border: 1.5px solid var(--mfc-border);
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--mfc-transition);
  background: #fff;
  color: var(--mfc-text-muted);
  user-select: none;
  box-shadow: var(--mfc-shadow-xs);
}

.mfc-chip input[type="checkbox"] { display: none; }

.mfc-chip--active,
.mfc-chip:has(input:checked) {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
}

.mfc-chip--amazon.mfc-chip--active, .mfc-chip--amazon:has(input:checked) { background: #ff9900; color: #000; }
.mfc-chip--flipkart.mfc-chip--active, .mfc-chip--flipkart:has(input:checked) { background: #2874f0; }
.mfc-chip--myntra.mfc-chip--active, .mfc-chip--myntra:has(input:checked) { background: #ff3f6c; }
.mfc-chip--meesho.mfc-chip--active, .mfc-chip--meesho:has(input:checked) { background: #9b59b6; }
.mfc-chip--ajio.mfc-chip--active, .mfc-chip--ajio:has(input:checked) { background: #1a1a2e; color: #fff; border: 1.5px solid #555; }
.mfc-chip--jiomart.mfc-chip--active, .mfc-chip--jiomart:has(input:checked) { background: #0066cc; }
.mfc-chip--snapdeal.mfc-chip--active, .mfc-chip--snapdeal:has(input:checked) { background: #e40000; }
.mfc-chip--etsy.mfc-chip--active, .mfc-chip--etsy:has(input:checked) { background: #f16521; }
.mfc-chip--ebay.mfc-chip--active, .mfc-chip--ebay:has(input:checked) { background: #0064d2; }
.mfc-chip--shopify.mfc-chip--active, .mfc-chip--shopify:has(input:checked) { background: #5a8a3c; }

.mfc-chip:not(.mfc-chip--active):not(:has(input:checked)):hover {
  border-color: var(--mfc-brand-light);
  color: var(--mfc-brand);
  background: var(--mfc-brand-bg);
}

/* ── CTA ROW ── */
.mfc-cta-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
}

.mfc-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .72rem 1.6rem;
  border-radius: var(--mfc-radius-sm);
  font-family: var(--mfc-font);
  font-size: .88rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--mfc-transition);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: -.01em;
}

.mfc-btn:focus-visible {
  outline: 3px solid var(--mfc-brand);
  outline-offset: 3px;
}

.mfc-btn--primary {
  background: linear-gradient(135deg, var(--mfc-brand) 0%, var(--mfc-brand-dark) 100%);
  color: #fff;
  box-shadow: var(--mfc-shadow-brand);
  font-size: .95rem;
  padding: .82rem 2.25rem;
  border-radius: var(--mfc-radius-sm);
  position: relative;
  overflow: hidden;
}

.mfc-btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.1), transparent);
  opacity: 0;
  transition: opacity var(--mfc-transition);
}

.mfc-btn--primary:hover::before { opacity: 1; }

.mfc-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(79,70,229,.4);
}

.mfc-btn--primary:active { transform: translateY(0); }

.mfc-btn--secondary {
  background: #fff;
  color: var(--mfc-text-muted);
  border: 1.5px solid var(--mfc-border);
  box-shadow: var(--mfc-shadow-xs);
}

.mfc-btn--secondary:hover {
  background: var(--mfc-brand-bg);
  color: var(--mfc-brand);
  border-color: var(--mfc-brand-light);
  box-shadow: var(--mfc-shadow);
}

.mfc-btn--ghost {
  background: transparent;
  color: var(--mfc-text-muted);
  border: 1.5px solid var(--mfc-border);
}

.mfc-btn--ghost:hover {
  background: #fff;
  color: var(--mfc-text);
  box-shadow: var(--mfc-shadow-xs);
}

.mfc-btn-icon { font-size: 1.1em; }

/* ── RESULTS SECTION ── */
.mfc-results {
  padding: 2.25rem 2.5rem;
  border-top: 2px solid var(--mfc-border);
  background: var(--mfc-bg);
  animation: mfc-fade-in .35s ease;
}

@keyframes mfc-fade-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── WINNER BANNER ── */
.mfc-winner-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(5,150,105,.07), rgba(5,150,105,.03));
  border: 1.5px solid rgba(5,150,105,.25);
  border-radius: var(--mfc-radius);
  padding: 1.4rem 1.75rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(5,150,105,.1);
}

.mfc-winner-crown { font-size: 2.2rem; flex-shrink: 0; }

.mfc-winner-text { flex: 1 1 auto; }

.mfc-winner-label {
  display: block;
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--mfc-text-dim);
  margin-bottom: .2rem;
  font-weight: 700;
}

.mfc-winner-name {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--mfc-green);
  letter-spacing: -.02em;
}

.mfc-winner-stats { display: flex; gap: 1.75rem; flex-wrap: wrap; }

.mfc-winner-stat {
  font-size: .83rem;
  color: var(--mfc-text-muted);
  font-weight: 500;
}

.mfc-winner-stat strong {
  color: var(--mfc-green);
  font-weight: 800;
}

/* ── SUMMARY PILLS ── */
.mfc-summary-pills {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.mfc-pill {
  background: #fff;
  border: 1.5px solid var(--mfc-border);
  border-radius: var(--mfc-radius-sm);
  padding: .65rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .18rem;
  min-width: 120px;
  box-shadow: var(--mfc-shadow-xs);
}

.mfc-pill-label {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--mfc-text-dim);
  font-weight: 700;
}

.mfc-pill-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--mfc-text);
  font-family: var(--mfc-font-mono);
}

/* ── TABLE ── */
.mfc-table-wrap {
  overflow-x: auto;
  border-radius: var(--mfc-radius);
  border: 1.5px solid var(--mfc-border);
  margin-bottom: 2rem;
  background: var(--mfc-bg-card);
  box-shadow: var(--mfc-shadow);
}

.mfc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
  white-space: nowrap;
}

.mfc-th {
  background: #f8fafc;
  color: var(--mfc-text-muted);
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .9rem 1rem;
  text-align: right;
  font-weight: 800;
  border-bottom: 1.5px solid var(--mfc-border);
  position: sticky;
  top: 0;
}

.mfc-th--name { text-align: left; min-width: 130px; }
.mfc-th--total { color: var(--mfc-amber); }
.mfc-th--net { color: var(--mfc-brand); }
.mfc-th--profit { color: var(--mfc-green); }

.mfc-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background var(--mfc-transition);
}

.mfc-table tbody tr:hover { background: #fafbff; }
.mfc-table tbody tr:last-child { border-bottom: none; }

.mfc-table tbody tr.mfc-row--winner {
  background: rgba(5,150,105,.04);
  border-left: 3px solid var(--mfc-green);
}

.mfc-table tbody tr.mfc-row--worst {
  background: rgba(220,38,38,.025);
}

.mfc-td {
  padding: .82rem 1rem;
  text-align: right;
  color: var(--mfc-text-muted);
  font-family: var(--mfc-font-mono);
  font-size: .79rem;
}

.mfc-td--name {
  text-align: left;
  font-family: var(--mfc-font);
  font-weight: 800;
  font-size: .88rem;
  color: var(--mfc-text);
}

.mfc-td--name .mfc-mkt-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.mfc-td--name .mfc-rank-badge {
  font-size: .62rem;
  padding: 2px 8px;
  border-radius: 100px;
  font-weight: 800;
  font-family: var(--mfc-font);
}

.mfc-rank-1 { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.mfc-rank-2 { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; }
.mfc-rank-3 { background: linear-gradient(135deg, #c2855a, #b45309); color: #fff; }

.mfc-td--total { color: var(--mfc-amber); font-weight: 700; }
.mfc-td--net { color: var(--mfc-brand); font-weight: 700; }
.mfc-td--profit { font-weight: 800; }
.mfc-td--positive { color: var(--mfc-green); }
.mfc-td--negative { color: var(--mfc-red); }

/* ── CHARTS ── */
.mfc-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.mfc-chart-card {
  background: #fff;
  border: 1.5px solid var(--mfc-border);
  border-radius: var(--mfc-radius);
  padding: 1.4rem;
  box-shadow: var(--mfc-shadow);
}

.mfc-chart-title {
  font-size: .72rem;
  font-weight: 800;
  color: var(--mfc-text-muted);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 1.1rem;
}

.mfc-bar-chart {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.mfc-bar-row {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.mfc-bar-label {
  font-size: .73rem;
  font-weight: 700;
  color: var(--mfc-text-muted);
  width: 80px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mfc-bar-track {
  flex: 1;
  background: #f1f5f9;
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
}

.mfc-bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width .7s cubic-bezier(.4,0,.2,1);
  min-width: 4px;
}

.mfc-bar-value {
  font-size: .7rem;
  color: var(--mfc-text-muted);
  font-family: var(--mfc-font-mono);
  width: 65px;
  text-align: right;
  flex-shrink: 0;
  font-weight: 500;
}

/* ── RANKING CARDS ── */
.mfc-rankings { margin-bottom: 2rem; }

.mfc-ranking-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.mfc-rank-card {
  background: #fff;
  border: 1.5px solid var(--mfc-border);
  border-radius: var(--mfc-radius);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  transition: transform var(--mfc-transition), box-shadow var(--mfc-transition);
  box-shadow: var(--mfc-shadow-xs);
}

.mfc-rank-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--mfc-shadow);
}

.mfc-rank-card--gold   { border-left: 4px solid #d97706; }
.mfc-rank-card--silver { border-left: 4px solid #94a3b8; }
.mfc-rank-card--bronze { border-left: 4px solid #b45309; }

.mfc-rank-card-position {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--mfc-text-dim);
  font-weight: 800;
}

.mfc-rank-card-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--mfc-text);
  letter-spacing: -.01em;
}

.mfc-rank-card-profit {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--mfc-font-mono);
  color: var(--mfc-green);
}

.mfc-rank-card-margin {
  font-size: .76rem;
  color: var(--mfc-text-muted);
  font-weight: 500;
}

.mfc-rank-card-fee {
  font-size: .73rem;
  color: var(--mfc-red);
  font-weight: 500;
}

/* ── RETURN IMPACT ── */
.mfc-return-impact { margin-bottom: 2rem; }

/* ── ACTIONS ── */
.mfc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

/* ── DISCLAIMER ── */
.mfc-disclaimer {
  font-size: .71rem;
  color: var(--mfc-text-dim);
  border-top: 1.5px solid var(--mfc-border);
  padding-top: 1rem;
  line-height: 1.7;
  font-weight: 500;
}

/* ── SEO CONTENT SECTION ── */
.mfc-content {
  padding: 2.75rem 2.5rem;
  border-top: 2px solid var(--mfc-border);
  background: #fff;
  max-width: 1200px;
}

.mfc-content-h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--mfc-text);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--mfc-border);
  letter-spacing: -.02em;
}

.mfc-content-h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--mfc-text);
  margin: 1.75rem 0 .5rem;
  letter-spacing: -.01em;
}

.mfc-content p {
  font-size: .9rem;
  color: var(--mfc-text-muted);
  line-height: 1.8;
  margin-bottom: .75rem;
}

.mfc-content strong { color: var(--mfc-text); font-weight: 700; }

/* ── FAQ ── */
.mfc-faq { margin-top: 2rem; }

.mfc-faq-item {
  border: 1.5px solid var(--mfc-border);
  border-radius: var(--mfc-radius-sm);
  margin-bottom: .6rem;
  overflow: hidden;
  box-shadow: var(--mfc-shadow-xs);
}

.mfc-faq-q {
  font-size: .88rem;
  font-weight: 700;
  color: var(--mfc-text);
  padding: 1rem 1.3rem;
  margin: 0;
  cursor: pointer;
  background: #fff;
  position: relative;
  transition: background var(--mfc-transition);
  letter-spacing: -.01em;
}

.mfc-faq-q:hover { background: #fafbff; }

.mfc-faq-q::after {
  content: '+';
  position: absolute;
  right: 1.3rem;
  top: 50%; transform: translateY(-50%);
  font-size: 1.15rem;
  color: var(--mfc-brand);
  font-weight: 700;
  transition: transform var(--mfc-transition);
}

.mfc-faq-item.mfc-faq--open .mfc-faq-q::after {
  content: '−';
}

.mfc-faq-a {
  display: none;
  padding: .8rem 1.3rem 1rem;
  border-top: 1.5px solid var(--mfc-border);
  background: #fafbff;
}

.mfc-faq-item.mfc-faq--open .mfc-faq-a { display: block; }

.mfc-faq-a p {
  font-size: .87rem;
  color: var(--mfc-text-muted);
  line-height: 1.75;
  margin: 0;
}

/* ── LOADING STATE ── */
.mfc-btn--loading {
  opacity: .75;
  pointer-events: none;
  position: relative;
}

.mfc-btn--loading::after {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mfc-spin .6s linear infinite;
  margin-left: .5rem;
}

@keyframes mfc-spin {
  to { transform: rotate(360deg); }
}

/* ── VALIDATION ── */
.mfc-input.mfc-input--error { border-color: var(--mfc-red); }
.mfc-error-msg {
  font-size: .7rem;
  color: var(--mfc-red);
  margin-top: .2rem;
  font-weight: 600;
}

/* ── SHARE MODAL ── */
.mfc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  animation: mfc-fade-in .2s ease;
  backdrop-filter: blur(4px);
}

.mfc-modal {
  background: #fff;
  border: 1.5px solid var(--mfc-border);
  border-radius: var(--mfc-radius);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--mfc-shadow-lg);
}

.mfc-modal h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--mfc-text);
  letter-spacing: -.01em;
}

.mfc-modal-url {
  background: var(--mfc-bg-input);
  border: 1.5px solid var(--mfc-border);
  border-radius: var(--mfc-radius-sm);
  padding: .68rem 1rem;
  font-family: var(--mfc-font-mono);
  font-size: .78rem;
  color: var(--mfc-text-muted);
  width: 100%;
  word-break: break-all;
  margin-bottom: 1rem;
}

.mfc-modal-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .mfc-header { padding: 1.75rem 1.25rem 1.5rem; }
  .mfc-inputs-section,
  .mfc-results,
  .mfc-content { padding: 1.5rem 1.1rem; }
  .mfc-inputs-grid { grid-template-columns: 1fr; }
  .mfc-table { font-size: .75rem; }
  .mfc-th, .mfc-td { padding: .65rem .75rem; }
  .mfc-actions { gap: .5rem; }
  .mfc-btn { padding: .65rem 1.1rem; font-size: .82rem; }
  .mfc-btn--primary { font-size: .9rem; }
  .mfc-charts-grid { grid-template-columns: 1fr; }
  .mfc-ranking-cards { grid-template-columns: repeat(2, 1fr); }
  .mfc-winner-banner { padding: 1rem 1.25rem; }
}

@media (max-width: 480px) {
  .mfc-main-title { font-size: 1.45rem; }
  .mfc-ranking-cards { grid-template-columns: 1fr; }
  .mfc-summary-pills { gap: .5rem; }
  .mfc-pill { min-width: 100px; }
}

/* ── Print ── */
@media print {
  .mfc-header,
  .mfc-inputs-section,
  .mfc-actions,
  .mfc-content { display: none !important; }
  .mfc-results { display: block !important; padding: 0; }
  .mfc-table { font-size: .7rem; }
  .mfc-wrap { background: #fff; color: #000; }
}
