:root {
  --bg: #f5f9fb;
  --surface: #ffffff;
  --surface-soft: #eef7f8;
  --navy: #081b2f;
  --muted: #5d6b7a;
  --line: #dce8ee;
  --green: #10b981;
  --green-dark: #079669;
  --cyan: #13b7d1;
  --shadow: 0 24px 70px rgba(8, 27, 47, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  overflow-y: auto;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--navy);
  background: radial-gradient(circle at top right, rgba(19, 183, 209, 0.12), transparent 30%),
    var(--bg);
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 64px;
}

.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: white;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.28);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
}

.desktop-nav a:hover,
.login-link:hover {
  color: var(--navy);
}

.login-link {
  color: var(--green-dark);
  font-weight: 800;
}

.auth-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-icon-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--navy);
  background: rgba(15, 23, 42, 0.74);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 900;
}

.top-icon-button:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.12);
}

.auth-user {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
  align-items: center;
  gap: 58px;
  padding: 36px 0 76px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.7;
}

.hero-actions,
.invite-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 20px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.primary {
  color: white;
  background: var(--green);
  box-shadow: 0 16px 32px rgba(16, 185, 129, 0.22);
}

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

.secondary {
  color: var(--navy);
  background: white;
  border-color: var(--line);
}

.danger {
  color: #b42318;
  background: #fff4f2;
  border-color: #ffd2cc;
}

.hidden {
  display: none !important;
}

.whatsapp {
  color: white;
  background: #16a34a;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.trust-row div {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.trust-row strong {
  display: block;
  font-size: 1.38rem;
}

.trust-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.referral-card,
.panel,
.activity-panel,
.metrics-grid article {
  border: 1px solid rgba(220, 232, 238, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.referral-card {
  padding: 26px;
}

.card-topline,
.generated-header,
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.card-topline span,
.generated-header span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.card-topline strong,
.status-pill {
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--green-dark);
  background: #ddf8ea;
  font-size: 0.78rem;
}

.referral-card h2 {
  margin: 26px 0;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.message-preview {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface-soft);
}

.message-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--navy);
  font-weight: 800;
  font-size: 0.8rem;
}

.message-preview p {
  margin: 0;
  color: #24384c;
  line-height: 1.55;
}

.reason-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.reason-list span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.reason-list button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  background: white;
  cursor: pointer;
  font-weight: 700;
  text-align: left;
  padding: 0 12px;
}

.section-grid,
.auth-section,
.dashboard {
  padding: 78px 0 96px;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.section-heading h2,
.panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.panel-note {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.step-card {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: white;
}

.step-card span {
  color: var(--cyan);
  font-weight: 900;
}

.step-card h3 {
  margin: 28px 0 10px;
}

.step-card p {
  color: var(--muted);
  line-height: 1.6;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 18px;
  align-items: start;
  padding: 54px 0;
}

.panel {
  padding: 22px;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
}

.auth-modal-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(86vh, 860px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(11, 18, 32, 0.98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
}

.auth-feedback {
  margin: 0;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 12px;
  padding: 10px 12px;
  color: #dff7ff;
  background: rgba(8, 47, 73, 0.78);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.45;
}

.auth-feedback.error {
  border-color: rgba(248, 113, 113, 0.38);
  color: #ffe4e6;
  background: rgba(127, 29, 29, 0.72);
}

.auth-feedback.success {
  border-color: rgba(34, 197, 94, 0.4);
  color: #dcfce7;
  background: rgba(20, 83, 45, 0.72);
}

.auth-modal-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.auth-modal-header h2 {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  letter-spacing: -0.035em;
}

.social-auth {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.social-auth-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.social-auth-button {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid rgba(220, 232, 238, 0.18);
  border-radius: 7px;
  padding: 0 14px;
  color: #e5edf7;
  background: rgba(2, 6, 23, 0.48);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
}

.social-auth-button:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(30, 41, 59, 0.82);
}

.social-auth-button span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #0f172a;
  background: white;
  font-weight: 900;
}

.social-auth-button.facebook span {
  color: white;
  background: #1877f2;
}

.social-auth-button.microsoft span {
  color: white;
  background: #2563eb;
}

.social-auth-button.apple span {
  color: white;
  background: #111827;
}

.social-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.social-auth-divider::before,
.social-auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(220, 232, 238, 0.14);
}

.modal-open {
  overflow: hidden;
}

.auth-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(220, 232, 238, 0.9);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.auth-card h3,
.auth-card h4 {
  margin-bottom: 0;
}

.credential-box {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(2, 6, 23, 0.36);
}

.credential-box span,
.credential-box small {
  color: var(--muted);
  font-size: 0.82rem;
}

.credential-box strong {
  color: var(--navy);
}

.auth-inline {
  display: grid;
  gap: 12px;
}

.admin-protected.locked {
  display: none;
}

.lead-stack {
  display: grid;
  gap: 16px;
}

.referral-auth-card {
  box-shadow: 0 18px 48px rgba(8, 27, 47, 0.08);
}

.service-form,
.invite-controls {
  display: grid;
  gap: 14px;
  margin: 26px 0;
}

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

.service-media-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.service-media-fields input {
  min-height: auto;
  padding: 10px;
}

.service-media-preview {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.service-media-visuals {
  display: grid;
  gap: 8px;
  align-self: stretch;
}

.service-main-media,
.service-logo-frame {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(220, 232, 238, 0.14);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.service-main-media {
  gap: 8px;
  min-height: 112px;
}

.service-media-preview:not(.has-main-media) .service-main-media,
.service-media-preview:not(.has-logo) .service-logo-frame {
  display: none;
}

.service-main-media img,
.service-main-media video {
  width: 100%;
  min-height: 112px;
}

.service-main-media img {
  height: 100%;
  object-fit: cover;
}

.service-main-media video {
  height: auto;
  max-height: 180px;
  object-fit: contain;
  background: #020617;
}

.service-logo-frame {
  min-height: 70px;
  padding: 10px;
}

.service-logo-frame img {
  width: 100%;
  max-height: 58px;
  object-fit: contain;
}

.service-media-preview strong,
.service-media-preview span {
  display: block;
}

.service-media-preview span {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.service-media-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-media-actions .button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.8rem;
}

.reason-editor {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fbfdfe;
  margin-bottom: 18px;
}

.reason-editor-header h3 {
  margin-bottom: 0;
}

.reason-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  margin: 14px 0;
}

.reason-manager-list {
  display: grid;
  gap: 8px;
}

.reason-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: white;
}

.reason-item span {
  color: var(--muted);
  line-height: 1.45;
}

.reason-item button {
  min-height: 34px;
  padding: 0 11px;
}

.reason-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.service-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 4px 0 16px;
}

.service-toolbar label {
  width: min(100%, 260px);
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--navy);
  background: white;
  outline: none;
}

input,
select {
  min-height: 46px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  min-height: 170px;
  padding: 14px;
  line-height: 1.6;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(19, 183, 209, 0.12);
}

.service-list {
  display: grid;
  gap: 12px;
}

.service-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fbfdfe;
}

.service-item-info {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.service-item-title {
  min-width: 150px;
  flex: 0.8 1 180px;
}

.service-item h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.service-item p,
.service-item span {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.service-item-reward {
  min-width: 180px;
  flex: 1.2 1 240px;
}

.service-item-media {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  white-space: nowrap;
}

.service-item-owner {
  flex: 1 1 100%;
  color: #67e8f9 !important;
  font-size: 0.74rem !important;
}

.service-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: start;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  padding-bottom: 2px;
}

.service-actions > * {
  flex: 0 0 auto;
}

.service-item button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--green-dark);
  background: white;
  cursor: pointer;
  font-weight: 800;
  padding: 0 12px;
}

.service-item button.danger {
  color: #b42318;
  background: #fff4f2;
  border-color: #ffd2cc;
}

.generated-message {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface-soft);
}

.generated-header {
  margin-bottom: 10px;
}

.message-image-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.message-image-panel input {
  min-height: auto;
  padding: 10px;
}

.image-preview {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: white;
}

.image-preview img {
  width: 96px;
  height: 72px;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface-soft);
}

.image-preview strong,
.image-preview span {
  display: block;
}

.image-preview span {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.saved-messages {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.saved-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.saved-header h3 {
  margin-bottom: 0;
}

.saved-header span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.saved-list {
  display: grid;
  gap: 12px;
}

.saved-empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--muted);
  background: #fbfdfe;
  line-height: 1.55;
}

.saved-item {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fbfdfe;
}

.saved-item-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.saved-item h4 {
  margin: 0 0 4px;
}

.saved-item small {
  color: var(--muted);
  font-weight: 700;
}

.saved-item p {
  max-height: 96px;
  overflow: hidden;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.saved-image {
  width: 100%;
  max-height: 180px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--line);
}

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

.saved-actions .button {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.88rem;
}

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

.metrics-grid article {
  padding: 20px;
}

.metrics-grid span,
.metrics-grid small {
  display: block;
  color: var(--muted);
}

.metrics-grid strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 2rem;
}

.activity-panel {
  display: grid;
  gap: 2px;
  margin-top: 18px;
  padding: 10px;
}

.activity-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  border-radius: var(--radius);
  padding: 14px;
  background: white;
}

.activity-row span:last-child {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.production-referral-status {
  margin-top: 14px;
  border: 1px solid rgba(220, 232, 238, 0.12);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.58);
  font-size: 0.86rem;
  font-weight: 800;
}

.production-referral-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.production-referral-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(220, 232, 238, 0.1);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.production-referral-item div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.production-referral-item div:last-child {
  justify-items: end;
  text-align: right;
}

.production-referral-item span,
.production-referral-item small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.production-referral-item strong {
  color: white;
  overflow-wrap: anywhere;
}

.production-referral-item code {
  border-radius: 999px;
  padding: 4px 8px;
  color: #dff7ff;
  background: rgba(34, 211, 238, 0.1);
  font-size: 0.72rem;
}

.production-referral-empty {
  border: 1px dashed rgba(220, 232, 238, 0.18);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.raffle-panel {
  margin-top: 22px;
  border: 1px solid rgba(220, 232, 238, 0.9);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.raffle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
  gap: 18px;
  align-items: start;
  margin-top: 22px;
}

.raffle-form,
.raffle-settings {
  display: grid;
  gap: 14px;
}

.raffle-settings {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface-soft);
}

.winner-card {
  border-radius: var(--radius);
  padding: 16px;
  color: white;
  background: linear-gradient(135deg, var(--navy), #0b6170);
}

.winner-card span,
.winner-card p {
  color: #d8eef3;
}

.winner-card span {
  display: block;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.winner-card strong {
  display: block;
  margin: 8px 0;
  font-size: 1.7rem;
}

.winner-card p {
  margin-bottom: 0;
  line-height: 1.5;
}

.raffle-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 12px;
}

.raffle-summary span {
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--green-dark);
  background: #ddf8ea;
  font-size: 0.84rem;
  font-weight: 900;
}

.raffle-list {
  display: grid;
  gap: 10px;
}

.raffle-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: #fbfdfe;
}

.raffle-item h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.raffle-item p,
.raffle-item span {
  margin: 0;
  color: var(--muted);
}

.raffle-item span {
  display: block;
  margin-top: 4px;
  font-size: 0.88rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.green {
  background: var(--green);
}

.cyan {
  background: var(--cyan);
}

.navy {
  background: var(--navy);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  transform: translateY(80px);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: white;
  background: var(--navy);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
  font-weight: 800;
}

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

.referral-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(16, 185, 129, 0.2), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(19, 183, 209, 0.22), transparent 32%),
    linear-gradient(180deg, #f6fbfc 0%, #eef7f8 100%);
}

.referral-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.referral-topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.compact-button {
  min-height: 42px;
  padding: 0 14px;
}

.public-hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  align-items: center;
  gap: 42px;
  padding: 30px 0 64px;
}

.public-hero-copy h1 {
  max-width: 720px;
  font-size: clamp(2.7rem, 7vw, 5.2rem);
}

.public-lead {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.7;
}

.recommender-card {
  width: fit-content;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  margin: 28px 0;
  border: 1px solid rgba(220, 232, 238, 0.9);
  border-radius: var(--radius);
  padding: 12px 16px 12px 12px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 48px rgba(8, 27, 47, 0.1);
}

.recommender-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  font-weight: 900;
  font-size: 1.2rem;
}

.recommender-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.recommender-card strong {
  display: block;
  margin-top: 3px;
  font-size: 1.05rem;
}

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

.offer-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(220, 232, 238, 0.9);
  border-radius: 14px;
  padding: 28px;
  color: white;
  background:
    linear-gradient(145deg, rgba(8, 27, 47, 0.96), rgba(7, 69, 84, 0.94)),
    var(--navy);
  box-shadow: 0 30px 80px rgba(8, 27, 47, 0.2);
}

.offer-card::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.25);
}

.offer-badge {
  position: relative;
  z-index: 1;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 12px;
  color: #d9fff0;
  background: rgba(16, 185, 129, 0.22);
  font-size: 0.8rem;
  font-weight: 900;
}

.offer-card h2 {
  position: relative;
  z-index: 1;
  margin: 28px 0 12px;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.offer-card p {
  position: relative;
  z-index: 1;
  color: #d8eef3;
  font-size: 1.08rem;
  line-height: 1.6;
}

.offer-divider {
  position: relative;
  z-index: 1;
  height: 1px;
  margin: 24px 0;
  background: rgba(255, 255, 255, 0.16);
}

.offer-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.offer-list li {
  position: relative;
  padding-left: 28px;
  color: #effcff;
  line-height: 1.45;
}

.offer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.16);
}

.public-section {
  padding: 56px 0;
}

.weekly-winner-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: var(--radius);
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(11, 18, 32, 0.96));
  box-shadow: var(--shadow);
}

.weekly-winner-card h2 {
  margin-bottom: 8px;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  letter-spacing: -0.035em;
}

.weekly-winner-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.weekly-winner-service {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(220, 232, 238, 0.14);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(2, 6, 23, 0.36);
}

.weekly-winner-service span {
  color: #bbf7d0;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.weekly-winner-service strong {
  font-size: 1.05rem;
}

.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

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

.indicator-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: max-content;
  gap: 14px;
  align-items: start;
}

.indicator-catalog-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr)) auto;
  align-items: end;
  gap: 10px;
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(11, 18, 32, 0.78);
}

.indicator-catalog-filters label {
  min-width: 0;
  margin: 0;
}

.indicator-catalog-filters select {
  width: 100%;
}

.sponsor-section {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(11, 18, 32, 0.82);
}

.sponsor-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.sponsor-heading h2,
.sponsor-heading p {
  margin-bottom: 0;
}

.sponsor-controls {
  display: flex;
  gap: 6px;
}

.sponsor-controls button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  color: white;
  background: #111827;
  font-size: 1.4rem;
}

.sponsor-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 280px);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.sponsor-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(220, 232, 238, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(17, 24, 39, 0.82);
  scroll-snap-align: start;
}

.sponsor-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  color: #052e16;
  background: #86efac;
  font-weight: 900;
}

.sponsor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sponsor-card strong,
.sponsor-card small {
  display: block;
}

.sponsor-card strong {
  color: white;
}

.sponsor-card small {
  margin-top: 4px;
  color: var(--muted);
}

.indicator-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.indicator-service-card .indicator-city-tag {
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.14);
}

.indicator-services-empty {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.indicator-summary {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: #0b1220;
  box-shadow: var(--shadow);
}

.indicator-summary-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.indicator-summary-heading h2,
.indicator-summary-heading p {
  margin-bottom: 0;
}

.indicator-summary-heading > p {
  max-width: 380px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: right;
}

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

.indicator-metrics article {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(220, 232, 238, 0.12);
  border-radius: 7px;
  padding: 16px;
  background: rgba(2, 6, 23, 0.42);
}

.indicator-metrics span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.indicator-metrics strong {
  color: #86efac;
  font-size: 1.8rem;
  line-height: 1;
}

.indicator-service-card {
  position: relative;
  align-self: start;
  height: fit-content;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.94), rgba(11, 18, 32, 0.94));
  box-shadow: var(--shadow);
}

.indicator-service-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 9px;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.14);
  font-size: 0.78rem;
  font-weight: 900;
}

.indicator-service-card h3 {
  margin-bottom: 0;
}

.indicator-service-card p {
  min-height: 70px;
  padding-right: 86px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.indicator-service-media {
  width: 100%;
  height: 160px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--surface-soft);
}

.indicator-image-strip {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}

.indicator-image-strip button {
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px;
  background: #020617;
  cursor: pointer;
}

.indicator-image-strip button:hover {
  border-color: #22d3ee;
}

.indicator-image-strip img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 3px;
  object-fit: cover;
}

.indicator-gallery-panel {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: 90vh;
  display: grid;
  gap: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #0b1220;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

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

.indicator-gallery-header h2 {
  margin-bottom: 0;
  font-size: 1.3rem;
}

.indicator-gallery-stage {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #020617;
}

.indicator-gallery-stage img {
  width: 100%;
  height: min(68vh, 640px);
  display: block;
  object-fit: contain;
}

.indicator-gallery-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 44px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 0;
  color: white;
  background: rgba(2, 6, 23, 0.82);
  cursor: pointer;
  font-size: 2rem;
  transform: translateY(-50%);
}

.indicator-gallery-arrow:hover {
  border-color: #22d3ee;
  background: rgba(8, 47, 73, 0.94);
}

.indicator-gallery-arrow.previous {
  left: 12px;
}

.indicator-gallery-arrow.next {
  right: 12px;
}

.indicator-gallery-position {
  justify-self: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

video.indicator-service-media {
  object-fit: contain;
  background: #020617;
}

.indicator-logo-frame {
  position: absolute;
  right: 18px;
  bottom: 72px;
  width: 75px;
  height: 75px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px;
  background: rgba(2, 6, 23, 0.36);
}

.indicator-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.public-benefits article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: white;
  box-shadow: 0 18px 48px rgba(8, 27, 47, 0.08);
}

.public-benefits span {
  color: var(--cyan);
  font-weight: 900;
}

.public-benefits h3 {
  margin: 26px 0 10px;
}

.public-benefits p {
  color: var(--muted);
  line-height: 1.6;
}

.conversion-box {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: start;
  margin: 42px 0 82px;
  border: 1px solid rgba(220, 232, 238, 0.9);
  border-radius: 14px;
  padding: 28px;
  background: white;
  box-shadow: var(--shadow);
}

.conversion-box h2 {
  margin-bottom: 16px;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.conversion-box p {
  color: var(--muted);
  line-height: 1.7;
}

.lead-form {
  display: grid;
  gap: 14px;
}

.invite-modal-panel {
  width: min(520px, 100%);
}

.invite-modal-form {
  margin-top: 8px;
}

.selected-invite-service {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(34, 197, 94, 0.1);
}

.selected-invite-service span {
  color: #bbf7d0;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.selected-invite-service strong {
  font-size: 1.05rem;
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .hero,
  .workspace,
  .auth-grid,
  .public-hero,
  .conversion-box,
  .weekly-winner-card,
  .raffle-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .steps-grid,
  .metrics-grid,
  .public-benefits,
  .indicator-service-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Cadastro comercial e paginas publicas dos servicos */
.service-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 18px;
}

.service-form-wide,
.service-form .service-media-fields,
.service-form .service-media-preview,
.service-form .form-actions {
  grid-column: 1 / -1;
}

.service-form-half {
  grid-column: span 2;
}

.service-form textarea {
  min-height: 104px;
}

.service-form input,
.service-form select {
  min-height: 36px;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: #7f93a9;
  font-size: 0.7rem;
  line-height: 1.45;
}

.service-message-field {
  display: grid;
  gap: 7px;
}

.invite-variable-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #7f93a9;
  font-size: 0.7rem;
}

.invite-variable-list button {
  min-height: 28px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 6px;
  padding: 4px 8px;
  color: #67e8f9;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  background: rgba(34, 211, 238, 0.08);
  cursor: pointer;
}

.invite-variable-list button:hover,
.invite-variable-list button:focus-visible {
  border-color: rgba(34, 211, 238, 0.72);
  background: rgba(34, 211, 238, 0.16);
}

.service-social-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(2, 6, 23, 0.24);
}

.company-admin-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(34, 211, 238, 0.05);
}

.company-plan-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid rgba(74, 222, 128, 0.24);
  border-radius: 8px;
  padding: 12px;
  background: rgba(74, 222, 128, 0.05);
}

.company-admin-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 0 22px;
}

.company-admin-intro h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.company-admin-intro p:not(.eyebrow) {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.company-current-plan {
  min-width: 220px;
  display: grid;
  gap: 5px;
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 8px;
  padding: 14px;
  background: #101a18;
}

.company-current-plan > span {
  color: #86efac;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.company-current-plan > strong {
  font-size: 1.2rem;
}

.company-current-plan > small {
  color: var(--muted);
}

.company-current-plan > small[data-status="pending"],
.company-current-plan > small[data-status="suspended"] {
  color: #fca5a5;
}

.company-current-plan > a {
  margin-top: 5px;
  color: #67e8f9;
  font-size: 0.78rem;
  font-weight: 800;
}

.company-editor {
  margin-bottom: 72px;
}

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

#companyEditor .service-media-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.company-auth-panel {
  width: min(920px, 100%);
}

.admin-profile-panel {
  width: min(760px, calc(100% - 24px));
}

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

.admin-profile-form .form-actions {
  grid-column: 1 / -1;
}

.company-login-form {
  grid-template-columns: 1fr;
}

.company-access-info {
  align-content: start;
}

.service-social-fields-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.service-social-fields-heading strong {
  color: var(--navy);
  font-size: 0.82rem;
}

.service-social-fields-heading span {
  color: var(--muted);
  font-size: 0.7rem;
}

.service-media-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.file-upload-field {
  min-width: 0;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(2, 6, 23, 0.28);
}

.file-upload-title {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.file-upload-control {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
  align-items: center;
}

.file-picker {
  position: relative;
  min-width: 0;
  min-height: 40px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(34, 197, 94, 0.42);
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.12);
  cursor: pointer;
}

.file-picker:hover {
  border-color: #4ade80;
  background: rgba(34, 197, 94, 0.18);
}

.service-media-fields .file-picker input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.file-picker-label {
  min-width: 0;
  padding: 8px 10px;
  color: #bbf7d0;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}

.file-recommendation {
  display: block;
  min-width: 0;
  color: #8fa3b8;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
}

.service-media-preview {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.service-media-visuals {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.service-banner-admin-preview {
  grid-column: span 2;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: 7px;
  overflow: hidden;
  border: 1px solid rgba(220, 232, 238, 0.14);
  border-radius: var(--radius);
  padding: 7px;
  background: var(--surface-soft);
}

.service-media-preview:not(.has-banner) .service-banner-admin-preview {
  display: none;
}

.service-banner-admin-preview img {
  width: 100%;
  height: 150px;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 5px;
}

.service-preview-card {
  position: relative;
  min-width: 0;
}

.service-main-media {
  grid-column: span 1;
  grid-template-columns: 1fr;
  place-items: stretch;
  overflow: visible;
  border: 0;
  background: transparent;
}

.service-main-media .service-preview-card {
  display: grid;
  gap: 7px;
  overflow: hidden;
  border: 1px solid rgba(220, 232, 238, 0.14);
  border-radius: var(--radius);
  padding: 7px;
  background: var(--surface-soft);
}

.service-image-admin-preview > img {
  width: 100%;
  height: 160px;
  min-height: 0;
  border-radius: 5px;
  object-fit: cover;
}

.service-video-admin-preview > video {
  width: 100%;
  height: auto;
  max-height: 190px;
  min-height: 112px;
  border-radius: 5px;
  object-fit: contain;
}

.service-media-preview:not(.has-service-image) .service-image-admin-preview,
.service-media-preview:not(.has-video) .service-video-admin-preview {
  display: none;
}

.service-media-delete,
.service-gallery-thumb button {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(248, 113, 113, 0.42);
  border-radius: 6px;
  padding: 0;
  color: #fecaca;
  background: rgba(2, 6, 23, 0.86);
  cursor: pointer;
  font-size: 0.94rem;
}

.service-media-delete:hover,
.service-gallery-thumb button:hover {
  color: white;
  border-color: #f87171;
  background: #991b1b;
}

.service-file-caption,
.service-gallery-thumb small {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
  overflow: hidden;
  color: #8fa3b8;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#serviceBannerCaption {
  max-width: 100%;
  padding: 0 2px;
  font-size: 0.6rem;
  text-align: left;
}

.service-gallery-preview {
  grid-column: span 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.service-gallery-preview:empty {
  display: none;
}

.service-gallery-thumb {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 5px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px;
  background: #020617;
}

.service-gallery-thumb img {
  width: 100%;
  height: 96px;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 4px;
}

.service-gallery-thumb button {
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  font-size: 0.78rem;
}

.service-logo-frame {
  grid-column: span 1;
}

.service-action-link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 800;
}

.indicator-card-actions {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 8px;
}

.service-card-link {
  min-height: 48px;
  border-color: rgba(34, 211, 238, 0.28);
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.08);
}

.indicator-refer-button {
  min-height: 48px;
  color: #03140a;
  border-color: #4ade80;
  background: #4ade80;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.24);
}

.indicator-refer-button:hover {
  color: #020b05;
  border-color: #86efac;
  background: #86efac;
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.34);
}

.service-public-page {
  color: #f8fafc;
  background: #070b12;
}

.service-public-shell {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.service-public-topbar {
  position: relative;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 11, 18, 0.84);
  backdrop-filter: blur(16px);
}

.service-public-topbar .service-public-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.service-public-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #b6c2d1;
  font-size: 0.9rem;
  font-weight: 700;
}

.service-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-referral-cta {
  min-height: 42px;
  border-color: #ef4444;
  padding: 0 17px;
  color: white;
  background: #dc2626;
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.28);
}

.service-referral-cta:hover {
  border-color: #f87171;
  color: white;
  background: #ef4444;
  box-shadow: 0 13px 32px rgba(220, 38, 38, 0.4);
}

.service-referral-inline {
  min-height: 42px;
  width: fit-content;
  padding: 0 16px;
}

.service-about-grid > div:first-child .service-referral-inline {
  margin-top: 18px;
}

.service-section-cta {
  display: grid;
  justify-items: end;
  gap: 14px;
}

.service-section-cta p {
  margin-bottom: 0;
}

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

.service-showcase {
  position: relative;
  height: clamp(300px, 37.5vw, 520px);
  min-height: 300px;
  overflow: hidden;
  background: #111827;
}

.service-showcase-media {
  position: absolute;
  inset: 0;
}

.service-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-showcase-media.natu-banner img {
  object-fit: contain;
  background: #0b1220;
}

.service-showcase.natu-service-showcase {
  height: clamp(280px, 31vw, 440px);
  min-height: 280px;
}

.service-media-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 1.2rem;
  font-weight: 800;
}

.service-banner-details {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px 0;
  background: #0b1220;
}

.service-banner-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 32px;
  align-items: center;
}

.service-identity {
  max-width: 820px;
}

.service-category {
  width: fit-content;
  margin-bottom: 14px;
  border: 1px solid rgba(34, 197, 94, 0.45);
  border-radius: 999px;
  padding: 7px 11px;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.12);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-public-headline {
  max-width: 760px;
  margin-bottom: 0;
  color: #d4dde9;
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1.3;
}

.service-showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.service-ghost-button {
  color: white;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.service-benefit-card {
  width: min(100%, 620px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  align-content: center;
  margin-top: 0;
  border: 1px solid rgba(34, 197, 94, 0.34);
  border-radius: 8px;
  padding: 22px;
  background: rgba(8, 18, 29, 0.88);
}

.service-benefit-card span {
  color: #86efac;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.service-benefit-card strong {
  max-width: 520px;
  font-size: 1.08rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.service-public-section {
  padding: 92px 0;
}

.service-about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 72px;
  align-items: start;
}

.service-about-grid.has-map {
  grid-template-columns: minmax(210px, 0.6fr) minmax(260px, 1fr) minmax(300px, 0.9fr);
  gap: 32px;
}

.service-map-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(220, 232, 238, 0.14);
  border-radius: 8px;
  background: #101a28;
}

.service-map-card iframe {
  width: 100%;
  height: 260px;
  display: block;
  border: 0;
  background: #172334;
}

.service-map-card > div {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.service-item-hidden {
  border-color: rgba(248, 113, 113, 0.28);
  opacity: 0.78;
}

.service-publication-status {
  width: fit-content;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.68rem;
  font-weight: 800;
}

.service-publication-status.published {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
}

.service-publication-status.hidden-page {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.08);
}

.service-publication-button.publish-page {
  border-color: rgba(74, 222, 128, 0.38);
  color: #4ade80;
}

.service-publication-button.hide-page {
  border-color: rgba(248, 113, 113, 0.3);
  color: #fca5a5;
}

.service-map-card span {
  color: #86efac;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.service-map-card strong {
  color: #f8fafc;
  font-size: 0.84rem;
  line-height: 1.45;
}

.service-map-card a {
  width: fit-content;
  margin-top: 3px;
  color: #67e8f9;
  font-size: 0.76rem;
  font-weight: 700;
}

.service-about-grid h2,
.service-section-heading h2,
.service-contact-panel h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.service-about-copy > p {
  color: #b6c2d1;
  font-size: 1.08rem;
  line-height: 1.85;
}

.service-trust-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.service-trust-points div {
  display: grid;
  gap: 8px;
  border-top: 2px solid #22c55e;
  padding-top: 16px;
}

.service-trust-points span {
  color: #93a4b8;
  font-size: 0.88rem;
  line-height: 1.5;
}

.service-gallery-section {
  background: #0d1420;
}

.service-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}

.service-section-heading > p,
.service-section-cta p {
  max-width: 420px;
  margin-bottom: 4px;
  color: #93a4b8;
  line-height: 1.6;
}

.service-public-gallery {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto;
}

.service-gallery-item {
  grid-column: auto;
  min-height: 176px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0;
  background: #111827;
  cursor: pointer;
}

.service-gallery-item.featured {
  grid-column: auto;
  grid-row: auto;
}

.service-gallery-item img {
  width: 100%;
  height: 176px;
  min-height: 0;
  max-height: 176px;
  display: block;
  object-fit: cover;
  transition: transform 240ms ease;
}

.service-gallery-item:hover img {
  transform: scale(1.025);
}

.service-gallery-item:focus-visible {
  outline: 2px solid #22d3ee;
  outline-offset: 2px;
}

.service-gallery-empty {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #93a4b8;
}

.service-public-video {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.service-public-video video {
  width: min(100%, 760px);
  max-height: 420px;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #020617;
}

.service-video-referral {
  width: min(100%, 760px);
  min-height: 44px;
  display: flex;
  justify-content: center;
  margin: 12px auto 0;
}

.service-contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
  gap: 44px;
  border: 1px solid rgba(34, 197, 94, 0.26);
  border-radius: 8px;
  padding: 22px;
  background: #101a28;
}

#contato.service-public-section {
  padding-top: 48px;
  padding-bottom: 48px;
}

.service-contact-panel h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.service-contact-panel > div > p {
  max-width: 620px;
  margin: 8px 0 16px;
  color: #a9b7c7;
  line-height: 1.7;
}

.service-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.service-social-link {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  color: white;
  background: #182235;
  font-size: 0.78rem;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.service-social-link:hover {
  border-color: rgba(255, 255, 255, 0.44);
  transform: translateY(-2px);
}

.service-social-link.facebook {
  background: #1877f2;
}

.service-social-link.instagram {
  background: #c13584;
}

.service-social-link.youtube {
  background: #ff0033;
}

.service-social-link.tiktok {
  color: #67e8f9;
  background: #101010;
}

.service-contact-list {
  display: grid;
  grid-template-columns: minmax(90px, 0.38fr) minmax(0, 1fr);
  gap: 10px 18px;
  align-content: center;
  margin: 0;
}

.service-contact-list dt {
  color: #7d8da1;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-contact-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #eef6ff;
  font-weight: 700;
}

.service-contact-list a {
  color: #67e8f9;
}

.service-public-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 0;
  color: #8fa0b3;
  background: #05080d;
}

.service-public-footer .service-public-shell {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.service-public-footer span {
  color: white;
  font-weight: 900;
}

.service-not-found {
  min-height: calc(100vh - 90px);
  display: grid;
  place-content: center;
  justify-items: start;
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
}

.service-not-found h1 {
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: 0;
}

.service-not-found p:not(.eyebrow) {
  margin-bottom: 28px;
  color: #93a4b8;
}

#servicos.workspace {
  grid-template-columns: minmax(0, 1fr);
}

#servicos .services-panel {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 18px;
  align-items: start;
}

#servicos .services-panel > .panel-header {
  grid-column: 1 / -1;
}

#servicos .service-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

#servicos .service-form .service-media-fields {
  grid-template-columns: 1fr;
}

.service-list-column {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.service-list-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.service-list-heading > div:first-child {
  display: grid;
  gap: 4px;
}

.service-list-heading span {
  color: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-list-heading strong {
  font-size: 1.05rem;
}

.service-list-heading .service-toolbar {
  min-width: 210px;
  margin: 0;
}

.backup-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 6px;
}

.backup-actions .button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.7rem;
}

.service-list-column .service-list {
  max-height: 980px;
  overflow-y: auto;
  padding-right: 4px;
}

.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}

.dashboard-columns > * {
  min-width: 0;
  align-self: start;
}

.dashboard-columns .activity-panel,
.dashboard-columns .raffle-panel {
  margin-top: 0;
}

.activity-panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 8px 8px 14px;
}

.activity-panel-header h3,
.activity-panel-header p {
  margin-bottom: 0;
}

.dashboard-columns .activity-row {
  grid-template-columns: 12px minmax(0, 1fr) auto;
}

@media (max-width: 900px) {
  .service-form,
  .service-banner-details-grid,
  .service-about-grid,
  .service-contact-panel {
    grid-template-columns: 1fr;
  }

  .service-form-half {
    grid-column: 1 / -1;
  }

  #servicos .services-panel {
    grid-template-columns: 1fr;
  }

  .service-list-column {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-top: 18px;
    padding-left: 0;
  }

  .service-media-visuals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-banner-admin-preview,
  .service-gallery-preview {
    grid-column: 1 / -1;
  }

  .service-showcase {
    height: clamp(260px, 37.5vw, 420px);
    min-height: 260px;
  }

  .service-showcase.natu-service-showcase {
    height: clamp(240px, 31vw, 360px);
    min-height: 240px;
  }

  .service-gallery-item,
  .service-gallery-item.featured {
    grid-column: auto;
    grid-row: auto;
  }

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

}

@media (max-width: 1000px) {
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .service-public-shell {
    width: min(100% - 24px, 1160px);
  }

  .indicator-gallery-panel {
    padding: 10px;
  }

  .indicator-gallery-stage {
    min-height: 220px;
  }

  .indicator-gallery-stage img {
    height: min(60vh, 520px);
  }

  .indicator-gallery-arrow {
    width: 36px;
    height: 44px;
  }

  #servicos .service-form {
    grid-template-columns: 1fr;
  }

  .service-social-fields {
    grid-template-columns: 1fr;
  }

  .company-admin-fields {
    grid-template-columns: 1fr;
  }

  .company-plan-fields {
    grid-template-columns: 1fr;
  }

  .company-admin-intro {
    align-items: start;
    flex-direction: column;
    padding-top: 28px;
  }

  #companyEditor .service-form,
  #companyEditor .service-media-fields {
    grid-template-columns: 1fr;
  }

  .admin-profile-form {
    grid-template-columns: 1fr;
  }

  .admin-profile-form .form-actions {
    grid-column: auto;
  }

  .service-social-fields-heading {
    align-items: start;
    flex-direction: column;
  }

  .service-list-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .service-list-heading .service-toolbar {
    width: 100%;
    min-width: 0;
  }

  .file-upload-control {
    grid-template-columns: 1fr;
  }

  .service-media-visuals {
    grid-template-columns: 1fr;
  }

  .service-banner-admin-preview,
  .service-main-media,
  .service-gallery-preview,
  .service-logo-frame {
    grid-column: 1 / -1;
  }

  .service-public-nav {
    display: none;
  }

  .service-public-topbar .compact-button {
    min-height: 38px;
    padding: 0 12px;
  }

  .service-top-actions {
    margin-left: auto;
  }

  .service-referral-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.76rem;
  }

  .service-top-actions #topWhatsapp {
    display: none;
  }

  .service-showcase-actions,
  .service-contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .service-showcase-actions .button,
  .service-contact-actions .button,
  .service-section-cta .button {
    width: 100%;
  }

  .service-section-cta {
    justify-items: stretch;
  }

  .service-showcase {
    height: 220px;
    min-height: 220px;
  }

  .service-showcase.natu-service-showcase {
    height: 210px;
    min-height: 210px;
  }

  .service-banner-details {
    padding: 22px 0;
  }

  .service-public-section {
    padding: 64px 0;
  }

  .service-section-heading {
    display: grid;
  }

  .service-trust-points {
    grid-template-columns: 1fr;
  }

  .service-gallery-item,
  .service-gallery-item.featured {
    grid-column: auto;
    min-height: 198px;
  }

  .service-public-gallery {
    grid-template-columns: 1fr;
  }

  .service-gallery-item img {
    height: 198px;
    max-height: 198px;
  }

  .service-contact-panel {
    gap: 26px;
    padding: 18px;
  }

  #contato.service-public-section {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .service-contact-list {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .service-contact-list dd {
    margin-bottom: 14px;
  }

  .service-benefit-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .service-media-fields,
  .service-media-preview {
    grid-template-columns: 1fr;
  }
}

/* Funil comercial, fidelidade e avaliacoes */
.company-growth-dashboard {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #0d1724;
}

.growth-dashboard-actions,
.growth-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.growth-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.growth-metrics article {
  min-width: 0;
  border: 1px solid rgba(220, 232, 238, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.growth-metrics span,
.growth-dashboard-card > span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.growth-metrics strong {
  display: block;
  margin-top: 6px;
  color: #f8fafc;
  font-size: 1.45rem;
}

.growth-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 12px;
  align-items: start;
}

.growth-dashboard-sidebar {
  display: grid;
  gap: 12px;
}

.growth-dashboard-card {
  min-width: 0;
  border: 1px solid rgba(220, 232, 238, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(2, 6, 23, 0.34);
}

.growth-dashboard-card > strong {
  display: block;
  margin: 4px 0 12px;
  color: #f8fafc;
}

.growth-card-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.growth-card-heading span,
.growth-referral-item span,
.growth-referral-item small,
.growth-notification-list span,
.growth-notification-list small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.growth-card-heading strong {
  display: block;
  margin-top: 4px;
  color: #f8fafc;
}

.growth-card-heading select {
  width: min(220px, 100%);
  min-height: 36px;
}

.growth-referral-list,
.growth-notification-list {
  display: grid;
  gap: 8px;
}

.growth-referral-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid rgba(220, 232, 238, 0.1);
  padding-top: 10px;
}

.growth-referral-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.growth-referral-item strong,
.growth-notification-list strong {
  color: #e8eef5;
}

.growth-referral-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 6px;
}

.growth-referral-meta code,
.indicator-coupon-list code {
  border: 1px dashed rgba(34, 211, 238, 0.42);
  border-radius: 5px;
  padding: 6px 8px;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.06);
}

.growth-notify-button {
  border: 0;
  padding: 4px;
  color: #4ade80;
  font: inherit;
  font-size: 0.72rem;
  background: transparent;
  cursor: pointer;
}

.growth-converted-label {
  color: #4ade80 !important;
  font-weight: 700;
}

.growth-notification-list article {
  border-top: 1px solid rgba(220, 232, 238, 0.1);
  padding-top: 8px;
}

.growth-notification-list article:first-child {
  border-top: 0;
  padding-top: 0;
}

.growth-empty {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

#growthSmartMessage {
  min-height: 110px;
  margin: 10px 0;
  font-size: 0.78rem;
}

.daily-whatsapp-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 9px;
}

.daily-whatsapp-form label {
  min-width: 0;
  margin: 0;
}

.daily-whatsapp-form input {
  min-width: 0;
}

.daily-whatsapp-toggle,
.daily-whatsapp-phone,
.daily-whatsapp-form > button {
  grid-column: 1 / -1;
}

.daily-whatsapp-toggle {
  display: flex !important;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: #e8eef5;
}

.daily-whatsapp-toggle input {
  width: 17px;
  min-height: 17px;
  margin: 0;
  accent-color: #22c55e;
}

.daily-whatsapp-summary {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border-top: 1px solid rgba(220, 232, 238, 0.1);
  padding-top: 12px;
}

.daily-whatsapp-summary span,
.daily-whatsapp-note {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.daily-whatsapp-summary button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.daily-whatsapp-note {
  display: block;
  margin-top: 9px;
}

#companyQrPanel {
  text-align: center;
}

#companyQrPanel img {
  width: min(220px, 100%);
  aspect-ratio: 1;
  margin: 4px auto 10px;
  border-radius: 6px;
  background: white;
}

#companyQrPanel input {
  font-size: 0.68rem;
}

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

.indicator-coupon-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.indicator-coupon-list > span {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(220, 232, 238, 0.14);
  border-radius: 8px;
  padding: 10px;
}

.indicator-coupon-list small {
  color: var(--muted);
}

.indicator-coupon-list strong {
  color: #4ade80;
  font-size: 0.7rem;
}

.service-reviews-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
}

.service-reviews-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.service-reviews-section > .service-public-shell {
  display: grid;
  grid-template-columns: minmax(210px, 0.42fr) minmax(0, 1.58fr);
  gap: 34px;
  align-items: start;
}

.service-reviews-section .service-section-heading {
  display: block;
  margin: 0;
}

.service-reviews-section .service-section-heading h2 {
  max-width: 280px;
}

.service-review-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.service-review-list article,
.service-review-form {
  border: 1px solid rgba(220, 232, 238, 0.14);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.service-review-list article strong {
  display: block;
  margin: 5px 0;
  color: #f8fafc;
}

.service-review-list article p,
.service-review-empty {
  margin: 0;
  color: var(--muted);
}

.service-review-stars {
  color: #facc15;
  letter-spacing: 2px;
}

.service-review-form {
  display: grid;
  gap: 10px;
}

.service-review-form > strong {
  color: #f8fafc;
}

.service-review-form textarea {
  min-height: 90px;
}

@media (max-width: 1000px) {
  .growth-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .growth-dashboard-grid,
  .service-reviews-layout {
    grid-template-columns: 1fr;
  }

  .service-reviews-section > .service-public-shell {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .service-reviews-section .service-section-heading h2 {
    max-width: 520px;
  }

  .indicator-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .company-growth-dashboard {
    padding: 14px;
  }

  .growth-metrics,
  .indicator-metrics,
  .indicator-coupon-list,
  .service-review-list {
    grid-template-columns: 1fr;
  }

  .growth-card-heading,
  .growth-referral-item {
    display: grid;
    grid-template-columns: 1fr;
  }

  .daily-whatsapp-form {
    grid-template-columns: 1fr;
  }

  .daily-whatsapp-form > * {
    grid-column: 1;
  }

  .growth-referral-meta {
    justify-content: start;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 22px, 1180px);
  }

  .topbar {
    min-height: 68px;
  }

  .login-link {
    display: none;
  }

  .auth-nav {
    justify-content: end;
  }

  h1 {
    font-size: 3rem;
  }

  .trust-row,
  .steps-grid,
  .metrics-grid,
  .public-benefits,
  .indicator-service-grid {
    grid-template-columns: 1fr;
  }

  .reason-form,
  .reason-item,
  .service-media-fields,
  .service-media-preview {
    grid-template-columns: 1fr;
  }

  .reason-actions {
    justify-content: start;
  }

  .card-topline,
  .panel-header,
  .saved-header,
  .saved-item-top,
  .image-preview,
  .raffle-item,
  .activity-row,
  .service-item {
    grid-template-columns: 1fr;
    display: grid;
  }

  .service-actions {
    justify-content: start;
  }

  .activity-row span:last-child {
    justify-self: start;
  }
}

/* Modern dashboard theme */
:root {
  --bg: #080d16;
  --surface: #111827;
  --surface-soft: #162235;
  --navy: #eef6ff;
  --muted: #93a4b8;
  --line: rgba(148, 163, 184, 0.18);
  --green: #22c55e;
  --green-dark: #38d777;
  --cyan: #22d3ee;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  --radius: 10px;
}

body {
  color: var(--navy);
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 211, 238, 0.18), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(34, 197, 94, 0.14), transparent 30%),
    linear-gradient(180deg, #080d16 0%, #0b1220 42%, #090e18 100%);
  overflow-y: auto;
}

.page-shell,
.referral-shell {
  width: min(1320px, calc(100% - 32px));
  padding-bottom: 96px;
}

.topbar,
.referral-topbar,
.pricing-topbar {
  position: sticky;
  top: 10px;
  z-index: 20;
  min-height: 62px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(11, 18, 32, 0.86);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: 1rem;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.desktop-nav {
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.desktop-nav a,
.login-link {
  border-radius: 999px;
  padding: 8px 10px;
}

.desktop-nav a:hover,
.login-link:hover {
  color: var(--navy);
  background: rgba(148, 163, 184, 0.12);
}

.auth-user {
  color: var(--muted);
}

.button {
  min-height: 36px;
  border-radius: 8px;
  padding: 0 13px;
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: none;
}

.primary {
  color: #04110b;
  background: linear-gradient(135deg, var(--green), #86efac);
}

.primary:hover {
  background: linear-gradient(135deg, #16a34a, #5eea91);
}

.secondary {
  color: var(--navy);
  background: rgba(15, 23, 42, 0.74);
  border-color: var(--line);
}

.whatsapp {
  color: #04110b;
  background: linear-gradient(135deg, #22c55e, #a3e635);
}

.danger,
.service-item button.danger {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.32);
  border-color: rgba(248, 113, 113, 0.28);
}

.hero {
  min-height: auto;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  gap: 22px;
  padding: 46px 0 28px;
}

h1 {
  max-width: 720px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.hero-text {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.hero-actions,
.invite-actions {
  gap: 8px;
  margin-top: 20px;
}

.trust-row {
  gap: 10px;
  margin-top: 24px;
}

.trust-row div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(17, 24, 39, 0.7);
}

.trust-row strong {
  font-size: 1.15rem;
}

.referral-card,
.panel,
.auth-card,
.activity-panel,
.raffle-panel,
.metrics-grid article,
.public-benefits article,
.conversion-box {
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.94), rgba(11, 18, 32, 0.94));
  box-shadow: var(--shadow);
}

.referral-card,
.panel,
.auth-card,
.raffle-panel {
  padding: 18px;
}

.card-topline strong,
.status-pill,
.raffle-summary span {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.14);
}

.referral-card h2 {
  margin: 18px 0;
  font-size: 1.55rem;
}

.message-preview,
.reason-editor,
.generated-message,
.raffle-settings,
.saved-empty,
.service-item,
.reason-item,
.saved-item,
.activity-row,
.raffle-item,
.image-preview,
.step-card {
  border-color: var(--line);
  background: rgba(15, 23, 42, 0.72);
}

.message-preview p,
.step-card p,
.panel-note,
.service-item p,
.service-item span,
.reason-item span,
.saved-item p,
.metrics-grid span,
.metrics-grid small,
.activity-row span:last-child,
.raffle-item p,
.raffle-item span,
.saved-header span,
.card-topline span,
.generated-header span,
.public-lead,
.conversion-box p,
.offer-card p {
  color: var(--muted);
}

.section-grid,
.auth-section,
.dashboard {
  padding: 34px 0 96px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 18px;
}

.section-heading h2,
.panel h2,
.conversion-box h2 {
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  letter-spacing: -0.035em;
}

.steps-grid,
.metrics-grid {
  gap: 12px;
}

.step-card {
  min-height: auto;
  padding: 16px;
}

.step-card h3 {
  margin: 18px 0 8px;
}

.auth-grid,
.workspace,
.raffle-grid {
  gap: 14px;
}

.workspace {
  grid-template-columns: minmax(360px, 0.82fr) minmax(460px, 1.18fr);
  padding: 28px 0;
}

.panel-header,
.saved-header,
.card-topline,
.generated-header {
  align-items: start;
}

.service-form,
.invite-controls,
.raffle-form,
.raffle-settings,
.lead-form,
.auth-card,
.auth-inline {
  gap: 10px;
}

label {
  color: var(--muted);
  font-size: 0.78rem;
}

.category-selector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
}

.category-selector select {
  width: 100%;
  min-width: 0;
}

.category-add-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.45);
  border-radius: 7px;
  padding: 0;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.08);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.category-add-button:hover {
  border-color: #22d3ee;
  background: rgba(34, 211, 238, 0.16);
}

input,
select,
textarea {
  border-color: var(--line);
  color: var(--navy);
  background: rgba(2, 6, 23, 0.5);
}

input,
select {
  min-height: 38px;
}

textarea {
  min-height: 138px;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(34, 211, 238, 0.7);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}

.service-toolbar {
  justify-content: start;
  margin: 2px 0 12px;
}

.service-toolbar label {
  width: 100%;
}

.service-list,
.saved-list,
.reason-manager-list,
.raffle-list {
  gap: 8px;
}

.service-item,
.raffle-item {
  padding: 12px;
}

.service-actions,
.saved-actions,
.reason-actions {
  gap: 6px;
}

.service-item button,
.reason-item button,
.saved-actions .button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.8rem;
}

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

.metrics-grid article {
  padding: 16px;
}

.metrics-grid strong {
  margin: 8px 0 4px;
  font-size: 1.55rem;
}

.activity-panel {
  padding: 8px;
}

.raffle-panel {
  margin-top: 14px;
}

.winner-card {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.26), rgba(34, 197, 94, 0.18));
}

.toast {
  background: #020617;
  border: 1px solid var(--line);
}

.referral-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 211, 238, 0.16), transparent 30%),
    linear-gradient(180deg, #080d16 0%, #0b1220 100%);
}

.offer-card {
  border-color: var(--line);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(8, 47, 73, 0.88));
}

@media (max-width: 900px) {
  .topbar,
  .referral-topbar {
    position: static;
  }

  .workspace,
  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* Pagina comercial de planos */
.pricing-page {
  color: #eef6ff;
  background: #080d16;
}

.pricing-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.pricing-topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.service-public-topbar {
  position: sticky;
  top: 10px;
  width: min(1160px, calc(100% - 20px));
  margin: 10px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(7, 11, 18, 0.88);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.service-public-topbar .service-public-shell {
  width: 100%;
  padding: 0 14px;
}

.pricing-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 76px 0 46px;
  text-align: center;
}

.pricing-hero h1 {
  max-width: 820px;
  margin: 0 auto 20px;
  color: white;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
}

.pricing-hero > p:last-of-type {
  max-width: 720px;
  margin: 0 auto;
  color: #9fb0c3;
  font-size: 1.08rem;
  line-height: 1.7;
}

.pricing-hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.commercial-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.commercial-proof div {
  display: grid;
  gap: 5px;
  padding: 24px;
  text-align: center;
}

.commercial-proof div + div {
  border-left: 1px solid var(--line);
}

.commercial-proof strong {
  color: white;
}

.commercial-proof span,
.commercial-features-heading > p:last-child,
.commercial-feature-grid p {
  color: #93a4b8;
  line-height: 1.55;
}

.commercial-features {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 54px;
  padding: 76px 0;
}

.commercial-features-heading h2,
.pricing-section-heading h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.08;
}

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

.commercial-feature-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #111827;
}

.commercial-feature-grid span {
  color: #4ade80;
  font-size: 0.75rem;
  font-weight: 900;
}

.commercial-feature-grid h3 {
  margin: 12px 0 8px;
  font-size: 1.05rem;
}

.commercial-feature-grid p {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.pricing-section {
  padding: 18px 0 76px;
}

.pricing-section-heading {
  max-width: 700px;
  margin-bottom: 34px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.pricing-card {
  position: relative;
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #111827;
}

.pricing-card.featured {
  border-color: rgba(74, 222, 128, 0.58);
  background: #132019;
  box-shadow: 0 20px 54px rgba(34, 197, 94, 0.12);
}

.pricing-recommended {
  position: absolute;
  top: -13px;
  right: 18px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #03140a;
  background: #4ade80;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-card-header {
  display: grid;
  gap: 6px;
}

.pricing-card-header span {
  color: #86efac;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-card-header strong {
  font-size: 1.2rem;
}

.pricing-price {
  display: flex;
  align-items: end;
  gap: 7px;
}

.pricing-price strong {
  color: white;
  font-size: 2.6rem;
  line-height: 1;
}

.pricing-price span,
.pricing-setup,
.pricing-note {
  color: #93a4b8;
}

.pricing-setup {
  margin: -8px 0 0;
  font-size: 0.78rem;
}

.pricing-card ul {
  display: grid;
  gap: 11px;
  min-height: 206px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  position: relative;
  padding-left: 22px;
  color: #c7d2df;
  font-size: 0.9rem;
  line-height: 1.45;
}

.pricing-card li::before {
  content: "OK";
  position: absolute;
  left: 0;
  color: #4ade80;
  font-size: 0.62rem;
  font-weight: 900;
}

.pricing-cta {
  width: 100%;
}

.pricing-note {
  margin: 20px auto 0;
  text-align: center;
  font-size: 0.76rem;
}

.pricing-process,
.pricing-faq {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 54px;
  border-top: 1px solid var(--line);
  padding: 72px 0;
}

.pricing-process h2,
.pricing-faq h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.pricing-process ol,
.pricing-faq-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pricing-process li,
.pricing-faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #111827;
}

.pricing-process li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 5px 12px;
}

.pricing-process li span {
  grid-row: span 2;
  color: #4ade80;
  font-weight: 900;
}

.pricing-process li p,
.pricing-faq details p {
  margin-bottom: 0;
  color: #93a4b8;
  line-height: 1.55;
}

.pricing-faq summary {
  cursor: pointer;
  color: white;
  font-weight: 800;
}

.pricing-faq details p {
  margin-top: 12px;
}

.pricing-footer {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: #93a4b8;
}

.pricing-footer span {
  color: white;
  font-weight: 900;
}

.indicator-page .referral-shell {
  padding-bottom: 0;
}

.commercial-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px 40px;
  margin-top: 34px;
  padding: 30px 4px 22px;
  border-top: 1px solid var(--line);
}

.commercial-footer-brand {
  display: grid;
  gap: 10px;
}

.commercial-footer-brand .brand {
  width: fit-content;
}

.commercial-footer-brand p {
  max-width: 540px;
  margin: 0;
  color: #93a4b8;
  line-height: 1.55;
}

.commercial-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 22px;
}

.commercial-footer-nav a {
  color: #cbd5e1;
  font-weight: 750;
}

.commercial-footer-nav a:hover {
  color: #67e8f9;
}

.commercial-footer-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(220, 232, 238, 0.1);
  color: #718096;
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .indicator-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .pricing-card ul {
    min-height: auto;
  }

  .pricing-process,
  .pricing-faq,
  .commercial-features {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .indicator-catalog-filters {
    grid-template-columns: 1fr 1fr;
  }

  .indicator-catalog-filters > button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .commercial-footer {
    grid-template-columns: 1fr;
  }

  .commercial-footer-nav {
    justify-content: flex-start;
  }

  .commercial-footer-meta {
    grid-column: auto;
    flex-direction: column;
    gap: 5px;
  }
}

@media (max-width: 620px) {
  .indicator-catalog-filters {
    grid-template-columns: 1fr;
  }

  .indicator-catalog-filters > button {
    grid-column: auto;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .social-auth-buttons {
    grid-template-columns: 1fr;
  }

  .pricing-topbar .desktop-nav {
    display: none;
  }

  .pricing-hero {
    padding-top: 52px;
  }

  .pricing-hero-actions,
  .indicator-summary-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .pricing-hero-actions .button {
    width: 100%;
  }

  .commercial-proof,
  .commercial-feature-grid,
  .indicator-metrics {
    grid-template-columns: 1fr;
  }

  .commercial-proof div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .indicator-summary-heading > p {
    text-align: left;
  }

  .pricing-card {
    padding: 20px;
  }
}

/* Gestao de usuarios do SuperAdmin */
.admin-users-section {
  padding: 54px 0 72px;
}

.admin-users-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.admin-users-heading h2,
.admin-users-heading p {
  margin-bottom: 0;
}

.admin-users-heading > p {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.6;
  text-align: right;
}

.admin-user-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 14px;
}

.admin-user-metrics article {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #111827;
}

.admin-user-metrics span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.admin-user-metrics strong {
  color: #86efac;
  font-size: 2rem;
  line-height: 1;
}

.admin-users-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #0b1220;
}

.admin-users-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
  gap: 10px;
  margin-bottom: 14px;
}

.admin-users-toolbar label {
  margin-bottom: 0;
}

.admin-user-list {
  display: grid;
  gap: 8px;
}

.admin-user-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) minmax(180px, 0.45fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(220, 232, 238, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(17, 24, 39, 0.72);
}

.admin-user-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #052e16;
  background: #86efac;
  font-size: 0.82rem;
  font-weight: 900;
}

.admin-user-identity {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.admin-user-identity > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-user-identity h3,
.admin-user-identity p,
.admin-user-identity small {
  min-width: 0;
  overflow-wrap: anywhere;
  margin-bottom: 0;
}

.admin-user-identity h3 {
  font-size: 0.98rem;
}

.admin-user-identity > div span,
.admin-user-referrals > span {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 7px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.14);
  font-size: 0.65rem;
  font-weight: 900;
}

.admin-user-identity p,
.admin-user-identity small,
.admin-user-referrals small {
  color: var(--muted);
}

.admin-user-identity p {
  font-size: 0.82rem;
}

.admin-user-identity small,
.admin-user-referrals small {
  font-size: 0.72rem;
}

.admin-user-referrals {
  min-width: 0;
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.admin-user-role-control {
  width: min(180px, 100%);
  margin: 0 0 2px;
  text-align: left;
}

.admin-user-role-control select {
  width: 100%;
  min-height: 34px;
  margin-top: 3px;
  font-size: 0.74rem;
}

.admin-user-referrals > span.active {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.16);
}

.admin-user-referrals strong {
  color: white;
  font-size: 1.5rem;
  line-height: 1;
}

.plan-sponsorship-field {
  align-content: start;
}

.plan-sponsorship-control {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 14, 27, 0.7);
}

.plan-sponsorship-control input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--accent);
}

.plan-sponsorship-field small {
  color: var(--muted);
  font-size: 0.72rem;
}

.admin-user-referrals small {
  max-width: 260px;
  overflow-wrap: anywhere;
}

.admin-users-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 760px) {
  .admin-users-heading {
    align-items: start;
    flex-direction: column;
  }

  .admin-users-heading > p {
    text-align: left;
  }

  .admin-user-metrics,
  .admin-users-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-user-item {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .admin-user-avatar {
    width: 42px;
    height: 42px;
  }

  .admin-user-referrals {
    grid-column: 1 / -1;
    justify-items: start;
    border-top: 1px solid rgba(220, 232, 238, 0.1);
    padding-top: 12px;
    text-align: left;
  }
}

/* Mantem os menus sticky ligados a rolagem principal da pagina. */
html {
  overflow-y: auto;
}

body {
  overflow-x: clip;
  overflow-y: visible;
}

section[id] {
  scroll-margin-top: 132px;
}

@media (max-width: 900px) {
  .topbar,
  .referral-topbar,
  .pricing-topbar {
    min-height: auto;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 12px;
  }

  .topbar .desktop-nav,
  .referral-topbar .desktop-nav,
  .pricing-topbar .desktop-nav {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: start;
    overflow-x: auto;
    padding-top: 7px;
    border-top: 1px solid var(--line);
    scrollbar-width: none;
  }

  .desktop-nav::-webkit-scrollbar,
  .service-public-nav::-webkit-scrollbar {
    display: none;
  }

  .desktop-nav a,
  .service-public-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .service-public-topbar .service-public-shell {
    min-height: auto;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .service-public-nav {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: start;
    overflow-x: auto;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    scrollbar-width: none;
  }
}
