/**
 * Nanban Landing — "Super" polish layer (additive, isolated)
 * Testimonials, E-Sevai services strip, floating contact dock,
 * animated counters and hero entrance — all scoped to #loginScreen.
 */

/* ── Animated count-up number ── */
#loginScreen .nb-countup {
  font-variant-numeric: tabular-nums;
}

/* ── Floating Call + WhatsApp dock ── */
#loginScreen .nb-float-dock {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

#loginScreen .nb-float-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.45);
  transition: width 0.28s cubic-bezier(0.34, 1.4, 0.5, 1), transform 0.15s ease, box-shadow 0.2s ease;
  overflow: hidden;
  white-space: nowrap;
  padding: 0;
  justify-content: center;
}

#loginScreen .nb-float-btn .nb-float-ico {
  flex: 0 0 56px;
  text-align: center;
  line-height: 56px;
}

#loginScreen .nb-float-btn .nb-float-txt {
  opacity: 0;
  max-width: 0;
  font-size: 14px;
  font-weight: 800;
  transition: opacity 0.2s ease, max-width 0.28s ease, padding 0.28s ease;
}

#loginScreen .nb-float-btn:hover {
  width: 188px;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -8px rgba(15, 23, 42, 0.55);
  justify-content: flex-start;
}

#loginScreen .nb-float-btn:hover .nb-float-txt {
  opacity: 1;
  max-width: 140px;
  padding-right: 18px;
}

#loginScreen .nb-float-btn--wa {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

#loginScreen .nb-float-btn--call {
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
}

#loginScreen .nb-float-btn--wa {
  animation: nb-float-pulse 2.4s ease-in-out infinite;
}

@keyframes nb-float-pulse {
  0%,
  100% {
    box-shadow: 0 12px 28px -8px rgba(22, 163, 74, 0.5), 0 0 0 0 rgba(34, 197, 94, 0.35);
  }
  50% {
    box-shadow: 0 12px 28px -8px rgba(22, 163, 74, 0.5), 0 0 0 12px rgba(34, 197, 94, 0);
  }
}

/* ── Testimonials section ── */
#loginScreen .nb-tm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 26px;
}

#loginScreen .nb-tm-card {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 22px;
  padding: 24px 22px 20px;
  box-shadow: 0 18px 40px -26px rgba(15, 23, 42, 0.35);
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#loginScreen .nb-tm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 50px -24px rgba(15, 118, 110, 0.4);
}

#loginScreen .nb-tm-quote-mark {
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 56px;
  line-height: 1;
  color: rgba(13, 148, 136, 0.14);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 900;
}

#loginScreen .nb-tm-stars {
  color: #f59e0b;
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

#loginScreen .nb-tm-text {
  font-size: 14px;
  line-height: 1.65;
  color: #1f2937;
  font-weight: 500;
  margin: 0 0 18px;
}

#loginScreen .nb-tm-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

#loginScreen .nb-tm-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 17px;
  color: #fff;
  background: linear-gradient(135deg, #0d9488, #0f766e);
  flex-shrink: 0;
}

#loginScreen .nb-tm-meta strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
  font-weight: 800;
}

#loginScreen .nb-tm-meta span {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

#loginScreen .nb-tm-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  color: #0f766e;
  background: #ccfbf1;
  border-radius: 999px;
  padding: 4px 9px;
}

/* ── E-Sevai services strip ── */
#loginScreen .nb-esevai-band {
  background: linear-gradient(135deg, #042f2e 0%, #064e3b 55%, #065f46 100%);
}

#loginScreen .nb-esevai-band .nb-section-kicker {
  color: #5eead4;
}

#loginScreen .nb-esevai-band .nb-section-title,
#loginScreen .nb-esevai-band .nb-section-lead {
  color: #ecfdf5;
}

#loginScreen .nb-esevai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 26px;
}

#loginScreen .nb-esevai-chip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ecfdf5;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

#loginScreen .nb-esevai-chip:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(94, 234, 212, 0.5);
}

#loginScreen .nb-esevai-chip__ico {
  font-size: 26px;
  line-height: 1;
}

#loginScreen .nb-esevai-chip__name {
  font-size: 14px;
  font-weight: 800;
}

#loginScreen .nb-esevai-chip__sub {
  font-size: 11px;
  color: rgba(209, 250, 229, 0.75);
  font-weight: 600;
}

#loginScreen .nb-esevai-cta {
  margin-top: 26px;
  text-align: center;
}

#loginScreen .nb-esevai-cta button {
  border: none;
  border-radius: 14px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  color: #042f2e;
  background: linear-gradient(135deg, #5eead4, #2dd4bf);
  box-shadow: 0 14px 30px -12px rgba(45, 212, 191, 0.6);
  transition: transform 0.15s ease, filter 0.15s ease;
}

#loginScreen .nb-esevai-cta button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

@media (max-width: 600px) {
  #loginScreen .nb-float-dock {
    right: 12px;
    bottom: 14px;
  }
  #loginScreen .nb-float-btn {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
  #loginScreen .nb-float-btn .nb-float-ico {
    flex-basis: 50px;
    line-height: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #loginScreen .nb-float-btn--wa {
    animation: none;
  }
}
