/* LAYOUT GERAL */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--bg-page);
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  color: var(--text-main);
  overflow-y: auto;
}

.shell {
  width: 100%;
  max-width: none;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: row;
  margin: 24px 0;
  overflow-x: hidden;  /* mantém o visual */
  overflow-y: auto;    /* permite rolagem vertical */
}

/* SIDEBAR */

.sidebar {
  width: 260px;
  border-right: 1px solid var(--border-soft);
  background: #fff9f0;
  padding: 18px 18px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-hover);
}

.logo-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.user-box {
  margin-top: 18px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border-soft);
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.user-role {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.menu-title {
  margin-top: 18px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.menu {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 6px;
}

.menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-main);
  border: 1px solid transparent;
  background: transparent;
  transition: 0.15s ease-in-out;
}

.menu a .menu-icon {
  width: 20px;
  text-align: center;
}

.menu a:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}

.menu a.menu-disabled {
  color: rgba(100, 116, 139, 0.42);
  cursor: default;
  pointer-events: none;
}

.menu a.menu-disabled .menu-icon {
  opacity: 0.35;
}

.menu a.menu-disabled:hover {
  background: transparent;
  border-color: transparent;
}

.menu a.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  font-weight: 600;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.menu a.active .menu-icon {
  opacity: 0.95;
}

.menu-section {
  margin-top: 12px;
  border-top: 1px solid rgba(245, 158, 11, 0.45);
  padding-top: 10px;
}

.menu-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #f59e0b;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  list-style: none;
  text-transform: uppercase;
}

.menu-section summary::-webkit-details-marker {
  display: none;
}

.menu-section summary::after {
  content: "+";
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
}

.menu-section[open] summary::after {
  content: "-";
}

.menu-section-body {
  display: grid;
  gap: 2px;
  margin-top: 4px;
}

.help-info-button {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent-hover);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.help-info-button:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.help-modal[hidden] {
  display: none;
}

.help-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.help-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
}

.help-modal-card {
  position: relative;
  width: min(460px, 100%);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.26);
}

.help-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-soft);
  border-radius: 50%;
  background: #ffffff;
  color: var(--text-main);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.help-modal-kicker {
  color: var(--accent-hover);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.help-modal-title {
  margin: 6px 40px 8px 0;
  color: var(--text-main);
  font-size: 20px;
  line-height: 1.2;
}

.help-modal-text {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
}

body.help-modal-open {
  overflow: hidden;
}

.menu-footer {
  margin-top: 18px;
  font-size: 11px;
  color: var(--text-muted);
}

.app-version {
  color: rgba(100, 116, 139, 0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.menu-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

.menu-footer a {
  color: var(--accent-hover);
  text-decoration: none;
  font-weight: 500;
}

.menu-footer-help {
  border: 0;
  background: transparent;
  color: var(--accent-hover);
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  padding: 0;
}

.menu-footer a:hover,
.menu-footer-help:hover {
  text-decoration: underline;
}

/* MAIN / CONTEÚDO */

.main {
  flex: 1;
  padding: 18px 20px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.welcome-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-main);
}

.welcome-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

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

.content-card {
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: #fffdf8;
  padding: 14px 16px 18px;
}

.content-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.title-with-help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.content-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 12px;
}

/* CARDS RÁPIDOS DO DASHBOARD */

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

.quick-card {
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  padding: 10px 12px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quick-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.quick-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.quick-link a,
.quick-link span {
  font-size: 12px;
  color: var(--accent-hover);
  text-decoration: none;
}

.quick-link a.btn-primary {
  color: #ffffff !important;
}

.quick-link a:hover {
  text-decoration: underline;
}

/* LISTAS (ex.: lista de gatos) */

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.item {
  padding: 10px 8px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item:last-child {
  border-bottom: none;
}

.item-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-hover);
  text-decoration: none;
}

.item-link + .help-info-button {
  margin-left: 6px;
  vertical-align: middle;
}

.item-link:hover {
  text-decoration: underline;
}

.item-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.empty {
  font-size: 13px;
  color: var(--text-muted);
}

.list-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  gap: 8px;
  flex-wrap: wrap;
}

.badge-role {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  font-size: 11px;
}

/* BOTÕES / LINKS GENÉRICOS */

.btn,
.header a.btn {
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  color: var(--text-main);
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: 0.15s ease-in-out;
}

.btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #ffffff;
  font-weight: 600;
}

.btn-danger:hover {
  background: var(--danger-hover);
  border-color: var(--danger-hover);
}
/* ========================= */
/* LAYOUT DE FORMULÁRIOS / PÁGINAS INTERNAS */
/* ========================= */

.header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.title-main {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
}

.title-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.content {
  padding: 16px 20px;
}

.section {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: #fffdf8;
}

.section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

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

.field {
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.field-value {
  font-size: 13px;
  color: var(--text-main);
}

label {
  font-size: 12px;
  color: var(--text-muted);
}

input,
select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: #ffffff;
  color: var(--text-main);
  font-size: 13px;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.25);
}

.footer {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* LINKS */

a {
  color: var(--accent-hover);
}

a:hover {
  text-decoration: underline;
}

/* RESPONSIVO */

@media (max-width: 900px) {
  .shell {
    margin: 12px;
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
  }

  .main {
    padding: 14px 14px 16px;
  }

  .main-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .list-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========================= */
/* DADOS DOS FILHOTES - LITTERS */
/* ========================= */

.kittens-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kitten-block {
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
}

.kitten-header {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #475569;
}

.kitten-row {
  display: grid;
  grid-template-columns: 1.8fr 1.2fr 0.8fr 1.2fr 1.2fr;
  gap: 8px;
  align-items: flex-end;
}

.kitten-row .field {
  margin-bottom: 0;
}

.kitten-obs {
  margin-top: 8px;
}

.kitten-obs textarea {
  width: 100%;
  resize: vertical;
}

@media (max-width: 900px) {
  .kitten-row {
    grid-template-columns: 1fr;
  }
}

/* ========================= */
/* TELA DE LOGIN / AUTENTICAÇÃO */
/* ========================= */

.auth-body {
  background: radial-gradient(circle at top, #fff7ea 0, #fafafa 40%, #f5f5f5 100%);
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-main);
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  padding: 24px 26px 22px;
  box-sizing: border-box;
}

.auth-logo {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 8px;
}

.auth-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-main);
}

.auth-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-error {
  margin-top: 14px;
  margin-bottom: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #fca5a5;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 12px;
}

.auth-success {
  margin-top: 14px;
  margin-bottom: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #86efac;
  background: #f0fdf4;
  color: #166534;
  font-size: 12px;
}

.auth-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.auth-field label {
  font-size: 12px;
  color: var(--text-muted);
}

.auth-field input {
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--text-main);
  background: #ffffff;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.25);
}

.auth-button {
  margin-top: 10px;
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: 0.15s ease-in-out;
}

.auth-button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.auth-footer {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.auth-footer a {
  color: var(--accent-hover);
  text-decoration: none;
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.auth-footer-secondary {
  margin-top: 6px;
}

.commercial-register-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.commercial-register-card {
  width: min(920px, 100%);
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  padding: clamp(24px, 5vw, 44px);
}

.commercial-register-card h1 {
  margin: 10px 0;
  color: #111827;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0;
}

.commercial-register-card p {
  color: #64748b;
  line-height: 1.65;
}

.commercial-register-form {
  margin-top: 24px;
}

.commercial-back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.public-site-body {
  min-height: 100vh;
  margin: 0;
  background: #f5f1ea;
  color: #1f2933;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.public-site-body * {
  box-sizing: border-box;
}

.public-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 5vw, 76px);
  border-bottom: 1px solid rgba(116, 38, 31, 0.12);
  background: rgba(255, 252, 246, 0.94);
  box-shadow: 0 10px 30px rgba(31, 41, 51, 0.06);
  backdrop-filter: blur(14px);
}

.public-site-brand {
  display: inline-flex;
  align-items: center;
  color: #7f2d25;
  text-decoration: none;
}

.public-site-brand img {
  display: block;
  width: clamp(132px, 13vw, 172px);
  height: auto;
}

.public-site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  font-size: 14px;
}

.public-site-nav a {
  border-radius: 999px;
  color: #475569;
  font-weight: 800;
  padding: 9px 13px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.public-site-nav a:hover {
  background: rgba(127, 45, 37, 0.08);
  color: #7f2d25;
}

.public-site-login {
  border-radius: 999px;
  background: #7f2d25 !important;
  color: #ffffff !important;
  padding: 9px 16px !important;
}

.public-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 68px);
  overflow: hidden;
  padding: clamp(46px, 7vw, 96px) clamp(18px, 5vw, 76px);
  background:
    linear-gradient(120deg, rgba(255, 252, 246, 0.96), rgba(245, 241, 234, 0.88)),
    url("/uploads/cats/1767805388880-830900256.jpeg") center right / cover no-repeat;
}

.public-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(245, 241, 234, 0.98) 0%, rgba(245, 241, 234, 0.86) 52%, rgba(245, 241, 234, 0.58) 100%);
  pointer-events: none;
}

.public-hero > * {
  position: relative;
  z-index: 1;
}

.public-hero-copy,
.public-hero-panel,
.public-section-heading,
.public-feature-grid,
.public-feature-band,
.public-plan-grid,
.public-contact-card {
  width: 100%;
}

.public-hero-copy h1 {
  max-width: 720px;
  margin: 14px 0 0;
  color: #1f2933;
  font-size: clamp(42px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.public-hero-intro,
.public-hero-copy p {
  max-width: 690px;
  margin: 22px 0 0;
  color: #405066;
  font-size: 18px;
  line-height: 1.65;
}

.public-eyebrow {
  color: #7f2d25;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.public-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.public-primary-button,
.public-secondary-button,
.public-plan-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.public-primary-button,
.public-plan-card a {
  background: #7f2d25;
  color: #ffffff;
  padding: 13px 20px;
  box-shadow: 0 14px 26px rgba(127, 45, 37, 0.2);
}

.public-primary-button:hover,
.public-plan-card a:hover {
  background: #66231d;
}

.public-secondary-button {
  border: 1px solid rgba(127, 45, 37, 0.24);
  border-color: rgba(127, 45, 37, 0.24);
  background: rgba(255, 255, 255, 0.72);
  color: #7f2d25;
  padding: 13px 20px;
}

.public-hero-panel {
  display: grid;
  gap: 20px;
  border: 1px solid rgba(127, 45, 37, 0.16);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.9);
  box-shadow: 0 30px 70px rgba(31, 41, 51, 0.14);
  padding: 30px;
  max-width: 430px;
  justify-self: end;
}

.public-hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 300px);
  min-height: 170px;
  border: 1px solid rgba(127, 45, 37, 0.18);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.public-hero-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.public-panel-kicker {
  color: #7f2d25;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.public-hero-panel h2 {
  margin: 8px 0 0;
  color: #1f2933;
  font-size: 28px;
  line-height: 1.15;
}

.public-hero-panel p {
  color: #64748b;
  line-height: 1.6;
}

.public-panel-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.public-panel-metrics span {
  border: 1px solid rgba(127, 45, 37, 0.14);
  border-radius: 6px;
  background: rgba(127, 45, 37, 0.06);
  color: #7f2d25;
  font-size: 12px;
  font-weight: 900;
  padding: 10px;
  text-align: center;
}

.public-system-section,
.public-contact-section,
.public-plans-section {
  padding: clamp(48px, 7vw, 88px) clamp(18px, 5vw, 76px);
}

.public-system-section {
  background: #fffdf8;
}

.public-section-heading {
  max-width: 850px;
}

.public-section-heading h2 {
  margin: 10px 0;
  color: #1f2933;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.public-section-heading p {
  color: #64748b;
  font-size: 17px;
  line-height: 1.65;
}

.public-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
  max-width: 1180px;
}

.public-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.public-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  border: 1px solid rgba(127, 45, 37, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 238, 0.92)),
    #ffffff;
  padding: 16px 18px;
  box-shadow: 0 12px 28px rgba(31, 41, 51, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.public-feature-item:hover {
  border-color: rgba(0, 103, 160, 0.22);
  box-shadow: 0 18px 36px rgba(31, 41, 51, 0.08);
  transform: translateY(-2px);
}

.public-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(0, 103, 160, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 133, 190, 0.12), rgba(255, 105, 0, 0.12));
  color: #0067a0;
}

.public-feature-icon svg {
  display: block;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.public-feature-item strong {
  color: #334155;
  font-size: 14px;
  line-height: 1.35;
}

.public-feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid rgba(127, 45, 37, 0.12);
  border-bottom: 1px solid rgba(127, 45, 37, 0.12);
  background: rgba(127, 45, 37, 0.12);
  margin: 0 auto;
}

.public-feature-band div {
  background: #f5f1ea;
  padding: 28px clamp(20px, 4vw, 48px);
}

.public-feature-band strong,
.public-feature-band span {
  display: block;
}

.public-feature-band strong {
  color: #111827;
  font-size: 18px;
}

.public-feature-band span {
  margin-top: 8px;
  color: #64748b;
  line-height: 1.55;
}

.public-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  align-items: stretch;
  max-width: 1180px;
}

.public-plan-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  border-color: rgba(127, 45, 37, 0.13);
  border: 1px solid rgba(127, 45, 37, 0.13);
  border-radius: 8px;
  background: #fffdf8;
  padding: 24px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.public-plan-card-featured {
  border-color: #7f2d25;
  box-shadow: 0 24px 58px rgba(127, 45, 37, 0.14);
}

.public-plan-price {
  margin-top: 8px;
  color: #7f2d25;
  font-weight: 900;
}

.public-plan-name {
  color: #111827;
  font-size: 24px;
  font-weight: 900;
}

.public-plan-card p {
  color: #64748b;
  line-height: 1.55;
}

.public-plan-card ul {
  display: grid;
  gap: 9px;
  margin: 8px 0 24px;
  padding-left: 18px;
  color: #334155;
}

.public-plan-card a {
  margin-top: auto;
}

.public-contact-section {
  background: #1f2933;
}

.public-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.public-contact-card {
  max-width: 900px;
  color: #ffffff;
}

@media (min-width: 1400px) {
  .public-hero,
  .public-system-section,
  .public-contact-section,
  .public-plans-section {
    padding-left: calc((100vw - 1240px) / 2);
    padding-right: calc((100vw - 1240px) / 2);
  }
}

.public-contact-card h2 {
  margin: 10px 0;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

.public-contact-card p {
  max-width: 720px;
  color: #d9e1ec;
  font-size: 17px;
  line-height: 1.7;
}

.public-contact-card .public-secondary-button {
  border-color: rgba(255, 255, 255, 0.26);
  background: transparent;
  color: #ffffff;
}

.public-contact-form {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  padding: 24px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.18);
}

.public-form-kicker {
  color: #0067a0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.public-contact-form h3,
.public-help-card h2 {
  margin: 6px 0 0;
  color: #1f2933;
  font-size: 24px;
  line-height: 1.15;
}

.public-contact-form label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.public-contact-form input {
  width: 100%;
  border: 1px solid #d5dde8;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2933;
  font: inherit;
  padding: 12px 13px;
}

.public-contact-form input:focus {
  border-color: #0067a0;
  box-shadow: 0 0 0 3px rgba(0, 103, 160, 0.12);
  outline: none;
}

.public-contact-form button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: #7f2d25;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 12px 18px;
}

.public-form-alert {
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  padding: 10px 12px;
}

.public-form-alert-success {
  background: #dcfce7;
  color: #166534;
}

.public-form-alert-error {
  background: #fee2e2;
  color: #991b1b;
}

.public-help-dialog {
  width: min(92vw, 430px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
}

.public-help-dialog::backdrop {
  background: rgba(15, 23, 42, 0.58);
}

.public-help-card {
  position: relative;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(127, 45, 37, 0.14);
  border-radius: 8px;
  background: #fffdf8;
  color: #334155;
  padding: 26px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.26);
}

.public-help-card p {
  margin: 0;
  line-height: 1.6;
}

.public-help-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(127, 45, 37, 0.08);
  color: #7f2d25;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.public-help-links {
  display: grid;
  gap: 8px;
}

.public-help-links a {
  color: #0067a0;
  font-weight: 900;
  text-decoration: none;
}

.public-site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #111827;
  color: #d9e1ec;
  padding: 22px clamp(18px, 5vw, 76px);
  font-size: 13px;
}

.public-footer-help {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.public-footer-help button {
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 480px) {
  .auth-card {
    margin: 12px;
    padding: 20px 18px 18px;
  }
}

@media (max-width: 1100px) {
  .public-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-hero-panel {
    justify-self: stretch;
    max-width: none;
  }

  .public-feature-grid,
  .public-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .public-site-header {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .public-site-brand {
    justify-content: center;
  }

  .public-site-brand img {
    width: 150px;
  }

  .public-site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: flex-start;
    width: 100%;
  }

  .public-site-nav a {
    text-align: center;
  }

  .public-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 42px;
  }

  .public-feature-band,
  .public-feature-grid,
  .public-plan-grid {
    grid-template-columns: 1fr;
  }

  .public-hero-copy h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .public-primary-button,
  .public-secondary-button {
    width: 100%;
  }

  .public-contact-layout {
    grid-template-columns: 1fr;
  }

  .public-site-footer {
    flex-direction: column;
  }
}

.rules-list {
  margin-top: 10px;
  padding-left: 20px;
  color: #334155;
  font-size: 14px;
}

.rules-list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.actions-left {
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
}


/* Linha separadora entre certificados */
.cert-row {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 14px;
}

/* linha apenas entre um certificado e outro */
.cert-row:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--border-soft, #e5e5e5);
}

/* Item de serviço */
.service-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  padding: 14px 0;
  margin: 0;

  border-bottom: 2px solid var(--border-soft, #e0e0e0);
}

/* linha divisória entre serviços */
.service-item:not(:last-child) {
  border-bottom: 2px solid var(--border-soft, #e0e0e0);
}


/* Badge base */
.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  margin-left: 4px;
  white-space: nowrap;
}

/* STATUS CORES */
.status-ENVIADO_GATARINA {
  background: #e53935; /* vermelho */
}

.status-ENVIADO_FFB {
  background: #fbc02d; /* amarelo */
  color: #333;
}

.status-RECEBIDO_FFB {
  background: #fb8c00; /* laranja */
}

.status-ENVIADO_ASSOCIADO {
  background: #43a047; /* verde */
}

/* NOVO STATUS */
.status-COM_PENDENCIA {
  background: #1e88e5; /* azul */
}

.service-item {
  border-left: 4px solid transparent;
  padding-left: 12px;
}

.service-item .status-ENVIADO_GATARINA {
  box-shadow: inset 0 0 0 9999px rgba(229,57,53,0.03);
}

.list {
  padding-left: 0;
  margin-left: 0;
}

.service-info {
  flex: 1;
  padding-left: 0;
  margin-left: 0;
}

.item-link {
  margin-left: 0;
}

.item-sub {
  margin-left: 0;
}


/* ============================
   BADGES DE STATUS DE USUÁRIO
============================ */

.badge-status {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Ativo - Verde */
.badge-status--active {
  background-color: #e6f4ea;
  color: #1e7f43;
  border: 1px solid #b7e1c1;
}

/* Novo cadastro - Amarelo */
.badge-status--new {
  background-color: #fff8e1;
  color: #b36b00;
  border: 1px solid #ffe08a;
}

/* Inativo / Restrição - Vermelho */
.badge-status--inactive {
  background-color: #fdecea;
  color: #b3261e;
  border: 1px solid #f5b5b0;
}

.hidden {
  display: none;
}

/* ============================
   CORREÇÃO EXPANSÃO CONCLUÍDOS
============================ */

/* Quando o bloco expandido é exibido */
.service-item:not(.hidden) {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.status-novo {
  color: #f39c12; /* laranja */
  font-weight: 600;
}

.status-aprovado {
  color: #2ecc71; /* verde */
  font-weight: 600;
}

.status-reprovado {
  color: #e74c3c; /* vermelho */
  font-weight: 600;
}

/* ===========================
   BOTÕES DE STATUS DO GATO
=========================== */

.btn-warning {
  background-color: #f39c12; /* laranja */
  border-color: #f39c12;
  color: #fff;
}

.btn-success {
  background-color: #2ecc71; /* verde */
  border-color: #2ecc71;
  color: #fff;
}

.btn-danger {
  background-color: #e74c3c; /* vermelho */
  border-color: #e74c3c;
  color: #fff;
}

.btn-warning,
.btn-success,
.btn-danger {
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

/* =========================================
   CORREÇÃO DE ALINHAMENTO INPUT x SELECT
   (Transferência de Propriedade)
========================================= */

.grid-3 .field input,
.grid-3 .field select {
  height: 44px;              /* força mesma altura */
  padding: 10px 12px;        /* iguala espaçamento interno */
  line-height: 1.2;
  box-sizing: border-box;
}

.grid-3 .field label {
  display: block;
  margin-bottom: 6px;        /* igual para todos */
}

.inline-radio {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Spinner simples */
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Botão desativado */
button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Ajuste exclusivo para a tela de login no mobile */
@media (max-width: 480px) {
  .auth-card {
    width: 95%;
    max-width: 420px;
    padding: 32px 24px;
  }
}

.service-price-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 6px;
  border-bottom: 1px dashed #e0e0e0;
  font-size: 14px;
}

.service-price-row:last-child {
  border-bottom: none;
}

.service-price-row span {
  color: #444;
}

.service-price-row strong {
  color: #000;
}

.service-prices-note {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.service-prices-table-wrap {
  overflow-x: auto;
}

.service-prices-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  overflow: hidden;
}

.service-prices-table th,
.service-prices-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: top;
}

.service-prices-table th {
  background: #fff7ea;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-prices-table th:last-child,
.service-prices-table td:last-child {
  width: 180px;
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}

.service-prices-table tr:last-child td {
  border-bottom: none;
}
