/* Bülten abonelik iptali — vitrin token’larıyla sakin panel */

.unsub {
  --unsub-ink: var(--ink, #2b241f);
  --unsub-muted: var(--muted, #8a8178);
  --unsub-line: var(--line, #ece7e2);
  --unsub-soft: var(--surface-soft, #f6f1ea);
  --unsub-ok: #1f7a4d;
  --unsub-ok-soft: #eef8f2;
  --unsub-err: #b42318;
  --unsub-err-soft: #fef3f2;
  --unsub-radius: 16px;
  box-sizing: border-box;
  min-height: min(70vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 88px;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(196, 120, 74, 0.07), transparent 55%),
    #fff;
  color: var(--unsub-ink);
  font-family: var(--font, "Poppins", sans-serif);
  -webkit-font-smoothing: antialiased;
}

.unsub *,
.unsub *::before,
.unsub *::after {
  box-sizing: border-box;
}

.unsub__panel {
  width: min(440px, 100%);
  padding: 36px 32px 32px;
  border-radius: calc(var(--unsub-radius) + 2px);
  background: #fff;
  border: 1px solid var(--unsub-line);
  box-shadow: 0 18px 48px rgba(43, 36, 31, 0.06);
  animation: unsubIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.unsub__eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--unsub-muted);
}

.unsub__title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 3.2vw, 1.65rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--unsub-ink);
}

.unsub__lead {
  margin: 0 0 28px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--unsub-muted);
  font-weight: 400;
}

/* —— Başarı —— */
.unsub__panel--ok {
  text-align: center;
  padding-top: 40px;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(31, 122, 77, 0.09), transparent 58%),
    #fff;
  border-color: rgba(31, 122, 77, 0.14);
}

.unsub__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--unsub-ok);
  color: #fff;
  box-shadow:
    0 0 0 8px rgba(31, 122, 77, 0.1),
    0 12px 28px rgba(31, 122, 77, 0.2);
  animation: unsubPop 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.unsub__icon svg {
  display: block;
  width: 32px;
  height: 32px;
}

.unsub__panel--ok .unsub__title {
  color: var(--unsub-ok);
  margin-bottom: 8px;
}

.unsub__panel--ok .unsub__lead {
  margin-bottom: 28px;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}

/* —— Hata / bilgi —— */
.unsub__banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  animation: unsubIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.unsub__banner svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.unsub__banner--err {
  background: var(--unsub-err-soft);
  color: var(--unsub-err);
  border: 1px solid rgba(180, 35, 24, 0.12);
}

.unsub__banner--ok {
  background: var(--unsub-ok-soft);
  color: var(--unsub-ok);
  border: 1px solid rgba(31, 122, 77, 0.14);
}

/* —— Form —— */
.unsub__form {
  display: grid;
  gap: 14px;
}

.unsub__label {
  display: block;
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 550;
  letter-spacing: 0.01em;
  color: var(--unsub-ink);
}

.unsub__input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--unsub-line);
  border-radius: 10px;
  background: var(--unsub-soft);
  color: var(--unsub-ink);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.unsub__input::placeholder {
  color: #b0a69c;
}

.unsub__input:hover {
  border-color: color-mix(in srgb, var(--unsub-ink) 18%, var(--unsub-line));
}

.unsub__input:focus {
  outline: none;
  background: #fff;
  border-color: color-mix(in srgb, var(--accent, #c4784a) 55%, var(--unsub-line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #c4784a) 18%, transparent);
}

.unsub__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background: var(--btn-bg, #1c1c1c);
  color: var(--btn-text, #fff);
  font-family: inherit;
  font-size: 14px;
  font-weight: 550;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.unsub__submit:hover {
  background: var(--btn-hover, #333);
  transform: translateY(-1px);
}

.unsub__submit:active {
  transform: translateY(0);
}

.unsub__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 4px;
}

.unsub__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.unsub__btn--primary {
  background: var(--btn-bg, #1c1c1c);
  color: #fff;
  border: 1px solid var(--btn-bg, #1c1c1c);
}

.unsub__btn--primary:hover {
  background: var(--btn-hover, #333);
  border-color: var(--btn-hover, #333);
  color: #fff;
  transform: translateY(-1px);
}

.unsub__btn--ghost {
  background: transparent;
  color: var(--unsub-ink);
  border: 1px solid var(--unsub-line);
}

.unsub__btn--ghost:hover {
  border-color: rgba(43, 36, 31, 0.28);
  background: rgba(43, 36, 31, 0.03);
  color: var(--unsub-ink);
  transform: translateY(-1px);
}

.unsub__foot {
  margin: 22px 0 0;
  text-align: center;
}

.unsub__foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--unsub-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.unsub__foot a:hover {
  color: var(--unsub-ink);
}

.unsub__foot a svg {
  width: 14px;
  height: 14px;
}

@keyframes unsubIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes unsubPop {
  from {
    opacity: 0;
    transform: scale(0.72);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 520px) {
  .unsub {
    padding: 40px 16px 64px;
  }

  .unsub__panel {
    padding: 28px 20px 24px;
  }

  .unsub__actions {
    flex-direction: column;
  }

  .unsub__btn {
    width: 100%;
  }
}
