:root {
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-soft: #edf3f0;
  --ink: #17211f;
  --muted: #66736f;
  --line: #d9e2de;
  --brand: #117466;
  --brand-dark: #0b584e;
  --accent: #d48b24;
  --danger: #b44444;
  --shadow: 0 18px 45px rgba(23, 33, 31, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(17, 116, 102, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(212, 139, 36, 0.12), transparent 42%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

input[type="color"] {
  padding: 4px;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 24px 18px;
  background: #13211f;
  color: #f7fbfa;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 34px;
}

.brand-logo {
  display: block;
  width: 202px;
  max-width: 100%;
  height: auto;
  padding: 6px 10px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--accent);
  color: #241506;
  font-weight: 900;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: #aac1bc;
  font-size: 0.85rem;
}

.tabs {
  display: grid;
  gap: 8px;
}

.tab-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: transparent;
  color: #d9e8e4;
  text-align: left;
}

.tab-button span:first-child {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #f4b65c;
}

.tab-button.active,
.tab-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.admin-entry {
  width: 100%;
  min-height: 40px;
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #aac1bc;
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-entry:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.content {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px;
}

.topbar,
.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.topbar h1,
.section-head h2 {
  margin: 0;
}

.topbar h1 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-cover {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  align-items: flex-end;
  border-radius: 8px;
  padding: clamp(24px, 5vw, 52px);
  background:
    linear-gradient(90deg, rgba(244, 247, 246, 0.98) 0%, rgba(244, 247, 246, 0.8) 38%, rgba(244, 247, 246, 0.2) 68%),
    url("assets/profissionais-parana.svg") center right / cover no-repeat;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.hero-actions {
  display: grid;
  gap: 12px;
  min-width: min(280px, 100%);
  padding: 14px;
  border: 1px solid rgba(217, 226, 222, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
}

.city-control {
  color: var(--brand-dark);
}

.section-head h2 {
  font-size: 1.9rem;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.stat,
.panel,
.ranking-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.stat {
  min-height: 118px;
  padding: 18px;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.stat strong {
  display: block;
  margin-top: 14px;
  font-size: 2.4rem;
  line-height: 1;
}

.split-layout,
.forms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.panel {
  padding: 18px;
}

.panel h3,
.form-panel h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.form-panel,
.hire-form {
  display: grid;
  gap: 14px;
}

.hire-form {
  grid-template-columns: 1fr 1fr minmax(240px, 1.2fr) auto;
  align-items: end;
  margin-bottom: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfdfc;
  color: var(--ink);
  outline: none;
}

.forms-grid .form-panel:first-child {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.forms-grid .form-panel:first-child h3,
.forms-grid .form-panel:first-child .primary-button {
  grid-column: 1 / -1;
}

input:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(17, 116, 102, 0.15);
}

.primary-button,
.ghost-button,
.danger-button,
.star-button {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 10px 14px;
  font-weight: 800;
}

.primary-button {
  background: var(--brand);
  color: #ffffff;
}

.primary-button:hover {
  background: var(--brand-dark);
}

.ghost-button {
  background: var(--surface);
  border-color: var(--line);
  color: var(--brand-dark);
}

.danger-button {
  background: #fff7f7;
  border-color: #f0cccc;
  color: var(--danger);
}

.list,
.job-board,
.ranking-board {
  display: grid;
  gap: 12px;
}

.person-row,
.job-card,
.ranking-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.person-main,
.job-head,
.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.person-title,
.job-title,
.ranking-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--brand-dark);
  font-weight: 900;
}

.name-line {
  min-width: 0;
}

.name-line strong,
.name-line span {
  display: block;
  overflow-wrap: anywhere;
}

.name-line span,
.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.stars {
  color: var(--accent);
  white-space: nowrap;
}

.rating-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.star-button {
  min-width: 44px;
  padding: 8px 11px;
  background: #fff9ef;
  border-color: #f1d4a8;
  color: #7a4b0d;
}

.status-pill {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--surface-soft);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.pro-pill {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: #13211f;
  color: #f4b65c;
  font-size: 0.74rem;
  font-weight: 900;
}

.ranking-card {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #13211f;
  color: #ffffff;
  font-weight: 900;
}

.ranking-score {
  text-align: right;
}

.ranking-score strong {
  display: block;
  font-size: 1.6rem;
}

.empty {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pricing-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.pricing-card.featured {
  border-color: rgba(212, 139, 36, 0.58);
  background: linear-gradient(180deg, #fffaf0, #ffffff 54%);
}

.pricing-card h3,
.pricing-card p,
.pricing-card ul {
  margin: 0;
}

.pricing-card h3 {
  font-size: 1.35rem;
}

.pricing-card strong {
  font-size: 2rem;
  line-height: 1.05;
}

.pricing-card p,
.pricing-card li {
  color: var(--muted);
  line-height: 1.5;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.plan-label {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--surface-soft);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.payment-options {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(17, 116, 102, 0.25);
  border-radius: 8px;
  background: rgba(17, 116, 102, 0.06);
  color: var(--brand-dark);
  font-weight: 800;
}

.payment-methods {
  display: grid;
  gap: 8px;
}

.payment-method {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.payment-method.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.payment-options small {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
}

.profile-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-form h3,
.profile-form .primary-button {
  grid-column: 1 / -1;
}

.profile-preview {
  align-self: start;
}

.preview-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface-soft);
}

.preview-card strong,
.preview-card span,
.profile-lines span {
  display: block;
}

.preview-card span,
.profile-lines span {
  color: var(--muted);
}

.profile-lines {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 24px;
  align-items: center;
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 34px);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.trust-copy {
  display: grid;
  gap: 18px;
}

.trust-block {
  display: grid;
  gap: 8px;
}

.trust-label {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--surface-soft);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.trust-block h2,
.trust-block p,
.trust-visual {
  margin: 0;
}

.client-message h2 {
  max-width: 680px;
  color: var(--brand-dark);
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.client-message p {
  max-width: 620px;
  color: var(--danger);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
}

.professional-message {
  max-width: 680px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.professional-message h2 {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.12;
}

.professional-message p {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
}

.trust-visual {
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-soft);
}

.trust-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.qr-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
}

.qr-button {
  width: 132px;
  height: 132px;
  border: 0;
  border-radius: 6px;
  padding: 0;
  background: #ffffff;
}

.qr-card svg,
.qr-button svg {
  display: block;
  width: 132px;
  height: 132px;
  border-radius: 6px;
}

.qr-card strong,
.qr-card span {
  display: block;
}

.qr-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 8px;
  background: #13211f;
  color: #ffffff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .admin-entry {
    margin-top: 14px;
  }

  .tab-button {
    justify-content: center;
  }

  .tab-button span:last-child {
    display: none;
  }

  .content {
    padding: 20px;
  }

  .stats-grid,
  .split-layout,
  .forms-grid,
  .hire-form,
  .pricing-grid,
  .profile-grid,
  .profile-form,
  .trust-section {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  .hero-cover {
    min-height: 520px;
    align-items: start;
    background:
      linear-gradient(180deg, rgba(244, 247, 246, 0.98) 0%, rgba(244, 247, 246, 0.9) 46%, rgba(244, 247, 246, 0.2) 100%),
      url("assets/profissionais-parana.svg") center bottom / cover no-repeat;
  }

  .forms-grid .form-panel:first-child {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .content {
    padding: 16px;
  }

  .topbar h1 {
    font-size: 2.35rem;
  }

  .person-main,
  .job-head,
  .ranking-card {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .person-main,
  .job-head,
  .ranking-head {
    flex-direction: column;
  }

  .ranking-score {
    text-align: left;
  }

  .qr-card {
    grid-template-columns: 1fr;
  }

  .trust-section {
    padding: 18px;
  }

  .client-message h2 {
    font-size: 2.15rem;
  }
}
