:root {
  --nexa-ink: #101820;
  --nexa-ink-soft: #293844;
  --nexa-muted: #667681;
  --nexa-line: #dfe7ea;
  --nexa-bg: #f5f8f9;
  --nexa-surface: #ffffff;
  --nexa-navy: #002361;
  --nexa-navy-dark: #001a49;
  --nexa-orange: #d44800;
  --nexa-sky: #eef3fb;
  --nexa-shadow: 0 18px 48px rgba(16, 24, 32, 0.12);
}

.nexa-public-page {
  background: var(--nexa-bg);
  color: var(--nexa-ink);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.nexa-public-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(223, 231, 234, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgba(16, 24, 32, 0.06);
}

.nexa-public-nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nexa-public-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.nexa-public-brand img {
  width: 208px;
  max-width: 42vw;
  height: auto;
  display: block;
}

.nexa-public-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
}

.nexa-public-links a,
.nexa-public-nav-link {
  color: var(--nexa-ink-soft);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none !important;
}

.nexa-public-links a:hover,
.nexa-public-nav-link:hover {
  color: var(--nexa-orange);
}

.nexa-public-user-badge {
  min-height: 42px;
  max-width: 230px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 8px;
  border: 1px solid rgba(0, 35, 97, 0.14);
  border-radius: 3px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: var(--nexa-navy);
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(0, 35, 97, 0.07);
}

.nexa-public-user-badge:hover {
  border-color: rgba(212, 72, 0, 0.42);
  color: var(--nexa-navy);
}

.nexa-public-user-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 3px;
  background: var(--nexa-orange);
  color: #ffffff;
  font-size: 13px;
}

.nexa-public-user-text {
  min-width: 0;
  display: block;
  line-height: 1.1;
}

.nexa-public-user-text small,
.nexa-public-user-text strong {
  display: block;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nexa-public-user-text small {
  color: var(--nexa-muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.nexa-public-user-text strong {
  margin-top: 2px;
  color: var(--nexa-navy);
  font-size: 13px;
  font-weight: 900;
}

.nexa-public-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

.nexa-public-translate {
  order: 2;
  position: relative;
  min-width: 170px;
  max-width: 190px;
}

.nexa-public-language-button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 35, 97, 0.14);
  border-radius: 3px;
  background: #ffffff;
  color: var(--nexa-navy);
  box-shadow: 0 8px 18px rgba(0, 35, 97, 0.06);
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
}

.nexa-public-language-current-flag,
.nexa-public-language-menu span {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 15px;
}

.nexa-public-language-current {
  flex: 1 1 auto;
  text-align: left;
}

.nexa-public-language-chevron {
  color: var(--nexa-orange);
  font-size: 11px;
}

.nexa-public-language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1300;
  width: 210px;
  display: none;
  padding: 6px;
  border: 1px solid var(--nexa-line);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 18px 34px rgba(16, 24, 32, 0.16);
}

.nexa-public-translate.is-open .nexa-public-language-menu {
  display: block;
}

.nexa-public-language-menu button {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 0;
  border-radius: 4px;
  background: #ffffff;
  color: var(--nexa-navy);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.nexa-public-language-menu button:hover {
  background: #fff1e8;
  color: var(--nexa-orange);
}

.nexa-public-google-translate {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.goog-logo-link,
.goog-te-gadget span {
  display: none !important;
}

.nexa-public-nav-toggle {
  display: none;
}

.nexa-public-nav-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin: 0;
  border: 1px solid var(--nexa-line);
  border-radius: 7px;
  background: #ffffff;
  cursor: pointer;
}

.nexa-public-nav-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--nexa-ink);
}

.nexa-public-page * {
  box-sizing: border-box;
}

.nexa-public-wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.nexa-public-hero {
  position: relative;
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.nexa-public-hero:before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(9, 18, 28, 0.86), rgba(9, 18, 28, 0.46), rgba(9, 18, 28, 0.18));
}

.nexa-public-hero .nexa-public-wrap {
  position: relative;
  z-index: 1;
}

.nexa-public-hero__content {
  width: min(680px, 100%);
  padding: 72px 0 86px;
  color: #ffffff;
}

.nexa-public-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #fba254;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nexa-public-kicker:before {
  width: 28px;
  height: 2px;
  content: "";
  background: var(--nexa-orange);
}

.nexa-public-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: 0;
}

.nexa-public-hero p {
  width: min(590px, 100%);
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.65;
}

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

.nexa-public-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 850;
  text-decoration: none !important;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nexa-public-btn:hover {
  transform: translateY(-1px);
}

.nexa-public-btn--primary {
  background: var(--nexa-navy);
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(0, 35, 97, 0.16);
}

.nexa-public-login-button {
  min-height: 42px;
  min-width: 108px;
  padding: 10px 18px;
  border-radius: 3px;
  border: 1px solid var(--nexa-navy);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
  box-shadow: none;
}

.nexa-public-login-button:hover {
  border-color: var(--nexa-orange);
  background: var(--nexa-orange);
}

.nexa-public-btn--primary:hover {
  background: var(--nexa-navy-dark);
}

.nexa-public-btn--light {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
}

.nexa-public-btn--outline {
  border-color: var(--nexa-line);
  background: #ffffff;
  color: var(--nexa-ink) !important;
}

.nexa-public-band {
  padding: 72px 0;
  background: var(--nexa-surface);
}

.nexa-public-band--soft {
  background: var(--nexa-bg);
}

.nexa-public-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.nexa-public-section-head h2 {
  margin: 0;
  color: var(--nexa-ink);
  font-size: 34px;
  line-height: 1.12;
  font-weight: 900;
}

.nexa-public-section-head p,
.nexa-public-copy {
  margin: 0;
  color: var(--nexa-muted);
  font-size: 16px;
  line-height: 1.7;
}

.nexa-public-section-head p {
  width: min(470px, 100%);
}

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

.nexa-public-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--nexa-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(16, 24, 32, 0.05);
}

.nexa-public-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--nexa-sky);
  color: var(--nexa-navy);
  font-size: 18px;
}

.nexa-public-card h3 {
  margin: 0 0 10px;
  color: var(--nexa-ink);
  font-size: 19px;
  line-height: 1.28;
  font-weight: 850;
}

.nexa-public-card p,
.nexa-public-card li {
  color: var(--nexa-muted);
  font-size: 14px;
  line-height: 1.65;
}

.nexa-public-card p {
  margin: 0;
}

.nexa-public-card ul,
.nexa-public-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nexa-public-card li,
.nexa-public-list li {
  position: relative;
  padding-left: 24px;
}

.nexa-public-card li + li,
.nexa-public-list li + li {
  margin-top: 10px;
}

.nexa-public-card li:before,
.nexa-public-list li:before {
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: var(--nexa-orange);
}

.nexa-public-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 36px;
  align-items: center;
}

.nexa-public-split h2 {
  margin: 0 0 18px;
  color: var(--nexa-ink);
  font-size: 38px;
  line-height: 1.12;
  font-weight: 900;
}

.nexa-public-media {
  overflow: hidden;
  min-height: 360px;
  border-radius: 8px;
  box-shadow: var(--nexa-shadow);
}

.nexa-public-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  object-fit: cover;
}

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

.nexa-public-stat {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.nexa-public-stat strong {
  display: block;
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
}

.nexa-public-stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 750;
}

.nexa-public-cta {
  background: var(--nexa-ink);
  color: #ffffff;
}

.nexa-public-footer {
  padding: 54px 0 24px;
  background: #0f1720;
  color: rgba(255, 255, 255, 0.72);
}

.nexa-public-footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(150px, 0.7fr));
  gap: 32px;
}

.nexa-public-footer-logo {
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 18px;
}

.nexa-public-footer p {
  width: min(420px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.7;
}

.nexa-public-footer h4 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.nexa-public-footer a {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  text-decoration: none !important;
}

.nexa-public-footer a i {
  width: 18px;
  color: var(--nexa-orange);
}

.nexa-public-footer a:hover {
  color: #ffffff;
}

.nexa-public-footer-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

.nexa-back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: var(--nexa-orange);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(16, 24, 32, 0.18);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.nexa-back-to-top span {
  display: block;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  transform: translateY(-1px);
}

.nexa-back-to-top:hover {
  background: #b83f00;
}

.nexa-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nexa-public-cta .nexa-public-split h2,
.nexa-public-cta .nexa-public-copy {
  color: #ffffff;
}

.nexa-public-form {
  padding: 26px;
  border: 1px solid var(--nexa-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--nexa-shadow);
}

.nexa-public-field {
  margin-bottom: 16px;
}

.nexa-public-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--nexa-ink);
  font-size: 13px;
  font-weight: 850;
}

.nexa-public-field input,
.nexa-public-field textarea,
.nexa-auth-field input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--nexa-line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--nexa-ink);
  font-size: 15px;
}

.nexa-public-field textarea {
  min-height: 142px;
  resize: vertical;
}

.nexa-public-alert {
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #fff1e8;
  color: #9a3412;
  font-weight: 750;
}

.nexa-auth-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  background: var(--nexa-bg);
}

.nexa-auth-visual {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  padding: 48px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #ffffff;
}

.nexa-auth-visual:before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(10, 20, 31, 0.22), rgba(10, 20, 31, 0.86));
}

.nexa-auth-visual > div {
  position: relative;
  z-index: 1;
}

.nexa-auth-visual h1 {
  margin: 0;
  color: #ffffff;
  font-size: 48px;
  line-height: 1.02;
  font-weight: 900;
}

.nexa-auth-visual p {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  line-height: 1.65;
}

.nexa-auth-panel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 28px;
}

.nexa-auth-panel {
  width: min(430px, 100%);
  padding: 30px;
  border: 1px solid var(--nexa-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--nexa-shadow);
}

.nexa-auth-logo {
  display: block;
  width: 190px;
  max-width: 100%;
  height: auto;
  margin-bottom: 24px;
}

.nexa-auth-panel h2 {
  margin: 0;
  color: var(--nexa-ink);
  font-size: 28px;
  line-height: 1.16;
  font-weight: 900;
}

.nexa-auth-panel p {
  margin: 9px 0 22px;
  color: var(--nexa-muted);
  line-height: 1.6;
}

.nexa-auth-field {
  margin-bottom: 16px;
}

.nexa-auth-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--nexa-ink);
  font-size: 13px;
  font-weight: 850;
}

.nexa-auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: var(--nexa-muted);
  font-size: 13px;
}

.nexa-auth-error {
  display: block;
  margin-top: 6px;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 750;
}

.nexa-admin-auth {
  min-height: 100vh;
}

@media (max-width: 900px) {
  .nexa-public-nav {
    min-height: 72px;
    justify-content: space-between;
  }

  .nexa-public-nav-button {
    display: inline-flex;
    order: 3;
  }

  .nexa-public-links,
  .nexa-public-nav-actions {
    display: none;
  }

  .nexa-public-nav-toggle:checked ~ .nexa-public-links,
  .nexa-public-nav-toggle:checked ~ .nexa-public-nav-actions {
    display: flex;
    position: absolute;
    left: 16px;
    right: 16px;
    background: #ffffff;
  }

  .nexa-public-nav-toggle:checked ~ .nexa-public-links {
    top: 74px;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    border: 1px solid var(--nexa-line);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 18px 34px rgba(16, 24, 32, 0.12);
  }

  .nexa-public-nav-toggle:checked ~ .nexa-public-nav-actions {
    top: 332px;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 18px 18px;
    border: 1px solid var(--nexa-line);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 18px 34px rgba(16, 24, 32, 0.12);
  }

  .nexa-public-nav-toggle:checked ~ .nexa-public-nav-actions .nexa-public-translate {
    order: 2;
    flex: 1 1 170px;
    max-width: none;
  }

  .nexa-public-nav-toggle:checked ~ .nexa-public-nav-actions .nexa-public-btn {
    order: 1;
    flex: 0 0 auto;
  }

  .nexa-public-hero {
    min-height: 720px;
  }

  .nexa-public-section-head,
  .nexa-public-split,
  .nexa-auth-shell {
    grid-template-columns: 1fr;
  }

  .nexa-public-section-head {
    display: block;
  }

  .nexa-public-section-head p {
    margin-top: 12px;
  }

  .nexa-public-grid,
  .nexa-public-stats,
  .nexa-public-footer-grid {
    grid-template-columns: 1fr;
  }

  .nexa-auth-visual {
    min-height: 390px;
  }
}

@media (max-width: 560px) {
  .nexa-public-wrap {
    width: min(100% - 22px, 1160px);
  }

  .nexa-public-hero h1,
  .nexa-auth-visual h1 {
    font-size: 40px;
  }

  .nexa-public-band {
    padding: 52px 0;
  }

  .nexa-public-card,
  .nexa-auth-panel {
    padding: 20px;
  }

  .nexa-auth-panel-wrap,
  .nexa-auth-visual {
    padding: 28px 18px;
  }
}
