/*
Theme Name: MarketLance
Theme URI: https://example.com/marketlance
Author: OpenAI
Author URI: https://openai.com
Description: A Fiverr-inspired freelance marketplace WordPress theme with a bold hero, service cards, categories, and a how-it-works flow.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: marketlance
*/

:root {
  --ml-bg: #f7f8fa;
  --ml-surface: #ffffff;
  --ml-text: #1f2937;
  --ml-muted: #6b7280;
  --ml-border: #e5e7eb;
  --ml-primary: #1dbf73;
  --ml-primary-dark: #169b5e;
  --ml-dark: #0f172a;
  --ml-accent: #111827;
  --ml-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  --ml-radius: 18px;
  --ml-radius-sm: 12px;
  --ml-container: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(61, 196, 201, 0.10), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(29, 191, 115, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fbfd 0%, #f4f7fb 100%);
}
body {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(circle at 20% 20%, rgba(61,196,201,.14), transparent 28%),
    radial-gradient(circle at 80% 75%, rgba(29,191,115,.10), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.86) 0%, rgba(247,248,250,0.94) 100%);
}
.site-header,
main,
.site-footer,
.ml-auth-wrap,
.ml-dashboard-page,
.ml-onboarding-page,
.ml-workspace-page,
.ml-payment-page {
  position: relative;
  z-index: 1;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ml-text);
  background: var(--ml-bg);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container {
  width: min(calc(100% - 32px), var(--ml-container));
  margin: 0 auto;
}
.section { padding: 80px 0; }
.section-title {
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.15;
  margin: 0 0 14px;
}
.section-lead {
  max-width: 720px;
  color: var(--ml-muted);
  margin: 0 0 32px;
}
.ml-btn,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--ml-primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}
.ml-btn:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
  background: var(--ml-primary-dark);
}
.ml-btn.secondary {
  background: #fff;
  color: var(--ml-dark);
  border: 1px solid var(--ml-border);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229,231,235,.8);
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.branding a {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.branding span { color: var(--ml-primary); }
.nav-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}
.primary-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-menu a { color: var(--ml-muted); font-weight: 600; }
.primary-menu a:hover,
.primary-menu .current-menu-item > a { color: var(--ml-text); }
.menu-toggle { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(29,191,115,.20), transparent 30%),
    radial-gradient(circle at 100% 20%, rgba(15,23,42,.08), transparent 25%),
    linear-gradient(135deg, #fdfefe 0%, #eefcf5 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 42px;
  align-items: center;
  min-height: 680px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: .98;
  margin: 0 0 18px;
  letter-spacing: -0.05em;
}
.hero p {
  font-size: 1.1rem;
  color: var(--ml-muted);
  max-width: 640px;
  margin: 0 0 28px;
}
.hero-search {
  background: #fff;
  padding: 10px;
  border-radius: 999px;
  box-shadow: var(--ml-shadow);
  display: flex;
  gap: 10px;
  max-width: 720px;
}
.hero-search input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 14px 18px;
  font-size: 1rem;
  background: transparent;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hero-tags span {
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(229,231,235,.9);
  color: var(--ml-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .92rem;
}
.hero-card {
  background: #fff;
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--ml-shadow);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.stat-item,
.service-card,
.category-card,
.step-card,
.feature-card,
.testimonial-card,
.package-card {
  background: var(--ml-surface);
  border-radius: var(--ml-radius);
  border: 1px solid var(--ml-border);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.stat-item {
  padding: 18px;
}
.stat-item strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 4px;
}
.stat-item span { color: var(--ml-muted); }

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 24px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.category-card,
.step-card,
.feature-card,
.testimonial-card,
.service-card,
.package-card {
  padding: 24px;
}
.category-card:hover,
.service-card:hover,
.feature-card:hover,
.testimonial-card:hover,
.package-card:hover {
  transform: translateY(-4px);
  transition: .2s ease;
}
.icon-pill {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(29,191,115,.12);
  color: var(--ml-primary-dark);
  font-size: 1.35rem;
  margin-bottom: 18px;
}
.category-card h3,
.service-card h3,
.feature-card h3,
.package-card h3,
.testimonial-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}
.category-card p,
.service-card p,
.feature-card p,
.step-card p,
.testimonial-card p,
.package-card p {
  margin: 0;
  color: var(--ml-muted);
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ml-dark);
  color: #fff;
  font-weight: 800;
  margin-bottom: 18px;
}
.service-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}
.service-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ml-primary-dark);
  white-space: nowrap;
}
.rating {
  color: #f59e0b;
  font-weight: 700;
  margin-top: 14px;
}
.service-meta,
.package-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.service-meta span,
.package-features span {
  padding: 7px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--ml-muted);
  font-size: .88rem;
}
.cta-band {
  background: linear-gradient(135deg, var(--ml-dark) 0%, #1f2937 100%);
  color: #fff;
  border-radius: 32px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.cta-band p { color: rgba(255,255,255,.75); margin: 10px 0 0; }

.footer {
  background: #fff;
  border-top: 1px solid var(--ml-border);
  padding: 34px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.footer p { margin: 0; color: var(--ml-muted); }

.archive-header,
.page-header {
  padding: 76px 0 30px;
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 80px;
}
.single-wrap {
  padding: 60px 0 90px;
}
.single-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
}
.content-card,
.sidebar-card {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  border: 1px solid var(--ml-border);
}
.entry-content h2,
.entry-content h3 { margin-top: 26px; }
.entry-content ul { padding-left: 20px; }
.widget-title { margin-top: 0; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .single-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: inline-flex;
    background: #fff;
    color: var(--ml-text);
    border: 1px solid var(--ml-border);
  }
  .nav-wrap {
    position: absolute;
    top: 76px;
    right: 16px;
    left: 16px;
    background: #fff;
    border: 1px solid var(--ml-border);
    border-radius: 20px;
    box-shadow: var(--ml-shadow);
    padding: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-wrap.active { display: flex; }
  .primary-menu { flex-direction: column; align-items: flex-start; }
  .hero-search { border-radius: 24px; flex-direction: column; }
  .grid-4, .grid-3, .grid-2, .archive-grid { grid-template-columns: 1fr; }
  .cta-band, .footer-inner, .service-top { flex-direction: column; align-items: flex-start; }
  .section { padding: 64px 0; }
}


.ml-lock-scroll { overflow: hidden; }
.header-actions { display:flex; gap:12px; align-items:center; }
.section-heading-row { display:flex; justify-content:space-between; gap:20px; align-items:end; margin-bottom:24px; }
.ml-chip {
  display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border-radius:999px;
  background: rgba(29,191,115,.12); color: var(--ml-primary-dark); font-weight: 700; font-size: .92rem; margin-bottom: 16px;
}
.ml-entry-gate {
  position: fixed; inset: 0; background: rgba(15,23,42,.62); z-index: 120; display: none; align-items: center; justify-content: center; padding: 16px;
}
.ml-entry-gate.is-visible { display: flex; }
.ml-entry-card {
  width: min(100%, 620px); background: #fff; border-radius: 28px; padding: 34px; box-shadow: 0 30px 70px rgba(15,23,42,.3); text-align: center;
}
.ml-entry-card h2 { margin: 0 0 10px; font-size: clamp(2rem, 5vw, 3rem); }
.ml-entry-card p { margin: 0 auto; max-width: 500px; color: var(--ml-muted); }
.ml-entry-actions { display:flex; justify-content:center; gap:16px; margin-top: 24px; flex-wrap: wrap; }
.seller-shell, .seller-dashboard-shell { padding: 52px 0 88px; }
.seller-layout { display:grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
.seller-sidebar-card, .seller-main-card, .dashboard-hero-card {
  background:#fff; border:1px solid var(--ml-border); border-radius: 28px; box-shadow: var(--ml-shadow);
}
.seller-sidebar-card { padding: 28px; position: sticky; top: 100px; }
.seller-sidebar-card h1, .dashboard-hero-card h1 { margin: 0 0 10px; font-size: clamp(2rem, 4vw, 3rem); }
.seller-sidebar-card p, .dashboard-hero-card p { color: var(--ml-muted); }
.seller-progress { width:100%; height: 10px; background: #eef2f7; border-radius:999px; overflow:hidden; margin: 20px 0; }
.seller-progress span { display:block; width:12.5%; height:100%; background: linear-gradient(90deg, var(--ml-primary), #44d08e); }
.seller-progress-list { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.seller-progress-list li { padding: 12px 14px; border-radius: 14px; background:#f8fafc; color: var(--ml-muted); font-weight:600; cursor:pointer; }
.seller-progress-list li.is-active { background:#eaf9f1; color: var(--ml-primary-dark); }
.seller-progress-list li.is-complete { background:#f0fdf4; color:#166534; }
.seller-main-card { padding: 32px; }
.seller-step { display:none; }
.seller-step.is-active { display:block; }
.seller-step h2 { margin: 8px 0 12px; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.ml-step-label { display:inline-flex; padding: 6px 10px; border-radius:999px; background:#111827; color:#fff; font-size:.86rem; font-weight:700; }
.seller-help { color: var(--ml-muted); margin-top: 0; }
.form-grid { display:grid; gap:18px; }
.form-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.seller-form label { display:block; margin-bottom:18px; }
.seller-form label span { display:block; font-weight:700; margin-bottom:8px; }
.seller-form input[type="text"], .seller-form input[type="url"], .seller-form textarea, .seller-form select {
  width:100%; border:1px solid var(--ml-border); border-radius: 16px; padding: 14px 16px; font: inherit; background:#fff;
}
.team-choice-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap:18px; }
.choice-card { position:relative; border:1px solid var(--ml-border); border-radius:20px; padding:22px; background:#fff; cursor:pointer; }
.choice-card input { position:absolute; top:18px; right:18px; }
.choice-card span { display:block; font-size:1.08rem; font-weight:800; margin-bottom:8px; }
.choice-card small { color: var(--ml-muted); }
.seller-form-actions { display:flex; justify-content:space-between; gap:16px; margin-top: 8px; }
.dashboard-preview-card {
  display:flex; justify-content:space-between; gap:18px; align-items:center; padding:24px; border-radius:24px; background:linear-gradient(135deg, #0f172a 0%, #1f2937 100%); color:#fff;
}
.dashboard-preview-card p { color: rgba(255,255,255,.72); margin: 8px 0 0; }
.dashboard-hero-card { padding:32px; display:flex; justify-content:space-between; gap:24px; align-items:center; margin-bottom: 28px; }
.dashboard-stats-grid { display:grid; grid-template-columns: repeat(4, 1fr); gap:20px; margin-bottom:28px; }
.dashboard-main-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap:24px; }
.check-list { display:grid; gap:14px; }
.check-item { display:flex; gap:16px; align-items:flex-start; padding:18px; background:#f8fafc; border-radius:18px; }
.check-item span { width:34px; height:34px; border-radius:50%; background:#e5e7eb; display:inline-flex; align-items:center; justify-content:center; font-weight:800; flex:0 0 34px; }
.check-item.is-done span { background:#dcfce7; color:#166534; }
.check-item strong { display:block; margin-bottom:4px; }
.check-item p { margin:0; color: var(--ml-muted); }
@media (max-width: 1024px) {
  .seller-layout, .dashboard-main-grid, .dashboard-stats-grid { grid-template-columns: 1fr 1fr; }
  .seller-layout { grid-template-columns: 1fr; }
  .seller-sidebar-card { position: static; }
}
@media (max-width: 768px) {
  .header-actions, .section-heading-row, .dashboard-hero-card, .dashboard-preview-card, .team-choice-grid, .form-grid.cols-2, .dashboard-stats-grid, .dashboard-main-grid { grid-template-columns: 1fr; display:grid; }
  .header-actions { width:100%; }
  .header-actions .ml-btn { width:100%; }
  .seller-main-card, .seller-sidebar-card, .dashboard-hero-card, .ml-entry-card { padding: 24px; }
}


.is-hidden { display: none !important; }
.ml-chip-light { background: rgba(255,255,255,.16); color: #fff; }
.ml-btn.secondary.white { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.22); }
.header-actions { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.seller-dashboard-layout { display:grid; grid-template-columns: 300px 1fr; gap: 28px; align-items:start; }
.dashboard-side-rail { display:grid; gap:20px; }
.seller-profile-card, .dashboard-mini-card, .dashboard-metrics-card, .dashboard-banner {
  background:#fff; border:1px solid var(--ml-border); border-radius: 28px; box-shadow: var(--ml-shadow);
}
.seller-profile-card, .dashboard-mini-card { padding:24px; }
.seller-avatar {
  width:78px; height:78px; border-radius:50%; background: linear-gradient(135deg, #0f172a, #1dbf73); color:#fff; display:flex; align-items:center; justify-content:center; font-size:1.5rem; font-weight:800; margin-bottom:16px;
}
.seller-profile-card h2 { margin: 0 0 6px; font-size: 1.5rem; }
.seller-profile-card p { color: var(--ml-muted); margin: 0 0 18px; }
.dashboard-mini-card h3, .dashboard-metrics-card h2 { margin-top:0; }
.level-list { display:grid; gap:12px; margin: 18px 0; }
.level-list div { display:flex; justify-content:space-between; gap:12px; color: var(--ml-muted); }
.level-list strong { color: var(--ml-text); }
.text-link { color: var(--ml-primary-dark); font-weight:700; }
.quick-link-stack { display:grid; gap:10px; }
.quick-link-stack a { padding: 12px 14px; border-radius: 14px; background: #f8fafc; font-weight: 600; }
.quick-link-stack a:hover { background: #eef2f7; }
.availability-note { margin-top: 14px; padding: 12px 14px; background: #f8fafc; border-radius: 14px; color: var(--ml-muted); }
.dashboard-main-panel { display:grid; gap:24px; }
.dashboard-banner {
  padding: 30px; background: linear-gradient(135deg, #f7b3cb 0%, #f5ceda 32%, #f6f6ff 100%); display:flex; justify-content:space-between; gap:24px; align-items:flex-start;
}
.dashboard-banner h1 { margin: 0 0 8px; font-size: clamp(2.1rem, 4vw, 3.2rem); }
.dashboard-banner p { max-width: 700px; color: #374151; margin: 0; }
.dashboard-banner-actions { display:flex; gap:12px; flex-wrap:wrap; }
.dashboard-metrics-card { padding: 28px; }
.dashboard-metrics-card p { color: var(--ml-muted); margin-top: -4px; }
.metrics-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:16px; margin-top: 18px; }
.metric-box { padding: 20px; border-radius: 18px; background: #f8fafc; }
.metric-box span { display:block; color: var(--ml-muted); margin-bottom:10px; }
.metric-box strong { font-size: 1.3rem; }
.dashboard-content-grid, .dashboard-lower-grid { display:grid; grid-template-columns: 1.15fr .85fr; gap:24px; }
.profile-strength-row { display:grid; grid-template-columns: 120px 1fr; gap:24px; align-items:flex-start; }
.profile-score-circle {
  width:110px; height:110px; border-radius:50%; background: radial-gradient(circle at 30% 30%, #bbf7d0, #1dbf73); color:#0f172a; display:flex; align-items:center; justify-content:center; flex-direction:column; font-weight:800;
}
.profile-score-circle span { font-size: 2rem; line-height: 1; }
.profile-score-circle small { font-size: .9rem; }
.portfolio-pills { display:flex; flex-wrap:wrap; gap:10px; }
.portfolio-pills a, .portfolio-pills span { padding: 9px 12px; background: #f3f4f6; border-radius: 999px; color: var(--ml-muted); font-size: .92rem; }
.mini-info-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap:16px; }
.mini-info-box { padding: 18px; border-radius: 18px; background: #f8fafc; }
.mini-info-box span { display:block; color: var(--ml-muted); margin-bottom:8px; }
.mini-info-box strong { font-size: 1rem; }
.empty-state-card { min-height: 280px; display:flex; align-items:center; justify-content:center; flex-direction:column; text-align:center; background:#fafafa; border-radius:22px; border:1px dashed var(--ml-border); }
.empty-icon { width:64px; height:64px; border-radius:50%; background:#fff; display:flex; align-items:center; justify-content:center; font-size:1.8rem; box-shadow: var(--ml-shadow); margin-bottom:14px; }
.ml-modal { position: fixed; inset: 0; display:none; align-items:center; justify-content:center; padding: 16px; background: rgba(15,23,42,.45); z-index: 130; }
.ml-modal.is-visible { display:flex; }
.ml-modal-card { width:min(100%, 540px); background:#fff; border-radius: 28px; padding: 28px; position: relative; }
.modal-close { position:absolute; top:10px; right:10px; width:38px; height:38px; border-radius:50%; border:1px solid var(--ml-border); background:#fff; color: var(--ml-text); }
.ml-modal-card label { display:block; margin-bottom:16px; }
.ml-modal-card label span { display:block; font-weight:700; margin-bottom:8px; }
.ml-modal-card input, .ml-modal-card textarea { width:100%; border:1px solid var(--ml-border); border-radius:16px; padding:14px 16px; font:inherit; }
@media (max-width: 1100px) {
  .seller-dashboard-layout, .dashboard-content-grid, .dashboard-lower-grid { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .dashboard-banner, .profile-strength-row, .mini-info-grid, .metrics-grid { grid-template-columns: 1fr; display:grid; }
  .dashboard-banner-actions { width:100%; }
  .dashboard-banner-actions .ml-btn { width:100%; }
}

/* v5 auth + real data */
.ml-alert{padding:14px 18px;border-radius:14px;margin:0 0 20px;font-weight:600}
.ml-alert.success{background:#e9fff1;color:#116b35;border:1px solid #b6f0c9}
.ml-alert.error{background:#fff2f2;color:#9f1d1d;border:1px solid #f2c5c5}
.marketlance-auth-wrap{padding:48px 0}
.auth-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.auth-card.wide{max-width:840px;margin:0 auto}
.auth-card h2{margin-bottom:18px}
.ml-check{display:flex;align-items:center;gap:10px}
.header-logout-form{margin:0}
.header-logout-form button{border:none;cursor:pointer}
.compact-form label{margin-bottom:14px}
.compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width: 900px){.auth-grid,.compact-grid{grid-template-columns:1fr}}

/* v6 auth redesign */
.marketlance-auth-shell{
  padding:56px 0 72px;
  background:linear-gradient(180deg,#f7f7f8 0%,#eef2f7 100%);
}
.auth-stage-card{
  background:#fff;
  border-radius:30px;
  border:1px solid #e8ebf0;
  box-shadow:0 30px 80px rgba(15,23,42,.10);
  padding:28px;
}
.auth-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding-bottom:18px;
  border-bottom:1px solid #eceff4;
  margin-bottom:24px;
}
.auth-topbar h1{
  font-size:clamp(1.8rem,3vw,2.4rem);
  margin:0;
}
.auth-switch-link{
  color:var(--ml-primary);
  font-weight:700;
  text-decoration:none;
}
.auth-stage-grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);
  gap:28px;
  align-items:stretch;
}
.auth-form-panel{
  background:#fbfcfe;
  border:1px solid #edf1f6;
  border-radius:24px;
  padding:24px;
}
.auth-tabbar{
  display:inline-flex;
  gap:8px;
  background:#eef2f7;
  padding:6px;
  border-radius:999px;
  margin-bottom:22px;
}
.auth-tab{
  border:none;
  background:transparent;
  color:#526074;
  font-weight:800;
  padding:11px 18px;
  border-radius:999px;
  cursor:pointer;
}
.auth-tab.is-active{
  background:#111827;
  color:#fff;
  box-shadow:0 8px 20px rgba(17,24,39,.18);
}
.auth-panel h2{
  margin:0 0 8px;
  font-size:1.7rem;
}
.auth-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#e9fff1;
  color:#12703a;
  border-radius:999px;
  padding:7px 12px;
  font-size:.85rem;
  font-weight:800;
  margin-bottom:14px;
}
.auth-intro{
  color:var(--ml-muted);
  margin-bottom:18px;
}
.auth-form-stack{
  display:grid;
  gap:14px;
}
.auth-form-stack label{
  display:block;
  width:100%;
  margin:0;
}
.auth-form-stack label span{
  display:block;
  font-size:.95rem;
  font-weight:800;
  color:#0f172a;
  margin:0 0 8px;
}
.auth-form-stack input[type="text"],
.auth-form-stack input[type="email"],
.auth-form-stack input[type="password"]{
  display:block;
  width:100%;
  min-height:56px;
  background:#ffffff;
  border:2px solid #cfd8e3;
  border-radius:16px;
  padding:16px 18px;
  font-size:1rem;
  line-height:1.2;
  color:#0f172a;
  box-shadow:0 3px 10px rgba(15,23,42,.03);
  -webkit-appearance:none;
  appearance:none;
}
.auth-form-stack input[type="text"]::placeholder,
.auth-form-stack input[type="email"]::placeholder,
.auth-form-stack input[type="password"]::placeholder{
  color:#7b8794;
  opacity:1;
}
.auth-form-stack input[type="text"]:hover,
.auth-form-stack input[type="email"]:hover,
.auth-form-stack input[type="password"]:hover{
  border-color:#9fb0c4;
}
.auth-form-stack input[type="text"]:focus,
.auth-form-stack input[type="email"]:focus,
.auth-form-stack input[type="password"]:focus{
  outline:none;
  border-color:var(--ml-primary);
  box-shadow:0 0 0 4px rgba(29,191,115,.16);
}
.auth-form-stack .ml-check{
  margin:2px 0 0;
  min-height:24px;
}
.auth-form-stack .ml-check input[type="checkbox"]{
  width:18px;
  height:18px;
  accent-color:var(--ml-primary);
}
.auth-form-stack .ml-check span{
  margin:0;
  font-weight:700;
  color:#334155;
}
.auth-submit-btn{
  width:100%;
  justify-content:center;
  margin-top:6px;
  min-height:50px;
}
.auth-visual-panel{
  display:flex;
}
.auth-visual-card{
  width:100%;
  min-height:100%;
  border-radius:24px;
  padding:32px 28px;
  background:linear-gradient(160deg,#f8fafc 0%,#eff6ff 100%);
  border:1px solid #edf1f6;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
}
.auth-visual-icon{
  width:148px;
  height:148px;
  border-radius:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(145deg,#ffffff,#dcfce7);
  box-shadow:0 20px 45px rgba(15,23,42,.10);
  font-size:4.5rem;
  margin-bottom:18px;
}
.auth-visual-card h3{
  margin:0 0 10px;
  font-size:1.5rem;
}
.auth-visual-card p{
  color:var(--ml-muted);
  max-width:32ch;
}
.auth-benefit-list{
  list-style:none;
  padding:0;
  margin:18px 0 0;
  display:grid;
  gap:10px;
  width:100%;
}
.auth-benefit-list li{
  background:#fff;
  border:1px solid #e6ebf2;
  border-radius:14px;
  padding:12px 14px;
  font-weight:700;
}
.auth-card-wide{
  max-width:780px;
  margin:0 auto;
}
.auth-logged-card{
  padding:28px;
  text-align:center;
}
.auth-logged-card h1{
  margin-bottom:10px;
}
@media (max-width: 980px){
  .auth-stage-grid{grid-template-columns:1fr;}
  .auth-visual-card{min-height:280px;}
}
@media (max-width: 640px){
  .marketlance-auth-shell{padding:34px 0 48px;}
  .auth-stage-card{padding:18px; border-radius:22px;}
  .auth-topbar{align-items:flex-start; flex-direction:column;}
  .auth-form-panel,.auth-visual-card{padding:18px;}
  .auth-tabbar{width:100%; justify-content:space-between;}
  .auth-tab{flex:1; text-align:center;}
  .auth-visual-icon{width:120px; height:120px; font-size:3.6rem;}
}


.service-cover-link{display:block;margin:-28px -28px 18px;overflow:hidden;border-radius:24px 24px 16px 16px;}
.service-cover-image{display:block;width:100%;height:220px;object-fit:cover;background:#eef2ff;}
.uploaded-work-preview,.seller-work-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px;margin-top:20px;}
.uploaded-work-thumb,.seller-work-gallery-item{border:1px solid var(--ml-border);border-radius:18px;overflow:hidden;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.06);}
.uploaded-work-thumb img,.seller-work-gallery-item img{display:block;width:100%;height:100%;min-height:180px;object-fit:cover;}
.work-upload-grid .full-width{grid-column:1/-1;}
.seller-work-section{margin-top:32px;padding-top:24px;border-top:1px solid var(--ml-border);}


/* v9 seller flow + service ui fixes */
.seller-form-actions.is-last-step{justify-content:flex-start}
.seller-finish-btn.is-loading{opacity:.8;pointer-events:none}

.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.service-card-modern{padding:0;overflow:hidden;border-radius:16px;box-shadow:none;border:1px solid #e5e7eb;background:#fff}
.service-card-modern:hover{transform:none;box-shadow:0 18px 34px rgba(15,23,42,.08)}
.service-card-media{position:relative;display:block;aspect-ratio:16/10;background:#eef2f7;overflow:hidden}
.service-cover-image{width:100%;height:100%;object-fit:cover;display:block}
.service-cover-fallback{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#dbeafe,#eff6ff);font-size:2rem;font-weight:800;color:#0f172a}
.service-favorite{position:absolute;top:12px;right:12px;width:38px;height:38px;border-radius:999px;background:rgba(17,24,39,.58);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;color:#fff;font-size:1.25rem}
.service-card-body{padding:14px 16px 18px}
.service-seller-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.service-seller-left{display:flex;align-items:center;gap:10px;min-width:0}
.service-seller-avatar,.service-seller-left .avatar{width:30px;height:30px;border-radius:999px}
.service-seller-name{display:block;font-size:1rem;line-height:1.2}
.service-seller-level{display:block;font-size:.82rem;color:#6b7280;font-weight:700}
.service-card-title{margin:0 0 10px;font-size:1.15rem;line-height:1.45;font-weight:600;min-height:3.3em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.service-rating-row{display:flex;align-items:center;gap:8px;color:#111827;font-size:.95rem;margin-bottom:12px}
.service-rating-row strong{font-weight:800}
.service-rating-row span{color:#6b7280}
.service-card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid #e5e7eb}
.service-delivery-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:#f3f4f6;color:#4b5563;font-size:.82rem;font-weight:700}
.service-price-label{font-size:1.02rem;color:#111827;font-weight:800}

.single-service-shell{padding-top:28px}
.single-service-layout{display:grid;grid-template-columns:minmax(0,1.2fr) 380px;gap:32px;align-items:start}
.single-service-topbar{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.single-service-topbar .avatar{width:56px;height:56px;border-radius:999px}
.single-service-sellerline{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:.95rem;color:#4b5563}
.single-service-sellerline strong{color:#111827;font-size:1.1rem}
.single-service-rating{margin-top:6px;color:#111827}
.single-service-title{font-size:2rem;line-height:1.2;margin:0 0 20px;color:#111827}
.single-service-gallery{margin-bottom:24px}
.single-service-main-media{background:#fff;border:1px solid #e5e7eb;border-radius:18px;overflow:hidden;aspect-ratio:16/10;display:flex;align-items:center;justify-content:center}
.single-service-main-media img{width:100%;height:100%;object-fit:cover}
.single-service-media-fallback{padding:32px;color:#6b7280}
.single-service-thumbs{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}
.single-service-thumb{border:2px solid transparent;background:#fff;border-radius:10px;padding:0;overflow:hidden;width:92px;height:64px;cursor:pointer}
.single-service-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.single-service-thumb.is-active{border-color:#111827}
.single-service-content{padding:26px}
.single-service-about-seller{margin-top:24px;padding-top:20px;border-top:1px solid #e5e7eb}
.single-service-sidebar{position:sticky;top:98px}
.package-box,.contact-box{background:#fff;border:1px solid #d1d5db;border-radius:16px;overflow:hidden}
.package-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #d1d5db}
.package-tabs button{border-radius:0;background:#fff;color:#6b7280;padding:16px 10px;font-weight:800;border-right:1px solid #e5e7eb}
.package-tabs button:last-child{border-right:0}
.package-tabs button.is-active{color:#111827;box-shadow:inset 0 -3px 0 #111827}
.package-tabs button:hover{transform:none;background:#fff}
.package-box-body{padding:22px}
.package-box-body h3{margin:0 0 10px;font-size:1.15rem}
.package-price{font-size:2rem;font-weight:800;color:#111827;margin-bottom:12px}
.package-meta-row{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
.package-meta-row span{padding:8px 12px;border-radius:999px;background:#f3f4f6;color:#4b5563;font-size:.86rem;font-weight:700}
.package-continue-btn,.contact-btn-wide{width:100%;border-radius:10px}
.contact-box{padding:18px;margin-top:18px}
.single-service-meta-stack{margin-top:18px}
.single-service-meta-stack span{background:#fff}

@media (max-width: 1024px){
  .single-service-layout{grid-template-columns:1fr}
  .single-service-sidebar{position:static}
}
@media (max-width: 900px){
  .grid-3{grid-template-columns:1fr}
}
@media (max-width: 640px){
  .single-service-thumbs{gap:8px}
  .single-service-thumb{width:72px;height:54px}
  .service-card-title{min-height:auto}
}


/* v10 onboarding submit fix + service polish */
.seller-finish-btn{min-width:240px;min-height:54px}
.seller-finish-btn.is-loading{background:#111827}
.seller-form-actions.is-last-step{justify-content:space-between;align-items:center}
.uploaded-work-preview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:18px}
.uploaded-work-thumb{border:1px solid #e5e7eb;border-radius:16px;overflow:hidden;background:#fff;aspect-ratio:1/1}
.uploaded-work-thumb img{width:100%;height:100%;object-fit:cover}
.service-card-modern{border-radius:14px;overflow:hidden}
.service-card-media{background:#eef2f7;aspect-ratio:16/10}
.service-card-media img,.service-cover-image{width:100%;height:100%;object-fit:cover}
.service-card-body{padding:14px 16px 16px}
.service-seller-row{margin-bottom:10px}
.service-seller-left{display:flex;align-items:center;gap:10px;min-width:0}
.service-seller-left>div{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.service-seller-name,.service-card-title a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.service-seller-name{font-size:1rem;line-height:1.2}
.service-seller-level{font-size:.9rem;color:#111827;font-weight:700}
.service-card-title{font-size:1.15rem;line-height:1.45;min-height:3.2em;margin:0 0 10px}
.service-rating-row{display:flex;align-items:center;gap:6px;font-size:1rem;color:#111827;margin-bottom:12px}
.service-rating-row span{color:#6b7280}
.service-card-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;padding-top:12px;border-top:1px solid #edf1f6}
.service-delivery-chip{padding:0;background:none;color:#6b7280;font-size:.95rem}
.service-price-label{font-size:1.05rem;color:#111827}
.single-service-layout{display:grid;grid-template-columns:minmax(0,1.35fr) 380px;gap:34px;align-items:start}
.single-service-topbar{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.single-service-sellerline{display:flex;flex-wrap:wrap;gap:10px;align-items:center;font-size:1rem}
.single-service-sellerline span{color:#6b7280;font-weight:600}
.single-service-title{font-size:2rem;line-height:1.2;margin:0 0 22px}
.single-service-main-media{background:#f2f4f7;border-radius:18px;overflow:hidden;border:1px solid #e5e7eb}
.single-service-main-media img{width:100%;aspect-ratio:16/10;object-fit:cover}
.single-service-thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:14px}
.single-service-thumb{width:100%;height:72px;border-radius:10px;border:1px solid #dbe2ea}
.package-box{position:sticky;top:96px;background:#fff;border:1px solid #dfe5ec;border-radius:18px;overflow:hidden}
.package-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #dfe5ec}
.package-tabs button{border-radius:0;background:#fff;color:#6b7280;padding:18px 12px;border-right:1px solid #dfe5ec}
.package-tabs button:last-child{border-right:none}
.package-tabs button.is-active{color:#111827;box-shadow:inset 0 -3px 0 #111827}
.package-box-body{padding:24px}
.package-price{font-size:2rem;font-weight:800;line-height:1.1;margin:10px 0 16px}
.package-box .ml-btn{width:100%;border-radius:10px;min-height:50px}
.single-service-sidebar .ml-btn.secondary{width:100%;margin-top:16px;border-radius:10px;min-height:50px}
@media (max-width: 1100px){.single-service-layout{grid-template-columns:1fr}.package-box{position:static}}
@media (max-width: 768px){.uploaded-work-preview{grid-template-columns:repeat(2,1fr)}.single-service-thumbs{grid-template-columns:repeat(3,1fr)}.service-card-footer{align-items:flex-start;flex-direction:column}}

.order-stack{display:grid;gap:14px}
.order-card{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px 18px;border:1px solid #e5e7eb;border-radius:16px;background:#fff}
.order-meta{margin-top:6px;color:#6b7280;font-size:.95rem}
.order-workspace-layout{display:grid;gap:22px}
.order-workspace-topline{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.order-workspace-grid{display:grid;grid-template-columns:minmax(0,1.4fr) 360px;gap:24px;align-items:start}
.workspace-chat-stream{display:grid;gap:14px;max-height:72vh;overflow:auto;padding-right:4px}
.workspace-message{background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;padding:14px 16px}
.workspace-message.is-mine{background:#ecfdf5;border-color:#bbf7d0}
.workspace-message.role-system{background:#eff6ff;border-color:#bfdbfe}
.workspace-message-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:8px;font-size:.92rem;color:#6b7280}
.workspace-message-body{white-space:pre-wrap;color:#111827}
.workspace-attachment{margin-top:10px;display:grid;gap:8px}
.workspace-attachment img{max-width:220px;border-radius:12px;border:1px solid #d1d5db;display:block}
.workspace-form input[type=file]{padding:12px;background:#fff}
@media (max-width: 960px){.order-workspace-grid{grid-template-columns:1fr}.order-card{flex-direction:column;align-items:flex-start}.order-workspace-topline{flex-direction:column}}

/* Payment + balance */
.payment-layout{display:grid;gap:24px}.payment-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:24px;align-items:start}.payment-service-card{display:grid;grid-template-columns:160px minmax(0,1fr) 180px;gap:20px;align-items:center}.payment-service-media img,.payment-service-media .single-service-media-fallback{width:100%;height:140px;object-fit:cover;border-radius:16px;background:#f3f4f6}.payment-price-box{padding:18px;border:1px solid #d0d5dd;border-radius:16px;background:#f8fafc;text-align:center}.payment-price-box strong{display:block;font-size:28px;margin-top:8px}.payment-meta-list{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}.payment-meta-list span{padding:6px 10px;border-radius:999px;background:#eef2ff;font-size:13px}.payment-form-stack select{width:100%;height:54px;border:2px solid #667085;border-radius:14px;padding:0 14px;background:#fff}.payment-info-card ol{margin:0;padding-left:18px}.payment-info-card li{margin:0 0 12px}.seller-balance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.seller-balance-box{padding:20px;border:1px solid #d0d5dd;border-radius:18px;background:#fff}.seller-balance-box span{display:block;color:#667085;font-size:14px;margin-bottom:8px}.seller-balance-box strong{display:block;font-size:30px;line-height:1.1;margin-bottom:8px}.seller-balance-box p{margin:0;color:#475467}.payment-shell .ml-alert{margin-bottom:18px}@media (max-width: 900px){.payment-grid,.payment-service-card,.seller-balance-grid{grid-template-columns:1fr}.payment-price-box{text-align:left}}

.withdraw-request-card .ml-btn{margin-top:8px}


.ml-cart-link{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid rgba(15,23,42,.12);border-radius:999px;background:#fff;color:#0f172a;text-decoration:none;font-weight:700;}
.ml-cart-link img{width:22px;height:22px;object-fit:contain;display:block;}
.buyer-history-section{padding-top:8px;}
.buyer-history-icon-wrap img{width:56px;height:56px;object-fit:contain;display:block;}
.buyer-history-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px;}
.buyer-history-card{border:1px solid rgba(15,23,42,.08);border-radius:22px;padding:22px;background:#fff;box-shadow:0 18px 40px rgba(15,23,42,.06);}
.buyer-history-card-top{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;}
.buyer-history-card-top img{width:42px;height:42px;object-fit:contain;display:block;opacity:.9;}
.buyer-history-status{display:inline-block;padding:6px 10px;border-radius:999px;background:#ecfdf3;color:#027a48;font-size:12px;font-weight:700;margin-bottom:10px;}
.buyer-history-card h3{margin:0 0 6px;font-size:20px;line-height:1.3;}
.buyer-history-card p{margin:0;color:#475467;}
.buyer-history-meta{display:flex;justify-content:space-between;gap:12px;margin-top:16px;color:#101828;font-weight:700;flex-wrap:wrap;}
.buyer-history-actions{margin-top:18px;}
.buyer-history-empty{max-width:420px;}
.workspace-form-status:empty{display:none;}


.service-promoted-badge{position:absolute;left:14px;top:14px;background:#111827;color:#fff;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700;z-index:2}
.promote-service-card select,.promote-service-card input,.promote-service-card textarea{width:100%}
.buyer-history-icon-wrap img,.ml-cart-link img{width:28px;height:28px;object-fit:contain}


/* v37 seller page UI polish */
.seller-hero-banner{
  background: linear-gradient(135deg, #0f172a 0%, #111827 40%, #1dbf73 140%);
  color:#fff;
}
.seller-hero-banner p{color:rgba(255,255,255,.82)}
.seller-dashboard-topstats{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}
.seller-topstat-card{
  background:#fff;
  border:1px solid var(--ml-border);
  border-radius:22px;
  padding:20px 22px;
  box-shadow:var(--ml-shadow);
}
.seller-topstat-card span{display:block;color:var(--ml-muted);margin-bottom:10px;font-weight:700}
.seller-topstat-card strong{font-size:1.8rem;line-height:1.1;color:var(--ml-dark)}
.dashboard-section-heading{display:flex;justify-content:space-between;gap:18px;align-items:end;margin:-2px 0 -4px}
.dashboard-section-heading h2{margin:0;font-size:1.6rem}
.dashboard-section-heading p{margin:0;color:var(--ml-muted);max-width:700px}
.seller-clean-card{
  border:1px solid #e8edf3;
  border-radius:20px;
  padding:18px 20px;
  background:#fbfcfe;
  box-shadow:none;
}
.order-stack{display:grid;gap:14px}
.order-card{display:flex;justify-content:space-between;gap:16px;align-items:center}
.order-card strong{display:block;font-size:1.05rem;margin-bottom:6px}
.order-meta{color:var(--ml-muted);font-size:.95rem}
.seller-service-card{padding:0;overflow:hidden}
.seller-service-card .service-card-content{padding:22px}
.seller-service-card h3{font-size:1.1rem;line-height:1.35;margin:0 0 10px}
.seller-service-card p{min-height:48px}
.service-meta-row{display:flex;justify-content:space-between;gap:12px;margin-top:16px;padding-top:14px;border-top:1px solid var(--ml-border);font-weight:700}
.service-meta-row span:last-child{color:var(--ml-muted)}
.seller-sidebar-ui .seller-onboarding-note{
  padding:14px 16px;
  border-radius:16px;
  background:#f8fafc;
  color:#334155;
  border:1px solid #e5edf5;
  margin:18px 0 20px;
  font-weight:600;
}
.seller-main-ui{padding:36px}
.seller-onboarding-form .seller-step{
  padding:8px 0 2px;
}
.seller-onboarding-form .seller-step h2{font-size:clamp(1.9rem,3vw,2.7rem)}
.seller-onboarding-form input[type="number"],
.seller-onboarding-form input[type="email"],
.seller-onboarding-form input[type="password"],
.seller-onboarding-form input[type="file"],
.seller-onboarding-form input[type="date"],
.seller-onboarding-form input[type="text"],
.seller-onboarding-form input[type="url"],
.seller-onboarding-form textarea,
.seller-onboarding-form select{
  width:100%;
  min-height:56px;
  border:1.5px solid #d8e1ea;
  border-radius:16px;
  padding:15px 16px;
  background:#fff;
  font:inherit;
  transition:border-color .2s ease, box-shadow .2s ease;
}
.seller-onboarding-form textarea{min-height:130px;resize:vertical}
.seller-onboarding-form input:focus,
.seller-onboarding-form textarea:focus,
.seller-onboarding-form select:focus{
  outline:none;
  border-color:var(--ml-primary);
  box-shadow:0 0 0 4px rgba(29,191,115,.14);
}
.uploaded-work-preview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-top:18px}
.uploaded-work-thumb{border-radius:18px;overflow:hidden;border:1px solid var(--ml-border);background:#fff;min-height:120px}
.uploaded-work-thumb img{width:100%;height:100%;object-fit:cover}
.withdraw-request-card form .form-grid,
.promote-service-card form .form-grid{margin-top:18px}
@media (max-width:1100px){
  .seller-dashboard-topstats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .uploaded-work-preview{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:768px){
  .seller-dashboard-topstats,
  .uploaded-work-preview,
  .form-grid.cols-2,
  .dashboard-section-heading,
  .order-card{grid-template-columns:1fr;display:grid}
  .dashboard-section-heading{align-items:start}
  .order-card{gap:14px}
  .seller-main-ui{padding:24px}
}

.ml-promo-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}
.ml-promo-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.ml-promo-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 14px;
  min-width: 340px;
}
.ml-promo-summary div,
.ml-promo-item {
  background: #f8fafc;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  padding: 14px 16px;
}
.ml-promo-summary span,
.ml-promo-metrics span {
  display: block;
  color: #64748b;
  font-size: 13px;
}
.ml-promo-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  color: #0f172a;
}
.ml-promo-list {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}
.ml-promo-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.ml-promo-item strong {
  color: #0f172a;
  font-size: 16px;
}
.ml-promo-metrics {
  display: grid;
  gap: 6px;
  text-align: right;
}
@media (max-width: 860px) {
  .ml-promo-header,
  .ml-promo-item {
    flex-direction: column;
  }
  .ml-promo-summary {
    min-width: 0;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }
  .ml-promo-metrics {
    width: 100%;
    text-align: left;
  }
}

/* v39 seller dashboard cleanup */
.dashboard-side-rail{position:sticky;top:112px}
.seller-profile-card,
.dashboard-mini-card,
.dashboard-metrics-card,
.content-card,
.sidebar-card{overflow:hidden}
.level-list div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start}
.level-list span,
.metric-box span,
.seller-topstat-card span{line-height:1.4}
.level-list strong,
.metric-box strong,
.seller-topstat-card strong,
.mini-info-box strong,
.seller-balance-box strong{
  overflow-wrap:anywhere;
  word-break:break-word;
}
.dashboard-card-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px}
.seller-overview-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.seller-hero-banner{align-items:center;padding:34px 36px;border-radius:28px}
.seller-hero-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.seller-hero-meta span{display:inline-flex;align-items:center;min-height:36px;padding:8px 14px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.14);font-weight:700;color:#fff}
.seller-profile-card h2{font-size:1.7rem;line-height:1.2;overflow-wrap:anywhere}
.seller-profile-card p{font-size:1rem;line-height:1.6;overflow-wrap:anywhere}
.seller-dashboard-topstats{margin-top:4px}
.seller-topstat-card{min-height:126px;display:flex;flex-direction:column;justify-content:center}
.dashboard-metrics-card p,.section-lead,.content-card p{line-height:1.65}
.metrics-grid{align-items:stretch}
.metric-box{min-height:136px;display:flex;flex-direction:column;justify-content:space-between}
.mini-info-box{min-height:128px;display:flex;flex-direction:column;justify-content:space-between}
.seller-balance-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.seller-balance-box{min-height:186px}
.ml-promo-header{align-items:stretch}
.ml-promo-summary div{border-radius:18px;padding:18px 16px}
.ml-promo-summary span{display:block;color:var(--ml-muted);margin-bottom:8px;font-size:13px;font-weight:700}
.ml-promo-summary strong{font-size:1.4rem;line-height:1.2;color:var(--ml-dark)}
.ml-promo-list{display:grid;gap:12px;margin-bottom:18px}
.ml-promo-item{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:18px;border-radius:18px}
.ml-promo-metrics{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}
.ml-promo-metrics span{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;background:#fff;border:1px solid #d8e1ea;font-size:13px;font-weight:700}
.order-card{padding:18px 20px;border-radius:18px}
.order-card form,.order-card .ml-btn{flex-shrink:0}
.service-grid.compact-grid{gap:18px}
@media (max-width: 1200px){
  .dashboard-side-rail{position:static}
  .seller-overview-grid,.seller-balance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 900px){
  .dashboard-card-head,.ml-promo-header,.ml-promo-item{flex-direction:column}
  .ml-promo-summary{min-width:0;width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 768px){
  .seller-overview-grid,.seller-balance-grid,.ml-promo-summary{grid-template-columns:1fr}
  .seller-hero-banner{padding:28px 24px}
  .seller-profile-card,.dashboard-mini-card,.dashboard-metrics-card,.content-card,.sidebar-card{border-radius:22px}
}


.marketlance-user-avatar,.seller-avatar-image,.single-service-seller-avatar{object-fit:cover;border-radius:999px;display:block}
.seller-avatar-image-wrap{width:72px;height:72px;padding:0;overflow:hidden;background:transparent}
.seller-phone-line{margin:-4px 0 18px;color:var(--ml-muted);font-weight:600;overflow-wrap:anywhere}
.footer-inner-rich{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:24px;align-items:flex-start}
.footer-brand-block h3,.footer-links-block h4,.footer-social-block h4{margin:0 0 12px}
.footer-links-list{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.footer-links-list a,.footer-social-links a{color:var(--ml-muted);text-decoration:none}
.footer-links-list a:hover,.footer-social-links a:hover{color:var(--ml-primary)}
.footer-social-links{display:flex;flex-wrap:wrap;gap:12px}
.footer-bottom-row{padding-top:16px;border-top:1px solid rgba(255,255,255,.08)}
@media (max-width: 900px){.footer-inner-rich{grid-template-columns:1fr}}


/* v47 package card polish */
.seller-package-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:14px}
.seller-package-card{background:#fff;border:1px solid #e4e7ec;border-radius:18px;padding:18px;box-shadow:0 10px 24px rgba(16,24,40,.04)}
.seller-package-card h4{margin:0 0 16px;font-size:1.1rem;color:#101828}
.seller-package-card label{display:block;margin-bottom:14px}
.seller-package-card label span{display:block;font-size:.92rem;font-weight:600;color:#344054;margin-bottom:8px}
.seller-package-card input{width:100%;height:48px;border:1px solid #d0d5dd;border-radius:12px;padding:0 14px;background:#fff;color:#101828;font-size:15px;box-sizing:border-box}
.seller-package-card input:focus{outline:none;border-color:#16a34a;box-shadow:0 0 0 3px rgba(34,197,94,.14)}
.seller-package-basic{border-top:4px solid #22c55e}
.seller-package-standard{border-top:4px solid #0ea5e9}
.seller-package-premium{border-top:4px solid #f59e0b}
.seller-help{margin-top:6px}
@media (max-width: 980px){.seller-package-grid{grid-template-columns:1fr}}


/* v48 seller dashboard form controls */
.withdraw-request-card .form-grid,
.promote-service-card .form-grid{gap:18px;align-items:start}
.withdraw-request-card .form-grid.cols-2,
.promote-service-card .form-grid.two-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
.withdraw-request-card label,
.promote-service-card label{display:block;width:100%;margin:0}
.withdraw-request-card label.full-width,
.promote-service-card label.full-width{grid-column:1 / -1}
.withdraw-request-card label span,
.promote-service-card label span{display:block;margin:0 0 10px;font-size:.95rem;font-weight:800;color:#0f172a}
.withdraw-request-card input[type="text"],
.withdraw-request-card input[type="number"],
.withdraw-request-card textarea,
.promote-service-card input[type="text"],
.promote-service-card input[type="number"],
.promote-service-card select,
.promote-service-card textarea{
  display:block;
  width:100%;
  min-height:56px;
  border:2px solid #cfd8e3;
  border-radius:16px;
  padding:16px 18px;
  font:inherit;
  line-height:1.25;
  color:#0f172a;
  background:#fff;
  box-shadow:0 3px 10px rgba(15,23,42,.03);
  box-sizing:border-box;
  -webkit-appearance:none;
  appearance:none;
}
.withdraw-request-card textarea,
.promote-service-card textarea{min-height:128px;resize:vertical}
.withdraw-request-card input[type="number"],
.promote-service-card input[type="number"]{padding-right:18px}
.withdraw-request-card input::placeholder,
.withdraw-request-card textarea::placeholder,
.promote-service-card input::placeholder,
.promote-service-card textarea::placeholder{color:#7b8794;opacity:1}
.withdraw-request-card input:hover,
.withdraw-request-card textarea:hover,
.promote-service-card input:hover,
.promote-service-card select:hover,
.promote-service-card textarea:hover{border-color:#9fb0c4}
.withdraw-request-card input:focus,
.withdraw-request-card textarea:focus,
.promote-service-card input:focus,
.promote-service-card select:focus,
.promote-service-card textarea:focus{outline:none;border-color:#16a34a;box-shadow:0 0 0 4px rgba(34,197,94,.14)}
@media (max-width: 768px){
  .withdraw-request-card .form-grid.cols-2,
  .promote-service-card .form-grid.two-columns{grid-template-columns:1fr}
}


/* v49 polish + animation */
body.ml-js .ml-reveal{opacity:0;transform:translateY(18px) scale(.985);transition:opacity .55s ease, transform .55s ease}
body.ml-js .ml-reveal.is-visible{opacity:1;transform:none}
@keyframes mlFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes mlGlow{0%,100%{box-shadow:0 10px 30px rgba(15,23,42,.05)}50%{box-shadow:0 18px 38px rgba(29,191,115,.14)}}
.hero-card{animation:mlFloat 6s ease-in-out infinite, mlGlow 6s ease-in-out infinite}
.service-card,.category-card,.step-card,.feature-card,.testimonial-card,.package-card,.content-card,.sidebar-card,.seller-profile-card,.dashboard-mini-card,.dashboard-metrics-card,.withdraw-request-card,.promote-service-card{transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease}
.service-card:hover,.category-card:hover,.step-card:hover,.feature-card:hover,.testimonial-card:hover,.package-card:hover,.content-card:hover,.sidebar-card:hover,.seller-profile-card:hover,.dashboard-mini-card:hover,.dashboard-metrics-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(15,23,42,.08);border-color:#d6dae1}
.seller-main-ui,.content-card,.sidebar-card,.withdraw-request-card,.promote-service-card{background:linear-gradient(180deg,#fff 0%,#fcfcfd 100%)}
input[type="text"],input[type="email"],input[type="password"],input[type="url"],input[type="number"],input[type="date"],input[type="file"],select,textarea{transition:border-color .2s ease, box-shadow .2s ease, background-color .2s ease}
.seller-progress-list li,.primary-menu a,.ml-btn{transition:all .2s ease}
.section-heading-row,.dashboard-section-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;flex-wrap:wrap}
.tablet-stack,.dashboard-content-grid,.dashboard-lower-grid{align-items:start}
.ml-soft-divider{height:1px;background:linear-gradient(90deg,transparent,#e5e7eb,transparent);margin:8px 0 0}
.seller-package-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:18px}
.seller-package-card{position:relative;overflow:hidden;background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);border:1px solid #d9dee7;border-radius:18px;padding:18px;box-shadow:0 8px 24px rgba(15,23,42,.05)}
.seller-package-card::after{content:"";position:absolute;inset:0 0 auto 0;height:4px;background:linear-gradient(90deg,#1dbf73,#34d399);opacity:.95}
.seller-package-card h3{margin:10px 0 14px;font-size:1.08rem}
.seller-package-card label{display:block;margin:0 0 12px}
.seller-package-card label span{display:block;font-weight:700;font-size:14px;margin-bottom:8px;color:#0f172a}
.seller-package-card input{height:52px;border:1.5px solid #cfd6df;border-radius:14px;padding:0 14px;background:#fff}
.seller-package-card input:hover{border-color:#97a6b9}
.dashboard-hero-card{position:relative;overflow:hidden}
.dashboard-hero-card::before{content:"";position:absolute;width:260px;height:260px;right:-90px;top:-120px;background:radial-gradient(circle,rgba(29,191,115,.28),transparent 65%);pointer-events:none}
.dashboard-hero-card::after{content:"";position:absolute;width:220px;height:220px;left:-120px;bottom:-120px;background:radial-gradient(circle,rgba(255,255,255,.14),transparent 70%);pointer-events:none}
.seller-profile-card,.dashboard-hero-card,.dashboard-mini-card,.dashboard-metrics-card,.content-card,.sidebar-card,.withdraw-request-card,.promote-service-card{position:relative}
.seller-profile-card .ml-btn.secondary,.content-card .ml-btn.secondary,.sidebar-card .ml-btn.secondary{background:#fff}
.workspace-thread,.order-card,.buyer-history-card,.payment-service-card,.payment-price-box,.seller-balance-box{transition:box-shadow .2s ease,border-color .2s ease,transform .2s ease}
.workspace-thread:hover,.order-card:hover,.buyer-history-card:hover,.payment-service-card:hover,.payment-price-box:hover,.seller-balance-box:hover{box-shadow:0 14px 28px rgba(15,23,42,.07);border-color:#d4d9e1}
@media (max-width: 980px){.seller-package-grid{grid-template-columns:1fr}.hero-card{animation:none}}

.ml-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
  margin-top: 28px;
}
.ml-icon-card {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(229,231,235,.95);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 18px 35px rgba(15,23,42,.06);
  text-align: center;
}
.ml-icon-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 12px;
}
.ml-icon-card h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.ml-icon-card p {
  margin: 0;
  color: var(--ml-muted);
  font-size: .95rem;
  line-height: 1.5;
}
.feature-media {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin-bottom: 16px;
}
.feature-card,
.step-card,
.category-card,
.content-card,
.service-card,
.ml-icon-card {
  transition: transform .22s ease, box-shadow .22s ease;
}
.feature-card:hover,
.step-card:hover,
.category-card:hover,
.content-card:hover,
.service-card:hover,
.ml-icon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px rgba(15,23,42,.10);
}
@media (max-width: 900px) {
  .ml-icon-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .ml-icon-grid { grid-template-columns: 1fr; }
}


/* v53 homepage sections */
.ml-services-highlight {
  padding-top: 24px;
}
.ml-icon-grid-featured {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.ml-icon-card-featured {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,251,255,.98) 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
}
.ml-icon-card-featured:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.1);
}
.ml-icon-media-wrap {
  width: 108px;
  height: 108px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(29,191,115,.12), rgba(61,196,201,.14));
  border: 1px solid rgba(29,191,115,.14);
}
.ml-icon-media-wrap img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.ml-icon-card-body h3 {
  margin: 8px 0 8px;
  font-size: 1.3rem;
  line-height: 1.2;
}
.ml-icon-card-body p {
  margin: 0;
  color: var(--ml-muted);
}
.ml-icon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15,23,42,.06);
  color: var(--ml-dark);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .01em;
}
.ml-icon-points {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ml-icon-points li {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: .9rem;
  font-weight: 600;
}
#categories .grid-4 {
  gap: 22px;
}
#categories .category-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}
#categories .category-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, #1dbf73, #3dc4c9);
}
#categories .category-card .icon-pill {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(29,191,115,.16), rgba(61,196,201,.16));
  color: #0f172a;
}
#categories .category-card h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}
#categories .category-card p {
  line-height: 1.65;
}
@media (max-width: 980px) {
  .ml-icon-grid-featured {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .ml-icon-card-featured {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .ml-icon-media-wrap {
    width: 84px;
    height: 84px;
  }
  .ml-icon-media-wrap img {
    width: 58px;
    height: 58px;
  }
}


/* v54 homepage card cleanup */
.ml-icon-media-wrap {
  width: 72px;
  height: 72px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.ml-icon-media-wrap img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.feature-card .feature-media {
  display: none;
}


/* Contact page */
.ml-contact-hero { padding: 48px 0 18px; }
.ml-contact-section { padding: 8px 0 72px; }
.ml-contact-card { max-width: 860px; margin: 0 auto; background: #fff; border: 1px solid #e6ebf2; border-radius: 28px; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07); padding: 28px; }
.ml-contact-card__intro { margin-bottom: 18px; }
.ml-contact-card__intro h2 { margin: 0 0 8px; font-size: 30px; }
.ml-contact-card__intro p { margin: 0; color: #667085; }
.ml-form-grid { display: grid; gap: 18px; }
.ml-form-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ml-field { display: block; margin-bottom: 18px; }
.ml-field span { display: block; margin-bottom: 8px; font-weight: 700; color: #1d2939; }
.ml-contact-form input, .ml-contact-form textarea { width: 100%; border: 1.5px solid #cfd8e3; border-radius: 16px; padding: 15px 16px; font-size: 16px; line-height: 1.35; color: #101828; background: #fff; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.ml-contact-form input { min-height: 54px; }
.ml-contact-form textarea { min-height: 180px; resize: vertical; }
.ml-contact-form input:focus, .ml-contact-form textarea:focus { outline: none; border-color: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.14); }
.ml-form-notice { margin: 0 0 18px; padding: 14px 16px; border-radius: 16px; background: #ecfdf3; border: 1px solid #a6f4c5; color: #027a48; font-weight: 600; }
@media (max-width: 767px) { .ml-form-grid--two { grid-template-columns: 1fr; } .ml-contact-card { padding: 20px; border-radius: 22px; } .ml-contact-card__intro h2 { font-size: 24px; } }


/* v58 layout restore */
html, body { overflow-x: hidden; }
.container { max-width: var(--ml-container); }
.nav-wrap { flex: 1; justify-content: space-between; min-width: 0; }
.header-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; justify-content:flex-end; }
.primary-menu { flex-wrap: wrap; }
.hero { padding: 52px 0 36px; }
.hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); min-height: 0; }
.hero h1 { font-size: clamp(2.6rem, 4.8vw, 4.8rem); max-width: 720px; }
.hero-card { max-width: 100%; }
.ml-services-highlight { padding-top: 32px; }
.ml-icon-grid, .grid-4, .grid-3 { align-items: stretch; }
.ml-icon-card, .category-card, .feature-card, .service-card { height: 100%; }
.ml-contact-page .ml-shell, .ml-page-shell .ml-shell { width: min(calc(100% - 32px), 1100px); margin: 0 auto; }
.ml-contact-card { max-width: 860px; margin: 0 auto; }
@media (max-width: 1100px){ .header-inner { align-items:flex-start; padding:14px 0; } .nav-wrap { flex-direction:column; align-items:flex-end; } }
@media (max-width: 900px){ .hero-grid { grid-template-columns: 1fr; } .hero h1 { max-width:none; } .hero-card { order:2; } }


/* v59 fullscreen layout fix */
.site-header, .hero, .section, .footer, .ml-contact-page, .ml-page-shell { width: 100%; }
.container, .ml-shell { width: min(100% - 40px, var(--ml-container)); max-width: var(--ml-container); margin-left: auto; margin-right: auto; }
.hero-grid { min-height: 0; padding: 52px 0 72px; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); }
.hero h1 { font-size: clamp(3rem, 5.5vw, 5.4rem); max-width: 12ch; }
.hero-card { width: 100%; max-width: none; }
.stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section { padding: 88px 0; }
.ml-contact-page .ml-shell, .ml-page-shell .ml-shell { width: min(100% - 40px, 1180px); }
body.home .site-header + * { overflow: clip; }
@media (max-width: 1200px) { .container, .ml-shell { width: min(100% - 28px, 1280px); } }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; padding: 40px 0 56px; } .hero h1 { max-width: none; font-size: clamp(2.4rem, 10vw, 4.2rem); } }


/* v60 safety fixes */
.service-card-meta{display:flex;gap:10px;flex-wrap:wrap;color:#667085;font-size:.95rem;margin-bottom:12px}
.service-seller-name{font-weight:700;color:#111827}
.service-seller-level{font-size:.82rem;color:#667085}
.site-main, main{width:100%}
body.home .container, body.home .ml-shell{max-width:1440px;width:min(100% - 40px, 1440px)}
body.home .hero-grid{align-items:center}

/* Hero refresh to match provided reference */
.hero-showcase {
  padding: 42px 0 24px;
  background:
    radial-gradient(circle at 6% 10%, rgba(61, 196, 201, 0.16), transparent 24%),
    radial-gradient(circle at 92% 18%, rgba(29, 191, 115, 0.10), transparent 18%),
    linear-gradient(135deg, #f5fbf8 0%, #eef8f4 42%, #edf5f8 100%);
}
.hero-grid-showcase {
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 28px;
  min-height: 620px;
  align-items: center;
}
.hero-copy {
  max-width: 760px;
  padding: 22px 0;
}
.hero-showcase .hero-copy h1 {
  font-size: clamp(3rem, 5.6vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: 20px;
  max-width: 9ch;
  color: #1d2435;
}
.hero-showcase .hero-copy p {
  font-size: 1.18rem;
  max-width: 640px;
  margin-bottom: 28px;
}
.hero-showcase .hero-search {
  max-width: 680px;
  padding: 10px;
  border: 1px solid rgba(18, 26, 38, 0.06);
  box-shadow: 0 18px 45px rgba(22, 38, 44, 0.08);
}
.hero-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: end;
  justify-content: center;
}
.hero-visual-glow {
  position: absolute;
  inset: 20px 10px 10px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% 32%, rgba(255,255,255,0.92) 0, rgba(255,255,255,0.78) 34%, rgba(214, 244, 232, 0.55) 62%, rgba(214,244,232,0.12) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.52) 0%, rgba(224,243,235,0.42) 100%);
  border: 1px solid rgba(255,255,255,.66);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}
.hero-visual-card {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  display: flex;
  justify-content: center;
  align-items: end;
}
.hero-visual-card img {
  max-height: 520px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(28, 39, 45, 0.12));
}
.hero-floating-badge {
  position: absolute;
  z-index: 3;
  min-width: 180px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(226,232,240,0.95);
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(10px);
}
.hero-floating-badge strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 6px;
  color: #152033;
}
.hero-floating-badge span {
  display: block;
  font-size: .95rem;
  color: var(--ml-muted);
  line-height: 1.4;
}
.hero-floating-badge-top { top: 78px; right: 18px; }
.hero-floating-badge-bottom { left: 18px; bottom: 42px; }

@media (max-width: 980px) {
  .hero-grid-showcase { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { max-width: none; }
  .hero-showcase .hero-copy h1 { max-width: none; font-size: clamp(2.8rem, 11vw, 4.6rem); }
  .hero-visual { min-height: 420px; }
  .hero-visual-card img { max-height: 360px; }
  .hero-floating-badge-top { top: 10px; right: 10px; }
  .hero-floating-badge-bottom { left: 10px; bottom: 8px; }
}


/* v65 hero cleanup */
.hero-showcase {
  padding: 26px 0 0;
}
.hero-grid-showcase {
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  gap: 36px;
  min-height: 620px;
}
.hero-showcase .hero-copy {
  padding: 34px 0 44px;
}
.hero-showcase .hero-copy h1 {
  max-width: 760px;
  font-size: clamp(3.2rem, 6.6vw, 6.2rem);
  line-height: .94;
  letter-spacing: -0.065em;
  color: #1b2438;
}
.hero-showcase .hero-copy p {
  max-width: 660px;
  font-size: 1.14rem;
}
.hero-showcase .hero-search {
  max-width: 700px;
}
.hero-visual-clean {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 30px 0 0;
}
.hero-visual-clean::before {
  content: "";
  position: absolute;
  inset: 10% 0 8% 8%;
  background:
    radial-gradient(circle at 62% 32%, rgba(255,255,255,.65), transparent 30%),
    radial-gradient(circle at 46% 72%, rgba(29,191,115,.08), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.06));
  border-radius: 46px;
  pointer-events: none;
}
.hero-character {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: 620px;
  object-fit: contain;
  filter: drop-shadow(0 22px 32px rgba(15,23,42,.12));
}
.hero-visual-card,
.hero-floating-badge,
.hero-visual-glow {
  display: none !important;
}
@media (max-width: 1100px) {
  .hero-grid-showcase {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: 0;
  }
  .hero-visual-clean {
    min-height: 420px;
    order: 2;
  }
  .hero-visual-clean::before {
    inset: 8% 4% 4%;
  }
  .hero-character {
    max-height: 420px;
    width: min(100%, 420px);
  }
}
