*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Surface Colors - Light Theme */
  --navy: #f0f4f8; /* Page background */
  --navy2: #ffffff; /* Section differentiation */
  --navy3: #e8eef5; /* Lighter surface for floating elements */

  /* Brand Accents - Reimagined for Converge PH */
  --accent: #00897b; /* Converge Teal (darkened for light bg contrast) */
  --accent2: #0ea5e9; /* Sky blue highlight */
  --green3: #16a34a; /* Success/Online states */
  --green-glow: rgba(0, 137, 123, 0.12); /* Teal-tinted glow */
  --purple: #7c3aed; /* Technician role accent */
  --amber: #d97706; /* Administrator role accent */

  /* Text - High Readability on Light */
  --text: #1e293b; /* Dark slate for headings */
  --text2: #475569; /* Secondary text / descriptions */
  --text3: #94a3b8; /* Muted / Placeholder / Timestamp */

  /* Utilities */
  --border: rgba(0, 0, 0, 0.05);
  --border2: rgba(0, 137, 123, 0.2); /* Teal-tinted border for cards */
  --card: #ffffff;
  --card2: #f8fafc;
  --radius: 12px;

  /* Nav (dark frosted-glass floating pill) */
  --nav-bg: rgba(15, 17, 21, 0.55);
  --nav-bg2: rgba(20, 23, 28, 0.7);
  --nav-text: #f1f5f9;
  --nav-text-dim: #b7bec9;
  --nav-border: rgba(255, 255, 255, 0.12);

  /* Typography */
  --font-head: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
}
body {
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
body.nav-lock {
  overflow: hidden;
}
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: var(--navy2);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

/* ══ NAV ══ */
nav {
  position: fixed;
  top: 28px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 5%;
  display: flex;
  justify-content: center;
}
.nav-inner {
  width: 100%;
  max-width: 1080px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 60px;
  background: var(--card);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  padding: 6px 8px 6px 8px;
  box-shadow:
    0 18px 40px rgba(10, 12, 16, 0.22),
    0 2px 0 rgba(255, 255, 255, 0.06) inset;
  transition:
    box-shadow 0.25s ease,
    background 0.25s ease;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 16px rgba(0, 137, 123, 0.3);
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.3px;
}
.logo-text span {
  color: var(--accent);
}
/* nav logo text only shows in footer; hidden in the floating pill nav */
nav .logo-text {
  display: none;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  list-style: none;
  flex: 1;
}
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-cta {
  flex-shrink: 0;
}
.btn-nav-login {
  background: var(--text);
  border: 1px solid transparent;
  color: #ffffff;
  padding: 11px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s;
  font-family: var(--font-body);
  white-space: nowrap;
}
.btn-nav-login:hover {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 24px rgba(0, 137, 123, 0.35);
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.2s;
}
.hamburger:hover {
  background: rgba(255, 255, 255, 0.06);
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* mobile dropdown panel */
.nav-mobile-panel {
  position: fixed;
  top: 88px;
  left: 5%;
  right: 5%;
  max-width: 1080px;
  margin: 0 auto;
  background: var(--nav-bg2);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--nav-border);
  border-radius: 22px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 24px 48px rgba(10, 12, 16, 0.3);
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
  z-index: 99;
}
.nav-mobile-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.nav-mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.nav-mobile-links a {
  display: block;
  color: var(--nav-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 14px;
  border-radius: 12px;
  transition: background 0.2s;
}
.nav-mobile-links a:hover {
  background: rgba(255, 255, 255, 0.06);
}
.btn-nav-login-mobile {
  margin: 6px 4px 4px;
  width: calc(100% - 8px);
  padding: 13px;
}
@media (max-width: 768px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}
/* ══ HERO ══ */
.hero {
  padding: 148px 5% 110px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border2) 1px, transparent 1px),
    linear-gradient(90deg, var(--border2) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    black 40%,
    transparent 100%
  );
  pointer-events: none;
}
.hero-orb-c {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 137, 123, 0.08) 0%,
    transparent 65%
  );
  top: -180px;
  right: -180px;
  pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}
.hero-orb-p {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.07) 0%,
    transparent 65%
  );
  bottom: -150px;
  left: -120px;
  pointer-events: none;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-26px);
  }
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 137, 123, 0.07);
  border: 1px solid rgba(0, 137, 123, 0.22);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

h1 {
  font-family: var(--font-head);
  font-size: clamp(34px, 5.2vw, 62px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -2px;
  margin-bottom: 22px;
  color: var(--text);
}
.grad-text {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  color: var(--text2);
  font-size: 17px;
  line-height: 1.78;
  margin-bottom: 38px;
  max-width: 470px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 46px;
}
.btn-primary {
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.22s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 24px rgba(0, 137, 123, 0.22);
  letter-spacing: 0.2px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(0, 137, 123, 0.3);
}
.btn-secondary {
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.22s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text3);
}
.avatars {
  display: flex;
}
.avatars span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  margin-left: -9px;
  background: var(--navy3);
  color: var(--accent);
}
.avatars span:first-child {
  margin-left: 0;
}

/* Hero mockup */
.hero-visual {
  position: relative;
}
.mockup {
  background: var(--card);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 20px;
  padding: 20px;
  box-shadow:
    0 0 0 1px rgba(0, 137, 123, 0.07) inset,
    0 32px 80px rgba(0, 0, 0, 0.1),
    0 0 60px rgba(0, 137, 123, 0.05);
  position: relative;
  overflow: hidden;
}
.mockup::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent),
    var(--accent2),
    transparent
  );
  opacity: 0.55;
}
.mockup-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.mock-dots {
  display: flex;
  gap: 6px;
}
.mock-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.d1 {
  background: #ff5f57;
}
.d2 {
  background: #febc2e;
}
.d3 {
  background: #28c840;
}
.mock-title {
  font-size: 12px;
  color: var(--text2);
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.live-pill {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}
.live-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.4s ease-in-out infinite;
  box-shadow: 0 0 6px var(--accent);
}

.tk {
  background: var(--navy3);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 13px 15px;
  margin-bottom: 10px;
  transition: 0.2s;
}
.tk:hover {
  border-color: rgba(0, 137, 123, 0.25);
}
.tk-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.tk-id {
  font-size: 11px;
  color: var(--text3);
  font-family: var(--font-head);
  font-weight: 600;
}
.chip {
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 100px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.chip-open {
  background: rgba(0, 137, 123, 0.1);
  color: var(--accent);
}
.chip-prog {
  background: rgba(0, 137, 123, 0.1);
  color: var(--accent);
}
.chip-done {
  background: rgba(0, 255, 130, 0.1);
  color: var(--green3);
}
.tk-title {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-head);
  margin-bottom: 5px;
  color: var(--text);
}
.tk-meta {
  font-size: 11px;
  color: var(--text3);
  display: flex;
  gap: 10px;
}
.tk-bar {
  height: 3px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}
.tk-fill {
  height: 100%;
  border-radius: 2px;
}
.fill-c {
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  width: 72%;
}
.fill-p {
  background: var(--accent2);
  width: 42%;
}
.mock-div {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
  margin: 12px 0;
}
.mock-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ms {
  background: var(--navy3);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 10px 12px;
}
.ms-val {
  font-size: 19px;
  font-weight: 800;
  font-family: var(--font-head);
  color: var(--accent);
  letter-spacing: -0.5px;
}
.ms-label {
  font-size: 10px;
  color: var(--text3);
  margin-top: 2px;
}

/* ══ STATS BAND ══ */
.stats-band {
  background: var(--card);
  border-top: 1px solid var(--border2);
  border-bottom: 1px solid var(--border2);
  padding: 48px 5%;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: 0 auto;
  gap: 1px;
  background: var(--border2);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border2);
}
@media (max-width: 768px) {
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}
.s-item {
  background: var(--card);
  padding: 28px;
  text-align: center;
}
.s-num {
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1.5px;
  display: block;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.s-label {
  font-size: 13px;
  color: var(--text2);
}

/* ══ SECTIONS ══ */
section {
  padding: 100px 5%;
}
.max-w {
  max-width: 1200px;
  margin: 0 auto;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-tag::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.12;
  color: var(--text);
}
.section-sub {
  color: var(--text2);
  font-size: 16px;
  max-width: 520px;
  line-height: 1.78;
}
.centered {
  text-align: center;
}
.centered .section-sub {
  margin: 0 auto;
}
.centered .section-tag {
  justify-content: center;
}
.centered .section-tag::before {
  display: none;
}
.centered .section-tag::after {
  content: "";
  width: 18px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 2px;
}

/* ══ FEATURES ══ */
.feat-section {
  background: var(--navy2);
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 54px;
}
@media (max-width: 900px) {
  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .feat-grid {
    grid-template-columns: 1fr;
  }
}
.feat-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.28s;
  position: relative;
  overflow: hidden;
}
.feat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at top left,
    rgba(0, 137, 123, 0.06),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.feat-card:hover {
  border-color: rgba(0, 137, 123, 0.25);
  transform: translateY(-5px);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 137, 123, 0.08);
}
.feat-card:hover::after {
  opacity: 1;
}
.feat-icon {
  width: 46px;
  height: 46px;
  background: rgba(0, 137, 123, 0.07);
  border: 1px solid rgba(0, 137, 123, 0.16);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 21px;
  position: relative;
  z-index: 1;
}
.white-icon {
  display: inline-block;
  font-size: 24px;
  line-height: 1;
}
.feat-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 9px;
  color: var(--text);
  position: relative;
  z-index: 1;
}
.feat-desc {
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.72;
  position: relative;
  z-index: 1;
}

/* ══ HOW IT WORKS ══ */
.how-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 54px;
  position: relative;
  z-index: 1;
}
.steps-grid::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 10%;
  right: 10%;
  height: 1.5px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent),
    var(--accent2),
    transparent
  );
  opacity: 0.28;
}
@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid::before {
    display: none;
  }
}
.step-item {
  text-align: center;
  position: relative;
  z-index: 2;
}
.step-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--navy2);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow:
    0 0 0 6px rgba(0, 137, 123, 0.07),
    0 0 20px rgba(0, 137, 123, 0.12);
}
.step-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.step-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
}

/* ══ DASHBOARD PREVIEW ══ */
.dash-section {
  background: var(--navy2);
}
.dash-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 54px auto 0;
}
@media (max-width: 900px) {
  .dash-wrap {
    grid-template-columns: 1fr;
  }
}
.dash-feat-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dash-feat-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.dash-tick {
  width: 24px;
  height: 24px;
  background: rgba(0, 137, 123, 0.08);
  border: 1px solid rgba(0, 137, 123, 0.18);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.dash-feat-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
  color: var(--text);
  font-family: var(--font-head);
}
.dash-feat-desc {
  font-size: 13px;
  color: var(--text2);
}
.dash-mock {
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.1);
  position: relative;
}
.dash-mock::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent),
    var(--accent2),
    transparent
  );
  opacity: 0.45;
}
.dash-topbar {
  background: var(--navy3);
  border-bottom: 1px solid var(--border2);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-topbar-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}
.conn {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}
.conn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.4s infinite;
  box-shadow: 0 0 6px var(--accent);
}
.dash-body {
  display: grid;
  grid-template-columns: 148px 1fr;
  min-height: 280px;
}
.dash-sb {
  background: var(--navy);
  border-right: 1px solid var(--border2);
  padding: 12px;
}
.sb-item {
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text2);
  cursor: pointer;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: 0.2s;
  font-family: var(--font-head);
  font-weight: 500;
}
.sb-item:hover,
.sb-item.act {
  background: rgba(0, 137, 123, 0.07);
  color: var(--accent);
}
.sb-item.act {
  border-left: 2px solid var(--accent);
  padding-left: 9px;
}
.sb-icon {
  font-size: 13px;
  flex-shrink: 0;
  filter: invert(4%) sepia(73%) saturate(1354%) hue-rotate(136deg)
    brightness(96%) contrast(101%);
}
.dash-main {
  padding: 16px;
}
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.kpi {
  background: var(--navy3);
  border: 1px solid var(--border2);
  border-radius: 9px;
  padding: 12px 14px;
}
.kpi-val {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}
.kpi-val.purple {
  color: var(--accent2);
}
.kpi-val.muted {
  color: var(--accent2);
}
.kpi-label {
  font-size: 10px;
  color: var(--text3);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mini-tbl {
  background: var(--navy3);
  border: 1px solid var(--border2);
  border-radius: 9px;
  overflow: hidden;
}
.mini-th {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  background: rgba(0, 0, 0, 0.04);
  padding: 8px 14px;
  font-size: 10px;
  color: var(--text3);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.mini-tr {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 9px 14px;
  font-size: 11px;
  border-top: 1px solid var(--border2);
  align-items: center;
  transition: 0.15s;
}
.mini-tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

/* ══ ROLES ══ */
.roles-section {
  background: var(--navy);
}
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 54px;
}
@media (max-width: 860px) {
  .roles-grid {
    grid-template-columns: 1fr;
  }
}
.role-card {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 34px;
  position: relative;
  overflow: hidden;
  transition: all 0.28s;
}
.role-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.3s;
}
.role-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}
.role-card:hover::before {
  opacity: 1;
}
.card-user::before {
  background: linear-gradient(90deg, var(--accent), transparent);
}
.card-tech::before {
  background: linear-gradient(90deg, var(--purple), transparent);
}
.card-user:hover {
  border-color: rgba(0, 137, 123, 0.22);
}
.card-tech:hover {
  border-color: rgba(124, 58, 237, 0.28);
}
.role-featured-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}
.role-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--border2);
}
.icon-user {
  background: rgba(0, 137, 123, 0.08);
  border-color: rgba(0, 137, 123, 0.22);
}
.icon-tech {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.22);
}
.role-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text);
}
.role-desc {
  font-size: 13.5px;
  color: var(--text2);
  margin-bottom: 22px;
  line-height: 1.7;
}
.role-perms {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 28px;
}
.role-perms li {
  font-size: 13px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 9px;
}
.role-perms li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.card-user .role-perms li::before {
  background: var(--accent);
}
.card-tech .role-perms li::before {
  background: var(--purple);
}
.role-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s;
  font-family: var(--font-body);
  text-decoration: none;
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border2);
}
.card-user .role-btn:hover {
  background: rgba(0, 137, 123, 0.08);
  color: var(--accent);
  border-color: rgba(0, 137, 123, 0.28);
}
.card-tech .role-btn:hover {
  background: rgba(124, 58, 237, 0.08);
  color: var(--purple);
  border-color: rgba(124, 58, 237, 0.28);
}

/* ══ FOOTER ══ */
footer {
  background: var(--navy);
  border-top: 1px solid var(--border2);
  padding: 64px 5% 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border2);
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  font-size: 13px;
  color: var(--text3);
  margin-top: 12px;
  max-width: 230px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 16px;
  letter-spacing: 0.4px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a {
  color: var(--text3);
  text-decoration: none;
  font-size: 13px;
  transition: 0.2s;
}
.footer-col ul li a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--text3);
}
.converge-tag {
  font-size: 12px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.converge-tag span {
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* ══ ANIMATIONS ══ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-content {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.08s;
}
.hero-visual {
  animation: fadeUp 0.7s ease both;
  animation-delay: 0.22s;
}
/* ══════════════════════════════════
   MODAL
══════════════════════════════════ */
@keyframes overlayIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-7px);
  }
  40%,
  80% {
    transform: translateX(7px);
  }
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
  animation: overlayIn 0.22s ease;
}
.modal-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
}
.modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  background: var(--navy3);
  border: 1px solid var(--border2);
  color: var(--text2);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  z-index: 10;
}
.modal-close:hover {
  background: rgba(0, 137, 123, 0.1);
  color: var(--accent);
  border-color: rgba(0, 137, 123, 0.25);
}
.modal-box {
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 20px;
  width: 100%;
  overflow: hidden;
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 137, 123, 0.05) inset;
  position: relative;
}
.modal-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent),
    var(--accent2),
    transparent
  );
  opacity: 0.55;
  z-index: 1;
}
.modal-box.shake {
  animation: shake 0.35s ease;
}

/* ══ LOGIN — ROLE SELECT (2-button) ══ */
.login-select-wrap {
  max-width: 400px;
  width: 100%;
}
.login-select-box {
  border-radius: 24px;
  width: 100%;
}
.login-select-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 26px 26px 0;
}
.login-select-header h3 {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.4px;
}
.login-select-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: var(--text2);
  font-size: 15px;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.login-select-close:hover {
  background: var(--navy3);
  color: var(--text);
  transform: rotate(90deg);
}
.login-select-body {
  padding: 18px 26px 30px;
}
.login-select-sub {
  font-size: 13.5px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 22px;
}
.role-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s;
  letter-spacing: 0.1px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}
.role-select-btn + .role-select-btn {
  margin-top: 12px;
}
.role-select-icon {
  font-size: 17px;
  line-height: 1;
  display: inline-flex;
}
/* Customer — outlined, neutral */
.role-select-customer {
  background: var(--card2);
  border: 1.5px solid var(--border2);
  color: var(--text);
}
.role-select-customer:hover {
  background: var(--navy3);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ══ LOGIN LOADER ══ */
@keyframes nvLoaderSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes nvLoaderSpinReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}
@keyframes nvLoaderPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}
@keyframes nvLoaderFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes nvCardPop {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes nvOrbFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-22px) scale(1.05);
  }
}

#nvLoginLoader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(15, 23, 42, 0.4);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#nvLoginLoader.open {
  display: flex;
  animation: nvLoaderFadeIn 0.2s ease;
}

/* floating ambient orbs behind the card */
.nv-loader-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}
.nv-orb-1 {
  width: 340px;
  height: 340px;
  background: radial-gradient(
    circle,
    rgba(0, 137, 123, 0.22) 0%,
    transparent 70%
  );
  top: 12%;
  left: 12%;
  animation: nvOrbFloat 7s ease-in-out infinite;
}
.nv-orb-2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(
    circle,
    rgba(14, 165, 233, 0.2) 0%,
    transparent 70%
  );
  bottom: 10%;
  right: 14%;
  animation: nvOrbFloat 9s ease-in-out infinite reverse;
}

.nv-loader-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;

  animation: nvCardPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nv-ring-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nv-ring-arc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--accent);
  border-right-color: var(--accent2);
  animation: nvLoaderSpin 1s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}
.nv-ring-arc-2 {
  inset: 9px;
  border-width: 2px;
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: rgba(14, 165, 233, 0.45);
  opacity: 0.8;
  animation: nvLoaderSpinReverse 1.6s linear infinite;
}
.nv-logo-badge {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
  animation: nvLoaderPulse 1.6s ease-in-out infinite;
}
.nv-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: block;
}

#nvLoaderStatus {
  margin-top: 24px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.1px;
  text-align: center;
  min-height: 18px;
  transition: opacity 0.15s ease;
}
#nvLoaderStatus.fade-out {
  opacity: 0;
}

/* role tabs */
.role-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border2);
}
.role-tab {
  padding: 16px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2.5px solid transparent;
  background: rgba(0, 0, 0, 0.03);
}
.role-tab:hover {
  background: rgba(0, 137, 123, 0.04);
}
.role-tab.active {
  border-bottom-color: var(--accent);
  background: rgba(0, 137, 123, 0.05);
}
.role-tab-icon {
  font-size: 22px;
  margin-bottom: 5px;
  display: block;
  filter: invert(44%) sepia(93%) saturate(1354%) hue-rotate(136deg)
    brightness(96%) contrast(101%);
}
.role-tab-label {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--text3);
  display: block;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.role-tab.active .role-tab-label {
  color: var(--accent);
}

[data-role="technician"] .role-tab.active {
  border-bottom-color: var(--accent2);
}
[data-role="technician"] .role-tab.active .role-tab-label {
  color: #94a3b8;
}
[data-role="technician"] .btn-login {
  background: #94a3b8;
}
[data-role="technician"] .btn-login:hover {
  background: #94a3b8;
  box-shadow: 0 6px 24px #94a3b8;
}
[data-role="technician"] .form-input:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px #94a3b8;
}
[data-role="technician"] .modal-role-badge {
  background: #94a3b8;
  color: #ffffff;
  border-color: #94a3b8;
}
[data-role="technician"] .success-icon {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.3);
}

/* modal body */
.modal-body {
  padding: 28px 32px 32px;
}
.modal-role-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.modal-role-title h3 {
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 800;
  color: var(--text);
}
.modal-role-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(0, 212, 255, 0.09);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.2);
}
.modal-role-desc {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 22px;
  line-height: 1.65;
}
.view-switcher {
  display: flex;
  background: var(--navy3);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 22px;
  gap: 4px;
}
.view-switch-btn {
  flex: 1;
  padding: 9px;
  border-radius: 7px;
  border: none;
  background: none;
  color: var(--text2);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-head);
  cursor: pointer;
  transition: all 0.2s;
}
.view-switch-btn.active {
  background: var(--card2);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.form-group {
  margin-bottom: 15px;
}
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 7px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.form-input {
  width: 100%;
  background: var(--navy3);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition:
    border 0.2s,
    box-shadow 0.2s;
}
.form-input::placeholder {
  color: var(--text3);
}
/* Only our JS-driven .field-invalid/.field-valid classes should ever
   color a field — not the browser's native required/pattern state,
   which otherwise marks an untouched field red before the user has
   typed anything. */
.form-input:invalid,
.form-input:-moz-ui-invalid {
  box-shadow: none;
}
.form-input:not(.field-invalid):not(.field-valid) {
  border-color: var(--border2);
}
.form-input:focus {
  border-color: rgba(0, 137, 123, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 137, 123, 0.09);
}
.form-input.error {
  border-color: rgba(239, 68, 68, 0.5);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pass-wrap {
  position: relative;
}
.pass-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 15px;
}
.pass-toggle:hover {
  color: var(--text2);
}
.form-extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 13px;
}
.remember-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text2);
  cursor: pointer;
}
.remember-wrap input {
  accent-color: var(--accent);
  cursor: pointer;
}
.forgot-link {
  color: var(--text3);
  text-decoration: none;
  transition: 0.2s;
  font-size: 13px;
}
.forgot-link:hover {
  color: var(--accent);
}
.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #fca5a5;
  margin-bottom: 16px;
  display: none;
}
.alert-error.show {
  display: block;
}
.form-error {
  font-size: 12px;
  color: #fca5a5;
  margin-top: 5px;
  display: none;
}
.form-error.show {
  display: block;
}
.btn-login {
  width: 100%;
  padding: 13px;
  border-radius: 10px;
  background: var(--accent);
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-head);
  cursor: pointer;
  transition: all 0.22s;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 20px rgba(0, 137, 123, 0.18);
}
.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0, 212, 255, 0.3);
}
.btn-login.loading {
  opacity: 0.65;
  pointer-events: none;
}
.modal-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text3);
}
.modal-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.modal-footer a:hover {
  text-decoration: underline;
}
.strength-bar {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.strength-seg {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--border2);
  transition: background 0.3s;
}
.strength-seg.weak {
  background: #ef4444;
}
.strength-seg.fair {
  background: #f59e0b;
}
.strength-seg.good {
  background: var(--accent2);
}
.strength-seg.strong {
  background: var(--green3);
}
.strength-label {
  font-size: 11px;
  color: var(--text3);
  margin-top: 4px;
}
.reg-steps {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.reg-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text3);
  font-family: var(--font-head);
}
.reg-step.active {
  color: var(--accent);
}
.reg-step.done {
  color: var(--accent);
}
.reg-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.reg-step.done .reg-step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--navy);
}
.reg-step-line {
  flex: 1;
  height: 1.5px;
  background: var(--border2);
  margin: 0 8px;
}
.reg-step-line.done {
  background: var(--accent);
}
.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--text2);
}
.terms-row input {
  accent-color: var(--accent);
  cursor: pointer;
  margin-top: 2px;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
}
.terms-row a {
  color: var(--accent);
  text-decoration: none;
}
.terms-row a:hover {
  text-decoration: underline;
}
.success-screen {
  display: none;
  text-align: center;
  padding: 46px 32px;
}
.success-screen.show {
  display: block;
}
.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.1);
  border: 2px solid rgba(0, 212, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 32px;
}
.success-screen h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text);
}
.success-screen p {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 24px;
}
.progress-bar {
  height: 3px;
  background: var(--border2);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 2px;
  width: 0%;
  transition: width 2.5s linear;
}
.success-redirect {
  font-size: 13px;
  color: var(--text3);
  margin-top: 12px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE SYSTEM
   Breakpoints:
     Mobile S  : ≤ 360px
     Mobile    : ≤ 480px
     Mobile L  : ≤ 640px
     Tablet    : ≤ 768px
     Tablet L  : ≤ 1024px
     Laptop    : ≤ 1280px
     Desktop   : > 1280px (base styles)
══════════════════════════════════════════════ */

/* ── LAPTOP (≤ 1280px) ── */
@media (max-width: 1280px) {
  .hero-inner {
    gap: 40px;
  }
  .dash-wrap {
    gap: 40px;
  }
  .roles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .role-card {
    padding: 26px;
  }
}

/* ── TABLET LANDSCAPE (≤ 1024px) ── */
@media (max-width: 1024px) {
  section {
    padding: 80px 5%;
  }
  .hero {
    padding: 120px 5% 80px;
  }
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  h1 {
    font-size: clamp(28px, 4.5vw, 48px);
  }
  .hero-sub {
    font-size: 15px;
  }
  .feat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .feat-card {
    padding: 22px;
  }
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  .dash-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .roles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .stats-inner {
    grid-template-columns: repeat(4, 1fr);
  }
  .s-num {
    font-size: 30px;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 28px;
  }
  .modal-box {
    max-width: 440px;
  }
}

/* ── TABLET PORTRAIT (≤ 768px) ── */
@media (max-width: 768px) {
  /* Nav */
  .nav-links,
  .nav-cta {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  nav {
    top: 14px;
    padding: 0 4%;
  }
  .nav-inner {
    height: 54px;
    padding: 5px 6px 5px 6px;
  }
  .logo-mark {
    width: 36px;
    height: 36px;
  }
  .nav-mobile-panel {
    top: 74px;
    left: 4%;
    right: 4%;
  }

  /* Hero */
  .hero {
    padding: 100px 4% 64px;
    min-height: auto;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .eyebrow {
    margin-left: auto;
    margin-right: auto;
  }
  h1 {
    font-size: clamp(28px, 6vw, 44px);
    letter-spacing: -1px;
  }
  .hero-sub {
    font-size: 15px;
    max-width: 100%;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-trust {
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
  }
  .hero-visual {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-orb-c,
  .hero-orb-p {
    width: 360px;
    height: 360px;
  }

  /* Stats */
  .stats-band {
    padding: 36px 4%;
  }
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .s-item {
    padding: 20px 16px;
  }
  .s-num {
    font-size: 28px;
  }

  /* Sections */
  section {
    padding: 64px 4%;
  }
  .section-title {
    font-size: clamp(22px, 5vw, 34px);
  }
  .section-sub {
    font-size: 14px;
  }

  /* Features */
  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 36px;
  }
  .feat-card {
    padding: 20px;
  }

  /* How it works */
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 36px;
  }
  .steps-grid::before {
    display: none;
  }

  /* Dashboard */
  .dash-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 36px;
  }
  .dash-body {
    grid-template-columns: 120px 1fr;
  }
  .kpi-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .kpi-val {
    font-size: 18px;
  }

  /* Roles */
  .roles-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 36px;
  }
  .role-card {
    padding: 26px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding-bottom: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  footer {
    padding: 48px 4% 24px;
  }

  /* Modal */
  .modal-overlay {
    padding: 12px;
    align-items: flex-end;
  }
  .modal-wrap {
    max-width: 100%;
  }
  .modal-box {
    border-radius: 20px 20px 16px 16px;
  }
  .modal-close {
    top: -14px;
    right: 10px;
  }
  .modal-body {
    padding: 20px 20px 24px;
  }
  .role-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ── MOBILE LARGE (≤ 640px) ── */
@media (max-width: 640px) {
  .hero {
    padding: 90px 4% 56px;
  }
  h1 {
    font-size: clamp(26px, 7vw, 38px);
    letter-spacing: -0.5px;
  }
  .btn-primary,
  .btn-secondary {
    padding: 12px 22px;
    font-size: 14px;
    width: 100%;
    justify-content: center;
  }
  .hero-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .feat-grid {
    grid-template-columns: 1fr;
  }
  .feat-card {
    padding: 20px;
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .dash-body {
    grid-template-columns: 1fr;
  }
  .dash-sb {
    display: none;
  }
  .kpi-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: auto;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .mock-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── MOBILE (≤ 480px) ── */
@media (max-width: 480px) {
  nav {
    top: 12px;
    padding: 0 3.5%;
  }
  .nav-inner {
    height: 50px;
    padding: 4px 5px 4px 5px;
  }
  .logo-mark {
    width: 32px;
    height: 32px;
  }
  .btn-nav-login {
    display: none;
  }
  .nav-mobile-panel {
    top: 66px;
    left: 3.5%;
    right: 3.5%;
  }

  .hero {
    padding: 80px 16px 48px;
  }
  h1 {
    font-size: clamp(24px, 8vw, 34px);
  }
  .hero-sub {
    font-size: 14px;
    line-height: 1.65;
  }
  .eyebrow {
    font-size: 10px;
    padding: 5px 12px;
  }

  section {
    padding: 52px 16px;
  }
  .stats-band {
    padding: 28px 16px;
  }
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .s-num {
    font-size: 24px;
    letter-spacing: -1px;
  }
  .s-label {
    font-size: 11px;
  }
  .s-item {
    padding: 16px 12px;
  }

  .section-title {
    font-size: clamp(20px, 6vw, 28px);
    letter-spacing: -0.5px;
  }
  .section-sub {
    font-size: 13.5px;
  }

  .feat-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 28px;
  }
  .feat-card {
    padding: 18px;
  }
  .feat-title {
    font-size: 15px;
  }
  .feat-desc {
    font-size: 13px;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
  }
  .step-num {
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
  .step-title {
    font-size: 13px;
  }
  .step-desc {
    font-size: 12px;
  }

  .dash-wrap {
    gap: 24px;
    margin-top: 28px;
  }
  .kpi-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .kpi {
    padding: 10px;
  }
  .kpi-val {
    font-size: 16px;
  }
  .kpi-label {
    font-size: 9px;
  }

  .roles-grid {
    gap: 10px;
    margin-top: 28px;
  }
  .role-card {
    padding: 20px;
  }
  .role-name {
    font-size: 17px;
  }
  .role-desc {
    font-size: 13px;
  }

  .mockup {
    padding: 14px;
    border-radius: 14px;
  }
  .mock-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .ms-val {
    font-size: 16px;
  }

  /* Modal */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .modal-box {
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    overflow-y: auto;
  }
  .modal-wrap {
    max-width: 100%;
  }
  .modal-close {
    top: 12px;
    right: 14px;
    position: sticky;
    float: right;
  }
  .modal-body {
    padding: 16px 16px 20px;
  }
  .role-tab {
    padding: 12px 4px;
  }
  .role-tab-icon {
    font-size: 18px;
  }
  .role-tab-label {
    font-size: 9px;
    letter-spacing: 0;
  }
  .modal-role-title h3 {
    font-size: 18px;
  }
  .btn-login {
    padding: 12px;
    font-size: 13px;
  }
  .login-select-header {
    padding: 22px 20px 0;
  }
  .login-select-header h3 {
    font-size: 20px;
  }
  .login-select-body {
    padding: 14px 20px 24px;
  }
  .role-select-btn {
    padding: 14px 18px;
    font-size: 14px;
  }
  .nv-loader-card {
    padding: 34px 30px 30px;
    border-radius: 22px;
  }
  .nv-ring-wrap {
    width: 78px;
    height: 78px;
  }
  .nv-logo-badge {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }
  .nv-logo-img {
    width: 27px;
    height: 27px;
  }
  #nvLoaderStatus {
    font-size: 13px;
    margin-top: 20px;
  }

  footer {
    padding: 36px 16px 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ── MOBILE SMALL (≤ 360px) ── */
@media (max-width: 360px) {
  .logo-text {
    font-size: 15px;
  }
  .logo-mark {
    width: 30px;
    height: 30px;
  }
  h1 {
    font-size: 22px;
  }
  .btn-primary,
  .btn-secondary {
    font-size: 13px;
    padding: 11px 18px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .stats-inner {
    grid-template-columns: 1fr 1fr;
  }
  .kpi-row {
    grid-template-columns: 1fr 1fr;
  }
  .feat-card {
    padding: 16px;
  }
  .role-card {
    padding: 16px;
  }
  .modal-body {
    padding: 14px 14px 18px;
  }
}

/* ── DESKTOP WIDE (≥ 1440px) ── */
@media (min-width: 1440px) {
  nav {
    padding: 0 8%;
  }
  .hero {
    padding: 160px 8% 120px;
  }
  section {
    padding: 110px 8%;
  }
  .stats-band {
    padding: 56px 8%;
  }
  footer {
    padding: 72px 8% 32px;
  }
  .hero-inner,
  .dash-wrap,
  .max-w,
  .stats-inner,
  .footer-grid,
  .footer-bottom {
    max-width: 1400px;
  }
}

/* ══════════════════════════════════
   AUTH MODAL — split layout (form + image)
   These classes (auth-modal-*, btn-auth, auth-title, auth-sub,
   auth-footer, auth-view) sit on top of the generic .modal-overlay
   / .modal-wrap / .modal-box rules above but were never styled,
   so the auth modal was falling back to plain unstyled markup:
   stacked instead of two columns, a bare "✕" instead of a close
   button, a native gray button instead of the teal CTA.
══════════════════════════════════ */

.modal-wrap.auth-modal-wrap {
  max-width: 940px;
  width: 100%;
}
.modal-box.auth-modal-box {
  padding: 0;
  border-radius: 24px;
}
.auth-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: var(--text2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  z-index: 20;
  transition: 0.2s;
}
.auth-modal-close:hover {
  color: var(--accent);
  transform: scale(1.05);
}

.auth-modal-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
  min-height: 560px;
}

.auth-modal-form-side {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  max-height: 90vh;
}

.auth-view h3.auth-title {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.auth-view .auth-sub {
  color: var(--text2);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 28px;
}

.auth-view form .form-group {
  margin-bottom: 18px;
}

.auth-view .btn-auth {
  width: 100%;
  padding: 14px 20px;
  margin-top: 6px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
}
.auth-view .btn-auth:hover {
  background: #00695c;
}
.auth-view .btn-auth:active {
  transform: scale(0.99);
}
.auth-view .btn-auth.loading {
  opacity: 0.7;
  cursor: default;
}

.auth-view .auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text2);
}
.auth-view .auth-footer a,
.auth-footer #resendOtpLink {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.auth-view .auth-footer a:hover {
  text-decoration: underline;
}

/* ── Image / testimonial side ── */
.auth-modal-image-side {
  position: relative;
  overflow: hidden;
  display: block;
}
.auth-modal-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.auth-modal-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 31, 28, 0.88) 0%,
    rgba(11, 31, 28, 0.35) 45%,
    rgba(11, 31, 28, 0.05) 70%
  );
}
.auth-visual-quote {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  color: #fff;
  z-index: 2;
}
.auth-quote-mark {
  font-family: var(--font-head);
  font-size: 40px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
}
.auth-quote-text {
  font-size: 14px;
  line-height: 1.55;
  color: #f1f5f9;
}

/* ── Collapse to a single column on narrow screens ── */
@media (max-width: 780px) {
  .modal-wrap.auth-modal-wrap {
    max-width: 480px;
  }
  .auth-modal-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .auth-modal-image-side {
    display: none;
  }
  .auth-modal-form-side {
    padding: 44px 28px 32px;
    max-height: 85vh;
  }
}

/* ══ Password requirements hint (register form) ══ */
.form-hint {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--text3, #94a3b8);
}

/* ══════════════════════════════════════════════════════════
   AUTH MODAL — STANDARD SIZE (login + register)
   Placed last so it overrides the earlier auth-modal rules.
   Field error messages are positioned ABSOLUTELY inside the gap
   under each field, so showing/hiding an error never changes the
   height of the form — the modal keeps its size.
══════════════════════════════════════════════════════════ */
.modal-wrap.auth-modal-wrap {
  max-width: 920px;
}
.modal-box.auth-modal-box {
  border-radius: 22px;
}
.auth-modal-grid {
  min-height: 540px;
  grid-template-columns: 1.1fr 1fr;
}
.auth-modal-close {
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
}

.auth-modal-form-side {
  padding: 44px 46px;
  max-height: 94vh;
}
.auth-view h3.auth-title {
  font-size: 27px;
  margin-bottom: 6px;
}
.auth-view .auth-sub {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.auth-view form .form-group {
  position: relative;
  margin-bottom: 24px;
}
.auth-view .form-label {
  font-size: 11px;
  margin-bottom: 6px;
}
.auth-view .form-input {
  padding: 12px 14px;
  font-size: 14.5px;
  border-radius: 10px;
}
.auth-view .form-row {
  gap: 12px;
}
.auth-view .form-hint {
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.4;
}
.auth-view .reg-pass-hint {
  margin: -6px 0 14px;
}
.auth-view .form-extras {
  margin: 0 0 20px;
}
.auth-view .terms-row {
  position: relative;
  margin-bottom: 26px;
}
.auth-view .btn-auth {
  padding: 14px 20px;
  margin-top: 4px;
  font-size: 15px;
}
.auth-view .auth-footer {
  margin-top: 20px;
  font-size: 14px;
}

/* ── error messages: out of the flow, inside the gap under the field ── */
.auth-view .form-group > .field-error-msg,
.auth-view .terms-row > .field-error-msg {
  position: absolute;
  left: 0;
  bottom: -17px;
  margin: 0;
  min-height: 0;
  width: max-content;
  max-width: calc(200% + 12px);
  white-space: nowrap;
  font-size: 11.5px;
  line-height: 1.2;
  pointer-events: none;
}
.auth-view .terms-row > .field-error-msg {
  bottom: -19px;
  left: 24px;
}
.auth-view .form-group > .field-error-msg:empty,
.auth-view .terms-row > .field-error-msg:empty {
  display: none;
}
/* right-hand column: let the message grow leftwards instead of off the modal */
.auth-view .form-row .form-group:last-child > .field-error-msg {
  left: auto;
  right: 0;
  text-align: right;
}
/* groups with a hint line: the error takes the hint's place */
.auth-view .form-group:has(.form-hint) > .field-error-msg {
  bottom: 0;
}
.auth-view .form-group:has(.nv-err) > .form-hint {
  visibility: hidden;
}

/* errors raised by landing page script (mobile / address) must always show */
.auth-view .field-error-msg.nv-err {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  height: auto !important;
  max-height: none !important;
  transform: none !important;
  color: #ef4444 !important;
}

.auth-visual-quote {
  left: 28px;
  right: 28px;
  bottom: 28px;
}
.auth-quote-text {
  font-size: 14px;
  line-height: 1.55;
}

/* Register view only: a little tighter, since it has many more fields */
.auth-modal-form-side:has(#authViewRegister:not([hidden])) {
  padding: 30px 44px 24px;
}
.auth-modal-form-side:has(#authViewRegister:not([hidden])) h3.auth-title {
  font-size: 24px;
}
.auth-modal-form-side:has(#authViewRegister:not([hidden])) .auth-sub {
  font-size: 13px;
  margin-bottom: 16px;
}
.auth-modal-form-side:has(#authViewRegister:not([hidden])) form .form-group {
  margin-bottom: 21px;
}
.auth-modal-form-side:has(#authViewRegister:not([hidden])) .form-input {
  padding: 9px 13px;
}
.auth-modal-form-side:has(#authViewRegister:not([hidden])) .btn-auth {
  padding: 12px 20px;
}
.auth-modal-form-side:has(#authViewRegister:not([hidden])) .auth-footer {
  margin-top: 14px;
}

@media (max-width: 780px) {
  .modal-wrap.auth-modal-wrap {
    max-width: 460px;
  }
  .auth-modal-grid {
    min-height: 0;
  }
  .auth-modal-form-side,
  .auth-modal-form-side:has(#authViewRegister:not([hidden])) {
    padding: 40px 24px 28px;
    max-height: 90vh;
  }
}

/* ══════════════════════════════════════════════════════════
   FIXED MODAL SIZE — Log in, Create account and OTP views are
   always exactly the same width and height. Content is centred
   inside; if it ever doesn't fit (very short screens) the form
   side scrolls instead of the modal growing.
══════════════════════════════════════════════════════════ */
.modal-wrap.auth-modal-wrap {
  max-width: 920px;
  width: 100%;
}
.auth-modal-grid {
  height: min(640px, 92vh);
  min-height: 0;
}
.auth-modal-form-side,
.auth-modal-form-side:has(#authViewRegister:not([hidden])) {
  height: 100%;
  max-height: none;
  overflow-y: auto;
  justify-content: center;
}
.auth-modal-image-side {
  height: 100%;
}

@media (max-width: 780px) {
  .auth-modal-grid {
    height: auto;
  }
  .auth-modal-form-side,
  .auth-modal-form-side:has(#authViewRegister:not([hidden])) {
    height: auto;
    max-height: 90vh;
  }
}


/* ══════════════════════════════════
   THREE ROLES (Customer · Technician · Administrator)
   Placed last so it wins over the earlier responsive rules.
══════════════════════════════════ */
.roles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 1024px) { .roles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .roles-grid .card-admin { grid-column: 1 / -1; } }
@media (max-width: 680px) { .roles-grid { grid-template-columns: 1fr !important; } }
.card-admin::before { background: linear-gradient(90deg, #312e81, transparent); }
.card-admin:hover { border-color: rgba(49, 46, 129, 0.28); }
.icon-admin { background: rgba(49, 46, 129, 0.08); border-color: rgba(49, 46, 129, 0.22); }
.role-note { font-size: 12px; color: var(--text3); margin-top: -14px; }
.form-extras { justify-content: flex-end; }
.forgot-link { background: none; border: 0; cursor: pointer; font: inherit; }
.auth-notice { margin: -6px 0 14px; padding: 10px 12px; border-radius: 10px; background: #e0f2f1; color: #00695f; font-size: 13px; }
.auth-back { background: none; border: 0; padding: 0; color: var(--accent, #00897b); cursor: pointer; font: inherit; font-weight: 600; }
.nav-dash { text-decoration: none; display: inline-flex; align-items: center; }
.pass-toggle {
  right: 6px; width: 38px; height: 38px; min-height: 0; padding: 0; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center; color: var(--text3);
}
.pass-toggle svg { width: 20px; height: 20px; display: block; }
.pass-toggle:hover, .pass-toggle:focus-visible { color: var(--accent, #00897b); background: rgba(0, 137, 123, 0.08); }
.pass-toggle[aria-pressed="true"] { color: var(--accent, #00897b); }
.pass-wrap .form-input { padding-right: 50px; }
/* Forgot-password states */
.auth-alert { margin: -6px 0 14px; padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; font-size: 13px; line-height: 1.5; }
.auth-notice.success { display: flex; gap: 10px; align-items: flex-start; border: 1px solid #b2dfdb; }
.auth-notice.success::before { content: "✓"; font-weight: 800; width: 22px; height: 22px; flex: none; border-radius: 50%; background: #00897b; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.auth-notice[hidden], .auth-alert[hidden] { display: none !important; }

/* Mobile auth modal fix: a later rule above re-set the grid to two columns
   after the 780px media query, squeezing the form into half the width on
   phones (the image column is hidden there). Re-assert one column last. */
@media (max-width: 780px) {
  .auth-modal-grid { grid-template-columns: 1fr; min-height: 0; }
  .auth-modal-form-side,
  .auth-modal-form-side:has(#authViewRegister:not([hidden])) { padding: 40px 20px 24px; max-height: 92dvh; }
  .modal-wrap.auth-modal-wrap { max-width: min(460px, calc(100vw - 16px)); }
}
@media (max-width: 400px) {
  .auth-modal-form-side .form-row { grid-template-columns: 1fr; }
}

/* Phone fix: a ≤480px rule above hides every .btn-nav-login, which also
   removed the Log In button inside the mobile menu (no way to log in from
   the menu on phones). Keep the menu's own button visible. */
.nav-mobile-panel .btn-nav-login-mobile { display: block !important; text-align: center; }

/* Short screens (landscape phones, small laptops): the 2-column auth modal is
   ~540px tall and the overlay didn't scroll, so lower fields (OTP boxes,
   submit buttons) were unreachable. Let the overlay scroll and use the
   compact single-column layout whenever the viewport is short. */
@media (max-height: 620px) {
  #authModal.modal-overlay { align-items: flex-start; overflow-y: auto; padding: 12px; }
  .auth-modal-grid { grid-template-columns: 1fr; min-height: 0; }
  .auth-modal-image-side { display: none; }
  .auth-modal-form-side,
  .auth-modal-form-side:has(#authViewRegister:not([hidden])) { max-height: none; padding: 28px 24px 20px; }
  .modal-wrap.auth-modal-wrap { max-width: 520px; margin: auto; }
}

/* Tablet fix (781–1024px): the generic ".modal-box { max-width: 440px }" tablet
   rule above also shrank the two-column auth modal, leaving the form column too
   narrow for the 6 OTP boxes (they overflowed and could not be tapped). */
.modal-box.auth-modal-box { max-width: none; }

/* Inline SVG icons that replaced the emoji icons (feature + role cards) */
.ui-ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; fill: currentColor; }
.white-icon .ui-ic { width: 24px; height: 24px; color: var(--accent, #00897b); display: block; }
.role-icon-wrap .ui-ic { width: 26px; height: 26px; }
.icon-user { color: var(--accent, #00897b); }
.icon-tech { color: #7c3aed; }
.icon-admin { color: #312e81; }
.card-admin .role-perms li::before { background: #312e81; }
