:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff4ff;
  --accent: #f59e0b;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --ok: #16a34a;
  --star: #f59e0b;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(15, 23, 42, .07);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, 92%); margin: 0 auto; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; }
.brand__logo {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #06b6d4);
  color: #fff; font-weight: 800;
}
.brand__logo--sm { width: 28px; height: 28px; font-size: .9rem; }
.brand__img { height: 36px; width: auto; display: block; }
.brand__name { letter-spacing: .5px; }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: .95rem; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav a.btn--primary { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 12px 22px; font: inherit; font-weight: 700; cursor: pointer;
  transition: transform .05s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--sm { padding: 9px 16px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: #1a1206; }

/* Hero */
.hero { padding: 68px 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.1; margin: 0 0 16px; letter-spacing: -1px; }
.hero h1 span { color: var(--brand); }
.hero p.lead { font-size: 1.14rem; color: var(--muted); margin: 0 0 26px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 28px; margin-top: 32px; }
.hero__stats b { display: block; font-size: 1.5rem; }
.hero__stats span { color: var(--muted); font-size: .88rem; }

.searchbox {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px; display: flex; gap: 8px; margin-top: 8px;
}
.searchbox input, .searchbox select {
  border: 0; font: inherit; padding: 12px; border-radius: 10px; background: #fff;
}
.searchbox input { flex: 1; }
.searchbox select { border-left: 1px solid var(--line); color: var(--muted); }

.hero__art {
  background: linear-gradient(160deg, #eef4ff, #f7fbff);
  border: 1px solid var(--line); border-radius: 24px; padding: 26px;
  box-shadow: var(--shadow-lg);
}
.mini-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.mini-card:last-child { margin-bottom: 0; }
.mini-card .avatar { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 700; }
.mini-card small { color: var(--muted); }

/* Sections */
.section { padding: 46px 0; }
.section__head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.section__head h2 { font-size: 1.7rem; margin: 0; }
.section__head p { margin: 6px 0 0; color: var(--muted); }
.eyebrow { color: var(--brand); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: .78rem; }

/* Category chips */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; cursor: pointer; transition: .18s; text-align: left;
}
.cat:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat__icon { font-size: 1.8rem; }
.cat__name { font-weight: 700; margin-top: 8px; }
.cat__count { color: var(--muted); font-size: .84rem; }

/* Provider grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.pcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); cursor: pointer; transition: .18s;
  display: flex; flex-direction: column;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pcard__top { display: flex; gap: 14px; align-items: center; }
.avatar {
  width: 54px; height: 54px; border-radius: 14px; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.2rem;
}
.pcard h3 { margin: 0; font-size: 1.08rem; }
.pcard .trade { color: var(--brand); font-weight: 600; font-size: .9rem; }
.pcard__meta { color: var(--muted); font-size: .86rem; margin-top: 2px; }
.pcard__desc { color: var(--muted); font-size: .92rem; margin: 14px 0; flex: 1; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; }
.badge { background: var(--brand-soft); color: var(--brand-dark); padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge--verified { background: #ecfdf5; color: var(--ok); }

/* Stars */
.stars { display: inline-flex; align-items: center; gap: 3px; color: var(--star); font-size: .95rem; }
.stars--input { font-size: 1.7rem; cursor: pointer; gap: 4px; }
.stars--input span { cursor: pointer; color: var(--line); transition: .1s; }
.stars--input span.on { color: var(--star); }
.rating-num { font-weight: 700; margin-left: 4px; }
.rating-count { color: var(--muted); font-size: .82rem; }

/* Filters bar */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; align-items: center; }
.filters input, .filters select {
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff;
}
.filters input { flex: 1; min-width: 200px; }

/* Profile */
.profile-hero {
  background: linear-gradient(135deg, var(--brand), #06b6d4);
  color: #fff; border-radius: 0 0 28px 28px; padding: 40px 0 44px;
}
.profile-hero__inner { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.profile-hero .avatar { width: 92px; height: 92px; font-size: 2rem; border: 3px solid rgba(255,255,255,.5); }
.profile-hero h1 { margin: 0 0 4px; font-size: 2rem; }
.profile-hero .trade { color: #e0f2fe; font-weight: 600; font-size: 1.05rem; }
.profile-hero__stats { display: flex; gap: 26px; margin-top: 10px; flex-wrap: wrap; }
.profile-hero__stats b { display: block; font-size: 1.3rem; }
.profile-hero__stats span { color: #e0f2fe; font-size: .82rem; }
.profile-hero .stars { color: #fde68a; }

.profile-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; margin-top: -22px; position: relative; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.panel h3 { margin: 0 0 14px; font-size: 1.15rem; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { background: var(--brand-soft); color: var(--brand-dark); padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.contact-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); display: grid; place-items: center; }

/* Reviews */
.review { border-bottom: 1px solid var(--line); padding: 16px 0; }
.review:last-child { border-bottom: 0; }
.review__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.review__head .who { font-weight: 700; }
.review__head .when { color: var(--muted); font-size: .8rem; margin-left: auto; }
.review p { margin: 4px 0 0; color: #334155; }

.rating-summary { display: flex; gap: 20px; align-items: center; margin-bottom: 8px; }
.rating-big { font-size: 3rem; font-weight: 800; line-height: 1; }
.bar-row { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.bar { flex: 1; height: 7px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--star); }

/* Forms */
.form-wrap { max-width: 720px; margin: 0 auto; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 7px; font-size: .92rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; font: inherit; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.field textarea { resize: vertical; min-height: 96px; }
.field .hint { color: var(--muted); font-size: .82rem; margin-top: 5px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 8px; }
.check { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; font-size: .9rem; }
.check input { width: auto; }
.check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step__n { width: 38px; height: 38px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 12px; }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(30px);
  background: var(--ink); color: #fff; padding: 14px 22px; border-radius: 12px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .25s; z-index: 100; font-weight: 600;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Footer */
.footer { border-top: 1px solid var(--line); background: #fff; margin-top: 40px; padding: 34px 0; }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 24px; align-items: start; }
.footer__inner p { color: var(--muted); margin: 8px 0 0; font-size: .9rem; }
.footer__links { display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.footer__links a:hover { color: var(--brand); }
.footer small { color: var(--muted); grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--line); }

.empty { text-align: center; color: var(--muted); padding: 50px 0; }
.back-link { color: var(--muted); font-weight: 600; display: inline-flex; gap: 6px; margin-bottom: 16px; }
.back-link:hover { color: var(--brand); }

/* Responsive */
@media (max-width: 860px) {
  .hero__grid, .profile-grid, .footer__inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 66px; right: 4%; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-lg); }
  .nav-toggle { display: block; }
  .row-2 { grid-template-columns: 1fr; }
  .profile-grid { margin-top: 20px; }
}
