@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --ink: #05070b;
  --surface: #0b1018;
  --line: rgba(173, 213, 255, 0.16);
  --blue: #00a8ff;
  --electric: #65d5ff;
  --white: #f5faff;
  --muted: #9aa9b8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 42%, rgba(0, 135, 255, 0.19), transparent 24rem),
    radial-gradient(circle at 22% 82%, rgba(0, 82, 156, 0.14), transparent 25rem),
    var(--ink);
  font-family: "Manrope", sans-serif;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.site-header {
  width: min(1400px, calc(100% - 64px));
  height: 100px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.logo strong {
  color: var(--electric);
  font-weight: 800;
}

.logo-image {
  width: 46px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--electric);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-cta {
  color: var(--white);
  border: 1px solid rgba(101, 213, 255, 0.5);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-3px);
}

.hero {
  width: min(1400px, calc(100% - 64px));
  min-height: calc(100vh - 100px);
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  padding: 80px 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  color: var(--electric);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.eyebrow span {
  width: 31px;
  height: 1px;
  background: var(--electric);
  box-shadow: 0 0 12px var(--electric);
}

h1 {
  margin: 0;
  max-width: 800px;
  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 0.87;
  letter-spacing: -0.085em;
  font-weight: 800;
}

h1 em {
  color: transparent;
  -webkit-text-stroke: 1px var(--electric);
  font-style: normal;
}

.hero-description {
  max-width: 520px;
  margin: 35px 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button-primary {
  color: var(--ink);
  background: var(--electric);
  box-shadow: 0 0 28px rgba(101, 213, 255, 0.28);
}

.button-secondary {
  color: var(--white);
  border: 1px solid var(--line);
}

.hero-stats {
  display: flex;
  gap: clamp(24px, 5vw, 60px);
  margin-top: 80px;
}

.hero-stats div {
  display: grid;
  gap: 5px;
}

.hero-stats strong {
  color: var(--electric);
  font-family: "DM Mono", monospace;
  font-size: 1.05rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.74rem;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  border: 1px solid rgba(101, 213, 255, 0.3);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

.orb-one {
  width: 440px;
  height: 440px;
  border-left-color: transparent;
  border-right-color: var(--electric);
}

.orb-two {
  width: 320px;
  height: 320px;
  border-top-color: var(--electric);
  border-bottom-color: transparent;
  animation-direction: reverse;
  animation-duration: 13s;
}

.power-core {
  width: 176px;
  height: 176px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(101, 213, 255, 0.75);
  background: rgba(0, 168, 255, 0.08);
  box-shadow:
    0 0 25px rgba(0, 168, 255, 0.3),
    inset 0 0 35px rgba(0, 168, 255, 0.15);
  transform: rotate(45deg);
}

.power-core span {
  width: 72px;
  height: 72px;
  background: var(--electric);
  box-shadow: 0 0 42px var(--electric);
}

.hero-visual p {
  position: absolute;
  bottom: 48px;
  color: rgba(245, 250, 255, 0.5);
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .site-header,
  .hero {
    width: min(100% - 40px, 680px);
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 370px;
    margin-top: -60px;
  }

  .orb-one {
    width: 300px;
    height: 300px;
  }

  .orb-two {
    width: 220px;
    height: 220px;
  }

  .power-core {
    width: 130px;
    height: 130px;
  }

  .power-core span {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 560px) {
  .site-header {
    height: 80px;
  }

  .header-cta {
    display: none;
  }

  .logo {
    font-size: 0.68rem;
  }

  .hero {
    min-height: calc(100vh - 80px);
  }

  h1 {
    font-size: clamp(3.35rem, 17vw, 5rem);
  }

  .hero-stats {
    gap: 18px;
    margin-top: 55px;
  }

  .hero-stats span {
    font-size: 0.65rem;
  }
}

@media (max-width: 560px) {
  .hero-content {
    padding: 60px 0 30px;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-visual {
    min-height: 310px;
    margin-top: -20px;
  }

  .hero-visual p {
    bottom: 12px;
    font-size: 0.55rem;
  }
}

.portals {
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  padding: 130px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 58px;
}

.section-heading h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
}

.section-heading > p:last-child {
  max-width: 575px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.portal-card {
  position: relative;
  min-height: 400px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(9, 15, 24, 0.48);
  overflow: hidden;
  transition: background 0.25s ease, transform 0.25s ease;
}

.portal-card:last-child {
  border-right: 0;
}

.portal-card:hover {
  background: rgba(0, 119, 225, 0.12);
  transform: translateY(-8px);
}

.portal-card.featured {
  background:
    linear-gradient(145deg, rgba(0, 168, 255, 0.2), rgba(9, 15, 24, 0.52));
}

.portal-card::before {
  content: "";
  position: absolute;
  top: -85px;
  right: -85px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(101, 213, 255, 0.2);
  border-radius: 50%;
}

.portal-number,
.portal-label {
  position: relative;
  margin: 0;
  font-family: "DM Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-number {
  color: var(--electric);
  font-size: 0.75rem;
}

.portal-label {
  margin-top: 68px;
  color: var(--muted);
  font-size: 0.67rem;
}

.portal-card h3 {
  position: relative;
  margin: 14px 0 0;
  font-size: clamp(1.55rem, 2.3vw, 2.25rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.portal-copy {
  position: relative;
  margin: 22px 0 30px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.portal-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: auto;
}

.portal-actions a,
.portal-card > a {
  width: fit-content;
  color: var(--electric);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(101, 213, 255, 0.45);
  padding-bottom: 7px;
}

.portal-actions .apply-link {
  color: var(--white);
  border-bottom-color: rgba(245, 250, 255, 0.35);
}

@media (max-width: 900px) {
  .portals {
    width: min(100% - 40px, 680px);
    padding: 90px 0;
  }

  .portal-grid {
    grid-template-columns: 1fr;
  }

  .portal-card,
  .portal-card:last-child {
    min-height: 310px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .portal-card:last-child {
    border-bottom: 0;
  }

  .portal-label {
    margin-top: 40px;
  }
}

.logo-badge {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #ffffff;
  border: 2px solid #65d5ff;
  box-shadow:
    0 0 0 4px rgba(101, 213, 255, 0.15),
    0 0 25px rgba(101, 213, 255, 0.8);
}

.logo-image {
  width: 46px;
  height: 46px;
  display: block;
  object-fit: contain;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.logo-text {
  color: var(--white);
}

.logo-accent {
  color: var(--electric);
}

.texas-grid {
  width: min(100%, 560px);
  display: block;
  filter: drop-shadow(0 0 28px rgba(0, 168, 255, 0.42));
  animation: texas-float 5s ease-in-out infinite;
}

.hero-visual p {
  bottom: 18px;
  color: var(--electric);
}

@keyframes texas-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-16px) scale(1.025);
  }
}

@media (max-width: 900px) {
  .texas-grid {
    width: min(100%, 380px);
  }
}

.portal-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 14px;
  margin-top: auto;
}

.portal-actions a {
  white-space: nowrap;
}

.quote-section {
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  padding: 130px 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  border-top: 1px solid var(--line);
}

.quote-copy h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5.3rem);
  line-height: 0.93;
  letter-spacing: -0.075em;
}

.quote-copy > p:last-child {
  max-width: 390px;
  color: var(--muted);
  line-height: 1.75;
}

.quote-form {
  display: grid;
  gap: 20px;
  padding: 34px;
  background: rgba(9, 15, 24, 0.7);
  border: 1px solid var(--line);
}

.quote-form label {
  display: grid;
  gap: 9px;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid rgba(173, 213, 255, 0.2);
  border-radius: 0;
  outline: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
  padding: 15px;
  font: inherit;
  font-size: 0.95rem;
  text-transform: none;
}

.quote-form select option {
  color: #05070b;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(101, 213, 255, 0.12);
}

.quote-form textarea {
  resize: vertical;
}

.quote-form button {
  border: 0;
  cursor: pointer;
}

.hidden-field {
  display: none;
}

@media (max-width: 900px) {
  .quote-section {
    width: min(100% - 40px, 680px);
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 90px 0;
  }
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .quote-form {
    padding: 22px;
  }
}

.quote-form select {
  appearance: none;
  cursor: pointer;
  color: var(--white);
  color-scheme: dark;
  border: 1px solid rgba(101, 213, 255, 0.4);
  background-color: #0b1018;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--electric) 50%),
    linear-gradient(135deg, var(--electric) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 46px;
}

.quote-form select:hover {
  border-color: var(--electric);
  background-color: rgba(0, 168, 255, 0.1);
}

.quote-form select option {
  color: var(--white);
  background: #0b1018;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-apply {
  color: var(--electric);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-apply:hover {
  color: var(--white);
}

@media (max-width: 560px) {
  .header-cta {
    display: none;
  }

  .header-apply {
    font-size: 0.72rem;
  }
}

.application-section {
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  padding: 130px 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  border-top: 1px solid var(--line);
}

.application-copy h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5.3rem);
  line-height: 0.93;
  letter-spacing: -0.075em;
}

.application-copy > p:last-child {
  max-width: 390px;
  color: var(--muted);
  line-height: 1.75;
}

.application-form {
  display: grid;
  gap: 20px;
  padding: 34px;
  border: 1px solid var(--line);
  background: rgba(9, 15, 24, 0.7);
}

.application-form label {
  display: grid;
  gap: 9px;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.application-form input,
.application-form textarea {
  width: 100%;
  padding: 15px;
  color: var(--white);
  border: 1px solid rgba(173, 213, 255, 0.2);
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 0.95rem;
  text-transform: none;
}

.application-form input:focus,
.application-form textarea:focus {
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(101, 213, 255, 0.12);
}

.application-form textarea {
  resize: vertical;
}

.application-role p {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.application-role-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.application-role-options label {
  display: block;
  cursor: pointer;
}

.application-role-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.application-role-options span {
  display: block;
  padding: 12px 14px;
  color: var(--muted);
  border: 1px solid rgba(173, 213, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  font-weight: 800;
}

.application-role-options input:checked + span {
  color: #05070b;
  border-color: var(--electric);
  background: var(--electric);
}

.application-form button {
  border: 0;
  cursor: pointer;
}

@media (max-width: 900px) {
  .application-section {
    width: min(100% - 40px, 680px);
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 90px 0;
  }
}

@media (max-width: 560px) {
  .application-form {
    padding: 22px;
  }
}

.apply-page {
  width: min(1400px, calc(100% - 64px));
  min-height: calc(100vh - 100px);
  margin: 0 auto;
  padding: 100px 0 130px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
  align-items: start;
}

.apply-page-intro h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.apply-page-intro h1 em {
  color: transparent;
  -webkit-text-stroke: 1px var(--electric);
  font-style: normal;
}

.apply-page-intro > p:last-child {
  max-width: 400px;
  margin-top: 30px;
  color: var(--muted);
  line-height: 1.75;
}

.apply-page-form {
  display: grid;
  gap: 20px;
  padding: 36px;
  border: 1px solid var(--line);
  background: rgba(9, 15, 24, 0.72);
}

.apply-page-form label {
  display: grid;
  gap: 9px;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.apply-page-form input,
.apply-page-form textarea {
  width: 100%;
  padding: 15px;
  color: var(--white);
  border: 1px solid rgba(173, 213, 255, 0.2);
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 0.95rem;
  text-transform: none;
}

.apply-page-form input:focus,
.apply-page-form textarea:focus {
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(101, 213, 255, 0.12);
}

.apply-page-form textarea {
  resize: vertical;
}

.application-role p {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.application-role-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.application-role-options label {
  display: block;
  cursor: pointer;
}

.application-role-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.application-role-options span {
  display: block;
  padding: 12px 14px;
  color: var(--muted);
  border: 1px solid rgba(173, 213, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.75rem;
  font-weight: 800;
}

.application-role-options input:checked + span {
  color: #05070b;
  border-color: var(--electric);
  background: var(--electric);
}

.apply-page-form button {
  border: 0;
  cursor: pointer;
}

@media (max-width: 900px) {
  .apply-page {
    width: min(100% - 40px, 680px);
    grid-template-columns: 1fr;
    gap: 45px;
    padding: 80px 0;
  }
}

@media (max-width: 560px) {
  .apply-page-form {
    padding: 22px;
  }
}

.portal-actions .apply-link {
  padding: 9px 11px;
  color: var(--electric);
  border: 1px solid rgba(101, 213, 255, 0.4);
  border-bottom: 1px solid rgba(101, 213, 255, 0.4);
  transition: 0.2s ease;
}

.portal-actions .apply-link:hover {
  color: #05070b;
  border-color: var(--electric);
  background: var(--electric);
  box-shadow: 0 0 18px rgba(101, 213, 255, 0.45);
  transform: translateY(-2px);
}

.header-apply-menu {
  position: relative;
}

.header-apply-menu summary {
  list-style: none;
}

.header-apply-menu summary::-webkit-details-marker {
  display: none;
}

.header-apply {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  color: var(--electric);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-apply-dropdown {
  position: absolute;
  z-index: 50;
  top: calc(100% + 14px);
  right: 0;
  min-width: 175px;
  overflow: hidden;
  border: 1px solid rgba(101, 213, 255, 0.45);
  background: #0b1018;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.header-apply-dropdown a {
  display: block;
  padding: 13px 15px;
  color: var(--white);
  border-bottom: 1px solid rgba(173, 213, 255, 0.1);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.header-apply-dropdown a:last-child {
  border-bottom: 0;
}

.header-apply-dropdown a:hover {
  color: #05070b;
  background: var(--electric);
}

.role-page {
  width: min(1400px, calc(100% - 64px));
  min-height: calc(100vh - 100px);
  margin: 0 auto;
  padding: 100px 0 130px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
  align-items: start;
}

.role-page-intro h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.role-page-intro h1 em {
  color: transparent;
  -webkit-text-stroke: 1px var(--electric);
  font-style: normal;
}

.role-page-intro > p:last-child {
  max-width: 400px;
  margin-top: 30px;
  color: var(--muted);
  line-height: 1.75;
}

.role-page-form {
  display: grid;
  gap: 20px;
  padding: 36px;
  border: 1px solid var(--line);
  background: rgba(9, 15, 24, 0.72);
}

.role-page-form label {
  display: grid;
  gap: 9px;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.role-page-form input,
.role-page-form textarea {
  width: 100%;
  padding: 15px;
  color: var(--white);
  border: 1px solid rgba(173, 213, 255, 0.2);
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 0.95rem;
  text-transform: none;
}

.role-page-form input:focus,
.role-page-form textarea:focus {
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(101, 213, 255, 0.12);
}

.role-page-form textarea {
  resize: vertical;
}

.role-page-form button {
  border: 0;
  cursor: pointer;
}

@media (max-width: 900px) {
  .role-page {
    width: min(100% - 40px, 680px);
    grid-template-columns: 1fr;
    gap: 45px;
    padding: 80px 0;
  }
}

@media (max-width: 560px) {
  .role-page-form {
    padding: 22px;
  }
}

.login-page {
  width: min(1100px, calc(100% - 64px));
  min-height: calc(100vh - 100px);
  margin: 0 auto;
  padding: 100px 0 130px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}

.login-intro h1 {
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 6.5rem);
  line-height: 0.88;
  letter-spacing: -0.085em;
}

.login-intro h1 em {
  color: transparent;
  -webkit-text-stroke: 1px var(--electric);
  font-style: normal;
}

.login-intro > p:last-child {
  max-width: 410px;
  margin-top: 30px;
  color: var(--muted);
  line-height: 1.75;
}

.login-card {
  padding: 38px;
  border: 1px solid var(--line);
  background: rgba(9, 15, 24, 0.72);
}

.login-form {
  display: grid;
  gap: 22px;
}

.login-form h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
  letter-spacing: -0.05em;
}

.login-form label {
  display: grid;
  gap: 9px;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.login-form input[type="email"],
.login-form input[type="password"] {
  width: 100%;
  padding: 15px;
  color: var(--white);
  border: 1px solid rgba(173, 213, 255, 0.2);
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 0.95rem;
  text-transform: none;
}

.login-form input:focus {
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(101, 213, 255, 0.12);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.login-options a {
  color: var(--electric);
  font-size: 0.76rem;
  text-decoration: none;
}

.remember-me {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  color: var(--muted) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.remember-me input {
  accent-color: var(--electric);
}

.login-form button {
  border: 0;
  cursor: pointer;
}

.login-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 800px) {
  .login-page {
    width: min(100% - 40px, 620px);
    grid-template-columns: 1fr;
    gap: 45px;
    padding: 80px 0;
  }
}

@media (max-width: 500px) {
  .login-card {
    padding: 24px;
  }

  .login-options {
    align-items: flex-start;
    flex-direction: column;
  }
}

.site-footer {
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  padding: 42px 0 30px;
  border-top: 1px solid var(--line);
}

.footer-top,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-top p,
.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.footer-bottom {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(173, 213, 255, 0.1);
}

.nexcode-credit {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nexcode-credit span {
  color: var(--electric);
  font-weight: 800;
}

@media (max-width: 650px) {
  .site-footer {
    width: min(100% - 40px, 680px);
  }

  .footer-top,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-bottom {
    gap: 12px;
  }
}

.review-cta h3 {
  margin: 7px 0 0;
  color: var(--white);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.review-cta .footer-eyebrow {
  color: var(--electric);
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.review-page {
  width: min(1100px, calc(100% - 64px));
  min-height: calc(100vh - 100px);
  margin: 0 auto;
  padding: 100px 0 130px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 90px;
  align-items: start;
}

.review-intro h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.review-intro h1 em {
  color: transparent;
  -webkit-text-stroke: 1px var(--electric);
  font-style: normal;
}

.review-intro > p:last-child {
  max-width: 400px;
  margin-top: 30px;
  color: var(--muted);
  line-height: 1.75;
}

.review-form {
  display: grid;
  gap: 20px;
  padding: 36px;
  border: 1px solid var(--line);
  background: rgba(9, 15, 24, 0.72);
}

.review-form label {
  display: grid;
  gap: 9px;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.review-form input,
.review-form textarea {
  width: 100%;
  padding: 15px;
  color: var(--white);
  border: 1px solid rgba(173, 213, 255, 0.2);
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 0.95rem;
  text-transform: none;
}

.review-form input:focus,
.review-form textarea:focus {
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(101, 213, 255, 0.12);
}

.review-form textarea {
  resize: vertical;
}

.review-rating p {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.review-rating-options {
  display: flex;
  gap: 10px;
}

.review-rating-options label {
  cursor: pointer;
}

.review-rating-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.review-rating-options span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px solid rgba(173, 213, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.review-rating-options input:checked + span {
  color: #05070b;
  border-color: var(--electric);
  background: var(--electric);
}

.review-upload {
  cursor: pointer;
}

.review-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px !important;
  color: var(--muted) !important;
  font-size: 0.76rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1.6;
  text-transform: none !important;
}

.review-consent input {
  width: auto;
  margin-top: 3px;
  accent-color: var(--electric);
}

.review-form button {
  border: 0;
  cursor: pointer;
}

.review-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 800px) {
  .review-page {
    width: min(100% - 40px, 680px);
    grid-template-columns: 1fr;
    gap: 45px;
    padding: 80px 0;
  }
}

@media (max-width: 560px) {
  .review-form {
    padding: 22px;
  }

  .review-rating-options {
    justify-content: space-between;
  }
}

.about-page {
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  padding: 110px 0 130px;
}

.about-hero {
  max-width: 900px;
}

.about-hero h1,
.about-close h2 {
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: -0.085em;
}

.about-hero h1 em {
  color: transparent;
  -webkit-text-stroke: 1px var(--electric);
  font-style: normal;
}

.about-hero > p:last-child {
  max-width: 560px;
  margin: 35px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.about-statement {
  max-width: 880px;
  margin: 150px 0;
  padding: 42px;
  border: 1px solid rgba(101, 213, 255, 0.28);
  border-left: 3px solid var(--electric);
  background: rgba(9, 15, 24, 0.72);
}

.statement-label {
  margin: 0 0 22px;
  color: var(--electric);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.statement-copy {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.025em;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}

.about-values article {
  min-height: 310px;
  padding: 34px;
  border-right: 1px solid var(--line);
  background: rgba(9, 15, 24, 0.48);
}

.about-values article:last-child {
  border-right: 0;
}

.about-values span {
  color: var(--electric);
  font-family: "DM Mono", monospace;
  font-size: 0.76rem;
}

.about-values h2 {
  margin: 55px 0 17px;
  font-size: 1.7rem;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.about-values p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.about-close {
  margin-top: 150px;
  padding-top: 90px;
  border-top: 1px solid var(--line);
}

.about-close h2 {
  max-width: 1050px;
  margin-bottom: 38px;
  font-size: clamp(2.6rem, 5vw, 5.5rem);
}

@media (max-width: 900px) {
  .about-page {
    width: min(100% - 40px, 680px);
    padding: 80px 0;
  }

  .about-statement {
    margin: 90px 0;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .about-values article,
  .about-values article:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .about-values article:last-child {
    border-bottom: 0;
  }

  .about-close {
    margin-top: 90px;
    padding-top: 65px;
  }
}

.services-page {
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  padding: 110px 0 130px;
}

.services-hero {
  max-width: 850px;
  margin-bottom: 85px;
}

.services-hero h1,
.services-close h2 {
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: -0.085em;
}

.services-hero h1 em {
  color: transparent;
  -webkit-text-stroke: 1px var(--electric);
  font-style: normal;
}

.services-hero > p:last-child {
  max-width: 570px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
}

.service-card {
  min-height: 340px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 15, 24, 0.48);
  transition: 0.2s ease;
}

.service-card:nth-child(2n) {
  border-right: 0;
}

.service-card:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.service-card:hover {
  background: rgba(0, 119, 225, 0.1);
  transform: translateY(-5px);
}

.service-card.featured {
  background: linear-gradient(145deg, rgba(0, 168, 255, 0.16), rgba(9, 15, 24, 0.5));
}

.service-card span {
  color: var(--electric);
  font-family: "DM Mono", monospace;
  font-size: 0.76rem;
}

.service-card h2 {
  margin: 58px 0 18px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.service-card p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.service-card a {
  width: fit-content;
  margin-top: auto;
  color: var(--electric);
  border-bottom: 1px solid rgba(101, 213, 255, 0.45);
  padding-bottom: 7px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.services-close {
  margin-top: 130px;
  padding-top: 85px;
  border-top: 1px solid var(--line);
}

.services-close h2 {
  margin-bottom: 35px;
  font-size: clamp(2.6rem, 5vw, 5.5rem);
}

@media (max-width: 900px) {
  .services-page {
    width: min(100% - 40px, 680px);
    padding: 80px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card:nth-child(2n),
  .service-card:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-card:last-child {
    border-bottom: 0;
  }

  .services-close {
    margin-top: 90px;
    padding-top: 65px;
  }
}

.reviews-page {
  width: min(1400px, calc(100% - 64px));
  margin: 0 auto;
  padding: 110px 0 130px;
}

.reviews-hero {
  max-width: 900px;
  margin-bottom: 85px;
}

.reviews-hero h1,
.reviews-close h2 {
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: -0.085em;
}

.reviews-hero h1 em {
  color: transparent;
  -webkit-text-stroke: 1px var(--electric);
  font-style: normal;
}

.reviews-hero > p:last-child {
  max-width: 560px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.reviews-empty {
  min-height: 360px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(0, 168, 255, 0.11), rgba(9, 15, 24, 0.55));
}

.reviews-empty-number {
  color: var(--electric);
  font-family: "DM Mono", monospace;
  font-size: 0.76rem;
}

.reviews-empty h2 {
  margin: 55px 0 18px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.93;
  letter-spacing: -0.07em;
}

.reviews-empty p {
  max-width: 560px;
  margin: 0 0 30px;
  color: var(--muted);
  line-height: 1.75;
}

.reviews-empty a {
  width: fit-content;
  margin-top: auto;
}

.reviews-close {
  margin-top: 130px;
  padding-top: 85px;
  border-top: 1px solid var(--line);
}

.reviews-close h2 {
  margin-bottom: 35px;
  font-size: clamp(2.6rem, 5vw, 5.5rem);
}

@media (max-width: 900px) {
  .reviews-page {
    width: min(100% - 40px, 680px);
    padding: 80px 0;
  }

  .reviews-close {
    margin-top: 90px;
    padding-top: 65px;
  }
}

.header-payment {
  padding: 0;
  border: none;
  background: transparent;
  text-decoration: none;
}

.header-payment:hover {
  background: transparent;
  box-shadow: none;
}

.header-payment:hover {
  color: var(--electric);
  background: transparent;
  box-shadow: none;
}

a.header-payment.header-apply {
  color: var(--white);
}

a.header-payment.header-apply:hover {
  color: var(--electric);
}

.payment-page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 150px 0 100px;
}

.payment-intro {
  max-width: 720px;
  margin-bottom: 58px;
}

.payment-intro h1 {
  margin: 16px 0 20px;
  color: var(--white);
  font-size: clamp(2.7rem, 6vw, 5.7rem);
  line-height: 0.93;
  letter-spacing: -0.075em;
}

.payment-intro h1 em {
  color: var(--electric);
  font-style: normal;
}

.payment-intro > p:last-child {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.payment-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  align-items: stretch;
}

.payment-card,
.payment-steps {
  padding: 34px;
  border: 1px solid rgba(121, 185, 213, 0.18);
  background: rgba(8, 15, 25, 0.72);
}

.payment-card {
  position: relative;
  overflow: hidden;
}

.payment-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--electric);
  box-shadow: 0 0 18px var(--electric);
}

.payment-card h2,
.payment-steps h2 {
  margin: 8px 0 10px;
  color: var(--white);
  font-size: 1.45rem;
  letter-spacing: -0.045em;
}

.payment-card > p,
.payment-steps > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.payment-notice {
  display: flex;
  gap: 13px;
  margin: 26px 0;
  padding: 17px;
  border: 1px solid rgba(35, 207, 255, 0.22);
  background: rgba(35, 207, 255, 0.06);
}

.payment-notice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
  font-size: 0.84rem;
}

.payment-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

.payment-notice-icon {
  color: var(--electric);
  font-family: "DM Mono", monospace;
  font-weight: 700;
}

.payment-form-preview {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.payment-form-preview label {
  display: grid;
  gap: 9px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.payment-form-preview input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(121, 185, 213, 0.25);
  outline: none;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font: inherit;
}

.payment-form-preview input:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.payment-launch-button {
  width: 100%;
  margin-top: 8px;
  padding: 15px 18px;
  border: 1px solid rgba(121, 185, 213, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: not-allowed;
}

.payment-step-list {
  display: grid;
  gap: 0;
  margin-top: 22px;
}

.payment-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  padding: 19px 0;
  border-top: 1px solid rgba(121, 185, 213, 0.14);
}

.payment-step-number {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(35, 207, 255, 0.45);
  border-radius: 50%;
  color: var(--electric);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
}

.payment-step h3 {
  margin: 2px 0 7px;
  color: var(--white);
  font-size: 0.93rem;
}

.payment-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.55;
}

.payment-help {
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.86rem;
}

.payment-help a {
  color: var(--electric);
  text-decoration: none;
}

@media (max-width: 800px) {
  .payment-page {
    width: min(100% - 32px, 1180px);
    padding-top: 120px;
  }

  .payment-layout {
    grid-template-columns: 1fr;
  }

  .payment-card,
  .payment-steps {
    padding: 26px;
  }

  .header-payment {
    padding: 0 12px;
    font-size: 0.69rem;
  }
}

.active-link {
  color: var(--electric) !important;
}

.gallery-page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 150px 0 100px;
}

.gallery-intro {
  max-width: 750px;
}

.gallery-intro h1 {
  margin: 16px 0 20px;
  color: var(--white);
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.gallery-intro h1 em {
  color: var(--electric);
  font-style: normal;
}

.gallery-intro > p:last-child {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 58px 0 28px;
}

.gallery-filter {
  padding: 11px 15px;
  border: 1px solid rgba(121, 185, 213, 0.2);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: 0.25s ease;
}

.gallery-filter:hover,
.gallery-filter.active {
  border-color: var(--electric);
  background: rgba(35, 207, 255, 0.08);
  color: var(--electric);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.gallery-item {
  overflow: hidden;
  border: 1px solid rgba(121, 185, 213, 0.18);
  background: rgba(8, 15, 25, 0.72);
  transition: 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  border-color: rgba(35, 207, 255, 0.48);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.gallery-item.hidden {
  display: none;
}

.gallery-image {
  display: flex;
  min-height: 310px;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(35, 207, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 207, 255, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #101f31, #07101a);
  background-size: 28px 28px, 28px 28px, auto;
}

.gallery-image::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(35, 207, 255, 0.42);
  transform: rotate(45deg);
  box-shadow: 0 0 34px rgba(35, 207, 255, 0.12);
}

.gallery-image span {
  position: relative;
  z-index: 1;
  color: var(--electric);
  font-family: "DM Mono", monospace;
  font-size: 1.1rem;
  font-weight: 700;
}

.gallery-image p {
  position: absolute;
  bottom: 19px;
  left: 20px;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.gallery-item-copy {
  padding: 22px;
}

.gallery-item-copy > p {
  margin: 0 0 8px;
  color: var(--electric);
  font-family: "DM Mono", monospace;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.gallery-item-copy h2 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 1.08rem;
  letter-spacing: -0.035em;
}

.gallery-item-copy span {
  color: var(--muted);
  font-size: 0.83rem;
}

.gallery-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 90px;
  padding: 40px;
  border: 1px solid rgba(35, 207, 255, 0.22);
  background: rgba(35, 207, 255, 0.045);
}

.gallery-cta h2 {
  margin: 13px 0 0;
  color: var(--white);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

@media (max-width: 800px) {
  .gallery-page {
    width: min(100% - 32px, 1180px);
    padding-top: 120px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-image {
    min-height: 250px;
  }

  .gallery-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 28px;
  }
}

.contact-page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 150px 0 100px;
}

.contact-intro {
  max-width: 730px;
  margin-bottom: 60px;
}

.contact-intro h1 {
  margin: 16px 0 20px;
  color: var(--white);
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.contact-intro h1 em {
  color: var(--electric);
  font-style: normal;
}

.contact-intro > p:last-child {
  max-width: 610px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.contact-details,
.contact-form {
  padding: 34px;
  border: 1px solid rgba(121, 185, 213, 0.18);
  background: rgba(8, 15, 25, 0.72);
}

.contact-details h2 {
  margin: 10px 0 28px;
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.contact-detail-list {
  display: grid;
}

.contact-detail {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid rgba(121, 185, 213, 0.14);
}

.contact-detail > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(35, 207, 255, 0.42);
  border-radius: 50%;
  color: var(--electric);
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
}

.contact-detail h3 {
  margin: 3px 0 7px;
  color: var(--white);
  font-size: 0.94rem;
}

.contact-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.contact-detail a {
  display: inline-block;
  margin-top: 10px;
  color: var(--electric);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form .eyebrow {
  margin: 0 0 4px;
}

.contact-form label {
  display: grid;
  gap: 9px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(121, 185, 213, 0.25);
  outline: none;
  background: rgba(255, 255, 255, 0.035);
  color: var(--white);
  font: inherit;
  transition: 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(35, 207, 255, 0.08);
}

.contact-form textarea {
  resize: vertical;
}

@media (max-width: 800px) {
  .contact-page {
    width: min(100% - 32px, 1180px);
    padding-top: 120px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-details,
  .contact-form {
    padding: 26px;
  }
}

.login-message {
  margin: 0;
  color: #ff9b9b;
  font-size: 0.82rem;
  line-height: 1.5;
}

.login-message[data-type="success"] {
  color: var(--electric);
}

.dashboard-body {
  min-height: 100vh;
}

.dashboard-header {
  display: flex;
  width: min(1360px, calc(100% - 48px));
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 26px 0;
  border-bottom: 1px solid rgba(121, 185, 213, 0.14);
}

.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dashboard-site-link,
.dashboard-signout,
.dashboard-text-button {
  border: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.dashboard-site-link:hover,
.dashboard-signout:hover,
.dashboard-text-button:hover {
  color: var(--electric);
}

.owner-dashboard {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0 100px;
}

.dashboard-welcome {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 42px;
}

.dashboard-welcome h1 {
  margin: 14px 0 16px;
  color: var(--white);
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
}

.dashboard-welcome h1 em {
  color: var(--electric);
  font-style: normal;
}

.dashboard-welcome > div > p:last-child {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-stat,
.dashboard-panel {
  border: 1px solid rgba(121, 185, 213, 0.18);
  background: rgba(8, 15, 25, 0.72);
}

.dashboard-stat {
  padding: 25px;
}

.dashboard-stat p {
  margin: 0;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-stat strong {
  display: block;
  margin: 16px 0 7px;
  color: var(--white);
  font-size: 2.5rem;
  letter-spacing: -0.07em;
}

.dashboard-stat span {
  color: var(--muted);
  font-size: 0.77rem;
}

.dashboard-panel {
  margin-top: 24px;
  padding: 30px;
}

.dashboard-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.dashboard-panel-heading h2 {
  margin: 9px 0 0;
  color: var(--white);
  font-size: 1.25rem;
  letter-spacing: -0.05em;
}

.dashboard-table-wrap {
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.dashboard-table th {
  padding: 0 15px 14px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-table td {
  padding: 17px 15px;
  border-top: 1px solid rgba(121, 185, 213, 0.12);
  color: var(--white);
  font-size: 0.84rem;
}

.dashboard-empty {
  color: var(--muted) !important;
  text-align: center;
}

.job-status {
  color: var(--electric);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-next {
  margin-top: 24px;
}

.dashboard-next-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 26px;
}

.dashboard-next-grid > div {
  padding: 22px;
  border: 1px solid rgba(121, 185, 213, 0.14);
  background: rgba(255, 255, 255, 0.02);
}

.dashboard-next-grid span {
  color: var(--electric);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
}

.dashboard-next-grid h3 {
  margin: 20px 0 9px;
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: -0.03em;
}

.dashboard-next-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.dashboard-modal {
  display: none;
  position: fixed;
  z-index: 20;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(1, 6, 12, 0.82);
  backdrop-filter: blur(9px);
}

.dashboard-modal.open {
  display: flex;
}

.dashboard-modal-card {
  position: relative;
  width: min(100%, 650px);
  max-height: min(90vh, 780px);
  overflow-y: auto;
  padding: 34px;
  border: 1px solid rgba(35, 207, 255, 0.28);
  background: #09121d;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.dashboard-modal-card h2 {
  margin: 10px 0 26px;
  color: var(--white);
  font-size: 1.4rem;
  letter-spacing: -0.05em;
}

.dashboard-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  cursor: pointer;
}

.dashboard-modal-close:hover {
  color: var(--electric);
}

.dashboard-form {
  display: grid;
  gap: 17px;
}

.dashboard-form label {
  display: grid;
  gap: 8px;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dashboard-form input,
.dashboard-form select,
.dashboard-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(121, 185, 213, 0.24);
  outline: 0;
  background: rgba(255, 255, 255, 0.035);
  color: var(--white);
  font: inherit;
}

.dashboard-form input:focus,
.dashboard-form select:focus,
.dashboard-form textarea:focus {
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(35, 207, 255, 0.08);
}

.dashboard-form textarea {
  resize: vertical;
}

.dashboard-form-message {
  min-height: 18px;
  margin: 0;
  color: #ff9b9b;
  font-size: 0.78rem;
}

.dashboard-form-message[data-type="success"] {
  color: var(--electric);
}

@media (max-width: 900px) {
  .dashboard-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-welcome {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-next-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .dashboard-header,
  .owner-dashboard {
    width: min(100% - 32px, 1360px);
  }

  .dashboard-header {
    gap: 16px;
  }

  .dashboard-header-actions {
    gap: 12px;
  }

  .dashboard-site-link {
    display: none;
  }

  .owner-dashboard {
    padding-top: 48px;
  }

  .dashboard-stat-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-panel,
  .dashboard-modal-card {
    padding: 22px;
  }

  .dashboard-table th,
  .dashboard-table td {
    padding-right: 11px;
    padding-left: 11px;
  }
}

.dashboard-add-customer {
  padding: 14px 19px;
  border: 1px solid rgba(35, 207, 255, 0.38);
  background: rgba(35, 207, 255, 0.06);
  color: var(--white);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: 0.25s ease;
}

.dashboard-add-customer:hover {
  border-color: var(--electric);
  background: rgba(35, 207, 255, 0.14);
  color: var(--electric);
  box-shadow: 0 0 22px rgba(35, 207, 255, 0.12);
}

.customer-profile-page {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0 100px;
}

.customer-profile-intro {
  margin-bottom: 38px;
}

.customer-profile-intro h1 {
  margin: 14px 0 16px;
  color: var(--white);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.customer-profile-intro h1 em {
  color: var(--electric);
  font-style: normal;
}

.customer-profile-intro > p:last-child {
  max-width: 630px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.customer-info-grid,
.customer-history-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.customer-history-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.customer-info-card {
  padding: 22px;
  border: 1px solid rgba(121, 185, 213, 0.18);
  background: rgba(8, 15, 25, 0.72);
}

.customer-info-card p {
  margin: 0 0 13px;
  color: var(--electric);
  font-family: "DM Mono", monospace;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.customer-info-card strong {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.customer-profile-page > .dashboard-panel {
  margin-top: 24px;
}

@media (max-width: 900px) {
  .customer-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .customer-history-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .customer-profile-page {
    width: min(100% - 32px, 1360px);
    padding-top: 48px;
  }

  .customer-info-grid {
    grid-template-columns: 1fr;
  }
}

.service-locations-panel {
  margin-top: 24px;
}

.service-locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-location-card {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(121, 185, 213, 0.16);
  background: rgba(255, 255, 255, 0.02);
}

.service-location-number {
  color: var(--electric);
  font-family: "DM Mono", monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.service-location-card h3 {
  margin: 17px 0 10px;
  color: var(--white);
  font-size: 1rem;
  letter-spacing: -0.035em;
}

.service-location-address {
  margin: 0;
  color: var(--white);
  font-size: 0.85rem;
  line-height: 1.6;
}

.service-location-contact,
.service-location-notes {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.service-location-notes {
  padding-top: 13px;
  border-top: 1px solid rgba(121, 185, 213, 0.12);
}

.service-location-empty {
  padding: 24px;
  border: 1px dashed rgba(121, 185, 213, 0.24);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .service-locations-grid {
    grid-template-columns: 1fr;
  }
}

.job-row {
  cursor: pointer;
  transition: background 0.2s ease;
}

.job-row:hover td {
  background: rgba(35, 207, 255, 0.06);
  color: var(--electric);
}

.job-profile-page {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0 100px;
}

.job-profile-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.job-profile-intro h1 {
  margin: 14px 0 16px;
  color: var(--white);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.job-profile-intro h1 em {
  color: var(--electric);
  font-style: normal;
}

.job-profile-intro > div > p:last-child {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.job-status-editor {
  display: grid;
  min-width: 230px;
  gap: 10px;
}

.job-status-editor label {
  display: grid;
  gap: 8px;
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.job-status-editor select {
  padding: 12px;
  border: 1px solid rgba(121, 185, 213, 0.24);
  background: rgba(8, 15, 25, 0.8);
  color: var(--white);
  font: inherit;
}

.job-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.customer-info-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.5;
}

.customer-info-card a {
  color: var(--white);
  text-decoration: none;
}

.customer-info-card a:hover {
  color: var(--electric);
}

.job-profile-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.job-profile-page > .dashboard-panel,
.job-profile-layout {
  margin-top: 24px;
}

.job-scope,
.job-assignment-empty {
  min-height: 125px;
  padding: 21px;
  border: 1px solid rgba(121, 185, 213, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.job-financial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.job-financial-grid > div {
  padding: 22px;
  border: 1px solid rgba(121, 185, 213, 0.14);
  background: rgba(255, 255, 255, 0.02);
}

.job-financial-grid span {
  color: var(--electric);
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
}

.job-financial-grid h3 {
  margin: 18px 0 8px;
  color: var(--white);
  font-size: 0.92rem;
}

.job-financial-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .job-profile-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .job-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .job-profile-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .job-profile-page {
    width: min(100% - 32px, 1360px);
    padding-top: 48px;
  }

  .job-info-grid,
  .job-financial-grid {
    grid-template-columns: 1fr;
  }

  .job-status-editor {
    width: 100%;
  }
}

.dashboard-form select,
.job-status-editor select {
  color-scheme: dark;
  background-color: #09121d;
  color: var(--white);
}

.dashboard-form select option,
.job-status-editor select option {
  background: #09121d;
  color: var(--white);
}

.job-financial-action {
  display: inline-block;
  margin-top: 18px;
  color: var(--electric);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.job-financial-action:hover {
  color: var(--white);
}

.estimate-builder-page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0 100px;
}

.estimate-builder-intro {
  margin-bottom: 38px;
}

.estimate-builder-intro h1 {
  margin: 14px 0 16px;
  color: var(--white);
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.estimate-builder-intro h1 em {
  color: var(--electric);
  font-style: normal;
}

.estimate-builder-intro > p:last-child {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.estimate-builder-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.estimate-builder-form {
  display: grid;
  gap: 24px;
}

.estimate-builder-form .dashboard-panel {
  margin: 0;
}

.estimate-builder-form label {
  display: grid;
  gap: 8px;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.estimate-builder-form input,
.estimate-builder-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(121, 185, 213, 0.24);
  outline: 0;
  background: rgba(255, 255, 255, 0.035);
  color: var(--white);
  font: inherit;
}

.estimate-builder-form input:focus,
.estimate-builder-form textarea:focus {
  border-color: var(--electric);
  box-shadow: 0 0 0 3px rgba(35, 207, 255, 0.08);
}

.estimate-builder-form textarea {
  resize: vertical;
}

.estimate-line-items-wrap {
  overflow-x: auto;
}

.estimate-line-items {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.estimate-line-items th {
  padding: 0 10px 14px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

.estimate-line-items td {
  padding: 12px 10px;
  border-top: 1px solid rgba(121, 185, 213, 0.12);
}

.estimate-line-items td:first-child {
  width: 46%;
}

.estimate-line-items input {
  min-width: 80px;
}

.line-total {
  color: var(--white);
  font-size: 0.86rem;
}

.remove-line-item {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  cursor: pointer;
}

.remove-line-item:hover {
  color: #ff9b9b;
}

.estimate-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 28px;
  border: 1px solid rgba(121, 185, 213, 0.18);
  background: rgba(8, 15, 25, 0.72);
}

.estimate-tax-field {
  width: min(100%, 200px);
}

.estimate-tax-field label {
  display: grid;
  gap: 8px;
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 700;
}

.estimate-tax-field input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(121, 185, 213, 0.24);
  background: rgba(255, 255, 255, 0.035);
  color: var(--white);
  font: inherit;
}

.estimate-totals {
  display: grid;
  width: min(100%, 330px);
  gap: 12px;
}

.estimate-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.84rem;
}

.estimate-totals strong {
  color: var(--white);
}

.estimate-totals .estimate-total {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(121, 185, 213, 0.18);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}

.estimate-totals .estimate-total strong {
  color: var(--electric);
  font-size: 1.22rem;
}

.estimate-builder-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 900px) {
  .estimate-builder-info {
    grid-template-columns: repeat(2, 1fr);
  }

  .estimate-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .estimate-tax-field,
  .estimate-totals {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .estimate-builder-page {
    width: min(100% - 32px, 1180px);
    padding-top: 48px;
  }

  .estimate-builder-info {
    grid-template-columns: 1fr;
  }

  .estimate-builder-actions {
    justify-content: stretch;
    flex-direction: column-reverse;
  }

  .estimate-builder-actions .button {
    text-align: center;
  }
}

.estimate-row {
  cursor: pointer;
  transition: background 0.2s ease;
}

.estimate-row:hover td {
  background: rgba(35, 207, 255, 0.06);
  color: var(--electric);
}

.estimate-detail-page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0 100px;
}

.estimate-detail-bottom {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  margin-top: 24px;
}

.estimate-detail-bottom .dashboard-panel {
  margin: 0;
}

.estimate-notes {
  min-height: 110px;
  padding: 20px;
  border: 1px solid rgba(121, 185, 213, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.estimate-total-card {
  display: grid;
  align-content: start;
  gap: 15px;
  padding: 28px;
  border: 1px solid rgba(35, 207, 255, 0.24);
  background: rgba(35, 207, 255, 0.05);
}

.estimate-total-card > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.estimate-total-card strong {
  color: var(--white);
}

.estimate-detail-final-total {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(121, 185, 213, 0.2);
  color: var(--white) !important;
  font-size: 1rem !important;
  font-weight: 700;
}

.estimate-detail-final-total strong {
  color: var(--electric);
  font-size: 1.28rem;
}

@media (max-width: 800px) {
  .estimate-detail-page {
    width: min(100% - 32px, 1180px);
    padding-top: 48px;
  }

  .estimate-detail-bottom {
    grid-template-columns: 1fr;
  }
}

.invoice-builder-page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0 100px;
}

.invoice-total-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 30px;
  border: 1px solid rgba(35, 207, 255, 0.26);
  background: rgba(35, 207, 255, 0.05);
}

.invoice-total-preview span {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
}

.invoice-total-preview strong {
  color: var(--electric);
  font-size: 1.7rem;
  letter-spacing: -0.06em;
}

@media (max-width: 600px) {
  .invoice-builder-page {
    width: min(100% - 32px, 1180px);
    padding-top: 48px;
  }
}

.invoice-row {
  cursor: pointer;
  transition: background 0.2s ease;
}

.invoice-row:hover td {
  background: rgba(35, 207, 255, 0.06);
  color: var(--electric);
}

.invoice-status-editor {
  display: grid;
  min-width: 230px;
  gap: 10px;
}

.invoice-status-editor label {
  display: grid;
  gap: 8px;
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.invoice-status-editor select,
.invoice-status-editor input {
  padding: 12px;
  border: 1px solid rgba(121, 185, 213, 0.24);
  background: #09121d;
  color: var(--white);
  font: inherit;
}

.invoice-balance-card {
  display: grid;
  align-content: start;
  gap: 15px;
  padding: 28px;
  border: 1px solid rgba(35, 207, 255, 0.24);
  background: rgba(35, 207, 255, 0.05);
}

.invoice-balance-card > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.invoice-balance-card strong {
  color: var(--white);
}

.invoice-balance-due {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(121, 185, 213, 0.2);
  color: var(--white) !important;
  font-size: 1rem !important;
  font-weight: 700;
}

.invoice-balance-due strong {
  color: var(--electric);
  font-size: 1.28rem;
}

.delete-estimate-button {
  padding: 7px 10px;
  border: 1px solid rgba(255, 125, 125, 0.34);
  background: transparent;
  color: #ff9b9b;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: 0.2s ease;
}

.delete-estimate-button:hover {
  border-color: #ff9b9b;
  background: rgba(255, 125, 125, 0.1);
  color: #ffffff;
}

.job-assignment-controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
}

.job-assignment-controls select {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(121, 185, 213, 0.24);
  background: #09121d;
  color: var(--white);
  font: inherit;
  color-scheme: dark;
}

.job-assignments-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.job-assignment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid rgba(121, 185, 213, 0.14);
  background: rgba(255, 255, 255, 0.02);
}

.job-assignment-card span {
  color: var(--electric);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.job-assignment-card h3 {
  margin: 8px 0 4px;
  color: var(--white);
  font-size: 0.9rem;
}

.job-assignment-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.77rem;
  text-transform: capitalize;
}

.remove-assignment-button {
  border: 0;
  background: transparent;
  color: #ff9b9b;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
}

.remove-assignment-button:hover {
  color: var(--white);
}

@media (max-width: 700px) {
  .job-assignment-controls {
    grid-template-columns: 1fr;
  }
}

.field-dashboard-page {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0 100px;
}

.field-dashboard-intro {
  max-width: 760px;
  margin-bottom: 38px;
}

.field-dashboard-intro h1 {
  margin: 14px 0 16px;
  color: var(--white);
  font-size: clamp(2.7rem, 5.5vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.075em;
}

.field-dashboard-intro h1 em {
  color: var(--electric);
  font-style: normal;
}

.field-dashboard-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.field-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.field-workspace {
  padding: 28px;
  border: 1px solid rgba(121, 185, 213, 0.18);
  background: rgba(8, 15, 25, 0.72);
}

.field-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.field-filter {
  padding: 11px 15px;
  border: 1px solid rgba(121, 185, 213, 0.2);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: 0.2s ease;
}

.field-filter:hover,
.field-filter.active {
  border-color: var(--electric);
  background: rgba(35, 207, 255, 0.08);
  color: var(--electric);
}

.field-jobs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field-job-card {
  padding: 24px;
  border: 1px solid rgba(121, 185, 213, 0.16);
  background: rgba(255, 255, 255, 0.02);
}

.field-job-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.field-job-card h2 {
  margin: 25px 0 8px;
  color: var(--white);
  font-size: 1.25rem;
  letter-spacing: -0.045em;
}

.field-job-type {
  margin: 0 0 24px;
  color: var(--electric);
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.field-job-detail {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(121, 185, 213, 0.12);
}

.field-job-detail span {
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.field-job-detail p {
  margin: 8px 0 0;
  color: var(--white);
  font-size: 0.84rem;
  line-height: 1.6;
}

.field-empty-state {
  padding: 42px 20px;
  border: 1px dashed rgba(121, 185, 213, 0.22);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 800px) {
  .field-dashboard-page {
    width: min(100% - 32px, 1280px);
    padding-top: 48px;
  }

  .field-stat-grid,
  .field-jobs-grid {
    grid-template-columns: 1fr;
  }

  .field-workspace {
    padding: 20px;
  }
}

.contractor-dashboard-page {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0 100px;
}

.contractor-notice {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  margin-bottom: 28px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 191, 105, 0.3);
  background: rgba(255, 191, 105, 0.05);
}

.contractor-notice span {
  color: #ffcc7a;
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.contractor-notice p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.contractor-opportunities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.contractor-opportunity-card {
  padding: 24px;
  border: 1px solid rgba(121, 185, 213, 0.16);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: 0.25s ease;
}

.contractor-opportunity-card:hover {
  border-color: rgba(35, 207, 255, 0.46);
  background: rgba(35, 207, 255, 0.04);
  transform: translateY(-3px);
}

.contractor-opportunity-card h2 {
  margin: 25px 0 8px;
  color: var(--white);
  font-size: 1.2rem;
  letter-spacing: -0.045em;
}

.contractor-opportunity-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--electric);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

@media (max-width: 950px) {
  .contractor-opportunities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .contractor-dashboard-page {
    width: min(100% - 32px, 1280px);
    padding-top: 48px;
  }

  .contractor-opportunities-grid {
    grid-template-columns: 1fr;
  }

  .contractor-notice {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.contractor-opportunity-page {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0 100px;
}

.contractor-opportunity-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.contractor-opportunity-layout .dashboard-panel {
  margin: 0;
}

.opportunity-scope {
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(121, 185, 213, 0.14);
  background: rgba(255, 255, 255, 0.02);
  color: var(--white);
  font-size: 0.9rem;
  line-height: 1.75;
  white-space: pre-wrap;
}

.contractor-disclaimer {
  border-color: rgba(255, 191, 105, 0.24);
  background: rgba(255, 191, 105, 0.04);
}

.contractor-disclaimer h2 {
  margin: 13px 0 16px;
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.contractor-disclaimer p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.contractor-bid-panel {
  margin-top: 24px;
}

.contractor-acknowledgment {
  display: grid !important;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 191, 105, 0.24);
  background: rgba(255, 191, 105, 0.04);
  color: var(--muted) !important;
  font-size: 0.84rem !important;
  font-weight: 400 !important;
  line-height: 1.6;
  letter-spacing: 0 !important;
}

.contractor-acknowledgment input {
  width: auto !important;
  margin-top: 3px;
}

.contractor-bid-submitted {
  padding: 32px;
  border: 1px solid rgba(35, 207, 255, 0.28);
  background: rgba(35, 207, 255, 0.05);
}

.contractor-bid-submitted span {
  color: var(--electric);
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.contractor-bid-submitted h3 {
  margin: 15px 0 8px;
  color: var(--white);
  font-size: 1.2rem;
}

.contractor-bid-submitted p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 800px) {
  .contractor-opportunity-page {
    width: min(100% - 32px, 1180px);
    padding-top: 48px;
  }

  .contractor-opportunity-layout {
    grid-template-columns: 1fr;
  }
}

.opportunity-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 2rem 0;
}

.opportunity-filter {
  border: 1px solid rgba(52, 225, 255, 0.2);
  background: rgba(8, 20, 38, 0.72);
  color: rgba(235, 248, 255, 0.72);
  padding: 0.7rem 1rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s ease;
}

.opportunity-filter:hover,
.opportunity-filter.active {
  border-color: #22e7ff;
  background: rgba(34, 231, 255, 0.12);
  color: #ffffff;
}

.opportunity-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.owner-opportunity-card {
  min-height: 295px;
  padding: 1.5rem;
  border: 1px solid rgba(109, 200, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(20, 46, 79, 0.74), rgba(5, 15, 30, 0.9));
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.owner-opportunity-card:hover,
.owner-opportunity-card:focus {
  outline: none;
  transform: translateY(-5px);
  border-color: rgba(34, 231, 255, 0.72);
  box-shadow: 0 18px 38px rgba(0, 190, 255, 0.1);
}

.owner-opportunity-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.opportunity-status {
  color: #6ceeff;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.status-accepted {
  color: #72f5ad;
}

.status-awarded_pending_acceptance {
  color: #ffd56c;
}

.status-under_review {
  color: #b4bfff;
}

.owner-opportunity-card h3 {
  margin: 0.7rem 0;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1.1;
}

.owner-opportunity-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(160, 220, 255, 0.12);
}

.owner-opportunity-details span {
  display: block;
  color: rgba(221, 242, 255, 0.45);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.owner-opportunity-details strong {
  display: block;
  margin-top: 0.35rem;
  color: #ffffff;
  font-size: 0.8rem;
}

.opportunity-review-link {
  display: inline-block;
  margin-top: 1.4rem;
  color: #62edff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.opportunity-review-link span {
  margin-left: 0.3rem;
}

@media (max-width: 900px) {
  .opportunity-board {
    grid-template-columns: 1fr;
  }
}

.site-header button.header-cta {
  appearance: none;
  border: 1px solid rgba(34, 231, 255, 0.7);
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.site-header button.header-cta:hover {
  background: #22e7ff;
  color: #06101f;
}

.dashboard-back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: #68edff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.dashboard-back-link:hover {
  color: #ffffff;
}

.opportunity-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 3rem;
  align-items: start;
  padding: 2.2rem;
  border: 1px solid rgba(100, 207, 255, 0.16);
  background: linear-gradient(145deg, rgba(18, 45, 78, 0.72), rgba(5, 15, 30, 0.9));
}

.opportunity-detail-hero h1 {
  margin: 0.7rem 0;
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
}

.opportunity-detail-location {
  color: #65ecff;
  font-weight: 700;
}

.opportunity-detail-scope {
  max-width: 760px;
  color: rgba(230, 245, 255, 0.72);
  line-height: 1.7;
}

.opportunity-detail-meta {
  display: grid;
  gap: 1.2rem;
}

.opportunity-detail-meta > div {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(180, 225, 255, 0.13);
}

.opportunity-detail-meta span:not(.opportunity-status) {
  display: block;
  color: rgba(221, 242, 255, 0.45);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.opportunity-detail-meta strong {
  display: block;
  margin-top: 0.35rem;
  color: #ffffff;
}

.owner-bids-list {
  display: grid;
  gap: 1rem;
}

.owner-bid-card {
  padding: 1.5rem;
  border: 1px solid rgba(111, 208, 255, 0.15);
  background: rgba(7, 21, 39, 0.78);
}

.owner-bid-card-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
}

.owner-bid-card h3 {
  margin: 0.35rem 0;
  color: #ffffff;
  font-size: 1.25rem;
}

.owner-bid-email {
  margin: 0;
  color: rgba(220, 241, 255, 0.5);
  font-size: 0.8rem;
}

.owner-bid-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid rgba(180, 225, 255, 0.12);
  border-bottom: 1px solid rgba(180, 225, 255, 0.12);
}

.owner-bid-details span,
.owner-bid-notes span {
  display: block;
  color: rgba(221, 242, 255, 0.45);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.owner-bid-details strong {
  display: block;
  margin-top: 0.4rem;
  color: #ffffff;
  font-size: 1rem;
}

.owner-bid-notes p {
  margin: 0.55rem 0 1.3rem;
  color: rgba(230, 245, 255, 0.72);
  line-height: 1.6;
}

.opportunity-updates {
  display: grid;
  gap: 0.8rem;
}

.opportunity-update-card {
  padding: 1rem 1.2rem;
  border-left: 2px solid #22e7ff;
  background: rgba(14, 35, 60, 0.6);
}

.opportunity-update-card p {
  margin: 0;
  color: #ffffff;
}

.opportunity-update-card span {
  display: block;
  margin-top: 0.45rem;
  color: rgba(220, 241, 255, 0.5);
  font-size: 0.72rem;
}

@media (max-width: 760px) {
  .opportunity-detail-hero,
  .owner-bid-details {
    grid-template-columns: 1fr;
  }

  .owner-bid-card-top {
    flex-direction: column;
  }
}

#submit-bid-button.bid-submitted {
  background: rgba(66, 237, 168, 0.14);
  border-color: #72f5ad;
  color: #72f5ad;
  cursor: default;
  box-shadow: none;
}

.field-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 2rem;
}

.field-filter-bar .contractor-filter {
  appearance: none;
  border: 1px solid rgba(97, 218, 255, 0.22);
  background: rgba(7, 22, 40, 0.7);
  color: rgba(229, 245, 255, 0.68);
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.2s ease;
}

.field-filter-bar .contractor-filter:hover {
  border-color: rgba(34, 231, 255, 0.75);
  background: rgba(34, 231, 255, 0.08);
  color: #ffffff;
}

.field-filter-bar .contractor-filter.active {
  border-color: #22e7ff;
  background: rgba(34, 231, 255, 0.14);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(34, 231, 255, 0.1);
}

@media (max-width: 600px) {
  .field-filter-bar .contractor-filter {
    flex: 1 1 100%;
  }
}

.owner-bid-board-page .dashboard-page {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 4.5rem 0 6rem;
}

.owner-bid-board-page .dashboard-hero {
  align-items: end;
  margin-bottom: 4rem;
}

.owner-bid-board-page .dashboard-section {
  margin-top: 3.5rem;
}

.owner-bid-board-page .dashboard-section-heading {
  align-items: end;
}

@media (max-width: 700px) {
  .owner-bid-board-page .dashboard-page {
    width: min(100% - 2rem, 1180px);
    padding-top: 2.5rem;
  }

  .owner-bid-board-page .dashboard-hero {
    margin-bottom: 2.5rem;
  }
}

/* Bid Board sizing — match the Owner Dashboard */
.owner-bid-board-page .opportunity-filter {
  padding: 0.9rem 1.25rem;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
}

.owner-bid-board-page .owner-opportunity-card {
  min-height: 325px;
  padding: 1.75rem;
}

.owner-bid-board-page .owner-opportunity-card .portal-label {
  font-size: 0.72rem;
}

.owner-bid-board-page .owner-opportunity-card h3 {
  font-size: 1.55rem;
  letter-spacing: 0.02em;
}

.owner-bid-board-page .owner-opportunity-card .portal-copy {
  font-size: 0.95rem;
}

.owner-bid-board-page .owner-opportunity-details span,
.owner-bid-board-page .opportunity-review-link {
  font-size: 0.7rem;
}

.owner-bid-board-page .owner-opportunity-details strong {
  font-size: 0.9rem;
}

.award-acceptance-card {
  margin-top: 2rem;
  padding: 1.75rem;
  border: 1px solid rgba(34, 231, 255, 0.25);
  background: linear-gradient(145deg, rgba(18, 53, 82, 0.72), rgba(6, 19, 36, 0.9));
}

.award-acceptance-card h2 {
  margin: 0.7rem 0;
  color: #ffffff;
  font-size: 2rem;
  line-height: 0.95;
}

.award-acceptance-card > p {
  max-width: 680px;
  color: rgba(229, 245, 255, 0.72);
  line-height: 1.65;
}

.contractor-acknowledgment {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin: 1.5rem 0;
  color: rgba(232, 246, 255, 0.82);
  line-height: 1.55;
}

.contractor-acknowledgment input {
  width: auto;
  margin-top: 0.25rem;
  accent-color: #22e7ff;
}

#contractor-bid-form[hidden],
#bid-submitted-message[hidden],
#award-acceptance-section[hidden] {
  display: none !important;
}

#bid-panel-heading[hidden] {
  display: none !important;
}

.contractor-opportunity-card.accepted-contractor-job {
  border-color: rgba(114, 245, 173, 0.65);
  background:
    linear-gradient(145deg, rgba(25, 92, 67, 0.5), rgba(6, 28, 31, 0.9));
  box-shadow: 0 0 28px rgba(114, 245, 173, 0.08);
}

.contractor-opportunity-card.accepted-contractor-job:hover {
  border-color: #72f5ad;
  box-shadow: 0 16px 36px rgba(114, 245, 173, 0.14);
}

.job-status.job-status-owned {
  color: #72f5ad;
}

.active-job-customer-card {
  border-color: rgba(34, 231, 255, 0.34);
}

.active-job-schedule-card {
  border-color: rgba(114, 245, 173, 0.42);
}

.active-job-schedule-card strong {
  color: #72f5ad;
}

#active-job-photos[hidden] {
  display: none !important;
}

.active-job-photos {
  width: min(980px, 100%);
  margin: 3rem auto 5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(34, 231, 255, 0.22);
  background:
    linear-gradient(145deg, rgba(12, 42, 67, 0.72), rgba(5, 17, 32, 0.94));
}

.active-job-photos-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
}

.active-job-photos-heading h2 {
  margin: 0.7rem 0 0;
  color: #ffffff;
  line-height: 0.95;
}

.active-job-photos-heading > p {
  max-width: 410px;
  margin: 0;
  color: rgba(229, 245, 255, 0.7);
  line-height: 1.65;
}

.photo-progress-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.photo-progress-card {
  padding: 1.25rem;
  border: 1px solid rgba(110, 213, 255, 0.17);
  background: rgba(7, 23, 42, 0.7);
}

.photo-progress-card span {
  display: block;
  color: rgba(223, 243, 255, 0.5);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.photo-progress-card strong {
  display: block;
  margin: 0.5rem 0;
  color: #72f5ad;
  font-size: 1.75rem;
}

.photo-progress-card p {
  margin: 0;
  color: rgba(229, 245, 255, 0.66);
  line-height: 1.55;
}

.photo-upload-form {
  display: grid;
  gap: 1.25rem;
}

@media (max-width: 700px) {
  .active-job-photos-heading,
  .photo-progress-grid {
    grid-template-columns: 1fr;
    display: grid;
  }
}

.photo-count-complete {
  color: #72f5ad !important;
  text-shadow: 0 0 18px rgba(114, 245, 173, 0.28);
}

.inspection-request-panel {
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(126, 212, 255, 0.16);
}

.inspection-request-panel h3 {
  margin: 0.6rem 0;
  color: #ffffff;
  font-size: 1.35rem;
}

.inspection-request-panel > p {
  max-width: 680px;
  color: rgba(229, 245, 255, 0.7);
  line-height: 1.6;
}

.inspection-request-panel label {
  display: block;
  margin: 1.5rem 0 1rem;
}

.inspection-request-panel textarea {
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(92, 207, 255, 0.24);
  border-radius: 0;
  outline: none;
  resize: vertical;
  background: rgba(5, 19, 36, 0.82);
  color: #ffffff;
  font: inherit;
  line-height: 1.55;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inspection-request-panel textarea::placeholder {
  color: rgba(220, 241, 255, 0.38);
}

.inspection-request-panel textarea:focus {
  border-color: #22e7ff;
  box-shadow: 0 0 0 3px rgba(34, 231, 255, 0.08);
}

#request-inspection-button {
  appearance: none;
  border: 1px solid rgba(34, 231, 255, 0.72);
  background: rgba(34, 231, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
}

#request-inspection-button:hover {
  border-color: #22e7ff;
  background: #22e7ff;
  color: #06101f;
}

#request-inspection-button:disabled {
  cursor: default;
  opacity: 0.6;
}

.inspection-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.inspection-card {
  min-height: 295px;
  padding: 1.6rem;
  border: 1px solid rgba(255, 213, 108, 0.27);
  background:
    linear-gradient(145deg, rgba(69, 53, 19, 0.45), rgba(7, 20, 36, 0.92));
  color: inherit;
  text-decoration: none;
  transition: 0.2s ease;
}

.inspection-card:hover {
  transform: translateY(-5px);
  border-color: #ffd56c;
  box-shadow: 0 18px 38px rgba(255, 213, 108, 0.1);
}

@media (max-width: 900px) {
  .inspection-board {
    grid-template-columns: 1fr;
  }
}

.inspection-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.inspection-photo-card {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(104, 228, 255, 0.18);
  background: rgba(6, 19, 35, 0.9);
  color: #68edff;
  text-decoration: none;
  transition: 0.2s ease;
}

.inspection-photo-card:hover {
  transform: translateY(-4px);
  border-color: #22e7ff;
}

.inspection-photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.8;
  object-fit: cover;
}

.inspection-photo-card span {
  display: block;
  padding: 0.8rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.inspection-decision-panel {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(255, 213, 108, 0.28);
  background: linear-gradient(145deg, rgba(70, 54, 18, 0.36), rgba(6, 19, 35, 0.94));
}

.inspection-decision-panel h2 {
  margin: 0.7rem 0;
  color: #ffffff;
  line-height: 0.95;
}

.inspection-decision-panel > p {
  color: rgba(230, 245, 255, 0.7);
  line-height: 1.6;
}

.inspection-decision-panel textarea {
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(92, 207, 255, 0.24);
  background: rgba(5, 19, 36, 0.82);
  color: #ffffff;
  font: inherit;
  resize: vertical;
}

.inspection-decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

@media (max-width: 800px) {
  .inspection-photo-grid {
    grid-template-columns: 1fr;
  }
}

#request-corrections-button {
  appearance: none;
  border: 1px solid rgba(255, 213, 108, 0.62);
  background: rgba(255, 213, 108, 0.08);
  color: #ffffff;
  cursor: pointer;
}

#request-corrections-button:hover {
  border-color: #ffd56c;
  background: #ffd56c;
  color: #171104;
}

#contractor-inspection-status[hidden] {
  display: none !important;
}

.contractor-inspection-status {
  width: min(980px, 100%);
  margin: 2rem auto;
  padding: 1.5rem;
  border-left: 3px solid #ffd56c;
  background: rgba(75, 56, 15, 0.22);
}

.contractor-inspection-status h2 {
  margin: 0.65rem 0;
  color: #ffffff;
}

.contractor-inspection-status > p {
  margin: 0;
  color: rgba(233, 246, 255, 0.78);
  line-height: 1.6;
}

.contractor-inspection-notes {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(255, 213, 108, 0.3);
  background: rgba(6, 19, 36, 0.62);
}

.contractor-inspection-notes span {
  color: #ffd56c;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.contractor-inspection-notes p {
  margin: 0.55rem 0 0;
  color: #ffffff;
  line-height: 1.6;
}

.contractor-inspection-status.inspection-pending {
  border-left-color: #22e7ff;
  background: rgba(13, 82, 105, 0.2);
}

.contractor-inspection-status.inspection-approved {
  border-left-color: #72f5ad;
  background: rgba(26, 96, 67, 0.22);
}

.contractor-inspection-status.inspection-approved .eyebrow,
.contractor-inspection-status.inspection-approved h2 {
  color: #72f5ad;
}

.payment-queue-list {
  display: grid;
  gap: 18px;
}

.payment-queue-card {
  padding: 24px;
  border: 1px solid rgba(70, 211, 255, 0.2);
  background: rgba(7, 16, 34, 0.72);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.payment-queue-card.payment-recorded {
  border-color: rgba(65, 224, 143, 0.45);
}

.payment-queue-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #95a5bd;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.payment-queue-card-top .job-status {
  color: #61deac;
}

.payment-queue-card h2 {
  margin: 20px 0;
  color: #ffffff;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.payment-queue-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.payment-queue-details div {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.payment-queue-details span {
  display: block;
  margin-bottom: 8px;
  color: #43d7ff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.payment-queue-details strong {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
}

.payment-queue-card > p {
  margin: 0;
  color: #a8b5c8;
  line-height: 1.6;
}

@media (max-width: 620px) {
  .payment-queue-details {
    grid-template-columns: 1fr;
  }

  .payment-queue-card-top {
    align-items: flex-start;
    flex-direction: column;
  }
}

.job-financial-summary-note {
  max-width: 380px;
  margin: 0;
  color: #a8b5c8;
  font-size: 0.9rem;
  line-height: 1.6;
}

.financial-margin-stat {
  border-color: rgba(63, 221, 174, 0.34);
  background: linear-gradient(
    135deg,
    rgba(33, 189, 138, 0.13),
    rgba(7, 16, 34, 0.74)
  );
}

.financial-margin-stat strong {
  color: #61deac;
}

.financial-margin-negative {
  color: #ff827d !important;
}

@media (max-width: 700px) {
  .job-financial-summary-note {
    margin-top: 14px;
  }
}

.job-expenses-panel {
  margin-top: 28px;
}

.job-expenses-panel .dashboard-form {
  margin: 24px 0 30px;
  padding: 22px;
  border: 1px solid rgba(70, 211, 255, 0.16);
  background: rgba(255, 255, 255, 0.025);
}

.dashboard-table-link {
  color: #43d7ff;
  font-weight: 700;
  text-decoration: none;
}

.dashboard-table-link:hover {
  color: #ffffff;
}

.form-field-help {
  display: block;
  margin-top: 8px;
  color: #8e9bb0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.job-expenses-panel input[type="file"] {
  padding: 12px;
  color: #a8b5c8;
  cursor: pointer;
}

.job-expenses-panel input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 12px;
  border: 1px solid rgba(67, 215, 255, 0.48);
  border-radius: 0;
  background: rgba(67, 215, 255, 0.1);
  color: #43d7ff;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.invoice-row {
  cursor: pointer;
  transition: background 160ms ease;
}

.invoice-row:hover {
  background: rgba(67, 215, 255, 0.07);
}

.invoice-row td:first-child {
  color: #43d7ff;
  font-weight: 700;
}

.field-job-updates-panel,
.field-job-activity-panel {
  margin-top: 28px;
}

.field-job-updates-list {
  display: grid;
  gap: 14px;
}

.field-job-update-card {
  padding: 18px;
  border: 1px solid rgba(70, 211, 255, 0.16);
  background: rgba(255, 255, 255, 0.025);
}

.field-job-update-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.field-job-update-card span {
  color: #43d7ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.field-job-update-card small {
  color: #8e9bb0;
}

.field-job-update-card p {
  margin: 14px 0 0;
  color: #e7edf7;
  line-height: 1.65;
}

@media (max-width: 620px) {
  .field-job-update-card > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

.owner-field-updates-panel {
  margin-top: 28px;
}

.field-job-update-card h3 {
  margin: 14px 0 0;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
}

.field-job-photos-panel {
  margin-top: 28px;
}

.field-job-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.field-job-photo-card {
  overflow: hidden;
  border: 1px solid rgba(70, 211, 255, 0.18);
  background: rgba(255, 255, 255, 0.025);
}

.field-job-photo-card a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.field-job-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.field-job-photo-card:hover img {
  transform: scale(1.04);
}

.field-job-photo-card div {
  padding: 13px;
}

.field-job-photo-card span {
  color: #43d7ff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.field-job-photo-card p {
  margin: 8px 0 0;
  color: #c1cad8;
  font-size: 0.85rem;
  line-height: 1.45;
}

@media (max-width: 800px) {
  .field-job-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .field-job-photo-grid {
    grid-template-columns: 1fr;
  }
}

.field-inspection-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.field-inspection-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid rgba(70, 211, 255, 0.2);
  background: rgba(7, 16, 34, 0.72);
}

.field-inspection-card h2 {
  margin: 18px 0 8px;
  color: #ffffff;
}

.field-inspection-card .button {
  width: 100%;
  margin-top: auto;
}

@media (max-width: 900px) {
  .field-inspection-list {
    grid-template-columns: 1fr;
  }
}

.sales-lead-form-panel {
  margin-bottom: 28px;
}

.sales-leads-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.sales-lead-card {
  padding: 22px;
  border: 1px solid rgba(70, 211, 255, 0.2);
  background: rgba(7, 16, 34, 0.72);
}

.sales-lead-card h2 {
  margin: 18px 0 8px;
  color: #ffffff;
  font-size: 1.25rem;
}

@media (max-width: 900px) {
  .sales-leads-grid {
    grid-template-columns: 1fr;
  }
}

.owner-sales-leads-list {
  display: grid;
  gap: 20px;
}

.owner-sales-lead-card {
  padding: 24px;
  border: 1px solid rgba(70, 211, 255, 0.2);
  background: rgba(7, 16, 34, 0.72);
}

.owner-sales-lead-card h2 {
  margin: 18px 0 8px;
  color: #ffffff;
}

.owner-sales-lead-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.owner-sales-lead-details div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
}

.owner-sales-lead-details span {
  display: block;
  margin-bottom: 7px;
  color: #43d7ff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.owner-sales-lead-details strong {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
}

.owner-sales-lead-card label {
  display: block;
  margin-top: 16px;
}

.owner-sales-lead-card .button {
  margin-top: 18px;
}

@media (max-width: 700px) {
  .owner-sales-lead-details {
    grid-template-columns: 1fr;
  }
}

.sales-owner-note {
  padding: 14px;
  border-left: 2px solid #43d7ff;
  background: rgba(67, 215, 255, 0.06);
}

.team-members-list {
  display: grid;
  gap: 18px;
}

.team-member-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 24px;
  padding: 24px;
  border: 1px solid rgba(70, 211, 255, 0.2);
  background: rgba(7, 16, 34, 0.72);
}

.team-member-card-info h2 {
  margin: 16px 0 6px;
  color: #ffffff;
  font-size: 1.2rem;
}

.team-member-card-info p {
  margin: 0;
  color: #9ca9bc;
}

.team-member-controls {
  display: grid;
  gap: 14px;
}

.team-member-controls .button {
  width: 100%;
}

.team-active-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dfe8f5;
}

.team-member-protected {
  align-self: center;
  color: #a8b5c8;
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .team-member-card {
    grid-template-columns: 1fr;
  }
}

.intake-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.intake-card {
  padding: 1.5rem;
  border: 1px solid rgba(72, 207, 255, 0.18);
  background: rgba(6, 17, 35, 0.76);
}

.intake-card h2 {
  margin: 0.8rem 0 0.35rem;
}

.intake-card label {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

@media (max-width: 760px) {
  .intake-grid {
    grid-template-columns: 1fr;
  }
}

.schedule-list {
  display: grid;
  gap: 1rem;
}

.schedule-job-card {
  display: block;
  padding: 1.4rem;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(72, 207, 255, 0.18);
  background: rgba(6, 17, 35, 0.76);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.schedule-job-card:hover {
  transform: translateY(-3px);
  border-color: rgba(72, 207, 255, 0.62);
}

.estimate-share-tools {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.estimate-share-tools input {
  width: 100%;
  min-width: 0;
}

.customer-estimate-page {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5rem 0;
}

.customer-estimate-hero {
  max-width: 720px;
  margin-bottom: 2rem;
}

.customer-estimate-hero h1 {
  margin: 0.8rem 0;
}

.customer-estimate-hero > p:last-child {
  max-width: 620px;
}

.customer-estimate-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.customer-approval-card,
.customer-estimate-error {
  max-width: 760px;
  margin: 1.5rem auto 0;
  padding: 2rem;
  border: 1px solid rgba(72, 207, 255, 0.2);
  background: rgba(6, 17, 35, 0.82);
}

.customer-approval-card form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.customer-estimate-approved {
  border-color: rgba(82, 219, 137, 0.52);
}

@media (max-width: 760px) {
  .customer-estimate-page {
    padding: 3rem 0;
  }

  .customer-estimate-bottom {
    grid-template-columns: 1fr;
  }
}

.customer-payment-status {
  max-width: 760px;
  margin: 1.5rem auto 0;
  padding: 2rem;
  border: 1px solid rgba(72, 207, 255, 0.2);
  background: rgba(6, 17, 35, 0.82);
}

.customer-payment-status.customer-estimate-approved {
  border-color: rgba(82, 219, 137, 0.52);
}

.mobile-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  gap: 5px;
  border: 1px solid rgba(72, 207, 255, 0.35);
  background: rgba(6, 17, 35, 0.72);
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  background: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
  }

  .mobile-menu-toggle {
    display: grid;
  }

  .nav-links,
  .header-actions {
    display: none;
  }

  .site-header.menu-open .nav-links,
  .site-header.menu-open .header-actions {
    display: flex;
    grid-column: 1 / -1;
    width: 100%;
  }

  .site-header.menu-open .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(72, 207, 255, 0.16);
  }

  .site-header.menu-open .nav-links a {
    padding: 0.85rem 0;
  }

  .site-header.menu-open .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    padding-top: 0.5rem;
  }

  .site-header.menu-open .header-actions > a,
  .site-header.menu-open .header-apply-menu,
  .site-header.menu-open .header-apply {
    width: 100%;
  }

  .site-header.menu-open .header-apply,
  .site-header.menu-open .header-cta {
    justify-content: center;
    text-align: center;
  }

  .site-header.menu-open .header-apply-dropdown {
    position: static;
    width: 100%;
    margin-top: 0.5rem;
  }

  .site-header.menu-open .header-apply-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
  }

  .site-header.menu-open .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

.mobile-team-login {
  display: none;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .mobile-team-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 0.8rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .site-header.menu-open .header-actions .header-cta {
    display: none;
  }

  .site-header.menu-open .header-apply-menu[open] .header-apply-dropdown {
    display: grid;
    position: static;
    width: 100%;
    margin-top: 0.55rem;
    border: 1px solid rgba(72, 207, 255, 0.24);
    background: rgba(6, 17, 35, 0.96);
  }
}

@media (max-width: 900px) {
  .site-header.menu-open .nav-links {
    gap: 0;
    padding: 0.65rem 1rem 0;
    background:
      linear-gradient(
        145deg,
        rgba(10, 31, 60, 0.98),
        rgba(4, 13, 28, 0.98)
      );
    border: 1px solid rgba(72, 207, 255, 0.32);
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
  }

  .site-header.menu-open .nav-links a {
    padding: 0.95rem 0.35rem;
    color: #f5fbff;
    border-bottom: 1px solid rgba(72, 207, 255, 0.12);
  }

  .site-header.menu-open .nav-links a:last-child {
    border-bottom: 0;
  }

  .site-header.menu-open .header-actions {
    gap: 0.75rem;
    padding: 0.85rem 1rem 1rem;
    background:
      linear-gradient(
        145deg,
        rgba(10, 31, 60, 0.98),
        rgba(4, 13, 28, 0.98)
      );
    border: 1px solid rgba(72, 207, 255, 0.32);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
  }

  .site-header.menu-open .header-apply,
  .site-header.menu-open .header-payment {
    min-height: 48px;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(72, 207, 255, 0.28);
    background: rgba(72, 207, 255, 0.08);
  }

  .site-header.menu-open .header-apply-menu summary {
    list-style: none;
    cursor: pointer;
  }

  .site-header.menu-open .header-apply-menu summary::-webkit-details-marker {
    display: none;
  }

  .site-header.menu-open .header-apply-menu[open] summary {
    border-color: rgba(72, 207, 255, 0.7);
    background: rgba(72, 207, 255, 0.16);
  }

  .site-header.menu-open .header-apply-menu[open] .header-apply-dropdown {
    overflow: hidden;
    margin-top: 0.55rem;
    border: 1px solid rgba(72, 207, 255, 0.24);
    border-radius: 10px;
    background: rgba(1, 8, 20, 0.88);
  }

  .site-header.menu-open .header-apply-dropdown a {
    padding: 0.9rem 1rem;
    color: #dff8ff;
    border-bottom: 1px solid rgba(72, 207, 255, 0.12);
  }

  .site-header.menu-open .header-apply-dropdown a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 900px) {
  .site-header.menu-open {
    row-gap: 0;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 72px;
    padding: 0 0.8rem;
    gap: 0.35rem;
  }

  .mobile-menu-toggle .menu-word {
    width: auto;
    height: auto;
    background: transparent;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    transform: none;
    opacity: 1;
  }

  .mobile-menu-toggle .menu-chevron {
    width: auto;
    height: auto;
    background: transparent;
    color: #44d8ff;
    font-size: 1.15rem;
    line-height: 1;
    transform: none;
    opacity: 1;
    transition: transform 0.2s ease;
  }

  .site-header.menu-open .mobile-menu-toggle .menu-word {
    transform: none;
    opacity: 1;
  }

  .site-header.menu-open .mobile-menu-toggle .menu-chevron {
    transform: rotate(180deg);
    opacity: 1;
  }

  .site-header.menu-open .nav-links {
    padding-bottom: 0;
  }

  .site-header.menu-open .header-actions {
    padding-top: 0.7rem;
  }
}

@media (max-width: 900px) {
  .mobile-menu-toggle {
    min-width: 64px;
    gap: 0;
  }

  .site-header.menu-open .mobile-menu-toggle .menu-word {
    transform: none;
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .site-header.menu-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(0, 4, 14, 0.62);
    backdrop-filter: blur(3px);
    pointer-events: none;
  }

  .site-header.menu-open {
    position: relative;
    z-index: 20;
  }

  .mobile-menu-toggle,
  .site-header.menu-open .mobile-menu-toggle,
  .mobile-menu-toggle .menu-word,
  .site-header.menu-open .mobile-menu-toggle .menu-word {
    transform: none !important;
    transition: none !important;
    opacity: 1 !important;
  }
}


/* Make every Owner Dashboard action match Add Customer */
.dashboard-actions .button,
.dashboard-actions .button-primary,
.dashboard-actions .button-secondary,
.dashboard-actions .dashboard-add-customer {
  color: #eefbff !important;
  background: rgba(5, 31, 52, 0.72) !important;
  border: 1px solid rgba(54, 214, 255, 0.6) !important;
  border-radius: 0 !important;
  box-shadow: 0 0 18px rgba(35, 202, 255, 0.18) !important;
  font-family: inherit !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-actions .button:hover,
.dashboard-actions .button-primary:hover,
.dashboard-actions .button-secondary:hover,
.dashboard-actions .dashboard-add-customer:hover {
  color: #ffffff !important;
  background: rgba(10, 79, 122, 0.82) !important;
  border-color: #66e6ff !important;
  box-shadow: 0 0 28px rgba(37, 214, 255, 0.42) !important;
}

/* Dashboard action help icons */
.dashboard-action-item {
  position: relative;
  display: flex;
  align-items: center;
}

.dashboard-action-item .button {
  flex: 1;
  padding-right: 3.4rem;
}

.dashboard-help {
  position: relative;
  z-index: 5;
  width: 28px;
  min-width: 28px;
  height: 28px;
  margin-left: -2.6rem;
  padding: 0;
  border: 1px solid rgba(110, 230, 255, 0.72);
  border-radius: 50%;
  color: #9aeeff;
  background: #061b36;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.dashboard-help:hover {
  color: #ffffff;
  background: #167fb2;
  border-color: #ffffff;
  box-shadow: 0 0 14px rgba(56, 221, 255, 0.55);
}

/* Restore normal Owner Dashboard action layout after removing help icons */
.dashboard-action-item {
  display: contents !important;
}

.dashboard-action-item .button {
  flex: initial !important;
  width: auto !important;
  padding-right: 1rem !important;
}

/* Owner Dashboard: centered action grid */
.dashboard-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  width: min(100%, 760px);
  margin: 2rem auto 0;
  gap: 0.8rem !important;
}

.dashboard-action-item {
  display: block !important;
  width: 100% !important;
}

.dashboard-action-item .button,
.dashboard-actions > .button {
  display: inline-flex;
  width: 100% !important;
  min-height: 48px;
  padding-right: 1rem !important;
}

/* Center the final button when there is an odd number of actions */
.dashboard-action-item:last-child {
  grid-column: 1 / -1;
  width: calc(50% - 0.4rem) !important;
  justify-self: center;
}

@media (max-width: 700px) {
  .dashboard-actions {
    grid-template-columns: 1fr !important;
    width: 100%;
  }

  .dashboard-action-item:last-child {
    grid-column: auto;
    width: 100% !important;
  }
}

/* Owner Dashboard operations dropdown */
.dashboard-actions.owner-actions-menu {
  display: block !important;
  width: auto !important;
  margin: 0 !important;
}

.owner-actions-dropdown-menu {
  position: relative;
}

.owner-actions-dropdown-menu summary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 1.2rem;
  border: 1px solid rgba(54, 214, 255, 0.65);
  color: #effcff;
  background: rgba(5, 31, 52, 0.78);
  box-shadow: 0 0 18px rgba(35, 202, 255, 0.2);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.owner-actions-dropdown-menu summary::-webkit-details-marker {
  display: none;
}

.owner-actions-dropdown-menu summary:hover,
.owner-actions-dropdown-menu[open] summary {
  background: rgba(10, 79, 122, 0.88);
  border-color: #66e6ff;
  box-shadow: 0 0 26px rgba(37, 214, 255, 0.4);
}

.owner-actions-dropdown {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  z-index: 30;
  display: grid;
  width: 300px;
  overflow: hidden;
  border: 1px solid rgba(54, 214, 255, 0.58);
  background: #071d38;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.56);
}

.owner-actions-dropdown a,
.owner-actions-dropdown button {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 0;
  border-bottom: 1px solid rgba(104, 197, 225, 0.17);
  color: #eefbff;
  background: transparent;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.owner-actions-dropdown a:last-child {
  border-bottom: 0;
}

.owner-actions-dropdown a:hover,
.owner-actions-dropdown button:hover {
  color: #ffffff;
  background: rgba(19, 114, 166, 0.56);
}

@media (max-width: 700px) {
  .dashboard-actions.owner-actions-menu {
    width: 100% !important;
  }

  .owner-actions-dropdown-menu,
  .owner-actions-dropdown-menu summary {
    width: 100%;
  }

  .owner-actions-dropdown {
    width: 100%;
  }
}

.records-filter {
  border: 1px solid rgba(54, 214, 255, 0.42);
  color: #b9d6ea;
  background: rgba(5, 25, 54, 0.62);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.records-filter:hover,
.records-filter.active {
  color: #ffffff;
  border-color: #65e2ff;
  background: rgba(16, 109, 161, 0.74);
  box-shadow: 0 0 18px rgba(36, 207, 255, 0.25);
}

.records-row {
  cursor: pointer;
}

.records-row:hover td {
  background: rgba(21, 120, 175, 0.14);
}

/* Two clean owner-dashboard dropdown menus */
.dashboard-actions.owner-dashboard-menu-group {
  display: flex !important;
  width: auto !important;
  margin: 0 !important;
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 700px) {
  .dashboard-actions.owner-dashboard-menu-group {
    width: 100% !important;
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-actions.owner-dashboard-menu-group .owner-actions-dropdown-menu,
  .dashboard-actions.owner-dashboard-menu-group summary {
    width: 100%;
  }
}

.dashboard-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-left: auto;
}