/* Hub Connector — redemption “gift” panel (scoped) */
.mhic-gift-wrap {
  box-sizing: border-box;
  max-width: 32rem;
  margin: 1.75rem auto 2.25rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  color: #0f172a;
}

.mhic-gift-wrap *,
.mhic-gift-wrap *::before,
.mhic-gift-wrap *::after {
  box-sizing: inherit;
}

.mhic-gift-surface {
  position: relative;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #fef3c7 0%, #fce7f3 38%, #e0f2fe 100%);
  padding: 3px;
  box-shadow:
    0 4px 6px -1px rgb(15 23 42 / 0.08),
    0 12px 24px -4px rgb(15 23 42 / 0.12);
}

.mhic-gift-inner {
  background: #fffdfa;
  border-radius: calc(1.25rem - 3px);
  overflow: hidden;
}

.mhic-gift-banner {
  text-align: center;
  padding: 1.5rem 1.25rem 1rem;
  background: radial-gradient(circle at 30% -20%, #fef08a 0%, transparent 55%),
    radial-gradient(circle at 80% 0%, #fbcfe8 0%, transparent 45%),
    linear-gradient(180deg, #fff7ed 0%, #fffdfb 100%);
  border-bottom: 1px solid rgb(251 191 36 / 0.25);
}

.mhic-gift-icon {
  font-size: 2.75rem;
  line-height: 1;
  display: block;
  margin-bottom: 0.35rem;
  filter: drop-shadow(0 2px 6px rgb(251 146 60 / 0.35));
}

.mhic-gift-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #9a3412;
}

.mhic-gift-sub {
  margin: 0.4rem auto 0;
  max-width: 26ch;
  font-size: 0.95rem;
  color: #78716c;
}

.mhic-gift-body {
  padding: 1.35rem 1.35rem 1.5rem;
}

.mhic-gift-prose {
  margin: 0 0 1.1rem;
  font-size: 0.938rem;
  color: #44403c;
}

.mhic-gift-prose:last-of-type {
  margin-bottom: 0;
}

.mhic-gift-steps {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
  font-size: 0.898rem;
  color: #57534e;
}

.mhic-gift-steps li {
  margin-bottom: 0.45rem;
}

.mhic-gift-steps li:last-child {
  margin-bottom: 0;
}

.mhic-alert {
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
}

.mhic-alert--success {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.mhic-alert--warn {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.mhic-alert--err {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.mhic-gift-form-head {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a8a29e;
  margin: 0 0 0.85rem;
}

.mhic-gift-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: #292524;
  margin-bottom: 0.35rem;
}

.mhic-gift-help {
  display: block;
  font-size: 0.813rem;
  color: #78716c;
  margin-bottom: 0.5rem;
}

.mhic-gift-textarea {
  width: 100%;
  display: block;
  min-height: 5rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #d6d3d1;
  border-radius: 0.65rem;
  font-family: ui-monospace, Consolas, "Cascadia Code", monospace;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #1c1917;
  background: #fff;
  resize: vertical;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.mhic-gift-textarea:focus {
  outline: none;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgb(251 146 60 / 0.25);
}

.mhic-gift-submit-wrap {
  margin-top: 1rem;
}

.mhic-gift-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0.88rem 1.25rem;
  border: 0;
  border-radius: 0.75rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #ea580c 0%, #dc2626 48%, #c026d3 100%);
  box-shadow: 0 4px 14px rgb(234 88 12 / 0.35);
  transition:
    transform 0.12s ease,
    box-shadow 0.15s ease;
}

.mhic-gift-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgb(234 88 12 / 0.42);
}

.mhic-gift-submit:active {
  transform: translateY(0);
}

.mhic-gift-footnote {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #e7e5e4;
  font-size: 0.78rem;
  color: #a8a29e;
  text-align: center;
}

/* Logged-out */
.mhic-guest-card {
  text-align: center;
  padding: 1rem 1.25rem 1.35rem;
}

.mhic-guest-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #57534e;
}

.mhic-guest-copy {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: #78716c;
}

.mhic-guest-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.35rem;
  border-radius: 0.65rem;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff !important;
  box-shadow: 0 4px 12px rgb(37 99 235 / 0.35);
}

.mhic-guest-link:hover,
.mhic-guest-link:focus {
  filter: brightness(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .mhic-gift-submit:hover,
  .mhic-gift-submit:active {
    transform: none;
  }
}
