/* ── Feedback Widget ──────────────────────────────────────────────── */
#gf-feedback-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  font-family: inherit;
}

/* Toggle button */
#gf-fb-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}
#gf-fb-btn:hover,
#gf-fb-btn.active {
  background: rgba(30, 30, 30, 0.98);
  border-color: rgba(212, 255, 0, 0.4);
  color: #fff;
}

/* Panel */
#gf-fb-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 320px;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: none;       /* hidden by default — JS adds .open */
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
#gf-fb-panel.open {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: all;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}

.gf-fb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.gf-fb-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.gf-fb-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}
.gf-fb-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

#gf-fb-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Stars */
.gf-fb-stars {
  margin-bottom: 2px;
}
.gf-star-row {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.gf-star {
  background: none;
  border: none;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.1s, transform 0.1s;
  line-height: 1;
}
.gf-star.hover,
.gf-star.active {
  color: #d4ff00;
}
.gf-star:hover { transform: scale(1.15); }

/* Labels & textareas */
.gf-fb-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
  display: block;
  margin-bottom: -4px;
}
.gf-fb-ta {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  padding: 9px 11px;
  resize: vertical;
  min-height: 58px;
  outline: none;
  transition: border-color 0.15s;
}
.gf-fb-ta::placeholder { color: rgba(255, 255, 255, 0.2); }
.gf-fb-ta:focus { border-color: rgba(212, 255, 0, 0.45); }

/* Submit */
.gf-fb-submit {
  width: 100%;
  padding: 10px;
  background: #d4ff00;
  color: #0a0a0a;
  font-weight: 700;
  font-size: 13px;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 2px;
}
.gf-fb-submit:hover { opacity: 0.87; }
.gf-fb-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.gf-fb-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.2);
  text-align: center;
  margin: 0;
}

/* Thank-you state */
#gf-fb-thanks {
  padding: 32px 20px;
  text-align: center;
}
.gf-fb-thanks-icon  { font-size: 36px; margin-bottom: 10px; }
.gf-fb-thanks-title { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.gf-fb-thanks-sub   { font-size: 13px; color: rgba(255,255,255,.4); margin: 0; }

/* Mobile */
@media (max-width: 480px) {
  #gf-feedback-widget { bottom: 16px; right: 16px; }
  #gf-fb-panel {
    width: calc(100vw - 32px);
    right: 0;
  }
  #gf-fb-btn span { display: none; }
  #gf-fb-btn { padding: 11px 13px; border-radius: 50%; }
}
