/* Feedback & Review Widget for Alkemya Preview */
.alk-feedback-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  background: #1B214B;
  color: #FFFFFF;
  border: 1.5px solid #5869EB;
  border-radius: 999px;
  padding: 12px 20px;
  font-family: 'Ambit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(27, 33, 75, 0.35);
  transition: all 0.25s ease;
}
.alk-feedback-btn:hover {
  background: #5869EB;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(88, 105, 235, 0.45);
}
.alk-feedback-count {
  background: #E4FC53;
  color: #1B214B;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
}
.alk-feedback-panel {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  max-height: 520px;
  background: #FFFFFF;
  color: #1B214B;
  border: 1px solid rgba(27, 33, 75, 0.12);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(27, 33, 75, 0.25);
  z-index: 999998;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: 'Ambit', sans-serif;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.alk-feedback-panel.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.alk-panel-header {
  padding: 16px 20px;
  background: #1B214B;
  color: #FFFFFF;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.alk-panel-title {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alk-panel-close {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.7;
}
.alk-panel-close:hover { opacity: 1; }
.alk-panel-actions {
  padding: 14px 18px;
  background: #EEF4F5;
  border-bottom: 1px solid rgba(27, 33, 75, 0.08);
}
.alk-pin-mode-btn {
  width: 100%;
  padding: 10px 16px;
  background: #5869EB;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.alk-pin-mode-btn:hover {
  background: #1B214B;
}
.alk-pin-mode-btn.active {
  background: #E4FC53;
  color: #1B214B;
  animation: pulsePin 1.5s infinite;
}
@keyframes pulsePin {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}
.alk-comments-list {
  padding: 12px 18px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.alk-comment-card {
  background: #FAFCFD;
  border: 1px solid rgba(27, 33, 75, 0.08);
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.4;
}
.alk-comment-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(27, 33, 75, 0.6);
  margin-bottom: 6px;
}
.alk-comment-author {
  font-weight: 700;
  color: #5869EB;
}
.alk-comment-text {
  color: #1B214B;
  word-break: break-word;
}
.alk-comment-target {
  margin-top: 6px;
  font-size: 10px;
  color: rgba(27, 33, 75, 0.45);
  font-family: monospace;
}

/* Pin Popover Modal */
.alk-popover {
  position: fixed;
  z-index: 1000000;
  background: #FFFFFF;
  border: 1.5px solid #5869EB;
  border-radius: 16px;
  padding: 16px;
  width: 320px;
  box-shadow: 0 20px 60px rgba(27, 33, 75, 0.35);
  font-family: 'Ambit', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.alk-popover h4 {
  margin: 0;
  font-size: 14px;
  color: #1B214B;
}
.alk-popover input, .alk-popover textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(27, 33, 75, 0.2);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  box-sizing: border-box;
}
.alk-popover textarea {
  resize: vertical;
  min-height: 70px;
}
.alk-popover-btns {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.alk-popover-btns button {
  padding: 8px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.alk-btn-cancel {
  background: #EEF4F5;
  border: none;
  color: #1B214B;
}
.alk-btn-save {
  background: #5869EB;
  border: none;
  color: #FFFFFF;
}

/* Highlight hover when pin mode active */
.alk-hover-inspect {
  outline: 2px dashed #5869EB !important;
  outline-offset: 2px;
  cursor: crosshair !important;
}

/* Visual pins on page */
.alk-marker-pin {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #5869EB;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(88, 105, 235, 0.5);
  z-index: 999990;
  cursor: pointer;
}
