/* ── Shared language + currency picker (modal) ─────────────────────────
   Included by every page in apps/coming-soon/. Works alongside each
   page's own inline <style> block — this only styles the modal itself
   and the small dynamic label spans inside the topbar/footer buttons. */

.hhc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, .55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1000;
}

.hhc-modal-overlay.open { display: flex; }

.hhc-modal {
  position: relative;
  width: 100%;
  max-width: 22rem;
  max-height: 80vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}

.hhc-modal-close {
  position: absolute;
  top: .875rem;
  inset-inline-end: .875rem;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: .5rem;
  color: #6b7280;
  transition: background .15s ease, color .15s ease;
}

.hhc-modal-close:hover { background: #f3f4f6; color: #111827; }

.hhc-modal h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
  padding-inline-end: 1.75rem;
}

.hhc-modal-list {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.hhc-modal-option {
  display: flex;
  align-items: center;
  gap: .625rem;
  width: 100%;
  padding: .625rem .75rem;
  border-radius: .625rem;
  font-family: inherit;
  font-size: .875rem;
  color: #374151;
  text-align: start;
  transition: background .15s ease;
  cursor: pointer;
}

.hhc-modal-option:hover { background: #f9fafb; }

.hhc-modal-option.active {
  background: #ecfdf5;
  color: #115e59;
  font-weight: 600;
}

.hhc-modal-option .opt-flag { font-size: 1.125rem; line-height: 1; flex-shrink: 0; }
.hhc-modal-option .opt-symbol { margin-inline-start: auto; color: #9ca3af; font-weight: 600; flex-shrink: 0; }
.hhc-modal-option.active .opt-symbol { color: #115e59; }

.hhc-modal-option .opt-cur-name { display: flex; flex-direction: column; align-items: flex-start; gap: .125rem; }
.hhc-modal-option .opt-rate { font-size: .6875rem; font-weight: 400; color: #9ca3af; }
.hhc-modal-option.active .opt-rate { color: #0f766e; }

/* Prevent background scroll while a modal is open */
body.hhc-modal-active { overflow: hidden; }
