/* ── Dialogs Saturno ── */
.dialog {
  position: fixed !important;
  inset: 0;
  z-index: 10060 !important;
  background: rgba(3, 0, 8, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 1rem;
}

.dialog-panel {
  position: relative;
  margin: 0 auto;
  border-radius: 1.15rem;
  border: 1px solid rgba(196, 168, 255, 0.22);
  background:
    linear-gradient(165deg, rgba(36, 22, 64, 0.96) 0%, rgba(10, 7, 20, 0.98) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 28px 60px rgba(0, 0, 0, 0.5);
  color: #f4f0ff;
}

.dialog-panel__head {
  position: relative;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid rgba(196, 168, 255, 0.14);
}

.dialog-panel__titles {
  padding-right: 2.5rem;
}

.dialog-panel__title {
  margin: 0;
  font-family: Kanit, Geist, sans-serif;
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: #f4f0ff;
}

.dialog-panel__close {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid rgba(196, 168, 255, 0.18);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(214, 201, 255, 0.75);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.dialog-panel__close i,
.dialog-panel__close svg {
  width: 1.05rem;
  height: 1.05rem;
}

.dialog-panel__close:hover {
  color: #fff;
  background: rgba(147, 51, 234, 0.18);
  border-color: rgba(196, 168, 255, 0.35);
}

.dialog-panel__body {
  padding: 1.25rem;
}

.ss-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ss-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ss-label {
  font-family: Kanit, Geist, sans-serif;
  font-size: 0.8125rem;
  font-weight: 650;
  color: rgba(237, 233, 254, 0.9);
}

.ss-input,
.ss-select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(196, 168, 255, 0.22);
  background: rgba(6, 4, 14, 0.72);
  color: #f4f0ff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ss-input::placeholder {
  color: rgba(196, 181, 253, 0.4);
}

.ss-input:focus,
.ss-select:focus {
  border-color: rgba(192, 132, 252, 0.65);
  background: rgba(10, 6, 22, 0.9);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.ss-select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #c084fc 50%),
    linear-gradient(135deg, #c084fc 50%, transparent 50%);
  background-position:
    calc(100% - 16px) calc(50% - 2px),
    calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.ss-field-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .ss-field-row {
    flex-direction: row;
    align-items: stretch;
  }

  .ss-select--type {
    width: 8.5rem;
    flex-shrink: 0;
  }
}

.ss-hints {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.15rem;
}

.ss-hints p {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(214, 201, 255, 0.7);
}

.ss-hints strong {
  color: #e9d5ff;
  font-weight: 700;
}

.ss-message {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(196, 168, 255, 0.16);
  background: rgba(6, 4, 14, 0.55);
  color: rgba(214, 201, 255, 0.85);
  font-size: 0.875rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.ss-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
  padding-top: 0.35rem;
}

.ss-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.55rem;
  padding: 0.55rem 1.05rem;
  border-radius: 0.75rem;
  border: 0;
  font-family: Kanit, Geist, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.ss-btn:active {
  transform: scale(0.98);
}

.ss-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.32);
}

.ss-btn--primary:hover {
  filter: brightness(1.06);
}

.ss-btn--ghost {
  color: #ede9fe;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(196, 168, 255, 0.28);
}

.ss-btn--ghost:hover {
  background: rgba(147, 51, 234, 0.14);
  border-color: rgba(196, 168, 255, 0.45);
}

@media (max-width: 639px) {
  .dialog {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(3, 0, 8, 0.82);
    align-items: flex-end;
    padding: 0;
  }

  .dialog-panel {
    width: 100%;
    max-height: 92vh;
    border-radius: 1.15rem 1.15rem 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .ss-actions {
    flex-direction: column-reverse;
  }

  .ss-btn {
    width: 100%;
  }
}

