/* ============================================================
   Pro ASIC Miner Repair LLC — popup.css
   ============================================================ */

/* ============================================================
   21. POPUP MODAL (center)
   ============================================================ */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}
.popup-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.popup-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.94);
  width: min(580px, calc(100vw - 2rem));
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s ease, opacity 0.32s ease;
}
.popup-modal.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  line-height: 1;
  transition: color var(--transition), background var(--transition);
}
.popup-close:hover {
  color: var(--text-dark);
  background: var(--gray-bg);
}

.popup-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: var(--blue-wash);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.75rem;
}

.popup-modal h3 {
  font-size: 1.05rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  padding-right: 1.5rem;
}
.popup-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.popup-points {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}
.popup-points li {
  font-size: 0.82rem;
  color: var(--text-body);
  padding-left: 1.1rem;
  position: relative;
}
.popup-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
}

.popup-ctas {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}


@media (max-width: 768px) {
  /* Overlay */
  .popup-overlay {
    background: rgba(3, 10, 22, 0.62) !important;
    backdrop-filter: blur(7px) !important;
    -webkit-backdrop-filter: blur(7px) !important;
  }

  /* Modal size & position */
  .popup-modal {
    top: 48% !important;
    bottom: auto !important;
    left: 50% !important;
    right: auto !important;
    width: calc(100% - 48px) !important;
    max-width: 320px !important;
    max-height: 62dvh !important;
    transform: translate(-50%, -48%) scale(0.94) !important;
    border-radius: 14px !important;
    padding: 0.85rem !important;
    overflow-y: auto !important;
    background: linear-gradient(180deg, rgba(13,32,56,0.93) 0%, rgba(8,20,36,0.91) 100%) !important;
  }
  .popup-modal.show {
    transform: translate(-50%, -50%) scale(1) !important;
  }

  /* Hide non-essential blocks */
  .popup-req-panel,
  .popup-threshold-note,
  .popup-cta-support,
  .popup-disclaimer {
    display: none !important;
  }

  /* Compressed typography */
  .popup-tag {
    font-size: 0.56rem !important;
    padding: 0.14rem 0.45rem !important;
    margin-bottom: 0.45rem !important;
  }

  .popup-modal h3 {
    font-size: 0.92rem !important;
    line-height: 1.18 !important;
    margin-bottom: 0.35rem !important;
    padding-right: 1.5rem !important;
  }

  .popup-sub {
    font-size: 0.72rem !important;
    line-height: 1.38 !important;
    margin-bottom: 0.55rem !important;
  }

  .popup-points {
    gap: 0.18rem !important;
    margin-bottom: 0.75rem !important;
  }

  .popup-points li {
    font-size: 0.7rem !important;
    line-height: 1.28 !important;
  }

  .popup-ctas {
    margin-top: 0.55rem !important;
  }

  .popup-cta-primary {
    min-height: 40px !important;
    font-size: 0.76rem !important;
  }

  .popup-close {
    top: 0.75rem !important;
    right: 0.75rem !important;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .popup-modal {
    width: calc(100% - 32px) !important;
    max-width: 300px !important;
  }
}


/* ============================================================
   22. FLOATING CONTACT BUTTONS
   ============================================================ */
.floating-btns {
  position: fixed;
  right: 1.25rem;
  bottom: 6rem;
  top: auto;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  z-index: 9990;
  opacity: 1;
  pointer-events: auto;
}

body.popup-open .floating-btns {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .floating-btns { display: none !important; }
}

.fab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-sans);
  text-decoration: none;
  color: #ffffff !important;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: visible;
}
.fab:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Hover tooltip bubble */
.fab-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  background: #ffffff;
  color: #0a1628;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.4rem 0.7rem;
  border-radius: 5px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18), 0 1px 4px rgba(0,0,0,0.1);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 9999;
}
.fab-tooltip::before {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-style: solid;
  border-width: 5px 0 5px 5px;
  border-color: transparent transparent transparent rgba(0,0,0,0.1);
}
.fab-tooltip::after {
  content: '';
  position: absolute;
  left: calc(100% - 1px);
  top: 50%;
  transform: translateY(-50%);
  border-style: solid;
  border-width: 4px 0 4px 4px;
  border-color: transparent transparent transparent #ffffff;
}
.fab:hover .fab-tooltip,
.fab:focus-visible .fab-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.fab--primary {
  background: var(--blue);
  color: var(--white);
}
.fab--primary:hover { background: var(--blue-dk); color: var(--white); }

.fab--secondary {
  background: var(--navy);
  color: var(--white);
}
.fab--secondary:hover { background: var(--navy-3); color: var(--white); }

.fab-icon { font-size: 1rem; flex-shrink: 0; }
.fab-label { line-height: 1.2; }

/* desktop-only compact mode at narrow widths */
@media (max-width: 900px) and (min-width: 769px) {
  .fab-label { display: none; }
  .fab {
    width: 48px;
    height: 48px;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
  }
  .fab-icon { font-size: 1.2rem; }
}



/* ============================================================
   29. MOBILE STICKY CTA BAR (bottom, mobile only)
   ============================================================ */
.mobile-cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9000;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  background: #0b1f3a;
  border-top: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .mobile-cta-bar { display: grid !important; }
  body.popup-open .mobile-cta-bar { display: none !important; }
}

@media (min-width: 769px) {
  .mobile-cta-bar { display: none !important; }
}

.mcta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 58px;
  padding: 0.75rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: filter var(--transition);
}
.mcta-btn:hover { filter: brightness(1.1); }
.mcta-call {
  background: var(--green);
  color: #ffffff;
}
.mcta-request {
  background: #1565c0;
  color: #ffffff;
}
.mcta-whatsapp {
  background: #22c55e;
  color: #ffffff;
}
.mcta-whatsapp:hover,
.mcta-whatsapp:active { background: #16a34a; }
.mcta-bookcall,
.mcta-email {
  background: #0b1f3a;
  color: #ffffff;
  border-left: 1px solid rgba(255,255,255,0.1);
}
.mcta-bookcall:hover,
.mcta-bookcall:active,
.mcta-email:hover,
.mcta-email:active { background: #102844; }


/* ============================================================
   30. POPUP DISCLAIMER
   ============================================================ */
.popup-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
  line-height: 1.6;
  text-align: center;
}


/* ============================================================
   37. FLOATING BUTTON COLORS (phone / whatsapp / telegram)
   ============================================================ */
.fab--schedule {
  background: var(--blue);
  color: var(--white);
}
.fab--schedule:hover {
  background: var(--blue-dk);
  color: var(--white);
}

.fab--dispatch {
  background: #0b1f3a;
  color: #ffffff !important;
  border: 1px solid rgba(96,165,250,0.45);
}
.fab--dispatch:hover {
  background: #1565c0;
  color: #ffffff !important;
  border-color: rgba(96,165,250,0.7);
}

.fab--email {
  background: var(--navy-2);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.15);
}
.fab--email:hover {
  background: var(--navy-3);
  color: var(--white);
}

/* Scroll-to-top — compact circle, secondary tone */
.fab--scroll-top {
  background: var(--navy-2);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.12);
  width: 48px;
  height: 48px;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  align-self: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.fab--scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.fab--scroll-top:hover {
  background: #1a2e4a;
  color: var(--white);
  box-shadow: 0 0 16px rgba(33,150,243,0.22), var(--shadow-lg);
}

/* keep phone color class in case used elsewhere */
.fab--phone {
  background: var(--green);
  color: var(--white);
}
.fab--phone:hover {
  background: #15803d;
  color: var(--white);
}

.fab--whatsapp {
  background: #25d366;
  color: var(--white);
}
.fab--whatsapp:hover {
  background: #1da851;
  color: var(--white);
}

.fab--telegram {
  background: #0088cc;
  color: var(--white);
}
.fab--telegram:hover {
  background: #006fa0;
  color: var(--white);
}


/* ============================================================
   61. POPUP — MIN REQUIREMENTS ROW
   ============================================================ */
.popup-min-req {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  background: rgba(33,150,243,0.07);
  border: 1px solid rgba(33,150,243,0.15);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.65);
}
.pmr-label { font-weight: 700; color: rgba(255,255,255,0.5); letter-spacing: 0.04em; font-size: 0.68rem; }
.pmr-sep { color: rgba(255,255,255,0.2); }


/* ============================================================
   71. POPUP MODAL — ENTERPRISE DARK REDESIGN
   ============================================================ */
.popup-overlay {
  background: rgba(3, 10, 22, 0.58) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.popup-modal {
  background: linear-gradient(180deg, rgba(13,32,56,0.92) 0%, rgba(8,20,36,0.90) 100%) !important;
  border: 1px solid rgba(100,181,246,0.22) !important;
  border-radius: 4px !important;
  box-shadow:
    0 0 0 1px rgba(33,150,243,0.08) inset,
    0 24px 80px rgba(0,0,0,0.42) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  padding: 1.5rem !important;
  max-height: 82vh !important;
}

.popup-close {
  top: 14px !important;
  right: 14px !important;
  width: 26px !important;
  height: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  font-size: 0 !important;
  color: rgba(255,255,255,0.72) !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: 3px !important;
  transition: color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}
.popup-close:hover {
  color: #ffffff !important;
  background: rgba(255,255,255,0.12) !important;
  border-color: rgba(33,150,243,0.3) !important;
  box-shadow: 0 0 7px rgba(33,150,243,0.14) !important;
}

.popup-tag {
  background: rgba(33,150,243,0.1) !important;
  color: rgba(144,202,249,0.75) !important;
  border: 1px solid rgba(33,150,243,0.22) !important;
  border-radius: 2px !important;
  font-size: 0.58rem !important;
  font-weight: 700 !important;
  font-family: 'Courier New', monospace !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  padding: 0.18rem 0.55rem !important;
}

.popup-modal h3 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: -0.01em !important;
  margin-bottom: 0.45rem !important;
  padding-right: 2rem !important;
}

.popup-sub {
  font-size: 0.76rem !important;
  color: rgba(255,255,255,0.72) !important;
  line-height: 1.55 !important;
  margin-bottom: 0.9rem !important;
}

.popup-points {
  gap: 0.26rem !important;
  margin-bottom: 0.95rem !important;
  padding: 0 !important;
  list-style: none !important;
}
.popup-points li {
  font-size: 0.76rem !important;
  color: rgba(255,255,255,0.78) !important;
  padding-left: 1.05rem !important;
}
.popup-points li::before {
  color: rgba(33,150,243,0.9) !important;
  font-size: 0.7rem !important;
}

/* requirements panel */
.popup-req-panel {
  background: rgba(7,22,39,0.62);
  border: 1px solid rgba(100,181,246,0.18);
  border-radius: 3px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 1rem;
}
.prp-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(100,181,246,0.9);
  margin-bottom: 0.38rem;
  font-family: 'Courier New', monospace;
}
.prp-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}
.prp-list li {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.72);
  padding-left: 0.8rem;
  position: relative;
}
.prp-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: rgba(33,150,243,0.5);
  font-weight: 700;
}

.popup-threshold-note {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.74);
  line-height: 1.55;
  margin-bottom: 0.9rem;
  padding: 0.5rem 0.75rem;
  background: rgba(7,22,39,0.42);
  border-left: 3px solid rgba(33,150,243,0.72);
  border-radius: 0 3px 3px 0;
}

.popup-ctas {
  flex-direction: column !important;
  gap: 0.5rem !important;
  align-items: stretch !important;
}

.popup-modal .btn-outline-dark {
  color: rgba(255,255,255,0.78) !important;
  border-color: rgba(255,255,255,0.22) !important;
  background: rgba(255,255,255,0.04) !important;
}
.popup-modal .btn-outline-dark:hover {
  background: rgba(255,255,255,0.1) !important;
  color: #ffffff !important;
  border-color: rgba(33,150,243,0.3) !important;
  transform: none !important;
}

.popup-cta-primary {
  width: 100% !important;
  text-align: center !important;
  justify-content: center !important;
}

.popup-cta-support {
  font-size: 0.71rem;
  color: rgba(255,255,255,0.60);
  text-align: center;
  line-height: 1.45;
  padding: 0.1rem 0;
}

.popup-support-link {
  color: rgba(144,202,249,0.72);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.18s ease;
  white-space: nowrap;
}
.popup-support-link:hover { color: rgba(144,202,249,0.82); }

.popup-disclaimer {
  color: rgba(255,255,255,0.48) !important;
  font-size: 0.67rem !important;
  margin-top: 0.8rem !important;
}
