/* Hunial feedback modal */
html.hf-modal-open {
  overflow: hidden;
}

.hf-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.hf-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.hf-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 10, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.hf-modal.is-open .hf-backdrop {
  opacity: 1;
}

.hf-dialog {
  position: relative;
  width: min(500px, 100%);
  max-height: min(90vh, 740px);
  overflow: auto;
  background:
    radial-gradient(ellipse 100% 70% at 0% -10%, rgba(91, 79, 232, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(91, 79, 232, 0.1), transparent 50%),
    linear-gradient(180deg, #16161c 0%, #101014 100%);
  border: 1px solid rgba(245, 244, 240, 0.12);
  border-radius: 26px;
  padding: 34px 30px 30px;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(91, 79, 232, 0.08) inset;
  transform: translateY(28px) scale(0.96);
  opacity: 0;
  transition:
    transform 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  color: #F5F4F0;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-overflow-scrolling: touch;
}

.hf-modal.is-open .hf-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.hf-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(245, 244, 240, 0.06);
  color: rgba(245, 244, 240, 0.7);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hf-close:hover {
  background: rgba(245, 244, 240, 0.12);
  color: #F5F4F0;
  transform: rotate(90deg);
}

.hf-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(139, 130, 240, 0.9);
  margin: 0 0 10px;
}

.hf-dialog h2 {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 10px;
}

.hf-sub {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(245, 244, 240, 0.5);
  margin: 0 0 24px;
}

.hf-field {
  margin-bottom: 18px;
}

.hf-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 244, 240, 0.45);
  margin-bottom: 10px;
}

.hf-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hf-cat {
  appearance: none;
  border: 1px solid rgba(245, 244, 240, 0.12);
  background: rgba(245, 244, 240, 0.04);
  color: rgba(245, 244, 240, 0.7);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.hf-cat:hover {
  border-color: rgba(91, 79, 232, 0.45);
  color: #F5F4F0;
  transform: translateY(-1px);
}

.hf-cat.is-active {
  background: rgba(91, 79, 232, 0.28);
  border-color: rgba(91, 79, 232, 0.55);
  color: #F5F4F0;
}

.hf-field textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 120px;
  max-height: 240px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(245, 244, 240, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: #F5F4F0;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.hf-field textarea:focus {
  border-color: rgba(91, 79, 232, 0.65);
  box-shadow: 0 0 0 3px rgba(91, 79, 232, 0.18);
  background: rgba(0, 0, 0, 0.36);
}

.hf-field textarea::placeholder {
  color: rgba(245, 244, 240, 0.32);
}

.hf-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 12px;
}

.hf-hint {
  color: rgba(245, 244, 240, 0.35);
}

.hf-counter {
  color: rgba(245, 244, 240, 0.45);
  white-space: nowrap;
}

.hf-counter.is-warn {
  color: #e8c07a;
}

.hf-counter.is-over {
  color: #ef8a8a;
}

.hf-status {
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(245, 244, 240, 0.05);
  color: rgba(245, 244, 240, 0.7);
  animation: hf-fade-in 0.28s ease;
}

@keyframes hf-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.hf-status--error {
  background: rgba(220, 80, 80, 0.12);
  color: #f0a8a8;
}

.hf-status--warn {
  background: rgba(220, 170, 60, 0.12);
  color: #e8c07a;
}

.hf-status--muted {
  background: rgba(91, 79, 232, 0.12);
  color: rgba(180, 174, 240, 0.95);
}

.hf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
  padding: 15px 20px;
  border: 0;
  border-radius: 999px;
  background: #F5F4F0;
  color: #121216;
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, opacity 0.2s ease;
}

.hf-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.hf-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.hf-submit--ghost {
  background: transparent;
  color: #F5F4F0;
  border: 1px solid rgba(245, 244, 240, 0.2);
  margin-top: 20px;
}

.hf-success {
  text-align: center;
  padding: 12px 4px 4px;
  animation: hf-fade-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hf-success-mark {
  width: 56px;
  height: 56px;
  margin: 8px auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(91, 79, 232, 0.25);
  color: #c5bff8;
  font-size: 24px;
  font-weight: 700;
  animation: hf-pop 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hf-pop {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.hf-success p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(245, 244, 240, 0.55);
  margin: 0 auto;
  max-width: 34ch;
}

/* Landing CTA (feedback variant shares .account-cta) */
.account-cta[hidden],
#account-cta-guest[hidden],
#account-cta-auth[hidden],
#account-cta-feedback[hidden] {
  display: none !important;
}

button.account-cta {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-display, 'Syne', system-ui, sans-serif);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Account page button */
.account-feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 14px 28px;
  border: 1px solid rgba(245, 244, 240, 0.16);
  border-radius: 999px;
  background: rgba(91, 79, 232, 0.18);
  color: #F5F4F0;
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.account-feedback-btn:hover {
  background: rgba(91, 79, 232, 0.32);
  border-color: rgba(91, 79, 232, 0.5);
  transform: translateY(-1px);
}

@media (max-width: 560px) {
  .hf-dialog {
    padding: 28px 20px 22px;
    border-radius: 20px;
  }

  .hf-cat {
    padding: 7px 10px;
    font-size: 11px;
  }

  .account-feedback-btn {
    width: 100%;
    justify-content: center;
  }
}
