* {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  color: #0066a4;
}

:root {
  --ness-blue: #0066a4;
  --ness-blue-dark: #004f82;
  --ness-green: #97b822;
  --ness-surface: rgba(255, 255, 255, 0.70);
  --ness-surface-strong: rgba(255, 255, 255, 0.84);
  --ness-border: rgba(255, 255, 255, 0.46);
  --ness-shadow: 0 24px 80px rgba(8, 33, 54, 0.14);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  background:
    radial-gradient(circle at top left, rgba(151, 184, 34, 0.20), transparent 18%),
    radial-gradient(circle at top right, rgba(0, 102, 164, 0.16), transparent 24%),
    linear-gradient(180deg, #eef6fb 0%, #f6fbff 35%, #ffffff 100%);
  min-height: 100vh;
}

a {
  text-decoration: none;
}

.card,
.form-control,
.form-select,
.btn {
  border-radius: 20px;
}

.card {
  background: var(--ness-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--ness-border);
  box-shadow: var(--ness-shadow);
}

.form-control,
.form-select {
  min-height: 54px;
  border: 1px solid rgba(0, 102, 164, 0.14);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

textarea.form-control {
  min-height: 120px;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(0, 102, 164, 0.42);
  box-shadow: 0 0 0 0.25rem rgba(0, 102, 164, 0.10);
}

.nl-app-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 12px 34px rgba(8, 33, 54, 0.06);
}

.nl-app-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.nl-app-header-logo {
  width: 112px;
  height: auto;
  display: block;
}

section {
  min-height: 100vh;
  padding: 2.25rem 1.25rem;
}

#auth {
  background:
    radial-gradient(circle at top left, rgba(151, 184, 34, 0.18), transparent 24%),
    linear-gradient(135deg, #edf6fb 0%, #f8fbfd 48%, #ffffff 100%);
}

#admin {
  background:
    radial-gradient(circle at top right, rgba(0, 102, 164, 0.08), transparent 22%),
    linear-gradient(180deg, #f7fafc 0%, #ffffff 100%);
}

#hero,
#customer,
#electricity-bill,
#estimate,
#pvgis {
  display: flex;
  align-items: center;
}

.nl-glass-panel {
  background: var(--ness-surface);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow: var(--ness-shadow);
}

.nl-auth-shell {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 102, 164, 0.10) !important;
}

.nl-auth-hero {
  height: 100%;
  padding: 3rem 2.5rem;
  background:
    radial-gradient(circle at top right, rgba(151, 184, 34, 0.34), transparent 26%),
    linear-gradient(165deg, #0066a4 0%, #0b7bbf 50%, #005489 100%);
  color: #fff;
}

.nl-auth-hero * {
  color: inherit;
}

.nl-auth-logo {
  width: 148px;
  height: auto;
  display: block;
  margin-bottom: 1.75rem;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 0.75rem 0.9rem;
}

.nl-auth-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.82;
  margin-bottom: 0.9rem;
}

.nl-auth-hero h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 1rem;
}

.nl-auth-hero p {
  font-size: 1rem;
  line-height: 1.7;
  max-width: 460px;
  opacity: 0.92;
  margin-bottom: 1.5rem;
}

.nl-auth-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nl-auth-points li {
  position: relative;
  padding-left: 1.45rem;
  margin-bottom: 0.8rem;
  font-size: 0.98rem;
}

.nl-auth-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #97b822;
  box-shadow: 0 0 0 6px rgba(151, 184, 34, 0.18);
}

.nl-auth-form-wrap {
  height: 100%;
  padding: 3rem 2.5rem;
  background: rgba(255, 255, 255, 0.88);
}

.nl-auth-form-wrap h2 {
  color: #0066a4;
}

.nl-auth-footer-note {
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: #5f7483;
  line-height: 1.6;
}

.nl-admin-summary-card {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 40px rgba(0, 102, 164, 0.08);
}

.nl-admin-summary-value {
  font-size: 2rem;
  line-height: 1;
  color: #0066a4;
}

.nl-admin-list {
  display: grid;
  gap: 0.85rem;
}

.nl-admin-item {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 22px;
  padding: 1rem 1.05rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(245, 251, 255, 0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.nl-admin-item-title {
  font-weight: 700;
  color: #0066a4;
}

.nl-admin-item-meta {
  font-size: 0.88rem;
  color: #607788;
  line-height: 1.55;
}

.nl-admin-item-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.nl-admin-shell {
  padding: 1.5rem 1.6rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 42px rgba(0, 102, 164, 0.08);
}

.nl-admin-eyebrow {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4f7d98;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.nl-admin-toolbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nl-admin-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(0, 102, 164, 0.12);
  color: var(--ness-blue);
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 102, 164, 0.06);
}

.nl-admin-chip:hover {
  color: var(--ness-blue-dark);
  border-color: rgba(0, 102, 164, 0.22);
}

.nl-admin-card {
  border-radius: 28px;
}

.nl-header-admin-btn {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(0, 102, 164, 0.14);
}

.nl-header-history-btn,
.nl-header-logout-btn {
  background: rgba(255, 255, 255, 0.68);
}

.nl-profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.45rem 0.7rem 0.45rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 102, 164, 0.12);
  background: rgba(255,255,255,0.72);
  color: var(--ness-blue);
}

.nl-profile-trigger::after {
  margin-left: 0.35rem;
}

.nl-profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0066a4 0%, #0d7cbf 100%);
  color: #fff;
  font-weight: 700;
  overflow: hidden;
  flex: 0 0 auto;
}

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

.nl-profile-avatar-large {
  width: 84px;
  height: 84px;
  font-size: 1.4rem;
  cursor: pointer;
}

.nl-profile-menu {
  min-width: 220px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  box-shadow: var(--ness-shadow);
}

.nl-hero-shell {
  position: relative;
}

.nl-hero-card,
.nl-hero-side-panel {
  min-height: 100%;
  border-radius: 32px;
}

.nl-hero-card {
  position: relative;
  overflow: hidden;
  padding: 3rem;
  background:
    radial-gradient(circle at top right, rgba(151, 184, 34, 0.24), transparent 22%),
    radial-gradient(circle at 0% 100%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(0, 102, 164, 0.96) 0%, rgba(13, 124, 191, 0.92) 52%, rgba(0, 93, 148, 0.95) 100%);
  box-shadow: 0 34px 90px rgba(0, 71, 114, 0.24);
}

.nl-hero-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -36% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.24), rgba(255,255,255,0));
  pointer-events: none;
}

.nl-hero-card * {
  color: #fff;
}

.nl-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1.3rem;
}

.nl-hero-title {
  font-size: clamp(1.9rem, 3vw, 3.45rem);
  line-height: 1.08;
  font-weight: 800;
  max-width: 620px;
  margin-bottom: 1.15rem;
}

.nl-hero-copy {
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 690px;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
}

.nl-hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.nl-hero-actions .btn {
  min-height: 56px;
  padding-inline: 1.35rem !important;
  border-width: 1px;
  font-weight: 700;
  box-shadow: 0 18px 36px rgba(6, 52, 82, 0.18);
}

.nl-hero-pack-cta.btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255,255,255,0.14);
}

.nl-hero-pack-cta.btn-outline-light:hover {
  color: var(--ness-blue-dark);
  background: rgba(255,255,255,0.94);
}

.nl-hero-admin-cta.btn-outline-primary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255,255,255,0.16);
}

.nl-hero-admin-cta.btn-outline-primary:hover {
  color: var(--ness-blue-dark);
  background: rgba(255,255,255,0.94);
}

.nl-hero-pills {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nl-hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
  font-weight: 500;
}

.nl-hero-side-panel {
  padding: 1.6rem;
}

.nl-hero-side-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

.nl-hero-side-logo {
  width: 108px;
  border-radius: 18px;
  background: rgba(255,255,255,0.9);
  padding: 0.5rem 0.75rem;
}

.nl-hero-side-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #5b7a8e;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.nl-hero-side-grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.nl-hero-side-stat,
.nl-hero-admin-stat {
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255,255,255,0.56);
}

.nl-hero-side-stat span,
.nl-hero-admin-stat span {
  display: block;
  font-size: 0.78rem;
  color: #5b7a8e;
  margin-bottom: 0.35rem;
}

.nl-hero-side-stat strong,
.nl-hero-admin-stat strong {
  color: var(--ness-blue-dark);
  font-size: 1.02rem;
}

.nl-hero-admin-panel {
  margin-bottom: 1rem;
}

.nl-hero-admin-head h3 {
  color: var(--ness-blue-dark);
}

.nl-hero-admin-head p {
  color: #607788;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.nl-hero-admin-stat strong {
  font-size: 1.7rem;
  line-height: 1;
}

.nl-hero-checklist {
  display: grid;
  gap: 0.75rem;
}

.nl-hero-check-item {
  position: relative;
  padding-left: 1.45rem;
  font-weight: 500;
  color: #35596d;
}

.nl-hero-check-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ness-green);
  box-shadow: 0 0 0 5px rgba(151, 184, 34, 0.14);
}

.nl-hero-history-preview {
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 102, 164, 0.10);
}

.nl-hero-history-list {
  display: grid;
  gap: 0.75rem;
}

.nl-hero-history-item {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.nl-hero-history-item * {
  color: var(--ness-blue);
}

.nl-hero-history-item-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.nl-hero-history-item-meta {
  font-size: 0.88rem;
  color: #607788;
}

.nl-config-mode-banner {
  border-radius: 24px;
}

.nl-history-shell {
  padding: 1.5rem 1.6rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 16px 42px rgba(0, 102, 164, 0.08);
}

.nl-history-list {
  display: grid;
  gap: 1rem;
}

.nl-history-item {
  padding: 1.2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255,255,255,0.56);
  box-shadow: var(--ness-shadow);
}

.nl-history-item-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ness-blue-dark);
}

.nl-history-item-meta {
  display: grid;
  gap: 0.25rem;
  color: #607788;
  font-size: 0.92rem;
}

.nl-history-card-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.nl-history-thumbnail {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: linear-gradient(145deg, rgba(0, 102, 164, 0.92), rgba(20, 140, 194, 0.84));
  color: #fff;
  font-weight: 800;
  font-size: 1.35rem;
  box-shadow: 0 18px 34px rgba(0, 102, 164, 0.18);
}

.nl-history-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.nl-history-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nl-history-badge.status-draft {
  background: rgba(255, 193, 7, 0.16);
  color: #8a6200;
}

.nl-history-badge.status-final {
  background: rgba(25, 135, 84, 0.14);
  color: #146c43;
}

.nl-history-badge.mode-badge {
  background: rgba(0, 102, 164, 0.10);
  color: var(--ness-blue-dark);
}

.nl-history-key-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.nl-history-key {
  padding: 0.85rem 0.9rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.5);
}

.nl-history-key span {
  display: block;
  font-size: 0.78rem;
  color: #607788;
  margin-bottom: 0.25rem;
}

.nl-history-key strong {
  color: var(--ness-blue-dark);
}

.nl-estimate-toolbar-card {
  border-radius: 24px;
}

.nl-map-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.nl-map-style-switcher {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nl-map-style-card {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.8rem;
  border-radius: 18px;
  border: 1px solid rgba(0, 102, 164, 0.14);
  background: rgba(255,255,255,0.8);
  color: var(--ness-blue);
  min-height: 52px;
}

.nl-map-style-card.is-active {
  border-color: rgba(0, 102, 164, 0.4);
  box-shadow: 0 10px 24px rgba(0, 102, 164, 0.12);
}

.nl-map-style-thumb {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: block;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.nl-map-style-thumb-road {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.85) 0 30%, transparent 30%),
    linear-gradient(25deg, #cedaa7 0 44%, #e9e1d3 44% 100%);
}

.nl-map-style-thumb-satellite {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.15), transparent 55%),
    linear-gradient(45deg, #1f3e2a 0%, #4f6e33 40%, #7b5f3d 75%, #456c56 100%);
}

.nl-map-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2600 !important;
  margin: 0 !important;
  padding: 1rem !important;
  background: rgba(9, 26, 38, 0.72);
}

.nl-map-fullscreen #customer-map {
  height: calc(100vh - 160px);
}

.nl-file-input-xl {
  min-height: 54px;
  padding: 0;
  display: flex;
  align-items: center;
}

.nl-file-input-xl::file-selector-button {
  height: 100%;
  min-height: 54px;
  padding: 0 1rem;
  margin-right: 1rem;
  border: 0;
  border-right: 1px solid rgba(0, 102, 164, 0.16);
  background: rgba(0, 102, 164, 0.08);
  color: var(--ness-blue);
  font-weight: 600;
}

.primary-btn {
  background: linear-gradient(135deg, #0066a4 0%, #0b7fc4 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(0, 102, 164, 0.22);
}

.primary-btn:hover,
.primary-btn:focus {
  color: #fff;
  background: linear-gradient(135deg, #00598f 0%, #0a74b3 100%);
  border-color: transparent;
}

.btn-batteria.btn-selected {
  background-color: #0066a4 !important;
  color: #fff !important;
}

.btn-warning {
  background-color: #c97a00;
  border-color: #c97a00;
  color: #fff;
}

.btn-warning:hover,
.btn-warning:focus {
  background-color: #a96500;
  border-color: #a96500;
  color: #fff;
}

.text-warning {
  color: #8a5a00 !important;
}

/* ========================
   STEPPER
   ======================== */
.nl-stepper {
  display: flex;
  align-items: center;
}
.nl-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}
.nl-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #dee2e6;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}
.nl-step-label {
  font-size: 0.7rem;
  color: #6c757d;
  white-space: nowrap;
  transition: color 0.2s;
}
.nl-step.active .nl-step-circle {
  background-color: #0066a4;
  color: #fff;
}
.nl-step.active .nl-step-label {
  color: #0066a4;
  font-weight: 600;
}
.nl-step.completed .nl-step-circle {
  background-color: #198754;
  color: #fff;
}
.nl-step.completed .nl-step-label {
  color: #198754;
}
.nl-step-line {
  flex: 1;
  height: 2px;
  background-color: #dee2e6;
  margin-bottom: 18px;
  min-width: 24px;
  transition: background-color 0.2s;
}
.nl-step-line.completed {
  background-color: #198754;
}

/* ========================
   FORM UX
   ======================== */
.form-label.req::after {
  content: " *";
  color: #dc3545;
}
.section-nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  align-items: center;
}
.required-note {
  font-size: 0.78rem;
  color: #6c757d;
  margin-top: 0.5rem;
}

.card-upload-bolletta {
  border: 2px dashed #0066a4;
}

.badge-optional {
  font-size: 0.65rem;
}

.upload-hint {
  font-size: 0.85rem;
}

#card-grafico-accumulo {
  display: none;
}

#pvgis-error {
  display: none;
}

#container-potenza-prelievo {
  display: none;
}

#multi-bolletta-container {
  display: none;
}

#btn-usa-dati-parziali {
  display: none;
}

#manual-address-fields,
#map-container {
  display: none;
}

#map-container {
  position: relative;
}

#customer-map {
  height: 340px;
  border-radius: 16px;
  overflow: hidden;
}

.nl-suggestions {
  position: absolute;
  top: calc(100% - 8px);
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 260px;
  overflow-y: auto;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.nl-suggestions:empty {
  display: none;
}

.nl-suggestions-static {
  position: static;
  top: auto;
  left: auto;
  right: auto;
  box-shadow: none;
}

#map-search-results:not(:empty) {
  border: 1px solid #dee2e6;
  border-radius: 12px;
}

.leaflet-control-layers {
  display: none !important;
}

.nl-upload-progress {
  border: 1px solid #d8e6f2;
  border-radius: 12px;
  background: #f8fbfe;
  padding: 12px 14px;
}

.nl-upload-progress .progress {
  height: 10px;
  border-radius: 999px;
  background: #e9eef3;
}

.nl-upload-progress .progress-bar {
  background-color: #0066a4;
}

.nl-batch-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(7, 26, 39, 0.45);
  backdrop-filter: blur(3px);
  z-index: 2000;
}

.nl-batch-overlay.is-visible {
  display: flex;
}

.nl-batch-modal {
  width: min(100%, 620px);
  background: linear-gradient(180deg, #ffffff 0%, #f4f9fd 100%);
  border: 1px solid rgba(0, 102, 164, 0.15);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 28, 48, 0.22);
  padding: 1.5rem;
}

.nl-batch-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.nl-batch-eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4f7d98;
}

.nl-batch-header h4 {
  color: #003b61;
}

.nl-batch-header p {
  color: #5f7483;
}

.nl-batch-spinner {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: radial-gradient(circle at top left, #58a9dc, #0066a4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 0 0 auto;
}

.nl-batch-spinner span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: nl-batch-bounce 1.2s infinite ease-in-out;
}

.nl-batch-spinner span:nth-child(2) {
  animation-delay: 0.15s;
}

.nl-batch-spinner span:nth-child(3) {
  animation-delay: 0.3s;
}

.nl-batch-progress {
  padding: 1rem;
  border-radius: 18px;
  background: #edf6fc;
  margin-bottom: 1rem;
}

.nl-batch-progress .progress {
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 102, 164, 0.12);
}

.nl-batch-progress .progress-bar {
  background: linear-gradient(90deg, #0066a4 0%, #1e88d0 100%);
}

.nl-batch-steps {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.nl-batch-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: #f8fbfe;
  border: 1px solid #d7e8f4;
  color: #587080;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nl-batch-step-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #9fc7df;
  background: #fff;
  flex: 0 0 auto;
}

.nl-batch-step.is-active {
  background: #eaf5fc;
  border-color: #7db6d9;
  box-shadow: 0 10px 24px rgba(0, 102, 164, 0.12);
  transform: translateY(-1px);
  color: #003b61;
}

.nl-batch-step.is-active .nl-batch-step-icon {
  border-color: #0066a4;
  background: #0066a4;
  box-shadow: 0 0 0 6px rgba(0, 102, 164, 0.14);
}

.nl-batch-step.is-completed .nl-batch-step-icon {
  border-color: #198754;
  background: #198754;
  box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.12);
}

.nl-batch-footer {
  display: grid;
  gap: 0.55rem;
}

.nl-batch-summary {
  font-weight: 600;
  color: #003b61;
}

.nl-batch-meta {
  color: #5f7483;
  font-size: 0.95rem;
}

@keyframes nl-batch-bounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@media (max-width: 576px) {
  section {
    padding-inline: 0.9rem;
  }

  .nl-batch-modal {
    padding: 1.1rem;
    border-radius: 20px;
  }

  .nl-batch-header {
    align-items: flex-start;
  }

  .nl-batch-progress,
  .nl-batch-step {
    padding: 0.8rem;
  }
}

@media (max-width: 991px) {
  .nl-app-header-inner {
    align-items: flex-start;
  }

  .nl-hero-card {
    padding: 2rem;
  }

  .nl-hero-title {
    font-size: clamp(2rem, 9vw, 3rem);
  }
}

@media (max-width: 767px) {
  .nl-auth-hero,
  .nl-auth-form-wrap {
    padding: 2rem 1.4rem;
  }

  .nl-hero-actions,
  .nl-hero-pills,
  .nl-admin-toolbar,
  .nl-map-toolbar,
  .nl-map-style-switcher {
    flex-direction: column;
  }

  .nl-hero-actions .btn,
  .nl-admin-toolbar a,
  .nl-map-style-card,
  #btn-map-fullscreen {
    width: 100%;
    justify-content: center;
  }

  .nl-hero-card,
  .nl-hero-side-panel,
  .nl-admin-card,
  .nl-admin-shell {
    border-radius: 24px;
  }
}
