/* ==========================================================================
   InvestGame - Floating Support Button & Topic Picker Modal
   ========================================================================== */

.ig-support-fab {
  position: fixed !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 9998 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: #000000 !important;
  color: #ffffff !important;
  border: 2px solid #000000 !important;
  border-right: none !important;
  border-radius: 12px 0 0 12px !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  box-shadow: -3px 3px 0px rgba(0, 0, 0, 0.4) !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}

.ig-support-fab:hover {
  background-color: #18181b !important;
  transform: translateY(-50%) translateX(-4px) !important;
  box-shadow: -5px 5px 0px rgba(0, 0, 0, 0.5) !important;
  border-radius: 12px 0 0 12px !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.ig-support-fab:active {
  transform: translateY(-50%) translateX(-2px) !important;
  box-shadow: -2px 2px 0px rgba(0, 0, 0, 0.4) !important;
  border-radius: 12px 0 0 12px !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.ig-support-fab:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

.ig-support-fab-icon {
  font-size: 1.25rem;
}

/* Floating Support Popup Modal */
.ig-support-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.ig-support-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ig-support-modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  border-radius: 20px;
  box-shadow: 6px 6px 0px #000000;
  padding: 1.75rem 1.75rem 1.5rem;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.ig-support-modal.is-open .ig-support-modal-card {
  transform: scale(1);
}

.ig-support-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 2px solid #000000;
  background: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 2px 2px 0px #000000;
  transition: transform 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

.ig-support-modal-close:hover {
  background: #000000;
  color: #ffffff;
  transform: translate(-1px, -1px);
}

.ig-support-modal-header {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-right: 2rem;
}

.ig-support-modal-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 2px 2px 0px #71717a;
}

.ig-support-modal-header h3 {
  margin: 0 0 0.25rem 0;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #000000;
}

.ig-support-modal-header p {
  margin: 0;
  font-size: 0.85rem;
  color: #52525b;
  line-height: 1.4;
}

.ig-support-topic-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  max-height: 330px;
  overflow-y: auto;
  margin-bottom: 1.1rem;
  padding-right: 0.25rem;
}

.ig-support-topic-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #fafafa;
  border: 1.5px solid #000000;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: #000000;
  text-align: left;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.ig-support-topic-item:hover {
  background: #ffffff;
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0px #000000;
}

.ig-support-topic-item-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.ig-support-topic-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #f4f4f5;
  border: 1px solid #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #000000;
  flex-shrink: 0;
}

.ig-support-topic-arrow {
  font-size: 0.78rem;
  color: #71717a;
  transition: transform 0.12s ease, color 0.12s ease;
}

.ig-support-topic-item:hover .ig-support-topic-arrow {
  color: #000000;
  transform: translateX(2px);
}

.ig-support-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1.5px solid #e4e4e7;
  font-size: 0.78rem;
  color: #71717a;
  font-weight: 600;
}

.ig-support-direct-link {
  color: #000000;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 480px) {
  .ig-support-fab {
    width: 38px !important;
    height: 42px !important;
    border-radius: 10px 0 0 10px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
  .ig-support-modal-card {
    padding: 1.25rem;
  }
}
