/* ── Marketplace-specific styles ─────────────────────────── */

/* MARKETPLACE HERO */
.mkt-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--ocean-abyss) 0%, var(--ocean-mid) 60%, #0F3A6A 100%);
  padding-block: clamp(var(--sp-16), 10vw, var(--sp-24));
  text-align: center;
}
.mkt-hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.mh-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .18; }
.mh-orb-1 { width: 55vw; height: 55vw; background: radial-gradient(ellipse,var(--teal),transparent 70%); bottom: -20%; left: -5%; animation: mhd 20s ease-in-out infinite alternate; }
.mh-orb-2 { width: 40vw; height: 40vw; background: radial-gradient(ellipse,var(--wave),transparent 70%); top: -10%; right: 5%; animation: mhd 26s ease-in-out infinite alternate-reverse; }
@keyframes mhd { 0%{transform:translate(0,0)} 100%{transform:translate(3vw,-3vh)} }

.mkt-hero-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }
.mkt-hero h1 {
  font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900; color: #fff; line-height: 1.06; letter-spacing: -.025em;
  margin-block: var(--sp-5) var(--sp-6);
}
.mkt-hero p { font-size: var(--text-lg); color: rgba(180,218,238,.8); max-width: 600px; margin: 0 auto var(--sp-8); line-height: 1.6; }
.mkt-hero-pills { display: flex; align-items: center; justify-content: center; gap: var(--sp-4); flex-wrap: wrap; }
.mh-pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--text-xs); font-weight: 600; color: var(--teal);
  background: rgba(0,200,212,.1); border: 1px solid rgba(0,200,212,.25);
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-full);
}

/* FILTER BAR */
.filter-bar {
  position: sticky; top: 74px; z-index: 90;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.filter-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4); padding-block: var(--sp-4);
}
.filter-pills { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; flex: 1; }
.fp {
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-full);
  font-size: var(--text-xs); font-weight: 600; color: var(--text-muted);
  border: 1.5px solid var(--border); background: var(--surface); cursor: pointer;
  transition: all var(--ease);
}
.fp:hover { border-color: var(--teal); color: var(--teal); }
.fp.active { background: var(--teal); color: #000; border-color: var(--teal); font-weight: 700; }
.filter-right { display: flex; align-items: center; gap: var(--sp-4); flex-shrink: 0; }
.tool-count { font-size: var(--text-xs); color: var(--text-faint); white-space: nowrap; }

/* GATED BANNER */
.gated-banner {
  background: linear-gradient(90deg, rgba(212,160,23,.08) 0%, rgba(212,160,23,.04) 100%);
  border-bottom: 1px solid rgba(212,160,23,.2);
}
.gated-banner-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-6); padding-block: var(--sp-4); flex-wrap: wrap;
}
.gb-left {
  display: flex; align-items: center; gap: var(--sp-4);
  font-size: var(--text-sm); color: var(--text-muted);
}
.gb-left svg { flex-shrink: 0; }
.gb-left strong { color: var(--text); font-weight: 700; margin-right: var(--sp-2); }

/* TOOL GRID */
.mkt-main { padding-block: clamp(var(--sp-12), 8vw, var(--sp-20)); }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }

/* TOOL CARD */
.tool-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-2xl); padding: var(--sp-8);
  display: flex; flex-direction: column; gap: var(--sp-5);
  position: relative; overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.tool-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--teal); }

/* Gated card highlight */
.tool-card[data-gated="true"] {
  border-color: rgba(212,160,23,.3);
  background: linear-gradient(155deg, var(--surface) 0%, rgba(212,160,23,.035) 100%);
}
.tool-card[data-gated="true"]:hover { border-color: var(--gold); box-shadow: 0 8px 40px rgba(212,160,23,.12); }

.tc-gated-badge {
  position: absolute; top: var(--sp-5); right: var(--sp-5);
  display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold); background: rgba(212,160,23,.1);
  border: 1px solid rgba(212,160,23,.35);
  padding: 4px 10px; border-radius: var(--r-sm);
}

.tc-header { display: flex; align-items: center; gap: var(--sp-4); padding-right: var(--sp-16); }
.tc-logo {
  width: 48px; height: 48px; border-radius: var(--r-md); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.tc-logo svg { width: 100%; height: 100%; }
.tc-name { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; color: var(--text); }
.tc-cat { font-size: var(--text-xs); color: var(--text-muted); margin-top: 2px; }
.tc-stars { margin-left: auto; color: var(--gold); font-size: var(--text-sm); letter-spacing: 1px; flex-shrink: 0; }

.tc-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.tc-tag {
  font-size: 10px; font-weight: 600; letter-spacing: .05em;
  padding: 3px 9px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted);
}
.tc-tag--partner { background: var(--gold-dim); border-color: rgba(212,160,23,.3); color: var(--gold); }
.tc-tag--top     { background: var(--teal-dim); border-color: rgba(0,200,212,.3); color: var(--teal); }
.tc-tag--recurring { background: var(--teal-dim); border-color: rgba(0,200,212,.3); color: var(--teal); }

.tc-desc { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.7; flex: 1; }

.tc-highlights {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4);
}
.tc-hi { display: flex; flex-direction: column; gap: 3px; }
.tc-hi-label { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.tc-hi-val { font-size: var(--text-xs); font-weight: 600; color: var(--text); }

.tc-review {
  background: linear-gradient(135deg, rgba(0,200,212,.06), rgba(0,200,212,.02));
  border: 1px solid rgba(0,200,212,.15); border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5);
}
.tc-reviewer {
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal); margin-bottom: var(--sp-2);
}
.tc-review p { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.65; font-style: italic; max-width: none; }

.tc-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-top: auto; }
.tc-cta { flex-shrink: 0; }
.tc-cta-open {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 0.7rem 1.4rem; border-radius: var(--r-full);
  font-size: var(--text-sm); font-weight: 600;
  color: var(--teal); border: 1.5px solid var(--teal);
  background: transparent; cursor: pointer; text-decoration: none;
}
.tc-cta-open:hover { background: var(--teal-dim); }
.tc-free-note { font-size: var(--text-xs); color: var(--text-faint); }

/* Empty state */
.empty-state {
  text-align: center; padding: clamp(var(--sp-12),8vw,var(--sp-20));
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-4);
}
.empty-state h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 700; color: var(--text); }
.empty-state p { font-size: var(--text-sm); color: var(--text-muted); max-width: 420px; line-height: 1.6; }
.empty-state a { color: var(--teal); }

/* SUGGEST SECTION */
.suggest-section { background: var(--surface); }
.suggest-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--sp-8),6vw,var(--sp-16)); align-items: center; }
.suggest-form-wrap { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-xl); padding: var(--sp-8); }
.suggest-form { display: flex; flex-direction: column; gap: var(--sp-4); }
.suggest-form input {
  width: 100%; padding: 0.75rem 1rem;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); font-size: var(--text-sm); color: var(--text);
}
.suggest-form input:focus { outline: none; border-color: var(--teal); }
.suggest-form input::placeholder { color: var(--text-faint); }

/* INCOME SECTION */
.income-section { background: var(--bg); }
.income-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--sp-10),8vw,var(--sp-20)); align-items: start; }
.income-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-5); margin-bottom: var(--sp-8); }
.income-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5); text-align: center; }
.is-num { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 900; color: var(--teal); display: block; line-height: 1; }
.is-label { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--sp-2); display: block; line-height: 1.4; }

.income-table {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden;
}
.it-head {
  display: grid; grid-template-columns: 2fr 2fr 1fr;
  padding: var(--sp-4) var(--sp-6);
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint); background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.it-row {
  display: grid; grid-template-columns: 2fr 2fr 1fr;
  padding: var(--sp-4) var(--sp-6); align-items: center;
  border-bottom: 1px solid var(--divider); font-size: var(--text-sm); color: var(--text);
}
.it-row:last-child { border-bottom: none; }
.it-val { font-weight: 600; color: var(--teal); }
.it-val--gold { color: var(--gold); }
.it-tag { font-size: 10px; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); padding: 2px 7px; border-radius: var(--r-sm); white-space: nowrap; display: inline-block; }
.it-footer { padding: var(--sp-4) var(--sp-6); background: var(--surface-2); font-size: var(--text-xs); }
.it-footer a { color: var(--teal); font-weight: 600; }
.it-footer a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 1100px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .income-inner { grid-template-columns: 1fr; }
  .suggest-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .tools-grid { grid-template-columns: 1fr; }
  .tc-highlights { grid-template-columns: 1fr 1fr; }
  .income-stats { grid-template-columns: repeat(3,1fr); }
  .filter-pills { gap: var(--sp-1); }
  .gated-banner-inner { flex-direction: column; }
}
@media (max-width: 480px) {
  .income-stats { grid-template-columns: 1fr; }
  .filter-right .btn { display: none; }
}
