/* NEXVIA TECHNOLOGIES — BACKGROUND-MATCHED METALLIC SLATE DIRECT MAIL MODAL */
.nexvia-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nexvia-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* BACKGROUND-MATCHED SLATE METALLIC CARD */
.nexvia-contact-box,
.nexvia-white-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, #d8dde5 0%, #ccd2db 50%, #a9b2bf 100%) !important;
  color: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  border-radius: 20px;
  box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
  padding: 32px 28px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.nexvia-modal-overlay.active .nexvia-contact-box,
.nexvia-modal-overlay.active .nexvia-white-box {
  transform: scale(1) translateY(0);
}

.nexvia-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.65);
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
  line-height: 1;
}

.nexvia-modal-close:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
}

.nexvia-mail-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.nexvia-contact-box h2,
.nexvia-white-box h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a !important;
  letter-spacing: -0.02em;
}

.nexvia-contact-box p.subtitle,
.nexvia-white-box p.subtitle {
  margin: 0 0 22px;
  font-size: 13.5px;
  color: #334155 !important;
  line-height: 1.5;
}

.nexvia-contact-box p.subtitle strong,
.nexvia-white-box p.subtitle strong {
  color: #0f172a;
}

/* EMAIL HIGHLIGHT ROW */
.nexvia-email-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  margin-bottom: 18px;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.nexvia-email-text {
  font-family: 'Martian Mono', monospace, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nexvia-copy-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.nexvia-copy-btn:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}

.nexvia-copy-btn.copied {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* PRIMARY ACTION */
.nexvia-direct-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: #0f172a;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 20px -2px rgba(15, 23, 42, 0.35);
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.nexvia-direct-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

/* WEBMAIL BUTTONS ROW */
.nexvia-webmail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.nexvia-webmail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.55);
  color: #1e293b !important;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.nexvia-webmail-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: #ffffff;
  color: #0f172a !important;
}

.nexvia-box-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #475569;
}

.nexvia-close-link {
  color: #475569;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}

.nexvia-close-link:hover {
  color: #0f172a;
}
