:root {
  --navy: #011627;
  --navy-2: #021a2b;
  --navy-3: #032033;
  --strip: #021926;
  --partner: #0e3d48;
  --green: #00a651;
  --green-2: #12c463;
  --green-3: #019161;
  --mint: #7dffb0;
  --text: #15232d;
  --muted: #667781;
  --line: rgba(255, 255, 255, 0.12);
  --container: 1120px;
  --header: 108px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Manrope", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section-home-split .container {
  width: min(100% - 2rem, 1240px);
}

/* Header */
.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  min-height: var(--header);
  height: auto;
  display: flex;
  align-items: center;
  padding: 1.1rem 0 0.9rem;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease, padding 0.25s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 22, 39, 0.82) 0%, rgba(1, 22, 39, 0.45) 55%, rgba(1, 22, 39, 0.08) 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.site-header.is-solid {
  position: fixed;
  background: rgba(1, 22, 39, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  padding: 0.95rem 0 0.85rem;
}

.site-header.is-solid::before {
  opacity: 0;
}

.header-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, 1240px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
  line-height: 1;
  min-width: 0;
}

.brand-logo {
  height: 78px;
  width: auto;
  max-width: min(240px, 36vw);
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-logo-footer {
  height: 56px;
  max-width: 200px;
}

.brand-text {
  line-height: 1.15;
  font-weight: 780;
  letter-spacing: 0.02em;
  font-size: 1.12rem;
  white-space: nowrap;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #b8ffd4 0 16%, transparent 40%),
    conic-gradient(from 200deg, #00a651, #0b4a3a, #2ec4a2, #00a651);
  box-shadow:
    0 0 0 2px rgba(46, 196, 162, 0.55),
    0 0 22px rgba(18, 196, 99, 0.4);
  position: relative;
  flex-shrink: 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
}

.nav {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  justify-content: center;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.55rem 0.1rem 0.7rem;
  position: relative;
  display: inline-grid;
  justify-items: center;
  row-gap: 0.28rem;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: #ffd400;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav a:hover {
  color: #fff;
}

.nav a:hover::after {
  transform: scaleX(0.55);
}

.nav a.is-active {
  color: #ffd400;
  font-weight: 800;
}

.nav a.is-active::after {
  transform: scaleX(1);
  background: #ffd400;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
}

.lang-dropdown {
  position: relative;
  z-index: 60;
}

.lang-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  min-width: 108px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.site-header.is-solid .lang-dropdown-toggle {
  background: #fff;
  border-color: rgba(1, 22, 39, 0.14);
  color: #0b1f2d;
  box-shadow: 0 6px 16px rgba(1, 22, 39, 0.08);
}

.lang-dropdown-toggle:hover,
.lang-dropdown.is-open .lang-dropdown-toggle {
  background: rgba(0, 166, 81, 0.22);
  border-color: rgba(0, 166, 81, 0.55);
}

.site-header.is-solid .lang-dropdown-toggle:hover,
.site-header.is-solid .lang-dropdown.is-open .lang-dropdown-toggle {
  background: rgba(0, 166, 81, 0.1);
  border-color: rgba(0, 166, 81, 0.4);
}

.lang-dropdown-toggle img,
.lang-dropdown-item img {
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.14);
  display: block;
  flex-shrink: 0;
}

.lang-code {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
}

.lang-caret {
  width: 14px;
  height: 14px;
  opacity: 0.9;
  transition: transform 0.18s ease;
  flex-shrink: 0;
}

.lang-dropdown.is-open .lang-caret {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  min-width: 230px;
  padding: 0.5rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(11, 31, 45, 0.08);
  box-shadow: 0 16px 40px rgba(1, 22, 39, 0.18);
  display: grid;
  gap: 0.2rem;
}

.lang-dropdown-menu[hidden] {
  display: none;
}

.lang-dropdown-item {
  display: grid;
  grid-template-columns: 28px auto 1fr;
  align-items: center;
  gap: 0.7rem;
  min-height: 46px;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  color: #0b1f2d;
  transition: background 0.15s ease;
}

.lang-dropdown-item:hover {
  background: rgba(0, 166, 81, 0.1);
}

.lang-dropdown-item.is-active {
  background: rgba(0, 166, 81, 0.14);
}

.lang-item-code {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.lang-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4f6b78;
  text-align: left;
}

.lang-dropdown-item.is-active .lang-item-name {
  color: #0b1f2d;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.78rem 1.25rem;
  font-weight: 650;
  font-size: 0.92rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-2);
}

.btn-blue {
  background: #1d4ed8;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.28);
}

.btn-blue:hover {
  background: #1e40af;
  box-shadow: 0 10px 22px rgba(30, 64, 175, 0.34);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(46, 196, 162, 0.7);
}

.btn-outline:hover {
  border-color: var(--green-2);
  background: rgba(0, 166, 81, 0.08);
}

.btn-ghost {
  padding: 0.85rem 1.55rem;
  color: #fff;
  border-color: rgba(46, 196, 162, 0.85);
  background: rgba(1, 22, 39, 0.35);
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.25);
  min-height: 50px;
}

.btn-ghost:hover {
  border-color: var(--green-2);
  background: rgba(0, 166, 81, 0.2);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1.5px solid rgba(46, 196, 162, 0.55);
  background: rgba(1, 22, 39, 0.4);
  color: #fff;
  padding: 0;
  cursor: pointer;
  place-items: center;
  gap: 6px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
  transition: 0.2s ease;
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Hero — compact full-bleed photo, left-aligned copy */
.hero {
  position: relative;
  min-height: 0;
  height: auto;
  background: #011019;
  color: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 42%;
  display: block;
  filter: saturate(1.08) contrast(1.06) brightness(1.04);
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(1, 16, 25, 0.82) 0%, rgba(1, 16, 25, 0.58) 32%, rgba(1, 16, 25, 0.18) 56%, transparent 76%),
    linear-gradient(180deg, rgba(1, 16, 25, 0.28) 0%, transparent 38%, rgba(1, 16, 25, 0.32) 100%);
  pointer-events: none;
}

.hero-main {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  padding: calc(var(--header) + 2rem) 0 2.4rem;
  min-height: clamp(520px, 68vh, 680px);
  box-sizing: border-box;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 44rem);
  max-width: 44rem;
  text-align: left;
  margin: 0;
  padding: 0;
}

.hero-eyebrow {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(182, 255, 203, 0.92);
}

.hero h1 {
  position: relative;
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2.55rem, 4.6vw, 3.7rem);
  line-height: 1.12;
  font-weight: 780;
  letter-spacing: -0.025em;
  max-width: 18ch;
  text-wrap: balance;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hero h1 span {
  color: var(--green-2);
}

.hero-lead {
  position: relative;
  margin: 0 0 1.25rem;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.28rem;
  line-height: 1.55;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
}

.hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.7rem;
}

.hero-actions .btn {
  font-size: 1.12rem;
  padding: 0.95rem 1.45rem;
}

.hero-visual,
.hero-mesh {
  display: none;
}

/* Trust bar inside hero bottom */
.trust-bar {
  position: relative;
  z-index: 3;
  background: #011627;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.trust-inner {
  width: min(100% - 2.5rem, 1240px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: 72px;
  gap: 0;
  overflow: hidden;
  border-radius: 0;
}

.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.35;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 1.1rem;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item--1 {
  background: linear-gradient(160deg, #1565c0 0%, #0d47a1 100%);
}

.trust-item--2 {
  background: linear-gradient(160deg, #00897b 0%, #00695c 100%);
}

.trust-item--3 {
  background: linear-gradient(160deg, #6a1b9a 0%, #4a148c 100%);
}

.trust-item:hover {
  filter: brightness(1.08);
  color: #fff;
}

.trust-item:hover .trust-icon {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.trust-item:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: -2px;
}

.trust-label {
  max-width: 16rem;
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.trust-item--1 .trust-icon {
  border-color: rgba(187, 222, 251, 0.7);
  background: rgba(227, 242, 253, 0.16);
}

.trust-item--2 .trust-icon {
  border-color: rgba(178, 223, 219, 0.7);
  background: rgba(224, 242, 241, 0.16);
}

.trust-item--3 .trust-icon {
  border-color: rgba(225, 190, 231, 0.7);
  background: rgba(243, 229, 245, 0.16);
}

.trust-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section.soft {
  background: #f4f7f9;
}

.section-head {
  margin-bottom: 2rem;
}

.section-kicker {
  margin: 0 0 0.5rem;
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-intro {
  margin: -1.1rem 0 2rem;
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-title {
  margin: 0 0 2rem;
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 780;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
  color: #102430;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 4.2rem;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
}

.section-lead {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

/* Dashboard explorer (sidebar + preview) */
.dash-explorer {
  display: grid;
  grid-template-columns: minmax(264px, 1.08fr) minmax(0, 1.37fr);
  gap: 0;
  align-items: stretch;
  background: #fff;
  border: 1px solid rgba(21, 35, 45, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(1, 22, 39, 0.06);
  min-height: 520px;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  border-right: 1px solid rgba(21, 35, 45, 0.08);
  background: #fff;
}

.dash-nav-list {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}

.dash-guide {
  flex: 1 1 auto;
  margin-top: 0;
  padding: 1.15rem 1rem 1.3rem;
  border-top: 1px solid rgba(21, 35, 45, 0.08);
  background: linear-gradient(180deg, #f4f8fa 0%, #eef4f7 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.15rem;
  min-height: 220px;
}

.dash-guide-block {
  display: grid;
  gap: 0.45rem;
}

.dash-guide-block + .dash-guide-block {
  padding-top: 0.95rem;
  border-top: 1px dashed rgba(21, 35, 45, 0.12);
}

.dash-guide-title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  background: #00897b;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dash-guide-text {
  margin: 0;
  color: #5f717c;
  font-size: 1.08rem;
  line-height: 1.5;
}

.dash-guide-list {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.dash-guide-list li {
  position: relative;
  padding-left: 1.05rem;
  color: #334956;
  font-size: 1.06rem;
  line-height: 1.5;
  font-weight: 650;
}

.dash-guide-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #1e88e5;
}

.dash-nav-heading {
  margin: 0;
  padding: 1.15rem 1rem 1.05rem;
  min-height: 3.4rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  background: #0b1f2d;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.3;
}

.dash-nav-item {
  appearance: none;
  border: 0;
  border-bottom: 1px solid rgba(21, 35, 45, 0.08);
  border-left: 4px solid transparent;
  background: transparent;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 1.55rem 0.85rem;
  text-align: left;
  cursor: pointer;
  color: #1a2b3c;
  font: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.dash-nav-item:last-child {
  border-bottom: 0;
}

.dash-nav-item:hover {
  filter: brightness(0.98);
}

.dash-nav-item.is-active {
  color: #102430;
}

.dash-nav-item--uc1 {
  background: rgba(30, 136, 229, 0.1);
}

.dash-nav-item--uc1:hover,
.dash-nav-item--uc1.is-active {
  background: rgba(30, 136, 229, 0.18);
  border-left-color: #1e88e5;
}

.dash-nav-item--uc1.is-active .dash-chevron {
  color: #1e88e5;
}

.dash-nav-item--uc2 {
  background: rgba(0, 166, 81, 0.1);
}

.dash-nav-item--uc2:hover,
.dash-nav-item--uc2.is-active {
  background: rgba(0, 166, 81, 0.18);
  border-left-color: #00a651;
}

.dash-nav-item--uc2.is-active .dash-chevron {
  color: #00a651;
}

.dash-nav-item--uc3 {
  background: rgba(240, 162, 2, 0.12);
}

.dash-nav-item--uc3:hover,
.dash-nav-item--uc3.is-active {
  background: rgba(240, 162, 2, 0.2);
  border-left-color: #f0a202;
}

.dash-nav-item--uc3.is-active .dash-chevron {
  color: #d48900;
}

.dash-nav-item--uc4 {
  background: rgba(123, 97, 255, 0.1);
}

.dash-nav-item--uc4:hover,
.dash-nav-item--uc4.is-active {
  background: rgba(123, 97, 255, 0.18);
  border-left-color: #7b61ff;
}

.dash-nav-item--uc4.is-active .dash-chevron {
  color: #7b61ff;
}

.dash-nav-item--uc5 {
  background: rgba(229, 57, 53, 0.1);
}

.dash-nav-item--uc5:hover,
.dash-nav-item--uc5.is-active {
  background: rgba(229, 57, 53, 0.18);
  border-left-color: #e53935;
}

.dash-nav-item--uc5.is-active .dash-chevron {
  color: #e53935;
}

.dash-num {
  width: 41px;
  height: 41px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-size: 1.01rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 166, 81, 0.22);
}

.dash-num--uc1 {
  background: #1e88e5;
  box-shadow: 0 3px 8px rgba(30, 136, 229, 0.28);
}

.dash-num--uc2 {
  background: #00a651;
  box-shadow: 0 3px 8px rgba(0, 166, 81, 0.28);
}

.dash-num--uc3 {
  background: #f0a202;
  box-shadow: 0 3px 8px rgba(240, 162, 2, 0.28);
}

.dash-num--uc4 {
  background: #7b61ff;
  box-shadow: 0 3px 8px rgba(123, 97, 255, 0.28);
}

.dash-num--uc5 {
  background: #e53935;
  box-shadow: 0 3px 8px rgba(229, 57, 53, 0.28);
}

.dash-nav-label {
  font-size: 1.24rem;
  font-weight: 650;
  line-height: 1.3;
}

.dash-nav-item.is-active .dash-nav-label {
  font-weight: 780;
}

.dash-chevron {
  color: rgba(21, 35, 45, 0.3);
  font-size: 1.87rem;
  line-height: 1;
}

.dash-nav-item.is-active .dash-chevron {
  color: var(--green);
}

.dash-panel {
  position: relative;
  padding: 0 0 0.85rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
}

.dash-panel-item {
  display: none;
}

.dash-panel-item.is-active {
  display: block !important;
  animation: dashFade 0.28s ease;
}

@keyframes dashFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.dash-panel-media {
  border-radius: 0;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: none;
  background: #e8eef1;
  margin: 0 0 0.85rem;
}

.dash-panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
}

.dash-panel-body {
  padding: 0 1.05rem;
}

.dash-panel-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
  color: #102430;
  letter-spacing: -0.02em;
}

.dash-panel-body p {
  margin: 0 0 0.7rem;
  color: var(--muted);
  line-height: 1.5;
  font-size: 1.12rem;
}

.dash-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.dash-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: #eef3f6;
  color: #2a3f4d;
  font-size: 1.02rem;
  font-weight: 650;
  border: 1px solid rgba(21, 35, 45, 0.05);
}

.dash-tag svg {
  color: var(--green);
  flex-shrink: 0;
}

.dash-open {
  display: inline-flex;
  background: #1e88e5;
  color: #fff;
  border-color: #1e88e5;
}

.dash-open:hover {
  background: #1976d2;
  border-color: #1976d2;
  color: #fff;
}

.dash-dots {
  margin-top: 0.55rem;
  padding: 0.5rem 1.05rem 0;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.dash-dot {
  width: 28px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(21, 35, 45, 0.14);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.dash-dot.is-active {
  background: var(--green);
  width: 36px;
}

@media (max-width: 1100px) {
  .home-split {
    grid-template-columns: 1fr;
  }

  .home-tablist {
    width: 100%;
    border-radius: 16px;
  }

  .home-tab {
    flex: 1 1 auto;
    text-align: center;
    font-size: 1rem;
    padding: 0.88rem 0.95rem;
  }

  .home-col-about {
    padding-left: 0;
  }

  .home-col-about::before {
    display: none;
  }

  .home-col-head {
    min-height: 0;
  }

  .home-col-dash .dash-explorer,
  .about-card {
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .dash-explorer {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .dash-nav {
    border-right: 0;
    border-bottom: 1px solid rgba(21, 35, 45, 0.08);
    max-height: none;
  }

  .dash-nav-item {
    padding: 1.6rem 1rem;
  }

  .dash-panel {
    padding: 1.15rem 1.1rem 1rem;
  }
}

.uc-featured,
.uc-secondary {
  display: grid;
  gap: 1.35rem;
  align-items: stretch;
}

.uc-featured {
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1.35rem;
}

.uc-secondary {
  grid-template-columns: repeat(3, 1fr);
}

.uc-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(16, 36, 48, 0.07);
  box-shadow: 0 12px 34px rgba(1, 22, 39, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.uc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(1, 22, 39, 0.12);
}

.uc-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #102430;
}

.uc-badge {
  display: none;
}

.uc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transition: transform 0.45s ease;
}

.uc-card[data-uc="uc1"] .uc-media img { object-position: 65% 40%; }
.uc-card[data-uc="uc2"] .uc-media img { object-position: center 45%; }
.uc-card[data-uc="uc3"] .uc-media img { object-position: 55% 40%; }
.uc-card[data-uc="uc4"] .uc-media img { object-position: center 38%; }
.uc-card[data-uc="uc5"] .uc-media img { object-position: 48% 40%; }

.uc-card:hover .uc-media img {
  transform: scale(1.05);
}

.uc-body {
  padding: 1.25rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.uc-body h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 780;
  color: #102430;
}

.uc-body p {
  margin: 0;
  color: #5f717c;
  font-size: 0.94rem;
  line-height: 1.55;
  flex: 1;
}

.uc-body .btn {
  align-self: flex-start;
  margin-top: 0.2rem;
}

.btn-case {
  background: #fff;
  color: var(--green);
  border: 1.5px solid rgba(0, 166, 81, 0.75);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.btn-case:hover {
  background: rgba(0, 166, 81, 0.08);
  border-color: var(--green);
}

/* Geospatial */
.geo-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
}

.geo-copy h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  font-weight: 750;
}

.geo-copy p {
  margin: 0 0 1.4rem;
  color: var(--muted);
  max-width: 30rem;
}

.map-panel {
  min-height: 340px;
  border-radius: 18px;
  background: linear-gradient(160deg, #fbfefe, #e5eef2);
  border: 1px solid rgba(21, 35, 45, 0.08);
  box-shadow: 0 14px 40px rgba(1, 22, 39, 0.08);
  overflow: hidden;
}

.map-panel svg {
  width: 100%;
  height: 100%;
  min-height: 340px;
  display: block;
}

/* Home: Dashboards + About side by side */
.section-home-split {
  position: relative;
  padding: 3.2rem 0 2.8rem;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(247, 250, 251, 0.88) 0%, rgba(255, 255, 255, 0.82) 48%, rgba(247, 250, 251, 0.9) 100%),
    url("../img/bg-soft-corridor.svg") center / cover no-repeat;
}

.section-home-split::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 80% 10%, rgba(0, 166, 81, 0.05), transparent 60%),
    radial-gradient(ellipse 55% 45% at 10% 90%, rgba(46, 196, 162, 0.04), transparent 65%);
  pointer-events: none;
}

.home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: stretch;
}

/* Home tabs: Platform + About */
.home-tabs {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.home-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.45rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #0e2a3c 0%, #071824 100%);
  border: 1px solid rgba(18, 196, 99, 0.22);
  box-shadow: 0 12px 28px rgba(1, 22, 39, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  width: fit-content;
  max-width: 100%;
}

.home-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(232, 246, 238, 0.78);
  font: inherit;
  font-size: 1.12rem;
  font-weight: 750;
  line-height: 1.25;
  padding: 0.95rem 1.25rem;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.home-tab-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  color: inherit;
}

.home-tab-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.home-tab:hover {
  color: #fff;
  background: rgba(18, 196, 99, 0.16);
}

.home-tab.is-active {
  color: #fff;
  background: linear-gradient(180deg, #12c463 0%, #00a651 100%);
  box-shadow: 0 8px 18px rgba(0, 166, 81, 0.38);
}

.home-tab:focus-visible {
  outline: 2px solid rgba(182, 255, 203, 0.85);
  outline-offset: 2px;
}

.home-tabpanel {
  display: none;
}

.home-tabpanel.is-active {
  display: block;
}

.home-about-intro {
  display: grid;
  gap: 0.85rem;
  max-width: 58rem;
}

.home-about-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.about-card--tab {
  max-width: none;
  width: 100%;
}

.about-card-photo {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  max-height: 280px;
  background: url("../img/about-rail.jpg?v=hd1") center / cover no-repeat;
  background-position: center 45%;
  flex-shrink: 0;
}

.about-card--tab .about-card-photo {
  aspect-ratio: 16 / 9;
  max-height: 260px;
}

.home-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.home-col-about {
  position: relative;
  padding-left: 0;
}

.home-col-about::before {
  content: "";
  position: absolute;
  left: -1.15rem;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(0, 166, 81, 0.12) 0%,
    var(--green) 25%,
    var(--green-2) 55%,
    var(--green) 80%,
    rgba(0, 166, 81, 0.12) 100%
  );
}

.col-kicker {
  margin: 0 0 0.45rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.home-col-head {
  margin-bottom: 0.75rem;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.home-col-head .section-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.4rem, 2.1vw, 1.85rem);
}

.home-col-head .section-intro {
  margin: 0;
  max-width: none;
  font-size: 0.94rem;
  line-height: 1.55;
}

.home-tabpanel .dash-explorer,
.home-col-dash .dash-explorer {
  flex: 1 1 auto;
  width: 100%;
  min-height: 540px;
  height: auto;
}

.home-col-dash .dash-nav-item {
  padding: 1.55rem 0.85rem;
}

.home-col-dash .dash-nav-label {
  font-size: 1.21rem;
}

.home-col-dash .dash-panel {
  padding: 0 0 0.8rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
}

.home-col-dash .dash-panel-item.is-active {
  display: flex !important;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: auto;
}

.home-col-dash .dash-panel-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: none;
  margin: 0 0 0.85rem;
  flex-shrink: 0;
  border-radius: 0;
}

.home-col-dash .dash-panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 0;
}

.home-col-dash .dash-panel-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 0 1.05rem;
}

.panel-kicker {
  margin: 0 0 0.25rem;
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-col-dash .dash-panel-body h3 {
  font-size: 1.42rem;
  margin: 0 0 0.4rem;
  color: #102430;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.home-col-dash .dash-panel-body > p {
  font-size: 1.12rem;
  line-height: 1.55;
  margin: 0 0 0.8rem;
  color: #667781;
}

.home-col-dash .dash-tags {
  margin-bottom: 0.8rem;
}

.home-col-dash .dash-tag {
  font-size: 0.98rem;
  padding: 0.45rem 0.75rem;
}

.home-col-dash .dash-tag strong {
  color: var(--green);
  margin-right: 0.3rem;
  font-weight: 780;
}

.home-col-dash .dash-open {
  align-self: flex-start;
  border-radius: 999px;
  min-height: 48px;
  padding-inline: 1.3rem;
  font-size: 1.08rem;
  font-weight: 750;
  margin-top: 0;
  background: #1e88e5;
  border-color: #1e88e5;
  color: #fff;
}

.home-col-dash .dash-open:hover {
  background: #1976d2;
  border-color: #1976d2;
  color: #fff;
}

.home-col-dash .dash-dots {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
}

.about-card {
  background: #fff;
  border: 1px solid rgba(21, 35, 45, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(1, 22, 39, 0.06);
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: auto;
}

.about-card-body {
  padding: 1.1rem 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.about-card-body h3 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 780;
  color: #102430;
}

.about-card-body > p {
  margin: 0 0 0.85rem;
  color: #667781;
  font-size: 0.88rem;
  line-height: 1.5;
}

.about-points {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  flex: 0 0 auto;
}

.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0;
}

.about-points .feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(0, 166, 81, 0.12);
  border: 1px solid rgba(0, 166, 81, 0.14);
  color: var(--green);
  flex-shrink: 0;
}

.about-points strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 750;
  color: #163041;
  line-height: 1.3;
}

.about-points small {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.78rem;
  color: #7a8892;
  line-height: 1.4;
}

.about-card-btn {
  margin-top: 0;
  width: 100%;
  justify-content: center;
  border-radius: 999px;
  min-height: 44px;
  font-weight: 750;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(21, 35, 45, 0.08);
  box-shadow: 0 16px 44px rgba(1, 22, 39, 0.1);
  background: #fff;
}

.about-photo {
  min-height: 520px;
  background: url("../img/about-rail.jpg?v=hd1") center / cover no-repeat;
}

.about-copy {
  padding: 2.8rem 2.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  color: var(--green);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.55rem;
}

.about-copy h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.7rem, 2.6vw, 2.15rem);
  letter-spacing: -0.02em;
  font-weight: 750;
  line-height: 1.2;
  color: #102430;
}

.about-lead {
  margin: 0 0 0.75rem;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.98rem;
}

.about-lead:last-of-type {
  margin-bottom: 1.35rem;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.feature-row-2 {
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}

.feature-row-2 .feature-item {
  flex-direction: row;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  background: #f6faf8;
  border: 1px solid rgba(21, 35, 45, 0.06);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: rgba(0, 166, 81, 0.1);
  border: 1px solid rgba(0, 166, 81, 0.18);
  flex-shrink: 0;
}

.feature-item span {
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.3;
}

.feature-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 750;
  color: #153040;
  line-height: 1.3;
}

.feature-item small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Partners / funding band — professional corporate look */
.partners-band {
  background:
    linear-gradient(
      125deg,
      #011627 0%,
      #0a2740 42%,
      #123a5c 72%,
      #0d2f4a 100%
    );
  padding: 3.1rem 0 3.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(1, 22, 39, 0.35);
}

.partners-inner {
  display: grid;
  gap: 1.55rem;
  width: min(100% - 2.5rem, 1240px);
}

.partners-head {
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  text-align: center;
}

.partners-label {
  position: relative;
  margin: 0;
  color: #fff;
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.partners-label::before,
.partners-label::after {
  content: "";
  width: 4.6rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(18, 196, 99, 0.95), rgba(255, 255, 255, 0.55), transparent);
}

.partners-sub {
  margin: 0;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  line-height: 1.5;
}

.partner-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: stretch;
  width: 100%;
  padding: 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.partner-tile {
  min-height: 124px;
  display: grid;
  place-items: center;
  padding: 0.2rem;
  border-radius: 16px;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  text-decoration: none;
  transition: transform 0.22s ease;
}

.partner-tile-frame {
  width: 100%;
  height: 100%;
  min-height: 118px;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.partner-tile:hover {
  transform: translateY(-2px);
}

.partner-tile:hover .partner-tile-frame {
  border-color: rgba(18, 196, 99, 0.55);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26), 0 0 0 2px rgba(18, 196, 99, 0.18);
}

.partner-tile:focus-visible {
  outline: none;
}

.partner-tile:focus-visible .partner-tile-frame {
  outline: 2px solid rgba(18, 196, 99, 0.8);
  outline-offset: 3px;
}

.partner-tile img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  pointer-events: none;
}

/* Keep brand colour only as a soft accent strip, logos stay on white */
.partner-tile-vinnova .partner-tile-frame {
  background: linear-gradient(180deg, #fff 0%, #f7fbe8 100%);
}

.partner-tile-innoviris .partner-tile-frame {
  background: linear-gradient(180deg, #fff 0%, #eef3fa 100%);
}

@media (max-width: 1100px) {
  .partner-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .partner-tile-frame {
    min-height: 120px;
  }
}

@media (max-width: 700px) {
  .partners-band {
    padding: 2.6rem 0 2.8rem;
  }

  .partners-label {
    font-size: 1.12rem;
    letter-spacing: 0.12em;
    gap: 0.75rem;
  }

  .partners-label::before,
  .partners-label::after {
    width: 2.2rem;
  }

  .partner-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.7rem;
    border-radius: 16px;
  }

  .partner-tile {
    min-height: 0;
    padding: 0.15rem;
  }

  .partner-tile-frame {
    min-height: 108px;
    padding: 0.8rem 0.85rem;
    border-radius: 12px;
  }
}

@media (max-width: 420px) {
  .partner-logos {
    grid-template-columns: 1fr;
  }

  .partner-tile-frame {
    min-height: 108px;
    aspect-ratio: 2.3 / 1;
  }
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #021a2c 0%, #011019 100%);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.2rem 0 0;
  border-top: 1px solid rgba(18, 196, 99, 0.18);
}

.footer-shell {
  width: min(100% - 2.5rem, 1240px);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.65fr);
  gap: 2rem 3rem;
  padding-bottom: 2.4rem;
  align-items: start;
}

.footer-brand .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.footer-brand .brand-text {
  font-size: 1.22rem;
  letter-spacing: 0.02em;
}

.brand-logo-footer {
  height: 64px;
  max-width: 230px;
  width: auto;
}

.footer-brand > p {
  margin: 1.35rem 0 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.26rem;
  line-height: 1.7;
}

.footer-meta {
  margin-top: 1.5rem !important;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(182, 255, 203, 0.88) !important;
  font-size: 1.12rem !important;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.65 !important;
  max-width: 34rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  padding-top: 0.35rem;
}

.footer-col h4 {
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

.footer-col li a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.26rem;
  font-weight: 550;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.footer-col li a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(18, 196, 99, 0.16);
  flex-shrink: 0;
}

.footer-col li a svg {
  width: 14px;
  height: 14px;
  opacity: 0.75;
}

.footer-col li a:hover {
  color: var(--green-2);
}

.footer-col li a:hover::before {
  background: var(--green-2);
  box-shadow: 0 0 0 3px rgba(18, 196, 99, 0.28);
}

.footer-connect .social {
  margin-top: 1.5rem;
}

.social {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  padding: 0;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.social svg {
  width: 20px;
  height: 20px;
  display: block;
}

.social-linkedin:hover {
  color: #fff;
  background: #0a66c2;
  border-color: #0a66c2;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(10, 102, 194, 0.35);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.65rem 0 1.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.62);
}

.footer-legal {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.58);
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--green-2);
}

/* Inner pages */
.page-hero {
  padding: calc(var(--header) + 2.4rem) 0 2.2rem;
  background:
    linear-gradient(120deg, rgba(1, 22, 39, 0.9), rgba(1, 22, 39, 0.62)),
    url("../img/hero-rail.jpg?v=hd7") center / cover no-repeat;
  color: #fff;
}

.dashboards-hero {
  min-height: clamp(320px, 42vh, 480px);
  padding: calc(var(--header) + 3.2rem) 0 3.4rem;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(120deg, rgba(1, 22, 39, 0.88), rgba(1, 22, 39, 0.52)),
    url("../img/hero-rail.jpg?v=hd7") center / cover no-repeat;
}

.dashboards-hero h1 {
  font-size: clamp(2.1rem, 3.4vw, 3rem);
}

.dashboards-hero p {
  max-width: 52rem;
  font-size: 1.05rem;
}

.page-hero h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.page-hero p {
  margin: 0;
  max-width: 48rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.page-section {
  padding: 2.6rem 0 3.2rem;
}

.panel {
  background: #fff;
  border: 1px solid rgba(21, 35, 45, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 12px 36px rgba(1, 22, 39, 0.06);
}

.content-stack {
  display: grid;
  gap: 1.25rem;
  max-width: 920px;
}

.content-block h2 {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  color: var(--ink);
}

.content-block p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  line-height: 1.75;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* About page */
.about-hero .about-hero-eyebrow {
  margin: 0 0 0.55rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-page {
  background: linear-gradient(180deg, #f3f7f8 0%, #eef4f6 38%, #ffffff 100%);
}

.about-layout {
  width: min(100% - 2rem, 1120px);
  display: grid;
  gap: 1.25rem;
}

.about-facts,
.about-sections {
  display: grid;
  align-items: stretch;
  gap: 1.25rem;
}

.about-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-fact,
.about-section-card {
  height: 100%;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(16, 36, 48, 0.08);
  box-shadow:
    0 1px 2px rgba(1, 22, 39, 0.04),
    0 10px 28px rgba(1, 22, 39, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.about-fact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 7.5rem;
  padding: 1.35rem 1.4rem;
}

.about-fact:hover,
.about-section-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 166, 81, 0.22);
  box-shadow:
    0 1px 2px rgba(1, 22, 39, 0.04),
    0 16px 36px rgba(1, 22, 39, 0.1);
}

.about-fact span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-fact strong {
  display: block;
  color: #102430;
  font-size: 1.04rem;
  font-weight: 750;
  line-height: 1.4;
}

.about-sections {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-section-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.5rem 1.55rem 1.6rem;
  scroll-margin-top: calc(var(--header) + 1rem);
}

.about-section-card.is-wide {
  grid-column: 1 / -1;
  background:
    linear-gradient(135deg, rgba(0, 166, 81, 0.07), transparent 42%),
    #fff;
}

.about-section-card.is-goals {
  grid-column: 1 / -1;
}

.about-section-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.about-section-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: rgba(0, 166, 81, 0.1);
  border: 1px solid rgba(0, 166, 81, 0.18);
  flex-shrink: 0;
}

.about-section-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.about-section-titles {
  min-width: 0;
  flex: 1;
}

.about-section-head h2 {
  margin: 0 0 0.7rem;
  font-size: 1.28rem;
  color: #102430;
  line-height: 1.25;
  position: relative;
  display: block;
  padding-bottom: 0.55rem;
}

.about-section-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.5rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00a651 0%, #2ec4a2 100%);
}

.about-section-lead {
  margin: 0;
  color: #3d5360;
  font-size: 0.98rem;
  line-height: 1.65;
}

.about-section-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.about-highlights {
  list-style: none;
  margin: 0;
  padding: 0.15rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.about-highlights li {
  position: relative;
  padding-left: 1.3rem;
  color: #2a3d48;
  font-size: 0.97rem;
  line-height: 1.6;
  font-weight: 550;
}

.about-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(18, 196, 99, 0.14);
}

.about-section-copy {
  margin: 0;
  padding-top: 0.15rem;
  color: #3d5360;
  line-height: 1.7;
  font-size: 0.98rem;
}

.about-actions {
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .about-facts,
  .about-sections {
    grid-template-columns: 1fr;
  }

  .about-section-card.is-wide,
  .about-section-card.is-goals {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .about-actions {
    flex-direction: column;
  }

  .about-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.partner-logos-only {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.75rem 3.5rem;
  padding: 0.5rem 0 1rem;
}

.partner-logo-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 190px;
  height: 72px;
  padding: 0.35rem;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.partner-logo-only:hover {
  opacity: 0.82;
  transform: translateY(-2px);
}

.partner-logo-only img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.consortium-section {
  background: #f3f5f7;
  padding: calc(var(--header) + 2.8rem) 0 4.5rem;
  min-height: 70vh;
}

.consortium-head {
  text-align: center;
  margin-bottom: 2.8rem;
}

.consortium-eyebrow {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a969f;
}

.consortium-title {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0b1f2d;
  line-height: 1.15;
}

.consortium-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.consortium-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 220px;
  padding: 1.6rem 1.4rem 1.35rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(11, 31, 45, 0.07);
  border: 1px solid rgba(11, 31, 45, 0.045);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.consortium-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(11, 31, 45, 0.11);
}

.consortium-card:hover .consortium-card-link {
  color: var(--green-3);
}

.consortium-card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 96px;
  flex: 1;
}

.consortium-card-logo img {
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: 92px;
  object-fit: contain;
  display: block;
}

.consortium-card--large .consortium-card-logo {
  min-height: 118px;
}

.consortium-card--large .consortium-card-logo img {
  max-width: 94%;
  max-height: 118px;
}

.consortium-card-meta {
  display: grid;
  gap: 0.22rem;
  text-align: center;
  width: 100%;
}

.consortium-card-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0b1f2d;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.consortium-card-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: #4f6b78;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-outline-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1.5px solid rgba(21, 35, 45, 0.2);
  color: var(--ink);
  background: transparent;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-outline-dark:hover {
  background: rgba(1, 22, 39, 0.04);
  border-color: rgba(21, 35, 45, 0.35);
}

.btn-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  background: linear-gradient(180deg, #ef5350 0%, #c62828 100%);
  color: #fff !important;
  font-weight: 750;
  font-size: 0.88rem;
  text-decoration: none;
  border: 1px solid rgba(183, 28, 28, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 6px 14px rgba(198, 40, 40, 0.28);
  white-space: nowrap;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.btn-logout svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-logout:hover {
  background: linear-gradient(180deg, #f44336 0%, #b71c1c 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 8px 18px rgba(183, 28, 28, 0.34);
  transform: translateY(-1px);
  color: #fff !important;
}

.btn-admin-login.btn-logout {
  background: #b42318;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(180, 35, 24, 0.22);
}

.btn-admin-login.btn-logout:hover {
  background: #9b1c14;
  filter: none;
}

.contact-grid,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 1.25rem;
  align-items: stretch;
}

.contact-page {
  background: linear-gradient(180deg, #f3f7f8 0%, #eef4f6 38%, #ffffff 100%);
}

.contact-layout {
  width: min(100% - 2rem, 1120px);
}

.contact-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  padding: 1.55rem 1.6rem 1.7rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(16, 36, 48, 0.08);
  box-shadow:
    0 1px 2px rgba(1, 22, 39, 0.04),
    0 10px 28px rgba(1, 22, 39, 0.06);
}

.contact-aside {
  background:
    linear-gradient(165deg, rgba(0, 166, 81, 0.06), transparent 42%),
    #fff;
}

.contact-aside .about-section-head,
.contact-form-card .about-section-head {
  margin-bottom: 1.05rem;
}

.contact-topics {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.contact-topics li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #f7fbf9;
  border: 1px solid rgba(16, 36, 48, 0.06);
  color: #2a3d48;
  font-size: 0.97rem;
  font-weight: 550;
  line-height: 1.5;
}

.contact-topic-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--green);
  background: rgba(0, 166, 81, 0.1);
  border: 1px solid rgba(0, 166, 81, 0.16);
}

.contact-topic-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.contact-note {
  margin: auto 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(16, 36, 48, 0.08);
  color: #3d5360;
  font-size: 0.9rem;
  line-height: 1.55;
}

.contact-form-title {
  margin: 0 0 1rem;
  font-size: 1.28rem;
  color: #102430;
}

.contact-form {
  display: grid;
  gap: 0.95rem;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem;
}

.contact-field {
  display: grid;
  gap: 0.38rem;
  font-weight: 650;
  font-size: 0.88rem;
  color: #102430;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid rgba(21, 35, 45, 0.14);
  border-radius: 12px;
  padding: 0.82rem 0.95rem;
  background: #f8fafb;
  color: #102430;
  font: inherit;
  font-weight: 500;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.contact-field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #7b8d97;
}

.contact-field input:hover,
.contact-field textarea:hover {
  border-color: rgba(29, 78, 216, 0.28);
  background: #fff;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.16);
}

.contact-form .btn-blue {
  width: 100%;
  margin-top: 0.15rem;
  min-height: 48px;
}

.contact-privacy {
  margin: 0.15rem 0 0;
  text-align: center;
  color: #6b7d87;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.45;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.form-grid label {
  display: grid;
  gap: 0.35rem;
  font-weight: 650;
  font-size: 0.9rem;
}

.form-grid input,
.form-grid textarea {
  border: 1px solid rgba(21, 35, 45, 0.15);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  background: #f7fafb;
}

.form-grid input:focus,
.form-grid textarea:focus {
  outline: 2px solid rgba(0, 166, 81, 0.2);
  border-color: var(--green);
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(0, 166, 81, 0.1);
  color: #0a6b3a;
  border: 1px solid rgba(0, 166, 81, 0.2);
  margin-bottom: 0.9rem;
}

/* Home page compact map */
.section-home-map {
  position: relative;
  padding: 0.5rem 0 3rem;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(245, 249, 250, 0.78) 55%, rgba(255, 255, 255, 0.9) 100%),
    url("../img/bg-soft-corridor.svg") center bottom / cover no-repeat;
}

.section-home-map::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(0, 166, 81, 0.04), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(1, 22, 39, 0.03), transparent 60%);
  pointer-events: none;
}

.home-map-wrap {
  width: min(100% - 2rem, 1240px);
  display: grid;
  gap: 1.1rem;
}

.home-map-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  flex-wrap: wrap;
}

.home-map-head .section-title {
  margin-bottom: 0.45rem;
}

.home-map-head .section-intro {
  margin: 0;
  max-width: 40rem;
}

.home-map-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(21, 35, 45, 0.1);
  background: #fff;
  box-shadow: 0 16px 40px rgba(1, 22, 39, 0.08);
}

.home-tabpanel--map .home-map-wrap {
  display: grid;
  gap: 1rem;
}

.home-tabpanel--map .home-map-head {
  margin-bottom: 0;
}

.home-tabpanel--map .home-map {
  height: 340px;
  min-height: 280px;
}

.home-map {
  width: 100%;
  height: 300px;
  min-height: 260px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(182, 255, 203, 0.16), transparent 42%),
    linear-gradient(160deg, #dce8ec 0%, #c5d5db 100%);
}

.home-map-caption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  padding: 0.85rem 1.15rem;
  border-top: 1px solid rgba(21, 35, 45, 0.08);
  background: #fbfdfc;
}

.home-map-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #153040;
  font-size: 0.88rem;
  font-weight: 650;
}

.home-map-chip-line,
.home-map-chip-dot {
  display: inline-block;
  flex-shrink: 0;
}

.home-map-chip-line {
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: #00a651;
}

.home-map-chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f0a202;
  border: 2px solid #7a3e00;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.map-side {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.map-kicker {
  margin: 0 0 0.35rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.map-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0.35rem 0 1.1rem;
}

.map-stat {
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  background: #f4faf6;
  border: 1px solid rgba(0, 166, 81, 0.14);
}

.map-stat strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
  color: #0e2a33;
}

.map-stat span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.map-legend {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.7rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(21, 35, 45, 0.08);
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.map-legend-line {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #063d28, #00a651);
  flex-shrink: 0;
}

.map-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f0a202;
  border: 2px solid #7a3e00;
  flex-shrink: 0;
}

.map-legend-cluster {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #00a651;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 750;
  box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.18);
  flex-shrink: 0;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.btn-sm {
  padding: 0.62rem 0.95rem;
  font-size: 0.88rem;
}

.btn.is-muted {
  opacity: 0.55;
}

.map-frame {
  min-height: 520px;
  height: min(68vh, 680px);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(21, 35, 45, 0.1);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(182, 255, 203, 0.18), transparent 42%),
    radial-gradient(ellipse at 80% 80%, rgba(14, 63, 74, 0.12), transparent 46%),
    linear-gradient(160deg, #dce8ec 0%, #c5d5db 48%, #b7c9d0 100%);
  box-shadow:
    0 14px 40px rgba(1, 22, 39, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  position: relative;
}

.map-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  z-index: 400;
}

.nrpces-map {
  width: 100%;
  height: 100%;
  min-height: 520px;
  z-index: 1;
}

.map-error {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 2rem;
  text-align: center;
  color: #5b6b76;
  font-weight: 600;
}

.leaflet-container {
  font-family: var(--font);
  background:
    linear-gradient(160deg, #d7e5ea 0%, #c2d4db 100%);
}

/* Soften tile contrast so corridor layers stand out */
.map-tiles-soft {
  filter: saturate(0.92) contrast(0.96) brightness(1.03);
}

.map-tiles-terrain {
  filter: saturate(0.88) contrast(1.02) brightness(1.02);
}

.map-tiles-light {
  filter: saturate(0.85) contrast(0.98) brightness(1.04);
}

.map-tiles-dark {
  filter: saturate(0.9) contrast(1.05) brightness(0.98);
}

.map-tiles-satellite {
  filter: saturate(1.05) contrast(1.04) brightness(0.98);
}

.leaflet-control-layers,
.leaflet-bar {
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 24px rgba(1, 22, 39, 0.16) !important;
  overflow: hidden;
}

.leaflet-control-layers-toggle {
  width: 38px !important;
  height: 38px !important;
}

.leaflet-bar a {
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
  color: #153040 !important;
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(1, 22, 39, 0.18);
}

.leaflet-popup-content {
  margin: 0.85rem 0.95rem;
  line-height: 1.45;
  color: #153040;
  min-width: 180px;
}

.map-popup-kicker {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-popup strong {
  display: block;
  color: #0e2a33;
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

.map-popup p {
  margin: 0.15rem 0 0;
  color: #5b6b76;
  font-size: 0.88rem;
}

.nrpces-cluster {
  display: grid !important;
  place-items: center;
  border-radius: 50%;
  background: #00a651;
  color: #fff;
  font-weight: 780;
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(0, 166, 81, 0.35);
}

.nrpces-cluster span {
  display: block;
  line-height: 1;
}

.nrpces-cluster-sm {
  font-size: 0.78rem;
}

.nrpces-cluster-md {
  font-size: 0.86rem;
  background: #019161;
}

.nrpces-cluster-lg {
  font-size: 0.95rem;
  background: #0a6b3a;
}

@media (max-width: 1100px) and (min-width: 981px) {
  .uc-secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
  }

  .uc-secondary .uc-body {
    padding: 1.15rem 1.1rem 1.25rem;
  }

  .uc-secondary .uc-body h3 {
    font-size: 0.98rem;
  }
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .brand-logo {
    height: 62px;
    max-width: 190px;
  }

  .nav,
  .header-cta {
    display: none;
  }

  .lang-code {
    display: inline;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header.is-open {
    position: fixed;
    background: rgba(1, 22, 39, 0.97);
  }

  .site-header.is-open::before {
    opacity: 0;
  }

  .site-header.is-open .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(1, 22, 39, 0.98);
    padding: 0.75rem 1.25rem 1.35rem;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    max-height: calc(100dvh - var(--header));
    overflow-y: auto;
  }

  .site-header.is-open .nav a {
    width: 100%;
    padding: 1rem 0.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-shadow: none;
    font-size: 1.1rem;
    font-weight: 700;
    justify-items: start;
  }

  .site-header.is-open .nav a.is-active {
    color: #ffd400;
  }

  .site-header.is-open .nav a::after {
    width: 3.2rem;
    justify-self: start;
  }

  .site-header.is-open .nav a.is-active::after {
    transform: scaleX(1);
  }

  .site-header.is-open .header-cta {
    display: none;
  }

  .uc-featured,
  .uc-secondary,
  .geo-grid,
  .about-grid,
  .home-split,
  .footer-main,
  .contact-grid,
  .contact-layout,
  .map-layout,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .partner-logos-only {
    gap: 1.75rem 1.5rem;
  }

  .partner-logo-only {
    width: 150px;
    height: 58px;
  }

  .consortium-section {
    padding: calc(var(--header) + 2.2rem) 0 3.4rem;
  }

  .consortium-head {
    margin-bottom: 2rem;
  }

  .consortium-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }

  .consortium-card {
    min-height: 200px;
    padding: 1.35rem 1.1rem 1.15rem;
  }

  .consortium-card-logo {
    min-height: 84px;
  }

  .consortium-card-logo img {
    max-height: 80px;
  }

  .consortium-card--large .consortium-card-logo {
    min-height: 100px;
  }

  .consortium-card--large .consortium-card-logo img {
    max-height: 100px;
  }

  .map-frame,
  .nrpces-map {
    min-height: 420px;
    height: 55vh;
  }

  .home-map {
    height: 260px;
  }

  .about-facts,
  .about-sections {
    grid-template-columns: 1fr;
  }

  .about-section-card.is-wide,
  .about-section-card.is-goals {
    grid-column: auto;
  }

  .feature-row-2 {
    grid-template-columns: 1fr;
  }

  .about-copy {
    padding: 1.8rem 1.35rem 2rem;
  }

  .home-col-dash .dash-explorer {
    min-height: 0;
  }

  .footer-nav {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }

  .footer-connect {
    grid-column: 1 / -1;
  }

  .uc-featured .uc-media,
  .uc-secondary .uc-media {
    aspect-ratio: 16 / 9;
  }

  .section-head {
    margin-bottom: 1.8rem;
  }

  .hero-main {
    align-items: center;
    min-height: 500px;
    padding: calc(var(--header) + 1.6rem) 0 2.1rem;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  .hero h1 {
    max-width: 16ch;
    font-size: clamp(2.3rem, 8.5vw, 3rem);
  }

  .hero-lead {
    font-size: 1.18rem;
    margin-bottom: 1.1rem;
  }

  .hero-photo {
    object-position: 68% 40%;
  }

  .hero-media::after {
    background:
      linear-gradient(100deg, rgba(1, 16, 25, 0.92) 0%, rgba(1, 16, 25, 0.7) 58%, rgba(1, 16, 25, 0.3) 100%),
      linear-gradient(180deg, rgba(1, 16, 25, 0.35) 0%, transparent 35%, rgba(1, 16, 25, 0.55) 100%);
  }

  .trust-inner {
    grid-template-columns: 1fr;
  }

  .trust-item {
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.2rem 0.25rem;
    font-size: 1.02rem;
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .trust-inner {
    min-height: 0;
    gap: 0;
  }

  .about-photo {
    min-height: 240px;
  }

  .section {
    padding: 3.4rem 0;
  }

  .page-hero {
    padding: calc(var(--header) + 2.4rem) 0 2.2rem;
  }

  .page-section {
    padding: 2.6rem 0 3.2rem;
  }

  .contact-grid,
  .contact-layout {
    gap: 1rem;
  }
}

/* Professional polish + accessibility */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: #fff;
  color: var(--navy);
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.skip-link:focus {
  top: 1rem;
}

[x-cloak] {
  display: none !important;
}

img {
  image-rendering: auto;
}

.panel-title {
  font-family: var(--display);
  margin: 0 0 0.7rem;
  font-size: 1.35rem;
  color: #102430;
}

.panel-text {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.panel-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.9;
}

.uc-dashboard-section {
  padding-top: 0.5rem;
}

.uc-dashboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.uc-dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-hero-compact {
  padding-bottom: 1.2rem;
}

.portal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.portal-sidebar {
  background: #fff;
  border: 1px solid rgba(1, 22, 39, 0.1);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 10px 28px rgba(1, 22, 39, 0.06);
  position: sticky;
  top: calc(var(--header) + 0.75rem);
}

.portal-sidebar-title {
  margin: 0;
  font-size: 1rem;
}

.portal-sidebar-lead {
  margin: 0.35rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.portal-nav {
  display: grid;
  gap: 0.4rem;
}

.portal-nav-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  text-decoration: none;
  color: #0b1f2d;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 0.88rem;
}

.portal-nav-item:hover {
  background: rgba(1, 22, 39, 0.04);
}

.portal-nav-item.is-active {
  background: rgba(0, 166, 81, 0.1);
  border-color: rgba(0, 166, 81, 0.28);
  color: #0b5c34;
}

.portal-nav-kind {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18rem 0.4rem;
  border-radius: 999px;
  background: rgba(1, 22, 39, 0.08);
  color: rgba(11, 31, 45, 0.7);
}

.portal-nav-item.is-active .portal-nav-kind {
  background: rgba(0, 166, 81, 0.18);
  color: #0b5c34;
}

.portal-sidebar-actions {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.portal-fullscreen-body {
  margin: 0;
  min-height: 100vh;
  background: #011627;
  overflow: hidden;
}

.portal-fullscreen-body:has(.xp-builder) {
  overflow-x: hidden;
  overflow-y: auto;
  background: #eef3f7;
}

.portal-fs-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  min-height: 64px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.75rem 1.1rem;
  background: rgba(1, 22, 39, 0.96);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.portal-fullscreen-body:has(.xp-builder) .portal-fs-bar {
  position: sticky;
  height: auto;
  min-height: 64px;
  flex-wrap: wrap;
  row-gap: 0.5rem;
  padding: 0.8rem 1.1rem;
}

.portal-fs-bar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  font-size: 0.92rem;
}

.portal-fs-bar-left strong {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.portal-fs-bar-left span {
  opacity: 0.82;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.9rem;
}

.portal-fs-bar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.portal-fs-frame {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: calc(100vh - 64px);
  border: 0;
  background: #fff;
}

.portal-fs-bar .btn-outline-dark {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}

.portal-fs-bar .btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.portal-lang-dropdown {
  position: relative;
  z-index: 40;
}

.portal-lang-dropdown .lang-dropdown-toggle {
  min-height: 34px;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.portal-lang-dropdown .lang-dropdown-toggle:hover,
.portal-lang-dropdown.is-open .lang-dropdown-toggle {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.portal-lang-dropdown .lang-dropdown-menu {
  right: 0;
  left: auto;
  min-width: 190px;
  z-index: 50;
}

.btn-logout-portal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 120, 120, 0.65);
  background: #c62828;
  color: #fff !important;
  font-weight: 800;
  font-size: 0.82rem;
  text-decoration: none;
}

.btn-logout-portal:hover {
  background: #b71c1c;
  border-color: #ffcdd2;
  color: #fff !important;
}

/* Keep header logout readable on dark nav */
.site-header .btn-admin-login.is-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.site-header .btn-admin-login.is-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.site-header.is-solid .btn-admin-login.is-outline {
  border-color: rgba(1, 22, 39, 0.25);
  color: #0b1f2d;
  background: #fff;
}

/* UC2 Experience Builder hub (Flask-controlled) */
.xp-builder {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  overflow: visible;
  min-height: calc(100vh - 64px);
  background:
    radial-gradient(1200px 420px at 50% -10%, rgba(30, 136, 229, 0.08), transparent 60%),
    linear-gradient(180deg, #f5f8fb 0%, #eef3f7 100%);
  color: #1a2b36;
}

.xp-hero {
  position: relative;
  width: min(1180px, calc(100% - 3.2rem));
  margin: 1.15rem auto 0;
  min-height: clamp(300px, 46vh, 460px);
  overflow: hidden;
  border-radius: 18px;
  background: #0b1f2d;
  border: 1px solid rgba(21, 35, 45, 0.12);
  box-shadow:
    0 14px 36px rgba(1, 22, 39, 0.14),
    0 2px 0 rgba(255, 255, 255, 0.35) inset;
}

.xp-hero-photo {
  display: block;
  width: 100%;
  height: clamp(300px, 46vh, 460px);
  object-fit: cover;
  object-position: center 42%;
}

.xp-body {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.55fr);
  gap: 1.35rem;
  align-items: stretch;
  width: min(1180px, calc(100% - 3.2rem));
  margin: 0 auto;
  padding: 1.35rem 0 2rem;
}

.xp-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
  min-height: 100%;
  height: 100%;
}

.xp-intro {
  max-width: none;
  margin: 0;
  text-align: left;
  min-height: 280px;
  padding: 1.75rem 1.5rem 1.85rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(21, 35, 45, 0.08);
  box-shadow: 0 14px 34px rgba(1, 22, 39, 0.06);
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}

.xp-featured-kpis {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0.85rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(30, 136, 229, 0.16);
  box-shadow: 0 12px 28px rgba(1, 22, 39, 0.06);
  min-height: 0;
}

.xp-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
  flex: 0 0 auto;
  min-height: 0;
}

.xp-featured-grid .xp-kpi-card {
  min-height: 188px;
  height: auto;
  padding: 0.9rem 0.85rem 0.85rem;
  gap: 0.35rem;
}

.xp-featured-head {
  margin: 0 0 0.85rem;
  padding: 0 0.15rem 0.75rem;
  border-bottom: 1px solid rgba(21, 35, 45, 0.08);
}

.xp-featured-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0d47a1;
  letter-spacing: -0.01em;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  padding-bottom: 0.55rem;
}

.xp-featured-head h3::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00a651 0%, #2ec4a2 100%);
  transform: translateX(-50%);
}

.xp-eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1e88e5;
}

.xp-intro h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 800;
  color: #0b1f2d;
  letter-spacing: -0.02em;
}

.xp-intro-rule {
  width: 56px;
  height: 3px;
  margin: 0.75rem 0 0.9rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #1e88e5, #42a5f5);
}

.xp-intro p:not(.xp-eyebrow) {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 700;
  color: #314854;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  flex: 1;
}

.xp-kpi-wrap {
  min-width: 0;
  height: 100%;
  padding: 1.15rem 1.15rem 1.25rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(30, 136, 229, 0.14);
  box-shadow: 0 16px 40px rgba(1, 22, 39, 0.07);
}

.xp-kpi-banner {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.05rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(21, 35, 45, 0.08);
}

.xp-kpi-banner-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #1565c0;
  background: linear-gradient(160deg, #e3f2fd 0%, #bbdefb 100%);
  border: 1px solid rgba(30, 136, 229, 0.2);
  flex-shrink: 0;
}

.xp-kpi-banner-icon svg {
  width: 28px;
  height: 28px;
}

.xp-kpi-banner-copy h2 {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: #0d47a1;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.xp-kpi-banner-copy h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00a651 0%, #2ec4a2 100%);
}

.xp-kpi-banner-copy p {
  margin: 0.25rem 0 0;
  font-size: 0.84rem;
  color: #5b6f7c;
}

.xp-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.xp-kpi-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 0.35rem;
  min-height: 168px;
  height: 100%;
  padding: 0.85rem 0.85rem 0.8rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(21, 35, 45, 0.09);
  box-shadow: 0 8px 18px rgba(1, 22, 39, 0.035);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.xp-kpi-card:hover {
  transform: translateY(-3px);
  border-color: rgba(30, 136, 229, 0.35);
  box-shadow: 0 16px 30px rgba(1, 22, 39, 0.1);
}

.xp-kpi-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #1565c0;
  background: #eef6ff;
  border: 1px solid rgba(30, 136, 229, 0.16);
  margin: 0 auto;
  flex-shrink: 0;
}

.xp-kpi-icon svg {
  width: 22px;
  height: 22px;
}

.xp-kpi-card h3 {
  margin: 0.1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.25;
  color: #0b1f2d;
  letter-spacing: -0.01em;
  text-align: center;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  padding-bottom: 0.55rem;
}

.xp-kpi-card h3::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 42px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00a651 0%, #2ec4a2 100%);
  transform: translateX(-50%);
}

.xp-kpi-card p {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #5b6f7c;
  text-align: center;
  min-height: 2.6em;
  width: 100%;
}

.xp-kpi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  align-self: center;
  min-height: 34px;
  margin-top: auto;
  padding: 0.35rem 0.85rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #2196f3 0%, #1e88e5 100%);
  color: #fff !important;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(30, 136, 229, 0.28);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.xp-kpi-btn svg {
  width: 14px;
  height: 14px;
}

.xp-kpi-btn:hover {
  background: linear-gradient(180deg, #1e88e5 0%, #1565c0 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(21, 101, 192, 0.32);
}

.xp-kpi-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 168px;
  height: 100%;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(21, 35, 45, 0.09);
  box-shadow: 0 8px 18px rgba(1, 22, 39, 0.035);
}

.xp-kpi-logo-card img {
  display: block;
  width: min(100%, 240px);
  height: auto;
  max-height: 110px;
  object-fit: contain;
  background: transparent;
}

.xp-kpi-plus-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  min-height: 168px;
  height: 100%;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: #fff;
  border: 1.5px dashed rgba(30, 136, 229, 0.45);
  box-shadow: 0 8px 18px rgba(1, 22, 39, 0.035);
  color: #1565c0;
}

.xp-kpi-plus-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #eef6ff;
  border: 1px solid rgba(30, 136, 229, 0.22);
  color: #1565c0;
}

.xp-kpi-plus-icon svg {
  width: 28px;
  height: 28px;
}

.xp-kpi-plus-card strong {
  font-size: 0.95rem;
  color: #0b1f2d;
}

.xp-kpi-plus-card span {
  font-size: 0.8rem;
  color: #5b6f7c;
}

.xp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 50px;
  padding: 0.8rem 1.6rem;
  background: linear-gradient(90deg, #011627 0%, #0b2538 100%);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.xp-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #90caf9;
  text-decoration: none;
}

.xp-footer a svg {
  width: 14px;
  height: 14px;
}

.xp-footer a:hover {
  color: #fff;
}

@media (max-width: 1200px) {
  .xp-hero,
  .xp-body {
    width: min(1180px, calc(100% - 2.4rem));
  }
}

@media (max-width: 1100px) {
  .xp-body {
    grid-template-columns: 1fr;
  }

  .xp-left {
    position: static;
    height: auto;
  }

  .xp-intro {
    position: static;
  }

  .xp-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xp-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xp-hero,
  .xp-hero-photo {
    min-height: 280px;
    height: clamp(280px, 40vh, 400px);
  }
}

@media (max-width: 900px) {
  .portal-fs-bar-left span {
    max-width: 42vw;
  }

  .xp-hero,
  .xp-body {
    width: calc(100% - 1.6rem);
  }

  .xp-kpi-banner {
    align-items: flex-start;
  }

  .xp-kpi-banner-copy p {
    max-width: 46ch;
  }
}

@media (max-width: 700px) {
  .portal-fs-bar {
    align-items: flex-start;
  }

  .portal-fs-bar-left {
    width: 100%;
  }

  .portal-fs-bar-left span {
    max-width: none;
    white-space: normal;
  }

  .portal-fs-bar-actions {
    width: 100%;
  }

  .portal-fs-bar-actions .btn,
  .portal-fs-bar-actions .btn-logout-portal {
    flex: 1 1 auto;
    min-height: 40px;
    justify-content: center;
  }

  .xp-hero,
  .xp-body {
    width: calc(100% - 1.1rem);
  }

  .xp-hero {
    margin-top: 0.75rem;
    border-radius: 14px;
  }

  .xp-hero,
  .xp-hero-photo {
    min-height: 200px;
    height: 220px;
  }

  .xp-body {
    gap: 1rem;
    padding: 0.95rem 0 1.25rem;
  }

  .xp-intro {
    padding: 1.1rem 1rem 1.15rem;
    border-radius: 14px;
  }

  .xp-intro h2 {
    font-size: 1.2rem;
  }

  .xp-intro p:not(.xp-eyebrow) {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .xp-kpi-wrap {
    padding: 0.9rem;
    border-radius: 16px;
  }

  .xp-kpi-banner {
    gap: 0.7rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.8rem;
  }

  .xp-kpi-banner-icon {
    width: 44px;
    height: 44px;
  }

  .xp-kpi-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .xp-featured-grid {
    grid-template-columns: 1fr;
  }

  .xp-kpi-card {
    min-height: 0;
    padding: 0.95rem;
  }

  .xp-kpi-btn {
    width: 100%;
  }

  .xp-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.9rem 1rem;
  }

  .xp-footer a {
    word-break: break-all;
  }
}

@media (max-width: 420px) {
  .portal-fs-bar-actions .btn-with-icon svg {
    display: none;
  }

  .xp-hero,
  .xp-hero-photo {
    height: 180px;
    min-height: 180px;
  }

  .xp-kpi-banner-copy p {
    display: none;
  }
}

@media (hover: none) {
  .xp-kpi-card:hover {
    transform: none;
    box-shadow: 0 8px 18px rgba(1, 22, 39, 0.035);
  }
}

@media (max-width: 980px) {
  .portal-layout {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    position: static;
  }
}

.uc-dashboard-frame-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(1, 22, 39, 0.1);
  background: #0b1f2d;
  box-shadow: 0 16px 40px rgba(1, 22, 39, 0.12);
  min-height: 72vh;
}

.uc-dashboard-frame {
  display: block;
  width: 100%;
  height: min(78vh, 900px);
  min-height: 560px;
  border: 0;
  background: #fff;
}

@media (max-width: 700px) {
  .uc-dashboard-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .uc-dashboard-frame {
    min-height: 420px;
    height: 65vh;
  }
}

.uc-card-grid {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
}

.uc-card-grid .uc-media {
  position: relative;
}

.uc-code-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(1, 22, 39, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.uc-card-grid .uc-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.uc-card-grid .uc-body p {
  flex: 1;
}

.uc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}

.uc-meta span {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(1, 22, 39, 0.06);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
}

.uc-card-grid .uc-body .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Dashboards page — partners-style UC cards */
.dashboards-page {
  background: linear-gradient(180deg, #f3f6f8 0%, #eef3f6 45%, #fff 100%);
}

.dashboards-page .container {
  max-width: 1280px;
}

.dash-uc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.dash-uc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  min-height: 380px;
  padding: 1.45rem 1.35rem 1.5rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(21, 35, 45, 0.08);
  box-shadow: 0 12px 30px rgba(1, 22, 39, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  scroll-margin-top: 6.5rem;
}

.dash-uc-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 166, 81, 0.28);
  box-shadow: 0 18px 36px rgba(1, 22, 39, 0.1);
}
.dash-uc-card.is-focus {
  border-color: rgba(0, 166, 81, 0.55);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.18), 0 18px 36px rgba(1, 22, 39, 0.12);
  scroll-margin-top: 6.5rem;
}

.dash-uc-logo {
  position: relative;
  width: 100%;
  height: 200px;
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
  border-radius: 16px;
  overflow: hidden;
  background: #f4f7f9;
  border: 1px solid rgba(21, 35, 45, 0.06);
}

.dash-uc-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dash-uc-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(1, 22, 39, 0.84);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.dash-uc-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  margin-top: auto;
}

.dash-uc-name {
  color: #102430;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.3;
}

.dash-uc-sub {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.dash-uc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.7rem;
  color: #1e88e5;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dash-uc-card:hover .dash-uc-link {
  color: var(--green);
}

.dash-uc-link svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 1100px) {
  .uc-grid-all,
  .dash-uc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .uc-grid-all,
  .dash-uc-grid {
    grid-template-columns: 1fr;
  }
}

body.nav-open {
  overflow: hidden;
}

.btn:focus-visible,
.dash-nav-item:focus-visible,
.nav a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(0, 166, 81, 0.55);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .trust-inner {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .footer-connect {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .consortium-grid {
    grid-template-columns: 1fr;
  }

  .consortium-card {
    min-height: 136px;
  }
}

/* Auth + Admin */
.btn-admin-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.5rem 1.1rem 0.5rem 0.95rem;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 8px 20px rgba(29, 78, 216, 0.32);
  white-space: nowrap;
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.btn-admin-login svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-admin-login:hover {
  background: #1e40af;
  box-shadow: 0 10px 22px rgba(30, 64, 175, 0.36);
  transform: translateY(-1px);
  filter: none;
}

.btn-admin-login:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.28);
}

.btn-admin-login:focus-visible {
  outline: 2px solid rgba(147, 197, 253, 0.95);
  outline-offset: 3px;
}

.btn-admin-login.is-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  box-shadow: none;
}

.btn-admin-login.is-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: none;
  filter: none;
}

.site-header.is-solid .btn-admin-login.is-outline {
  border-color: rgba(1, 22, 39, 0.2);
  color: #0b1f2d;
  background: #fff;
  box-shadow: 0 1px 2px rgba(1, 22, 39, 0.06);
}

.site-header.is-solid .btn-admin-login.is-outline:hover {
  background: #f5f8fa;
}

.flash-stack {
  padding-top: calc(var(--header) + 0.75rem);
  display: grid;
  gap: 0.5rem;
}

.flash-item {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92rem;
}

.flash-success { background: rgba(0, 166, 81, 0.12); color: #0b5c34; }
.flash-error { background: rgba(200, 40, 40, 0.1); color: #8a1f1f; }
.flash-warning { background: rgba(214, 158, 46, 0.14); color: #7a5a12; }
.flash-info { background: rgba(1, 22, 39, 0.06); color: #0b1f2d; }

.toast-stack {
  position: fixed;
  top: calc(var(--header) + 0.85rem);
  right: 1rem;
  z-index: 1200;
  display: grid;
  gap: 0.55rem;
  width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}

.toast-stack.is-center {
  top: 50%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 2rem));
  justify-items: center;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1px solid rgba(1, 22, 39, 0.08);
  background: #fff;
  box-shadow: 0 12px 28px rgba(1, 22, 39, 0.14);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: #0b1f2d;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast-item.is-center-toast {
  width: 100%;
  text-align: left;
  transform: translateY(8px) scale(0.98);
  box-shadow: 0 16px 40px rgba(1, 22, 39, 0.18);
}

.toast-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-item.is-center-toast.is-visible {
  transform: translateY(0) scale(1);
}

.toast-item.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
}

.toast-item.is-center-toast.is-leaving {
  transform: translateY(6px) scale(0.98);
}

.toast-text {
  flex: 1;
}

.toast-close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.55;
  padding: 0;
}

.toast-close:hover {
  opacity: 1;
}

.toast-success {
  background: #edf9f1;
  border-color: rgba(0, 140, 70, 0.22);
  color: #0b5c34;
}

.toast-error {
  background: #fdf0f0;
  border-color: rgba(180, 40, 40, 0.2);
  color: #8a1f1f;
}

.toast-warning {
  background: #fff8e8;
  border-color: rgba(180, 130, 20, 0.25);
  color: #7a5a12;
}

.toast-info {
  background: #f3f7fa;
  border-color: rgba(1, 22, 39, 0.12);
  color: #0b1f2d;
}

.auth-section,
.admin-section {
  min-height: calc(100vh - var(--header));
  padding: calc(var(--header) + 2.6rem) 0 3.8rem;
  background:
    linear-gradient(180deg, rgba(247, 250, 251, 0.94), rgba(255, 255, 255, 0.92)),
    url("../img/bg-soft-corridor.svg") center / cover no-repeat;
}

.auth-wrap {
  display: flex;
  justify-content: center;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.05fr);
  width: min(100%, 920px);
  min-height: 520px;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(11, 31, 45, 0.08);
  background: #fff;
  box-shadow: 0 22px 50px rgba(1, 22, 39, 0.1);
}

.auth-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 1.8rem;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(1, 22, 39, 0.72), rgba(1, 22, 39, 0.88)),
    url("../img/hero-rail.jpg?v=hd7") center / cover no-repeat;
}

.auth-visual--uc {
  background:
    linear-gradient(160deg, rgba(1, 22, 39, 0.72), rgba(1, 22, 39, 0.88)),
    var(--auth-uc-image) center / cover no-repeat;
}

.auth-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(0, 166, 81, 0.28), transparent 42%),
    linear-gradient(180deg, transparent 35%, rgba(1, 22, 39, 0.55) 100%);
  pointer-events: none;
}

.auth-visual-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.55rem;
  max-width: 18rem;
}

.auth-visual-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.auth-visual-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.auth-visual-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.55;
}

.auth-card {
  width: 100%;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 2.2rem 2.15rem 1.9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-eyebrow {
  margin: 0 0 0.5rem;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-card h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
  color: #0b1f2d;
}

.auth-lead {
  margin: 0 0 1.4rem;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.auth-form {
  display: grid;
  gap: 1.05rem;
}

.auth-field {
  display: grid;
  gap: 0.4rem;
}

.auth-field-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: #0b1f2d;
}

.auth-form label,
.admin-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #0b1f2d;
}

.auth-form input,
.admin-form input,
.admin-form select {
  width: 100%;
  border: 1.5px solid rgba(21, 35, 45, 0.14);
  border-radius: 12px;
  padding: 0.88rem 0.95rem;
  font: inherit;
  font-size: 0.98rem;
  background: #f8fafb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-form input:hover,
.admin-form input:hover,
.admin-form select:hover {
  border-color: rgba(21, 35, 45, 0.22);
  background: #fff;
}

.auth-form input:focus,
.admin-form input:focus,
.admin-form select:focus {
  outline: none;
  border-color: rgba(0, 166, 81, 0.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.14);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(11, 31, 45, 0.58);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.password-toggle:hover {
  color: #0b1f2d;
  background: rgba(1, 22, 39, 0.06);
}

.password-toggle:focus-visible {
  outline: 2px solid rgba(0, 166, 81, 0.55);
  outline-offset: 2px;
}

.password-toggle svg {
  width: 1.28rem;
  height: 1.28rem;
  display: block;
  overflow: visible;
  pointer-events: none;
}

.password-toggle .icon-eye[hidden],
.password-toggle .icon-eye-off[hidden] {
  display: none !important;
}

.field-error {
  display: block;
  margin-top: 0.28rem;
  color: #8a1f1f;
  font-size: 0.8rem;
  font-weight: 650;
}

.field-error[hidden] {
  display: none !important;
}

input.is-invalid,
textarea.is-invalid,
select.is-invalid,
.admin-access.is-invalid {
  border-color: rgba(180, 40, 40, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(180, 40, 40, 0.12);
}

.admin-access .field-error {
  margin-top: 0.55rem;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.45rem;
  min-height: 3rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 750;
}

.auth-submit.is-disabled,
.auth-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}

.auth-links {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 1.35rem;
  font-size: 0.9rem;
  font-weight: 650;
}

.auth-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #0b5c34;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-links svg {
  width: 14px;
  height: 14px;
}

.auth-alert {
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  word-break: break-word;
}

.auth-alert.is-error { background: rgba(200, 40, 40, 0.1); color: #8a1f1f; }
.auth-alert.is-success { background: rgba(0, 166, 81, 0.12); color: #0b5c34; }
.auth-alert.is-info { background: rgba(1, 22, 39, 0.06); color: #0b1f2d; }

@media (max-width: 820px) {
  .auth-shell {
    grid-template-columns: 1fr;
    min-height: 0;
    width: min(100%, 520px);
  }

  .auth-visual {
    min-height: 180px;
    padding: 1.35rem 1.4rem;
  }

  .auth-visual-content {
    max-width: none;
  }

  .auth-card {
    padding: 1.7rem 1.45rem 1.5rem;
  }
}

.otp-dev-code {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 0.55rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(0, 166, 81, 0.1);
  border: 1px dashed rgba(0, 166, 81, 0.35);
  color: #0b5c34;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.28em;
}

.auth-otp-hint {
  margin: 0 0 1.1rem;
  color: #5b6e7a;
  font-size: 0.82rem;
  line-height: 1.45;
}

.auth-otp-input {
  letter-spacing: 0.28em;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.85rem 1.15rem;
  margin-top: 1.35rem;
  font-size: 0.9rem;
  font-weight: 650;
}

.auth-links form {
  margin: 0;
}

.auth-links button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: none;
  color: #0b5c34;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.auth-links button:hover,
.auth-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-container {
  width: min(100% - 2rem, 1380px);
}

.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-lead {
  margin: 0.55rem 0 0;
  color: var(--muted);
  max-width: 46rem;
}

.admin-panel {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(11, 31, 45, 0.08);
  box-shadow: 0 12px 32px rgba(1, 22, 39, 0.06);
  padding: 1.4rem 1.5rem 1.5rem;
  margin-bottom: 1.25rem;
}

.admin-panel h2 {
  margin: 0;
  font-size: 1.15rem;
}

.admin-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-count {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
}

.admin-form {
  display: grid;
  gap: 1rem;
}

.admin-form-wide {
  margin-top: 1rem;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}

.admin-form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-form-actions {
  display: flex;
  justify-content: flex-end;
}

.admin-access {
  border: 1px solid rgba(21, 35, 45, 0.1);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.55rem;
}

.admin-access-horizontal {
  margin: 0;
}

.admin-access legend {
  padding: 0 0.35rem;
  font-weight: 750;
  font-size: 0.86rem;
}

.admin-hint {
  font-weight: 550;
  color: rgba(11, 31, 45, 0.55);
  font-size: 0.8rem;
}

.admin-check {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
}

.admin-check input {
  width: auto !important;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(21, 35, 45, 0.1);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
}

.admin-table .col-name { width: 14%; }
.admin-table .col-email { width: 22%; }
.admin-table .col-role { width: 9%; }
.admin-table .col-status { width: 10%; }
.admin-table .col-access { width: 28%; }
.admin-table .col-actions { width: 17%; }

.admin-table th,
.admin-table td {
  padding: 1rem 1.1rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(21, 35, 45, 0.08);
  font-size: 0.9rem;
}

.admin-table th {
  background: #f4f7f8;
  color: #0b1f2d;
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table tbody tr:hover {
  background: rgba(0, 166, 81, 0.03);
}

.admin-email {
  word-break: break-word;
  color: #334955;
}

.admin-badge {
  display: inline-flex;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(1, 22, 39, 0.06);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: capitalize;
}

.admin-status {
  display: inline-flex;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
}

.admin-status.is-active {
  background: rgba(0, 166, 81, 0.12);
  color: #0b5c34;
}

.admin-status.is-disabled {
  background: rgba(200, 40, 40, 0.1);
  color: #8a1f1f;
}

.admin-access-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
}

.admin-uc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
}

.admin-check-inline {
  margin: 0 !important;
  font-size: 0.8rem !important;
  white-space: nowrap;
}

.admin-actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.admin-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-empty {
  color: var(--muted);
}

.btn-sm {
  min-height: 36px;
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-weight: 700;
  font-size: 0.82rem;
  border: 1.5px solid transparent;
  background: #c0392b;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}

.btn-danger:hover {
  background: #a93226;
}

@media (max-width: 1100px) {
  .admin-form-grid,
  .admin-form-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-table {
    table-layout: auto;
    min-width: 980px;
  }
}

@media (max-width: 980px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
