html.tarfket-dialog-open {
  overflow: hidden;
}

.tarfket-dialog {
  inset: 0;
  width: min(100% - 32px, 520px);
  max-width: none;
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  color: #0b0b12;
  background: transparent;
  overflow: visible;
}

.tarfket-dialog::backdrop {
  background: rgba(72, 67, 82, 0.58);
  backdrop-filter: blur(9px) saturate(0.82);
}

.tarfket-dialog-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(109, 40, 217, 0.12);
  border-radius: 23px;
  color: #0b0b12;
  background:
    radial-gradient(circle at 92% 0, rgba(168, 85, 247, 0.075), transparent 36%),
    #fff;
  box-shadow:
    0 34px 100px rgba(28, 19, 43, 0.24),
    0 3px 14px rgba(28, 19, 43, 0.08);
  animation: tarfket-dialog-enter 190ms ease-out both;
}

.tarfket-dialog-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, #8b5cf6 45%, #c084fc 65%, transparent);
  opacity: 0.65;
}

.tarfket-dialog-head {
  display: block;
  padding: 32px 34px 21px;
}

.tarfket-dialog-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid #e8def8;
  border-radius: 15px;
  color: #7c3aed;
  background: linear-gradient(145deg, #fff, #faf7ff);
  box-shadow:
    0 14px 34px rgba(109, 40, 217, 0.11),
    inset 0 1px #fff;
}

.tarfket-dialog-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tarfket-dialog-eyebrow {
  display: none;
}

.tarfket-dialog-copy h2 {
  max-width: 440px;
  margin: 0;
  color: #0b0b12;
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-size: clamp(1.6rem, 4vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.tarfket-dialog-copy p {
  max-width: 440px;
  margin: 12px 0 0;
  color: #746d7d;
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-size: 0.88rem;
  line-height: 1.58;
  white-space: pre-line;
}

.tarfket-dialog-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 0 34px 32px;
}

.tarfket-dialog-button {
  min-height: 50px;
  padding: 0 19px;
  border: 1px solid #e4dcef;
  border-radius: 13px;
  color: #3d3547;
  background: #faf8fd;
  font: 800 0.83rem Manrope, Inter, system-ui, sans-serif;
  cursor: pointer;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.tarfket-dialog-button:hover {
  transform: translateY(-1px);
  border-color: #cfc1df;
  background: #f6f2fb;
}

.tarfket-dialog-button:focus-visible {
  outline: 3px solid rgba(168, 85, 247, 0.4);
  outline-offset: 3px;
}

.tarfket-dialog-confirm {
  min-width: 0;
  flex: 1 1 auto;
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #6d28d9, #a855f7);
  box-shadow:
    0 13px 30px rgba(109, 40, 217, 0.25),
    inset 0 1px rgba(255, 255, 255, 0.22);
}

.tarfket-dialog-confirm:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #6020c7, #9949e8);
  box-shadow:
    0 16px 35px rgba(109, 40, 217, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.22);
}

.tarfket-dialog-cancel {
  flex: 0 0 auto;
  min-width: 116px;
}

.tarfket-dialog[data-tone="danger"] .tarfket-dialog-card {
  border-color: rgba(255, 90, 95, 0.15);
}

.tarfket-dialog[data-tone="danger"] .tarfket-dialog-card::before {
  background: linear-gradient(90deg, transparent, #ff5a5f 50%, transparent);
}

.tarfket-dialog[data-tone="danger"] .tarfket-dialog-icon {
  border-color: #ffd7d9;
  color: #ef444a;
  background: #fff8f8;
  box-shadow: 0 14px 34px rgba(255, 90, 95, 0.12);
}

.tarfket-dialog[data-tone="danger"] .tarfket-dialog-confirm {
  background: linear-gradient(135deg, #df3d44, #ff5a5f);
  box-shadow:
    0 13px 30px rgba(255, 90, 95, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.2);
}

.tarfket-dialog[data-tone="danger"] .tarfket-dialog-confirm:hover {
  background: linear-gradient(135deg, #cf3138, #f14b50);
}

.tarfket-dialog[data-tone="success"] .tarfket-dialog-card {
  border-color: rgba(34, 197, 94, 0.16);
}

.tarfket-dialog[data-tone="success"] .tarfket-dialog-card::before {
  background: linear-gradient(90deg, transparent, #22c55e 50%, transparent);
}

.tarfket-dialog[data-tone="success"] .tarfket-dialog-icon {
  border-color: #c9f1d7;
  color: #18a94d;
  background: #f5fff8;
  box-shadow: 0 14px 34px rgba(34, 197, 94, 0.11);
}

.tarfket-dialog[data-tone="success"] .tarfket-dialog-confirm {
  background: linear-gradient(135deg, #169c46, #22c55e);
  box-shadow: 0 13px 30px rgba(34, 197, 94, 0.2);
}

@keyframes tarfket-dialog-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 560px) {
  .tarfket-dialog {
    width: min(100% - 20px, 640px);
    max-height: calc(100% - 20px);
  }

  .tarfket-dialog-card {
    border-radius: 22px;
  }

  .tarfket-dialog-head {
    padding: 30px 24px 22px;
  }

  .tarfket-dialog-icon {
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    border-radius: 16px;
  }

  .tarfket-dialog-icon svg {
    width: 25px;
    height: 25px;
  }

  .tarfket-dialog-copy h2 {
    font-size: clamp(1.55rem, 8vw, 1.85rem);
  }

  .tarfket-dialog-copy p {
    margin-top: 13px;
    font-size: 0.88rem;
    line-height: 1.58;
  }

  .tarfket-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 0 24px 28px;
  }

  .tarfket-dialog-button {
    width: 100%;
    min-width: 0;
    min-height: 53px;
  }

  .tarfket-dialog-confirm {
    grid-row: 1;
  }

  .tarfket-dialog-cancel {
    grid-row: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tarfket-dialog-card {
    animation: none;
  }

  .tarfket-dialog-button {
    transition: none;
  }
}
