.modal {
  border: none;
  padding: 0;
  background: transparent;
}

.modal::backdrop {
  background: rgba(4, 7, 13, 0.78);
  backdrop-filter: blur(10px);
}

.modal__card {
  width: min(520px, 92vw);
  background: rgba(11, 15, 24, 0.95);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  color: var(--text);
}

.modal__header {
  padding: 1.6rem 1.8rem 0.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal__tabs {
  display: flex;
  gap: 0.6rem;
  padding: 0 1.8rem;
}

.tab-btn {
  flex: 1;
  padding: 0.55rem 0;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.tab-btn.is-active {
  background: rgba(1, 183, 227, 0.2);
  color: var(--text);
}

.modal__body {
  padding: 0 1.8rem;
  display: grid;
  gap: 1rem;
}

.modal__body label {
  display: grid;
  gap: 0.4rem;
  color: var(--text);
}

.modal__body label span {
  color: var(--text);
}

.modal__body input,
.modal__body textarea,
.modal__body select {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: #c5cdd8;
  box-shadow: 0 6px 20px -18px rgba(0, 0, 0, 0.9);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.modal__body input:focus,
.modal__body textarea:focus,
.modal__body select:focus {
  outline: none;
  border-color: var(--input-border-strong);
  box-shadow: 0 0 0 2px rgba(1, 183, 227, 0.18);
  background: rgba(1, 183, 227, 0.08);
}

.modal__body input:hover,
.modal__body textarea:hover,
.modal__body select:hover {
  border-color: var(--input-border-strong);
}

.modal__body input::placeholder,
.modal__body textarea::placeholder,
.modal__body select::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.modal__hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.modal__footer {
  padding: 0.2rem 1.8rem 1.6rem;
  display: flex;
  justify-content: flex-end;
}

.modal__error,
.modal__success {
  margin: -1.2rem 1.8rem 1.4rem;
  font-size: 0.9rem;
  text-align: center;
}

.modal__error {
  color: var(--danger);
}

.modal__success {
  color: var(--success);
}

.modal__error.is-hidden,
.modal__success.is-hidden {
  display: none;
}

.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  padding: 0.9rem 1.3rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 13, 22, 0.95);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.85);
  z-index: 20;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.is-hidden {
  pointer-events: none;
}
