/* Marketplace Seller Fee Comparator — Stylesheet
   Unique Visual Identity: Modern E-Commerce Financial Matrix.
   Custom Variables Prefix: --mp- */

:root {
  --mp-navy: #0f172a;
  --mp-emerald: #059669;
  --mp-emerald-bg: rgba(5, 150, 105, 0.1);
  --mp-amber: #d97706;
  --mp-amber-bg: rgba(217, 119, 6, 0.1);
  --mp-danger: #dc2626;
  --mp-bg: #f8fafc;
  --mp-bg-card: #ffffff;
  --mp-bg-elevated: #f1f5f9;
  --mp-border: #e2e8f0;
  --mp-border-subtle: #edf2f7;
  --mp-text: #1e293b;
  --mp-text-muted: #64748b;
  --mp-radius: 8px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mp-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
}

.mp-breadcrumbs {
  font-size: 0.85rem;
  color: var(--mp-text-muted);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.mp-breadcrumbs a {
  color: var(--mp-emerald);
  text-decoration: none;
}

.mp-breadcrumbs a:hover {
  text-decoration: underline;
}

.mp-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--mp-navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.mp-subtitle {
  font-size: 1.05rem;
  color: var(--mp-text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Main */
.mp-main {
  flex: 1;
  padding: 2rem 0;
}

/* Split Layout */
.mp-split-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}

.mp-results-column {
  min-width: 0;
}

@media (max-width: 860px) {
  .mp-split-layout {
    grid-template-columns: 1fr;
  }
}

/* Common Card */
.mp-card {
  background: var(--mp-bg-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  margin-bottom: 1.5rem;
}

.mp-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--mp-navy);
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--mp-border-subtle);
  padding-bottom: 0.75rem;
}

/* Form Fields */
.mp-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.mp-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.mp-cur-sym {
  color: var(--mp-text-muted);
}

.mp-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mp-text);
}

.mp-input,
.mp-select {
  background: var(--mp-bg);
  border: 1px solid var(--mp-border);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--mp-navy);
  outline: none;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mp-input:focus,
.mp-select:focus {
  border-color: var(--mp-emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.mp-presets {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 1.25rem 0;
  border-top: 1px solid var(--mp-border-subtle);
  padding-top: 1rem;
}

.mp-preset-lbl {
  font-size: 0.8rem;
  color: var(--mp-text-muted);
  font-weight: 600;
}

.mp-chip {
  background: var(--mp-bg-elevated);
  border: 1px solid var(--mp-border);
  border-radius: 6px;
  color: var(--mp-text);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  text-align: left;
  transition: all 0.15s ease;
}

.mp-chip:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.mp-action-row {
  margin-top: 1.25rem;
}

.mp-btn-primary {
  width: 100%;
  background: var(--mp-emerald);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 1.25rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.15s ease, transform 0.1s ease;
}

.mp-btn-primary:hover {
  background: #047857;
  transform: translateY(-1px);
}

/* Winner Card */
.mp-winner-card {
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
  border: 2px solid #a7f3d0;
}

.mp-winner-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.mp-winner-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mp-emerald);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mp-winner-margin {
  background: var(--mp-emerald);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.mp-winner-platform {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--mp-navy);
  margin-bottom: 1.25rem;
}

.mp-winner-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid #d1fae5;
  padding-top: 1rem;
}

.mp-metric-lbl {
  display: block;
  font-size: 0.8rem;
  color: var(--mp-text-muted);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.mp-metric-val {
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.mp-metric-val.fee { color: var(--mp-amber); }
.mp-metric-val.payout { color: var(--mp-navy); }
.mp-metric-val.profit { color: var(--mp-emerald); }

/* Table */
.mp-table-card {
  padding: 1.25rem;
}

.mp-table-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mp-navy);
  margin-bottom: 1rem;
}

.mp-table-responsive {
  overflow-x: auto;
}

.mp-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.mp-comparison-table th {
  background: var(--mp-bg-elevated);
  color: var(--mp-text);
  font-weight: 700;
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 2px solid var(--mp-border);
  white-space: nowrap;
}

.mp-comparison-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--mp-border-subtle);
  white-space: nowrap;
}

.mp-comparison-table tr:hover td {
  background: #f8fafc;
}

.mp-comparison-table tr.winner-row td {
  background: #f0fdf4;
  font-weight: 600;
}

.mp-platform-name {
  font-weight: 700;
  color: var(--mp-navy);
}

.mp-val-profit {
  font-weight: 700;
  color: var(--mp-emerald);
}

.mp-val-danger {
  font-weight: 700;
  color: var(--mp-danger);
}

.mp-val-margin {
  font-weight: 700;
}

/* Ad slots */
.mp-ad-container {
  margin: 2.25rem 0;
  min-height: 280px;
  background: var(--mp-bg-card);
  border: 1px dashed var(--mp-border);
  border-radius: var(--mp-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-ad-box {
  width: 100%;
  text-align: center;
}

/* Content & FAQs */
.mp-content-section {
  margin-top: 2.5rem;
}

.mp-content-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mp-navy);
  margin-bottom: 1rem;
}

.mp-content-section p {
  color: var(--mp-text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.mp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.75rem 0 2.5rem;
}

.mp-feature-card {
  background: var(--mp-bg-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  padding: 1.25rem;
}

.mp-feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mp-navy);
  margin-bottom: 0.4rem;
}

.mp-feature-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.mp-faq-block {
  margin-top: 2rem;
}

.mp-faq-item {
  background: var(--mp-bg-card);
  border: 1px solid var(--mp-border);
  border-radius: var(--mp-radius);
  margin-bottom: 0.75rem;
  padding: 0.9rem 1.15rem;
}

.mp-faq-item summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--mp-navy);
}

.mp-faq-item p {
  margin-top: 0.65rem;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.mp-footer a {
  color: var(--mp-emerald);
  text-decoration: none;
  font-weight: 600;
}

.mp-consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.mp-consent-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0;
  flex: 1;
  min-width: 260px;
}

.mp-consent-actions {
  display: flex;
  gap: 0.5rem;
}

.mp-btn-consent-yes {
  background: #0284c7;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.mp-btn-consent-no {
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.mp-rates-note {
  margin: 12px 2px 0;
  font-size: 0.75rem;
  color: var(--mp-text-muted);
  font-style: italic;
}
/* tf:dark-palette — generated by migrate_chrome.py */
/* Neutrals inherit the shared chrome tokens so all tools share one
   ground; brand hues are kept and lightened, never inverted. */
[data-theme="dark"] {
  --mp-navy: var(--tf-ink);
  --mp-emerald: #62d2af;
  --mp-amber: #dab181;
  --mp-danger: #da8181;
  --mp-bg: var(--tf-surface);
  --mp-bg-card: var(--tf-surface);
  --mp-bg-elevated: var(--tf-surface);
  --mp-border: var(--tf-surface);
  --mp-border-subtle: var(--tf-surface);
  --mp-text: var(--tf-ink);
  --mp-text-muted: var(--tf-ink-faint);
}
